From 0e43efe95fc25ac607d3db161dfb928d4b49cd7e Mon Sep 17 00:00:00 2001 From: tg-msft Date: Fri, 25 Oct 2024 15:22:24 -0700 Subject: [PATCH] Azure.Provisioning: Merge BicepValue into Models (#46819) Azure.Provisioning: Merge BicepValue into Models --- ...sioning.AppConfiguration.netstandard2.0.cs | 28 +- .../src/Generated/AppConfigurationKeyValue.cs | 120 ++- ...pConfigurationPrivateEndpointConnection.cs | 75 +- .../src/Generated/AppConfigurationReplica.cs | 73 +- .../src/Generated/AppConfigurationStore.cs | 179 ++-- .../AppConfigurationKeyVaultProperties.cs | 31 +- ...ationPrivateEndpointConnectionReference.cs | 65 +- ...rationPrivateLinkServiceConnectionState.cs | 40 +- .../Models/AppConfigurationStoreApiKey.cs | 71 +- ...ovisioning.AppContainers.netstandard2.0.cs | 259 ++++-- .../src/Generated/ContainerApp.cs | 198 +++-- .../src/Generated/ContainerAppAuthConfig.cs | 105 ++- .../ContainerAppConnectedEnvironment.cs | 123 ++- ...ainerAppConnectedEnvironmentCertificate.cs | 76 +- ...nerAppConnectedEnvironmentDaprComponent.cs | 126 ++- ...ContainerAppConnectedEnvironmentStorage.cs | 56 +- .../src/Generated/ContainerAppJob.cs | 132 ++- .../ContainerAppManagedCertificate.cs | 76 +- .../ContainerAppManagedEnvironment.cs | 229 ++++-- ...ntainerAppManagedEnvironmentCertificate.cs | 76 +- ...ainerAppManagedEnvironmentDaprComponent.cs | 126 ++- .../ContainerAppManagedEnvironmentStorage.cs | 56 +- .../Generated/ContainerAppSourceControl.cs | 84 +- .../Generated/Models/AppContainerResources.cs | 39 +- .../Models/ContainerAppAllowedPrincipals.cs | 31 +- .../Models/ContainerAppAppleConfiguration.cs | 41 +- ...tainerAppAppleRegistrationConfiguration.cs | 31 +- .../Models/ContainerAppAuthPlatform.cs | 30 +- ...nerAppAzureActiveDirectoryConfiguration.cs | 61 +- ...pAzureActiveDirectoryLoginConfiguration.cs | 31 +- ...ctiveDirectoryRegistrationConfiguration.cs | 71 +- ...eActiveDirectoryValidationConfiguration.cs | 41 +- .../Models/ContainerAppAzureFileProperties.cs | 51 +- ...ainerAppAzureStaticWebAppsConfiguration.cs | 31 +- .../ContainerAppCertificateProperties.cs | 112 ++- .../Models/ContainerAppClientRegistration.cs | 31 +- .../Models/ContainerAppConfiguration.cs | 80 +- .../Generated/Models/ContainerAppContainer.cs | 90 +- .../Models/ContainerAppCookieExpiration.cs | 30 +- .../Models/ContainerAppCorsPolicy.cs | 70 +- .../Models/ContainerAppCredentials.cs | 60 +- .../Models/ContainerAppCustomDomain.cs | 40 +- .../ContainerAppCustomDomainConfiguration.cs | 77 +- ...ustomOpenIdConnectProviderConfiguration.cs | 41 +- .../Models/ContainerAppCustomScaleRule.cs | 40 +- .../Models/ContainerAppDaprConfiguration.cs | 91 ++- .../Models/ContainerAppDaprMetadata.cs | 40 +- .../ContainerAppDefaultAuthorizationPolicy.cs | 31 +- .../Models/ContainerAppEnvironmentVariable.cs | 41 +- .../Models/ContainerAppExtendedLocation.cs | 30 +- .../ContainerAppFacebookConfiguration.cs | 51 +- .../Models/ContainerAppForwardProxy.cs | 40 +- .../ContainerAppGitHubActionConfiguration.cs | 101 ++- .../Models/ContainerAppGitHubConfiguration.cs | 41 +- .../Models/ContainerAppGlobalValidation.cs | 40 +- .../Models/ContainerAppGoogleConfiguration.cs | 51 +- .../Models/ContainerAppHttpHeaderInfo.cs | 30 +- .../Models/ContainerAppHttpRequestInfo.cs | 60 +- .../Models/ContainerAppHttpScaleRule.cs | 30 +- .../Models/ContainerAppHttpSettings.cs | 40 +- .../ContainerAppIPSecurityRestrictionRule.cs | 51 +- ...tainerAppIdentityProvidersConfiguration.cs | 91 ++- .../ContainerAppIngressConfiguration.cs | 140 +++- .../Models/ContainerAppInitContainer.cs | 80 +- .../Models/ContainerAppJobConfiguration.cs | 90 +- .../Generated/Models/ContainerAppJobScale.cs | 50 +- .../Models/ContainerAppJobScaleRule.cs | 50 +- .../Models/ContainerAppJobTemplate.cs | 40 +- .../Models/ContainerAppJwtClaimChecks.cs | 30 +- .../ContainerAppLogAnalyticsConfiguration.cs | 31 +- .../src/Generated/Models/ContainerAppLogin.cs | 70 +- .../Models/ContainerAppLoginNonce.cs | 30 +- .../Models/ContainerAppLogsConfiguration.cs | 31 +- ...ntainerAppOpenIdConnectClientCredential.cs | 31 +- .../Models/ContainerAppOpenIdConnectConfig.cs | 61 +- .../Models/ContainerAppOpenIdConnectLogin.cs | 31 +- .../ContainerAppOpenIdConnectRegistration.cs | 41 +- .../src/Generated/Models/ContainerAppProbe.cs | 100 ++- .../Models/ContainerAppQueueScaleRule.cs | 40 +- .../Models/ContainerAppRegistration.cs | 30 +- .../Models/ContainerAppRegistryCredentials.cs | 51 +- .../Models/ContainerAppRegistryInfo.cs | 40 +- .../ContainerAppRevisionTrafficWeight.cs | 51 +- .../src/Generated/Models/ContainerAppScale.cs | 40 +- .../Generated/Models/ContainerAppScaleRule.cs | 60 +- .../Models/ContainerAppScaleRuleAuth.cs | 30 +- .../Models/ContainerAppServiceBind.cs | 30 +- .../Models/ContainerAppTcpScaleRule.cs | 30 +- .../ContainerAppTcpSocketRequestInfo.cs | 31 +- .../Generated/Models/ContainerAppTemplate.cs | 80 +- .../Models/ContainerAppTokenStore.cs | 40 +- .../ContainerAppTwitterConfiguration.cs | 31 +- .../Models/ContainerAppTwitterRegistration.cs | 31 +- .../Models/ContainerAppVnetConfiguration.cs | 61 +- .../Generated/Models/ContainerAppVolume.cs | 60 +- .../Models/ContainerAppVolumeMount.cs | 40 +- .../Models/ContainerAppWorkloadProfile.cs | 50 +- .../Models/ContainerAppWritableSecret.cs | 50 +- .../Generated/Models/EncryptionSettings.cs | 30 +- .../Models/EventTriggerConfiguration.cs | 40 +- .../Generated/Models/IngressPortMapping.cs | 40 +- .../JobConfigurationManualTriggerConfig.cs | 31 +- .../JobConfigurationScheduleTriggerConfig.cs | 41 +- .../Models/ManagedCertificateProperties.cs | 57 +- .../src/Generated/Models/SecretVolumeItem.cs | 30 +- .../tests/BasicAppContainersTests.cs | 2 +- ....Provisioning.AppService.netstandard2.0.cs | 499 +++++++---- .../src/Generated/AppCertificate.cs | 262 ++++-- .../src/Generated/AppServiceCertificate.cs | 104 ++- .../Generated/AppServiceCertificateOrder.cs | 252 ++++-- .../src/Generated/AppServiceDomain.cs | 256 ++++-- .../src/Generated/AppServiceEnvironment.cs | 258 ++++-- .../src/Generated/AppServicePlan.cs | 307 ++++--- ...vicePlanVirtualNetworkConnectionGateway.cs | 66 +- .../src/Generated/AppServiceSourceControl.cs | 84 +- .../Generated/AseV3NetworkingConfiguration.cs | 130 ++- .../Generated/CustomDnsSuffixConfiguration.cs | 102 ++- .../Generated/DomainOwnershipIdentifier.cs | 65 +- .../HostingEnvironmentMultiRolePool.cs | 114 ++- ...ingEnvironmentPrivateEndpointConnection.cs | 94 ++- .../Generated/HostingEnvironmentWorkerPool.cs | 114 ++- .../src/Generated/KubeEnvironment.cs | 172 ++-- .../src/Generated/LogsSiteConfig.cs | 94 ++- .../src/Generated/LogsSiteSlotConfig.cs | 94 ++- .../src/Generated/Models/AppDaprConfig.cs | 80 +- .../Generated/Models/AppLogsConfiguration.cs | 30 +- .../src/Generated/Models/AppServiceArmPlan.cs | 55 +- ...ServiceBlobStorageApplicationLogsConfig.cs | 41 +- .../AppServiceBlobStorageHttpLogsConfig.cs | 41 +- .../Models/AppServiceCertificateDetails.cs | 91 ++- .../Models/AppServiceCertificateProperties.cs | 40 +- .../Models/AppServiceCorsSettings.cs | 30 +- .../Generated/Models/AppServiceHostName.cs | 64 +- .../Models/AppServiceHttpLogsConfig.cs | 30 +- .../Models/AppServiceIPSecurityRestriction.cs | 121 ++- .../Models/AppServiceNameValuePair.cs | 30 +- .../Models/AppServiceSkuCapability.cs | 40 +- .../Generated/Models/AppServiceSkuCapacity.cs | 60 +- .../Models/AppServiceSkuDescription.cs | 90 +- .../Models/AppServiceStorageAccessInfo.cs | 79 +- ...erviceTableStorageApplicationLogsConfig.cs | 31 +- .../Models/AppServiceVirtualNetworkProfile.cs | 49 +- .../Models/AppServiceVirtualNetworkRoute.cs | 78 +- .../Generated/Models/ApplicationLogsConfig.cs | 40 +- .../src/Generated/Models/ArcConfiguration.cs | 80 +- .../AseV3NetworkingConfigurationData.cs | 124 ++- .../src/Generated/Models/AutoHealActions.cs | 40 +- .../Generated/Models/AutoHealCustomAction.cs | 30 +- .../src/Generated/Models/AutoHealRules.cs | 30 +- .../src/Generated/Models/AutoHealTriggers.cs | 70 +- .../Models/CertificateOrderContact.cs | 46 +- .../src/Generated/Models/CloningInfo.cs | 120 ++- .../src/Generated/Models/ConnStringInfo.cs | 40 +- .../Models/ContainerAppsConfiguration.cs | 70 +- .../CustomDnsSuffixConfigurationData.cs | 96 ++- .../Generated/Models/DomainPurchaseConsent.cs | 40 +- .../Models/FileSystemHttpLogsConfig.cs | 40 +- .../Models/FunctionAppAlwaysReadyConfig.cs | 30 +- .../src/Generated/Models/FunctionAppConfig.cs | 40 +- .../Models/FunctionAppResourceConfig.cs | 30 +- .../Generated/Models/FunctionAppRuntime.cs | 30 +- .../Models/FunctionAppScaleAndConcurrency.cs | 51 +- .../Generated/Models/FunctionAppStorage.cs | 40 +- .../FunctionAppStorageAuthentication.cs | 41 +- .../Models/GitHubActionCodeConfiguration.cs | 31 +- .../Models/GitHubActionConfiguration.cs | 50 +- .../GitHubActionContainerConfiguration.cs | 51 +- .../src/Generated/Models/HostNameSslState.cs | 70 +- .../Models/HostingEnvironmentProfile.cs | 38 +- .../Models/HttpRequestHandlerMapping.cs | 40 +- .../Models/KubeEnvironmentProfile.cs | 38 +- .../Models/LogAnalyticsConfiguration.cs | 30 +- .../Generated/Models/PrivateAccessSubnet.cs | 30 +- .../Models/PrivateAccessVirtualNetwork.cs | 50 +- .../Models/PrivateLinkConnectionState.cs | 40 +- .../src/Generated/Models/RampUpRule.cs | 90 +- .../Models/RegistrationAddressInfo.cs | 70 +- .../Models/RegistrationContactInfo.cs | 100 ++- .../Models/RemotePrivateEndpointConnection.cs | 86 +- .../Generated/Models/RequestsBasedTrigger.cs | 30 +- ...EnvelopeRemotePrivateEndpointConnection.cs | 119 ++- .../Generated/Models/SiteConfigProperties.cs | 729 ++++++++++++----- .../Models/SiteContainerVolumeMount.cs | 50 +- .../src/Generated/Models/SiteDnsConfig.cs | 69 +- .../src/Generated/Models/SiteLimits.cs | 40 +- .../src/Generated/Models/SiteMachineKey.cs | 46 +- .../src/Generated/Models/SlotSwapStatus.cs | 37 +- .../Models/SlowRequestsBasedTrigger.cs | 50 +- .../Models/StaticSiteBuildProperties.cs | 90 +- ...baseConnectionConfigurationFileOverview.cs | 38 +- .../StaticSiteDatabaseConnectionOverview.cs | 56 +- .../Models/StaticSiteLinkedBackendInfo.cs | 46 +- .../Generated/Models/StaticSiteTemplate.cs | 60 +- .../StaticSiteUserProvidedFunctionAppData.cs | 77 +- .../Models/StatusCodesBasedTrigger.cs | 70 +- .../Models/StatusCodesRangeBasedTrigger.cs | 50 +- .../Generated/Models/VirtualApplication.cs | 50 +- .../src/Generated/Models/VirtualDirectory.cs | 30 +- .../Models/WebAppEnvironmentVariable.cs | 30 +- .../Generated/Models/WebAppPushSettings.cs | 87 +- .../src/Generated/PublishingUser.cs | 94 ++- ...ScmSiteBasicPublishingCredentialsPolicy.cs | 65 +- ...iteSlotBasicPublishingCredentialsPolicy.cs | 65 +- .../src/Generated/SiteContainer.cs | 173 ++-- .../src/Generated/SiteDeployment.cs | 135 ++- .../SiteDomainOwnershipIdentifier.cs | 66 +- .../src/Generated/SiteExtension.cs | 169 ++-- .../src/Generated/SiteFunction.cs | 185 +++-- .../src/Generated/SiteHostNameBinding.cs | 144 +++- .../SiteHybridConnectionNamespaceRelay.cs | 126 ++- .../src/Generated/SiteInstanceExtension.cs | 159 ++-- .../src/Generated/SiteNetworkConfig.cs | 74 +- .../SitePrivateEndpointConnection.cs | 94 ++- .../src/Generated/SitePublicCertificate.cs | 84 +- .../src/Generated/SiteSlotDeployment.cs | 135 ++- .../SiteSlotDomainOwnershipIdentifier.cs | 66 +- .../src/Generated/SiteSlotExtension.cs | 169 ++-- .../src/Generated/SiteSlotFunction.cs | 185 +++-- .../src/Generated/SiteSlotHostNameBinding.cs | 144 +++- .../SiteSlotHybridConnectionNamespaceRelay.cs | 126 ++- .../Generated/SiteSlotInstanceExtension.cs | 159 ++-- .../src/Generated/SiteSlotNetworkConfig.cs | 74 +- .../SiteSlotPrivateEndpointConnection.cs | 94 ++- .../src/Generated/SiteSlotSiteContainer.cs | 173 ++-- .../SiteSlotVirtualNetworkConnection.cs | 123 ++- ...SiteSlotVirtualNetworkConnectionGateway.cs | 76 +- .../Generated/SiteVirtualNetworkConnection.cs | 122 ++- .../SiteVirtualNetworkConnectionGateway.cs | 76 +- .../src/Generated/SlotConfigNames.cs | 84 +- .../src/Generated/StaticSite.cs | 257 ++++-- .../Generated/StaticSiteBasicAuthProperty.cs | 103 ++- .../StaticSiteBuildDatabaseConnection.cs | 95 ++- .../Generated/StaticSiteBuildLinkedBackend.cs | 83 +- .../StaticSiteBuildUserProvidedFunctionApp.cs | 75 +- .../StaticSiteCustomDomainOverview.cs | 111 ++- .../Generated/StaticSiteDatabaseConnection.cs | 104 ++- .../src/Generated/StaticSiteLinkedBackend.cs | 93 ++- .../StaticSitePrivateEndpointConnection.cs | 94 ++- .../StaticSiteUserProvidedFunctionApp.cs | 85 +- .../src/Generated/WebSite.cs | 587 +++++++++---- .../src/Generated/WebSiteConfig.cs | 773 ++++++++++++------ .../src/Generated/WebSiteExtension.cs | 233 ++++-- .../WebSiteFtpPublishingCredentialsPolicy.cs | 65 +- .../src/Generated/WebSiteHybridConnection.cs | 115 ++- .../src/Generated/WebSitePremierAddon.cs | 125 ++- .../src/Generated/WebSitePrivateAccess.cs | 74 +- .../src/Generated/WebSiteSlot.cs | 596 +++++++++----- .../src/Generated/WebSiteSlotConfig.cs | 773 ++++++++++++------ .../src/Generated/WebSiteSlotExtension.cs | 233 ++++-- ...bSiteSlotFtpPublishingCredentialsPolicy.cs | 65 +- .../Generated/WebSiteSlotHybridConnection.cs | 115 ++- .../src/Generated/WebSiteSlotPremierAddOn.cs | 125 ++- .../src/Generated/WebSiteSlotPrivateAccess.cs | 74 +- .../Generated/WebSiteSlotPublicCertificate.cs | 84 +- .../src/Generated/WebSiteSlotSourceControl.cs | 124 ++- .../src/Generated/WebSiteSourceControl.cs | 124 ++- .../tests/BasicAppServiceTests.cs | 5 +- ...ning.ApplicationInsights.netstandard2.0.cs | 28 +- .../Generated/ApplicationInsightsComponent.cs | 314 ++++--- .../Generated/ApplicationInsightsWebTest.cs | 194 +++-- .../Generated/ApplicationInsightsWorkbook.cs | 182 +++-- .../ApplicationInsightsWorkbookTemplate.cs | 106 ++- .../PrivateLinkScopedResourceReference.cs | 29 +- .../Models/WebTestContentValidation.cs | 40 +- .../Generated/Models/WebTestGeolocation.cs | 20 +- .../src/Generated/Models/WebTestRequest.cs | 70 +- .../Models/WebTestRequestHeaderField.cs | 30 +- .../Models/WebTestValidationRules.cs | 60 +- .../Models/WorkbookTemplateGallery.cs | 60 +- .../WorkbookTemplateLocalizedGallery.cs | 31 +- ...ioning.CognitiveServices.netstandard2.0.cs | 113 ++- .../src/Generated/CognitiveServicesAccount.cs | 113 ++- .../CognitiveServicesAccountDeployment.cs | 75 +- .../CognitiveServicesCommitmentPlan.cs | 95 ++- .../src/Generated/CommitmentPlan.cs | 104 ++- .../CommitmentPlanAccountAssociation.cs | 65 +- .../src/Generated/Models/AbusePenalty.cs | 37 +- ...CognitiveServicesAccountDeploymentModel.cs | 60 +- ...tiveServicesAccountDeploymentProperties.cs | 87 +- ...eServicesAccountDeploymentScaleSettings.cs | 40 +- .../Models/CognitiveServicesAccountModel.cs | 100 ++- .../CognitiveServicesAccountProperties.cs | 267 ++++-- .../Models/CognitiveServicesCapacityConfig.cs | 51 +- .../Models/CognitiveServicesIPRule.cs | 20 +- .../CognitiveServicesKeyVaultProperties.cs | 51 +- .../Models/CognitiveServicesModelSku.cs | 59 +- .../CognitiveServicesMultiRegionSettings.cs | 31 +- .../Models/CognitiveServicesNetworkRuleSet.cs | 41 +- ...veServicesPrivateEndpointConnectionData.cs | 95 ++- ...rvicesPrivateLinkServiceConnectionState.cs | 41 +- .../Models/CognitiveServicesRegionSetting.cs | 41 +- .../Generated/Models/CognitiveServicesSku.cs | 60 +- .../Models/CognitiveServicesSkuCapability.cs | 29 +- .../Models/CognitiveServicesSkuChangeInfo.cs | 38 +- .../CognitiveServicesVirtualNetworkRule.cs | 41 +- .../src/Generated/Models/CommitmentPeriod.cs | 57 +- .../Models/CommitmentPlanAssociation.cs | 28 +- .../Models/CommitmentPlanProperties.cs | 97 ++- .../src/Generated/Models/CommitmentQuota.cs | 28 +- .../Generated/Models/ServiceAccountApiKeys.cs | 34 +- .../Models/ServiceAccountApiProperties.cs | 120 ++- .../Models/ServiceAccountCallRateLimit.cs | 37 +- .../ServiceAccountEncryptionProperties.cs | 31 +- .../ServiceAccountModelDeprecationInfo.cs | 31 +- .../Models/ServiceAccountQuotaLimit.cs | 37 +- .../ServiceAccountThrottlingMatchPattern.cs | 29 +- .../Models/ServiceAccountThrottlingRule.cs | 64 +- .../Models/ServiceAccountUserOwnedStorage.cs | 31 +- ...ovisioning.Communication.netstandard2.0.cs | 45 +- .../src/Generated/CommunicationDomain.cs | 139 +++- .../src/Generated/CommunicationService.cs | 139 +++- .../src/Generated/EmailService.cs | 74 +- .../Models/CommunicationServiceKeys.cs | 53 +- .../DomainPropertiesVerificationRecords.cs | 56 +- .../DomainPropertiesVerificationStates.cs | 56 +- .../Models/DomainVerificationStatusRecord.cs | 29 +- .../Generated/Models/VerificationDnsRecord.cs | 46 +- .../src/Generated/SenderUsername.cs | 83 +- ...ioning.ContainerRegistry.netstandard2.0.cs | 149 ++-- .../Generated/ContainerRegistryAgentPool.cs | 114 ++- ...tainerRegistryPrivateEndpointConnection.cs | 75 +- .../Generated/ContainerRegistryReplication.cs | 103 ++- .../src/Generated/ContainerRegistryService.cs | 209 +++-- .../src/Generated/ContainerRegistryTask.cs | 193 +++-- .../src/Generated/ContainerRegistryTaskRun.cs | 103 ++- .../src/Generated/ContainerRegistryToken.cs | 93 ++- .../src/Generated/ContainerRegistryWebhook.cs | 124 ++- .../ContainerRegistryBaseImageDependency.cs | 56 +- .../ContainerRegistryBaseImageTrigger.cs | 61 +- .../Models/ContainerRegistryCredentials.cs | 30 +- .../ContainerRegistryDockerBuildContent.cs | 123 ++- .../ContainerRegistryDockerBuildStep.cs | 73 +- .../ContainerRegistryEncodedTaskRunContent.cs | 93 ++- .../ContainerRegistryEncodedTaskStep.cs | 43 +- .../Models/ContainerRegistryEncryption.cs | 30 +- .../ContainerRegistryFileTaskRunContent.cs | 93 ++- .../Models/ContainerRegistryFileTaskStep.cs | 43 +- .../Models/ContainerRegistryIPRule.cs | 30 +- .../ContainerRegistryImageDescriptor.cs | 51 +- .../ContainerRegistryImageUpdateTrigger.cs | 41 +- .../ContainerRegistryKeyVaultProperties.cs | 58 +- .../Models/ContainerRegistryNetworkRuleSet.cs | 31 +- ...ainerRegistryOverrideTaskStepProperties.cs | 71 +- .../ContainerRegistryPlatformProperties.cs | 41 +- .../Models/ContainerRegistryPolicies.cs | 50 +- ...erRegistryPrivateEndpointConnectionData.cs | 67 +- ...gistryPrivateLinkServiceConnectionState.cs | 41 +- .../Models/ContainerRegistryResourceStatus.cs | 38 +- .../ContainerRegistryRetentionPolicy.cs | 40 +- .../Models/ContainerRegistryRunArgument.cs | 40 +- .../Models/ContainerRegistryRunContent.cs | 40 +- .../Models/ContainerRegistryRunData.cs | 255 ++++-- .../Models/ContainerRegistrySecretObject.cs | 31 +- .../Generated/Models/ContainerRegistrySku.cs | 29 +- .../Models/ContainerRegistrySourceTrigger.cs | 51 +- ...ontainerRegistrySourceTriggerDescriptor.cs | 81 +- .../ContainerRegistryTaskOverridableValue.cs | 41 +- .../Models/ContainerRegistryTaskRunContent.cs | 33 +- .../ContainerRegistryTaskStepProperties.cs | 40 +- .../Models/ContainerRegistryTimerTrigger.cs | 41 +- ...ContainerRegistryTimerTriggerDescriptor.cs | 31 +- .../ContainerRegistryTokenCertificate.cs | 51 +- .../ContainerRegistryTokenCredentials.cs | 31 +- .../Models/ContainerRegistryTokenPassword.cs | 50 +- .../ContainerRegistryTriggerProperties.cs | 41 +- .../Models/ContainerRegistryTrustPolicy.cs | 30 +- .../Models/CustomRegistryCredentials.cs | 40 +- .../Models/SourceCodeRepoAuthInfo.cs | 60 +- .../Models/SourceCodeRepoProperties.cs | 50 +- .../src/Generated/ScopeMap.cs | 92 ++- ...sioning.ContainerService.netstandard2.0.cs | 171 ++-- .../src/Generated/AgentPoolSnapshot.cs | 129 ++- .../Generated/ContainerServiceAgentPool.cs | 472 +++++++---- ...ontainerServiceMaintenanceConfiguration.cs | 76 +- .../ContainerServiceManagedCluster.cs | 468 +++++++---- ...ntainerServicePrivateEndpointConnection.cs | 75 +- ...ontainerServiceTrustedAccessRoleBinding.cs | 75 +- .../Models/AgentPoolNetworkPortRange.cs | 40 +- .../Models/AgentPoolNetworkProfile.cs | 40 +- .../Models/AgentPoolUpgradeSettings.cs | 30 +- .../Models/ContainerServiceDateSpan.cs | 30 +- .../Generated/Models/ContainerServiceIPTag.cs | 30 +- .../Models/ContainerServiceLinuxProfile.cs | 30 +- ...rviceMaintenanceAbsoluteMonthlySchedule.cs | 31 +- ...rviceMaintenanceRelativeMonthlySchedule.cs | 41 +- .../ContainerServiceMaintenanceSchedule.cs | 51 +- ...ntainerServiceMaintenanceWeeklySchedule.cs | 31 +- .../ContainerServiceMaintenanceWindow.cs | 71 +- .../Models/ContainerServiceNetworkProfile.cs | 161 +++- ...ContainerServicePrivateLinkResourceData.cs | 70 +- ...ervicePrivateLinkServiceConnectionState.cs | 31 +- .../Models/ContainerServiceSshPublicKey.cs | 20 +- .../Models/ContainerServiceTimeInWeek.cs | 30 +- .../Models/ContainerServiceTimeSpan.cs | 30 +- .../ContainerServiceUserAssignedIdentity.cs | 41 +- .../src/Generated/Models/IstioComponents.cs | 30 +- .../Generated/Models/IstioEgressGateway.cs | 30 +- .../Generated/Models/IstioIngressGateway.cs | 30 +- .../Models/IstioPluginCertificateAuthority.cs | 61 +- .../src/Generated/Models/IstioServiceMesh.cs | 40 +- .../src/Generated/Models/KubeletConfig.cs | 120 ++- .../src/Generated/Models/LinuxOSConfig.cs | 50 +- .../Models/ManagedClusterAadProfile.cs | 80 +- .../Models/ManagedClusterAddonProfile.cs | 39 +- .../ManagedClusterAddonProfileIdentity.cs | 11 + .../Models/ManagedClusterAgentPoolProfile.cs | 448 +++++++--- .../ManagedClusterApiServerAccessProfile.cs | 61 +- .../Models/ManagedClusterAutoScalerProfile.cs | 181 ++-- .../ManagedClusterAutoUpgradeProfile.cs | 31 +- .../Models/ManagedClusterDelegatedIdentity.cs | 51 +- .../Models/ManagedClusterHttpProxyConfig.cs | 51 +- .../Models/ManagedClusterIdentity.cs | 58 +- .../ManagedClusterLoadBalancerProfile.cs | 91 ++- ...erLoadBalancerProfileManagedOutboundIPs.cs | 31 +- ...edClusterMonitorProfileKubeStateMetrics.cs | 31 +- .../ManagedClusterMonitorProfileMetrics.cs | 31 +- .../Models/ManagedClusterNatGatewayProfile.cs | 41 +- .../Models/ManagedClusterOidcIssuerProfile.cs | 30 +- .../Models/ManagedClusterPodIdentity.cs | 68 +- .../ManagedClusterPodIdentityException.cs | 41 +- .../ManagedClusterPodIdentityProfile.cs | 51 +- .../Models/ManagedClusterSecurityProfile.cs | 51 +- .../ManagedClusterSecurityProfileDefender.cs | 31 +- ...nagedClusterSecurityProfileImageCleaner.cs | 31 +- ...anagedClusterSecurityProfileKeyVaultKms.cs | 51 +- .../ManagedClusterServicePrincipalProfile.cs | 31 +- .../src/Generated/Models/ManagedClusterSku.cs | 30 +- .../Models/ManagedClusterStorageProfile.cs | 50 +- .../Models/ManagedClusterWindowsProfile.cs | 60 +- ...ManagedClusterWorkloadAutoScalerProfile.cs | 31 +- .../Generated/Models/ServiceMeshProfile.cs | 30 +- .../src/Generated/Models/SysctlConfig.cs | 290 +++++-- .../Models/UpgradeOverrideSettings.cs | 30 +- .../Generated/Models/WindowsGmsaProfile.cs | 40 +- ...re.Provisioning.CosmosDB.netstandard2.0.cs | 450 ++++++---- .../src/Generated/CassandraCluster.cs | 75 +- .../src/Generated/CassandraDataCenter.cs | 55 +- .../src/Generated/CassandraKeyspace.cs | 104 ++- .../CassandraKeyspaceThroughputSetting.cs | 85 +- .../src/Generated/CassandraTable.cs | 95 ++- .../CassandraTableThroughputSetting.cs | 85 +- .../src/Generated/CassandraViewGetResult.cs | 95 ++- .../CassandraViewThroughputSetting.cs | 85 +- .../src/Generated/CosmosDBAccount.cs | 516 ++++++++---- .../src/Generated/CosmosDBFirewallRule.cs | 74 +- .../CosmosDBPrivateEndpointConnection.cs | 86 +- .../src/Generated/CosmosDBService.cs | 84 +- .../CosmosDBSqlClientEncryptionKey.cs | 56 +- .../src/Generated/CosmosDBSqlContainer.cs | 95 ++- .../CosmosDBSqlContainerThroughputSetting.cs | 85 +- .../src/Generated/CosmosDBSqlDatabase.cs | 95 ++- .../CosmosDBSqlDatabaseThroughputSetting.cs | 85 +- .../Generated/CosmosDBSqlRoleAssignment.cs | 74 +- .../Generated/CosmosDBSqlRoleDefinition.cs | 84 +- .../Generated/CosmosDBSqlStoredProcedure.cs | 95 ++- .../src/Generated/CosmosDBSqlTrigger.cs | 95 ++- .../CosmosDBSqlUserDefinedFunction.cs | 96 ++- .../src/Generated/CosmosDBTable.cs | 95 ++- .../src/Generated/CosmosDBThroughputPool.cs | 75 +- .../CosmosDBThroughputPoolAccount.cs | 85 +- .../Generated/CosmosTableThroughputSetting.cs | 84 +- .../src/Generated/DataTransferJobGetResult.cs | 154 ++-- .../src/Generated/GraphResourceGetResult.cs | 95 ++- .../src/Generated/GremlinDatabase.cs | 95 ++- .../GremlinDatabaseThroughputSetting.cs | 85 +- .../src/Generated/GremlinGraph.cs | 95 ++- .../GremlinGraphThroughputSetting.cs | 85 +- .../AuthenticationMethodLdapProperties.cs | 91 ++- .../Models/AutoscaleSettingsResourceInfo.cs | 40 +- .../AzureBlobDataTransferDataSourceSink.cs | 33 +- .../Models/BackupPolicyMigrationState.cs | 40 +- .../BaseCosmosDataTransferDataSourceSink.cs | 23 +- .../Generated/Models/CassandraCertificate.cs | 20 +- .../Models/CassandraClusterBackupSchedule.cs | 41 +- .../Generated/Models/CassandraClusterKey.cs | 30 +- .../Models/CassandraClusterProperties.cs | 267 ++++-- .../src/Generated/Models/CassandraColumn.cs | 30 +- .../Models/CassandraDataCenterProperties.cs | 170 ++-- .../Models/CassandraDataCenterSeedNode.cs | 20 +- .../src/Generated/Models/CassandraError.cs | 50 +- .../CassandraKeyspacePropertiesConfig.cs | 31 +- .../Generated/Models/CassandraPartitionKey.cs | 20 +- .../src/Generated/Models/CassandraSchema.cs | 40 +- .../Models/CassandraTablePropertiesConfig.cs | 31 +- .../Models/CassandraTableResourceInfo.cs | 50 +- .../CassandraViewGetPropertiesOptions.cs | 31 +- .../CassandraViewGetPropertiesResource.cs | 38 +- .../Generated/Models/CassandraViewResource.cs | 30 +- .../src/Generated/Models/ComputedProperty.cs | 30 +- .../Models/ConflictResolutionPolicy.cs | 40 +- .../src/Generated/Models/ConsistencyPolicy.cs | 40 +- .../Models/ContinuousModeBackupPolicy.cs | 22 +- ...smosCassandraDataTransferDataSourceSink.cs | 33 +- .../Models/CosmosDBAccountBackupPolicy.cs | 20 +- .../Models/CosmosDBAccountCapability.cs | 20 +- .../Models/CosmosDBAccountCorsPolicy.cs | 60 +- .../Models/CosmosDBAccountKeyList.cs | 52 +- .../Models/CosmosDBAccountLocation.cs | 67 +- .../CosmosDBAccountRestoreParameters.cs | 91 ++- .../CosmosDBClientEncryptionIncludedPath.cs | 51 +- .../Models/CosmosDBClientEncryptionPolicy.cs | 31 +- .../Generated/Models/CosmosDBCompositePath.cs | 30 +- .../Models/CosmosDBContainerPartitionKey.cs | 50 +- .../Models/CosmosDBCreateUpdateConfig.cs | 30 +- .../Generated/Models/CosmosDBExcludedPath.cs | 20 +- .../Models/CosmosDBFailoverPolicy.cs | 39 +- .../Models/CosmosDBIPAddressOrRange.cs | 20 +- .../Generated/Models/CosmosDBIncludedPath.cs | 30 +- .../Models/CosmosDBIndexingPolicy.cs | 70 +- .../Models/CosmosDBKeyWrapMetadata.cs | 50 +- .../Generated/Models/CosmosDBPathIndexes.cs | 40 +- .../CosmosDBPrivateEndpointConnectionData.cs | 78 +- ...ivateLinkServiceConnectionStateProperty.cs | 40 +- .../Models/CosmosDBServiceProperties.cs | 58 +- ...osmosDBSqlClientEncryptionKeyProperties.cs | 38 +- ...mosDBSqlClientEncryptionKeyResourceInfo.cs | 51 +- .../CosmosDBSqlContainerPropertiesConfig.cs | 31 +- .../CosmosDBSqlContainerResourceInfo.cs | 131 ++- .../CosmosDBSqlDatabasePropertiesConfig.cs | 31 +- .../Models/CosmosDBSqlDatabaseResourceInfo.cs | 41 +- .../Models/CosmosDBSqlRolePermission.cs | 30 +- .../CosmosDBSqlStoredProcedureResourceInfo.cs | 31 +- .../Models/CosmosDBSqlTriggerResourceInfo.cs | 51 +- ...mosDBSqlUserDefinedFunctionResourceInfo.cs | 31 +- .../Models/CosmosDBTablePropertiesOptions.cs | 31 +- .../Models/CosmosDBTablePropertiesResource.cs | 38 +- .../Models/CosmosDBTableResourceInfo.cs | 40 +- .../src/Generated/Models/CosmosDBUniqueKey.cs | 20 +- .../Models/CosmosDBVirtualNetworkRule.cs | 30 +- .../CosmosMongoDataTransferDataSourceSink.cs | 33 +- .../CosmosSqlDataTransferDataSourceSink.cs | 33 +- .../Models/DataTransferDataSourceSink.cs | 10 + .../Models/DataTransferJobProperties.cs | 113 ++- .../Models/DataTransferRegionalService.cs | 37 +- .../Models/DataTransferServiceProperties.cs | 22 +- .../Models/DatabaseAccountKeysMetadata.cs | 46 +- .../Models/DatabaseRestoreResourceInfo.cs | 30 +- .../src/Generated/Models/ErrorResponse.cs | 28 +- .../ExtendedCassandraKeyspaceResourceInfo.cs | 48 +- .../ExtendedCassandraTableResourceInfo.cs | 38 +- ...xtendedCosmosDBSqlContainerResourceInfo.cs | 38 +- ...ExtendedCosmosDBSqlDatabaseResourceInfo.cs | 58 +- ...dCosmosDBSqlStoredProcedureResourceInfo.cs | 38 +- .../ExtendedCosmosDBSqlTriggerResourceInfo.cs | 38 +- ...mosDBSqlUserDefinedFunctionResourceInfo.cs | 38 +- .../ExtendedGremlinDatabaseResourceInfo.cs | 38 +- .../ExtendedGremlinGraphResourceInfo.cs | 38 +- .../ExtendedMongoDBCollectionResourceInfo.cs | 38 +- .../ExtendedMongoDBDatabaseResourceInfo.cs | 38 +- .../ExtendedThroughputSettingsResourceInfo.cs | 38 +- .../Models/GraphApiComputeRegionalService.cs | 47 +- .../GraphApiComputeServiceProperties.cs | 32 +- .../GraphResourceGetPropertiesOptions.cs | 31 +- .../Models/GremlinDatabasePropertiesConfig.cs | 31 +- .../Models/GremlinDatabaseResourceInfo.cs | 40 +- .../GremlinDatabaseRestoreResourceInfo.cs | 31 +- .../Models/GremlinGraphPropertiesConfig.cs | 30 +- .../Models/GremlinGraphResourceInfo.cs | 100 ++- .../Models/MaterializedViewDefinition.cs | 39 +- ...MaterializedViewsBuilderRegionalService.cs | 38 +- ...terializedViewsBuilderServiceProperties.cs | 22 +- .../Models/MongoClusterRestoreParameters.cs | 31 +- .../MongoDBCollectionPropertiesConfig.cs | 31 +- .../Models/MongoDBCollectionResourceInfo.cs | 71 +- .../Models/MongoDBDatabasePropertiesConfig.cs | 31 +- .../Models/MongoDBDatabaseResourceInfo.cs | 40 +- .../src/Generated/Models/MongoDBIndex.cs | 30 +- .../Generated/Models/MongoDBIndexConfig.cs | 30 +- .../src/Generated/Models/MongoDBPrivilege.cs | 30 +- .../Models/MongoDBPrivilegeResourceInfo.cs | 30 +- .../src/Generated/Models/MongoDBRole.cs | 30 +- .../src/Generated/Models/NodeGroupSpec.cs | 60 +- .../Models/PeriodicModeBackupPolicy.cs | 22 +- .../Models/PeriodicModeProperties.cs | 40 +- .../Models/ResourceRestoreParameters.cs | 40 +- ...SqlContainerPropertiesResourceContainer.cs | 47 +- ...leSqlDatabasePropertiesResourceDatabase.cs | 65 +- .../src/Generated/Models/SpatialSpec.cs | 30 +- .../SqlDedicatedGatewayRegionalService.cs | 47 +- .../SqlDedicatedGatewayServiceProperties.cs | 32 +- .../Models/ThroughputPolicyResourceInfo.cs | 30 +- .../Models/ThroughputSettingsResourceInfo.cs | 67 +- .../src/Generated/MongoCluster.cs | 151 +++- .../src/Generated/MongoDBCollection.cs | 95 ++- .../MongoDBCollectionThroughputSetting.cs | 85 +- .../src/Generated/MongoDBDatabase.cs | 95 ++- .../MongoDBDatabaseThroughputSetting.cs | 85 +- .../src/Generated/MongoDBRoleDefinition.cs | 94 ++- .../src/Generated/MongoDBUserDefinition.cs | 104 ++- ...e.Provisioning.EventGrid.netstandard2.0.cs | 341 +++++--- .../src/Generated/CaCertificate.cs | 92 ++- .../src/Generated/DomainEventSubscription.cs | 153 +++- .../src/Generated/DomainTopic.cs | 54 +- .../Generated/DomainTopicEventSubscription.cs | 153 +++- .../src/Generated/EventGridDomain.cs | 211 +++-- ...ventGridDomainPrivateEndpointConnection.cs | 86 +- .../src/Generated/EventGridNamespace.cs | 154 +++- .../EventGridNamespaceClientGroup.cs | 75 +- .../EventGridNamespaceClientResource.cs | 105 ++- .../EventGridNamespacePermissionBinding.cs | 95 ++- ...rtnerNamespacePrivateEndpointConnection.cs | 86 +- .../src/Generated/EventGridTopic.cs | 211 +++-- ...EventGridTopicPrivateEndpointConnection.cs | 86 +- .../src/Generated/EventSubscription.cs | 143 +++- .../src/Generated/Models/AdvancedFilter.cs | 20 +- .../AzureADPartnerClientAuthentication.cs | 33 +- ...ureFunctionEventSubscriptionDestination.cs | 53 +- .../Models/BoolEqualsAdvancedFilter.cs | 22 +- .../src/Generated/Models/BoolEqualsFilter.cs | 22 +- .../Models/ClientAuthenticationSettings.cs | 30 +- .../Models/ClientCertificateAuthentication.cs | 31 +- .../Models/CustomDomainConfiguration.cs | 70 +- .../Generated/Models/CustomDomainIdentity.cs | 30 +- .../CustomJwtAuthenticationManagedIdentity.cs | 31 +- .../Models/CustomJwtAuthenticationSettings.cs | 31 +- .../Generated/Models/DeadLetterDestination.cs | 10 + .../Models/DeadLetterWithResourceIdentity.cs | 31 +- .../Models/DeliveryAttributeMapping.cs | 20 +- .../Generated/Models/DeliveryConfiguration.cs | 40 +- .../Models/DeliveryWithResourceIdentity.cs | 30 +- .../Models/DynamicDeliveryAttributeMapping.cs | 23 +- .../Models/DynamicRoutingEnrichment.cs | 30 +- .../src/Generated/Models/EventGridFilter.cs | 20 +- .../Models/EventGridInboundIPRule.cs | 30 +- .../Models/EventGridInputSchemaMapping.cs | 10 + .../Models/EventGridJsonInputSchemaMapping.cs | 73 +- .../Models/EventGridPartnerContent.cs | 40 +- .../EventGridPrivateEndpointConnectionData.cs | 78 +- ...EventGridPrivateEndpointConnectionState.cs | 41 +- .../EventHubEventSubscriptionDestination.cs | 33 +- .../Models/EventSubscriptionDestination.cs | 10 + .../Models/EventSubscriptionFilter.cs | 70 +- .../Models/EventSubscriptionIdentity.cs | 30 +- .../Models/EventSubscriptionRetryPolicy.cs | 30 +- .../Generated/Models/FiltersConfiguration.cs | 30 +- ...dConnectionEventSubscriptionDestination.cs | 33 +- .../Generated/Models/InlineEventProperties.cs | 50 +- .../Models/IsNotNullAdvancedFilter.cs | 12 +- .../src/Generated/Models/IsNotNullFilter.cs | 12 +- .../Models/IsNullOrUndefinedAdvancedFilter.cs | 13 +- .../Models/IsNullOrUndefinedFilter.cs | 12 +- .../Generated/Models/IssuerCertificateInfo.cs | 30 +- .../Generated/Models/JsonFieldWithDefault.cs | 30 +- ...onitorAlertEventSubscriptionDestination.cs | 43 +- .../src/Generated/Models/NamespaceSku.cs | 30 +- ...espaceTopicEventSubscriptionDestination.cs | 23 +- .../Models/NumberGreaterThanAdvancedFilter.cs | 23 +- .../Models/NumberGreaterThanFilter.cs | 22 +- ...NumberGreaterThanOrEqualsAdvancedFilter.cs | 23 +- .../Models/NumberGreaterThanOrEqualsFilter.cs | 23 +- .../Models/NumberInAdvancedFilter.cs | 22 +- .../src/Generated/Models/NumberInFilter.cs | 22 +- .../Models/NumberInRangeAdvancedFilter.cs | 22 +- .../Generated/Models/NumberInRangeFilter.cs | 22 +- .../Models/NumberLessThanAdvancedFilter.cs | 22 +- .../Generated/Models/NumberLessThanFilter.cs | 22 +- .../NumberLessThanOrEqualsAdvancedFilter.cs | 23 +- .../Models/NumberLessThanOrEqualsFilter.cs | 22 +- .../Models/NumberNotInAdvancedFilter.cs | 22 +- .../src/Generated/Models/NumberNotInFilter.cs | 22 +- .../Models/NumberNotInRangeAdvancedFilter.cs | 23 +- .../Models/NumberNotInRangeFilter.cs | 22 +- .../Generated/Models/PartnerAuthorization.cs | 30 +- .../Models/PartnerClientAuthentication.cs | 10 + .../Models/PartnerDestinationInfo.cs | 60 +- .../PartnerEventSubscriptionDestination.cs | 23 +- .../Models/PartnerTopicEventTypeInfo.cs | 30 +- .../src/Generated/Models/PartnerTopicInfo.cs | 60 +- .../src/Generated/Models/PushInfo.cs | 60 +- .../src/Generated/Models/QueueInfo.cs | 50 +- .../Models/ResourceMoveChangeHistory.cs | 40 +- .../Generated/Models/RoutingEnrichments.cs | 30 +- .../Generated/Models/RoutingIdentityInfo.cs | 30 +- ...iceBusQueueEventSubscriptionDestination.cs | 33 +- ...iceBusTopicEventSubscriptionDestination.cs | 33 +- .../Models/StaticDeliveryAttributeMapping.cs | 33 +- .../Models/StaticRoutingEnrichment.cs | 20 +- .../Models/StaticStringRoutingEnrichment.cs | 23 +- .../StorageBlobDeadLetterDestination.cs | 33 +- ...torageQueueEventSubscriptionDestination.cs | 43 +- .../Models/StringBeginsWithAdvancedFilter.cs | 23 +- .../Models/StringBeginsWithFilter.cs | 22 +- .../Models/StringContainsAdvancedFilter.cs | 22 +- .../Generated/Models/StringContainsFilter.cs | 22 +- .../Models/StringEndsWithAdvancedFilter.cs | 22 +- .../Generated/Models/StringEndsWithFilter.cs | 22 +- .../Models/StringInAdvancedFilter.cs | 22 +- .../src/Generated/Models/StringInFilter.cs | 22 +- .../StringNotBeginsWithAdvancedFilter.cs | 23 +- .../Models/StringNotBeginsWithFilter.cs | 22 +- .../Models/StringNotContainsAdvancedFilter.cs | 23 +- .../Models/StringNotContainsFilter.cs | 22 +- .../Models/StringNotEndsWithAdvancedFilter.cs | 23 +- .../Models/StringNotEndsWithFilter.cs | 22 +- .../Models/StringNotInAdvancedFilter.cs | 22 +- .../src/Generated/Models/StringNotInFilter.cs | 22 +- .../Models/TopicSpacesConfiguration.cs | 99 ++- .../Generated/Models/TopicsConfiguration.cs | 29 +- .../WebHookEventSubscriptionDestination.cs | 92 ++- .../Models/WebhookPartnerDestinationInfo.cs | 43 +- .../src/Generated/NamespaceTopic.cs | 84 +- .../NamespaceTopicEventSubscription.cs | 95 ++- .../src/Generated/PartnerConfiguration.cs | 74 +- .../src/Generated/PartnerDestination.cs | 124 ++- .../src/Generated/PartnerNamespace.cs | 142 +++- .../src/Generated/PartnerNamespaceChannel.cs | 115 ++- .../src/Generated/PartnerRegistration.cs | 74 +- .../src/Generated/PartnerTopic.cs | 144 +++- .../PartnerTopicEventSubscription.cs | 154 +++- .../src/Generated/SystemTopic.cs | 103 ++- .../Generated/SystemTopicEventSubscription.cs | 153 +++- .../src/Generated/TopicEventSubscription.cs | 153 +++- .../src/Generated/TopicSpace.cs | 74 +- ...e.Provisioning.EventHubs.netstandard2.0.cs | 76 +- .../src/Generated/EventHub.cs | 121 ++- .../Generated/EventHubAuthorizationRule.cs | 73 +- .../Generated/EventHubsApplicationGroup.cs | 84 +- .../src/Generated/EventHubsCluster.cs | 120 ++- .../src/Generated/EventHubsConsumerGroup.cs | 82 +- .../Generated/EventHubsDisasterRecovery.cs | 100 ++- .../src/Generated/EventHubsNamespace.cs | 249 ++++-- .../EventHubsNamespaceAuthorizationRule.cs | 74 +- .../src/Generated/EventHubsNetworkRuleSet.cs | 103 ++- .../EventHubsPrivateEndpointConnection.cs | 85 +- .../src/Generated/EventHubsSchemaGroup.cs | 111 ++- .../Generated/Models/CaptureDescription.cs | 70 +- .../Generated/Models/EventHubDestination.cs | 90 +- .../Generated/Models/EventHubsAccessKeys.cs | 79 +- .../Models/EventHubsApplicationGroupPolicy.cs | 21 +- .../Models/EventHubsCaptureIdentity.cs | 30 +- .../Generated/Models/EventHubsClusterSku.cs | 30 +- .../Generated/Models/EventHubsEncryption.cs | 40 +- .../Models/EventHubsKeyVaultProperties.cs | 50 +- .../Models/EventHubsNetworkRuleSetIPRules.cs | 31 +- ...ntHubsNetworkRuleSetVirtualNetworkRules.cs | 31 +- .../EventHubsPrivateEndpointConnectionData.cs | 77 +- ...ntHubsPrivateLinkServiceConnectionState.cs | 31 +- .../src/Generated/Models/EventHubsSku.cs | 40 +- .../Models/EventHubsThrottlingPolicy.cs | 32 +- .../NamespaceGeoDataReplicationProperties.cs | 31 +- .../Models/NamespaceReplicaLocation.cs | 40 +- .../Generated/Models/RetentionDescription.cs | 40 +- ...re.Provisioning.KeyVault.netstandard2.0.cs | 65 +- .../KeyVaultPrivateEndpointConnection.cs | 102 ++- .../src/Generated/KeyVaultSecret.cs | 74 +- .../src/Generated/KeyVaultService.cs | 65 +- .../src/Generated/ManagedHsm.cs | 75 +- .../ManagedHsmPrivateEndpointConnection.cs | 114 ++- .../Models/IdentityAccessPermissions.cs | 50 +- .../Generated/Models/KeyVaultAccessPolicy.cs | 50 +- .../src/Generated/Models/KeyVaultIPRule.cs | 20 +- .../Models/KeyVaultNetworkRuleSet.cs | 50 +- ...yVaultPrivateEndpointConnectionItemData.cs | 56 +- ...yVaultPrivateLinkServiceConnectionState.cs | 41 +- .../Generated/Models/KeyVaultProperties.cs | 178 ++-- .../src/Generated/Models/KeyVaultSku.cs | 30 +- .../Models/KeyVaultVirtualNetworkRule.cs | 30 +- .../ManagedHSMSecurityDomainProperties.cs | 29 +- .../Models/ManagedHsmGeoReplicatedRegion.cs | 40 +- .../src/Generated/Models/ManagedHsmIPRule.cs | 20 +- .../Models/ManagedHsmNetworkRuleSet.cs | 50 +- ...gedHsmPrivateEndpointConnectionItemData.cs | 56 +- ...gedHsmPrivateLinkServiceConnectionState.cs | 41 +- .../Generated/Models/ManagedHsmProperties.cs | 154 +++- .../src/Generated/Models/ManagedHsmSku.cs | 30 +- .../Models/ManagedHsmVirtualNetworkRule.cs | 20 +- .../src/Generated/Models/SecretAttributes.cs | 58 +- .../src/Generated/Models/SecretProperties.cs | 58 +- .../tests/BasicKeyVaultTests.cs | 3 + ....Provisioning.Kubernetes.netstandard2.0.cs | 5 +- .../src/Generated/ConnectedCluster.cs | 197 +++-- ....KubernetesConfiguration.netstandard2.0.cs | 51 +- .../Generated/KubernetesClusterExtension.cs | 199 +++-- .../Generated/KubernetesFluxConfiguration.cs | 197 +++-- .../KubernetesSourceControlConfiguration.cs | 163 ++-- .../Models/HelmOperatorProperties.cs | 30 +- .../Generated/Models/HelmReleaseProperties.cs | 55 +- .../Generated/Models/KubernetesAzureBlob.cs | 100 ++- .../src/Generated/Models/KubernetesBucket.cs | 80 +- .../Models/KubernetesClusterExtensionScope.cs | 31 +- .../KubernetesClusterExtensionStatus.cs | 61 +- ...KubernetesConfigurationComplianceStatus.cs | 47 +- .../Models/KubernetesGitRepository.cs | 90 +- .../Models/KubernetesGitRepositoryRef.cs | 50 +- .../Models/KubernetesObjectReference.cs | 28 +- .../Models/KubernetesObjectStatus.cs | 73 +- .../Models/KubernetesObjectStatusCondition.cs | 56 +- .../Models/KubernetesServicePrincipal.cs | 70 +- .../src/Generated/Models/Kustomization.cs | 89 +- ...ning.OperationalInsights.netstandard2.0.cs | 83 +- .../src/Generated/LogAnalyticsQuery.cs | 131 ++- .../src/Generated/LogAnalyticsQueryPack.cs | 91 ++- .../LogAnalyticsQueryRelatedMetadata.cs | 41 +- ...alInsightsCapacityReservationProperties.cs | 29 +- ...ionalInsightsClusterAssociatedWorkspace.cs | 47 +- .../Models/OperationalInsightsClusterSku.cs | 31 +- .../Models/OperationalInsightsColumn.cs | 78 +- .../OperationalInsightsKeyVaultProperties.cs | 51 +- ...alInsightsPrivateLinkScopedResourceInfo.cs | 29 +- .../Models/OperationalInsightsSchema.cs | 113 ++- .../OperationalInsightsStorageAccount.cs | 31 +- .../OperationalInsightsTableRestoredLogs.cs | 50 +- ...perationalInsightsTableResultStatistics.cs | 38 +- .../OperationalInsightsTableSearchResults.cs | 79 +- .../Models/OperationalInsightsTag.cs | 30 +- .../OperationalInsightsWorkspaceCapping.cs | 39 +- .../OperationalInsightsWorkspaceFeatures.cs | 71 +- .../OperationalInsightsWorkspaceSharedKeys.cs | 35 +- .../Models/OperationalInsightsWorkspaceSku.cs | 40 +- .../Generated/Models/StorageInsightStatus.cs | 28 +- .../Generated/OperationalInsightsCluster.cs | 171 ++-- .../OperationalInsightsDataExport.cs | 125 ++- .../OperationalInsightsDataSource.cs | 86 +- .../OperationalInsightsLinkedService.cs | 86 +- ...perationalInsightsLinkedStorageAccounts.cs | 65 +- .../OperationalInsightsSavedSearch.cs | 125 ++- .../src/Generated/OperationalInsightsTable.cs | 159 ++-- .../Generated/OperationalInsightsWorkspace.cs | 209 +++-- .../src/Generated/StorageInsight.cs | 104 ++- ....Provisioning.PostgreSql.netstandard2.0.cs | 116 ++- .../PostgreSqlFlexibleServerAuthConfig.cs | 41 +- ...ostgreSqlFlexibleServerBackupProperties.cs | 40 +- .../PostgreSqlFlexibleServerDataEncryption.cs | 81 +- ...ostgreSqlFlexibleServerHighAvailability.cs | 40 +- ...stgreSqlFlexibleServerMaintenanceWindow.cs | 51 +- .../Models/PostgreSqlFlexibleServerNetwork.cs | 40 +- .../Models/PostgreSqlFlexibleServerSku.cs | 30 +- .../Models/PostgreSqlFlexibleServerStorage.cs | 50 +- ...reSqlFlexibleServerUserAssignedIdentity.cs | 40 +- .../PostgreSqlMigrationAdminCredentials.cs | 31 +- .../PostgreSqlMigrationSecretParameters.cs | 41 +- .../Models/PostgreSqlMigrationStatus.cs | 37 +- ...ivateLinkServiceConnectionStateProperty.cs | 40 +- .../Models/PostgreSqlServerMetadata.cs | 46 +- ...stgreSqlServerPrivateEndpointConnection.cs | 29 +- ...rverPrivateEndpointConnectionProperties.cs | 38 +- ...ivateLinkServiceConnectionStateProperty.cs | 38 +- .../PostgreSqlServerPropertiesForCreate.cs | 71 +- ...tgreSqlServerPropertiesForDefaultCreate.cs | 31 +- ...PostgreSqlServerPropertiesForGeoRestore.cs | 22 +- .../PostgreSqlServerPropertiesForReplica.cs | 22 +- .../PostgreSqlServerPropertiesForRestore.cs | 31 +- .../src/Generated/Models/PostgreSqlSku.cs | 60 +- .../Models/PostgreSqlStorageProfile.cs | 50 +- .../src/Generated/Models/ServerSku.cs | 28 +- .../src/Generated/PostgreSqlConfiguration.cs | 101 ++- .../src/Generated/PostgreSqlDatabase.cs | 65 +- .../src/Generated/PostgreSqlFirewallRule.cs | 65 +- .../src/Generated/PostgreSqlFlexibleServer.cs | 272 ++++-- ...xibleServerActiveDirectoryAdministrator.cs | 85 +- .../PostgreSqlFlexibleServerConfiguration.cs | 147 +++- .../PostgreSqlFlexibleServerDatabase.cs | 66 +- .../PostgreSqlFlexibleServerFirewallRule.cs | 66 +- .../src/Generated/PostgreSqlMigration.cs | 260 ++++-- .../PostgreSqlPrivateEndpointConnection.cs | 75 +- .../src/Generated/PostgreSqlServer.cs | 220 +++-- .../PostgreSqlServerAdministrator.cs | 85 +- .../src/Generated/PostgreSqlServerKey.cs | 83 +- .../PostgreSqlServerSecurityAlertPolicy.cs | 115 ++- .../Generated/PostgreSqlVirtualNetworkRule.cs | 74 +- ...Azure.Provisioning.Redis.netstandard2.0.cs | 44 +- .../src/Generated/Models/RedisAccessKeys.cs | 34 +- .../Models/RedisCommonConfiguration.cs | 207 +++-- .../Generated/Models/RedisInstanceDetails.cs | 64 +- .../Models/RedisPatchScheduleSetting.cs | 40 +- .../RedisPrivateEndpointConnectionData.cs | 66 +- .../RedisPrivateLinkServiceConnectionState.cs | 41 +- .../src/Generated/Models/RedisSku.cs | 40 +- .../src/Generated/RedisCacheAccessPolicy.cs | 73 +- .../RedisCacheAccessPolicyAssignment.cs | 85 +- .../src/Generated/RedisFirewallRule.cs | 65 +- .../RedisLinkedServerWithProperty.cs | 103 ++- .../src/Generated/RedisPatchSchedule.cs | 63 +- .../RedisPrivateEndpointConnection.cs | 74 +- .../src/Generated/RedisResource.cs | 296 +++++-- ...zure.Provisioning.Search.netstandard2.0.cs | 41 +- .../SearchAadAuthDataPlaneAuthOptions.cs | 31 +- .../Models/SearchEncryptionWithCmk.cs | 29 +- .../Models/SearchManagementRequestOptions.cs | 21 +- .../SearchPrivateEndpointConnectionData.cs | 48 +- .../Generated/Models/SearchServiceIPRule.cs | 20 +- .../Models/SearchServiceNetworkRuleSet.cs | 30 +- ...vicePrivateEndpointConnectionProperties.cs | 51 +- ...ervicePrivateLinkServiceConnectionState.cs | 41 +- ...redSearchServicePrivateLinkResourceData.cs | 48 +- ...rchServicePrivateLinkResourceProperties.cs | 71 +- .../SearchPrivateEndpointConnection.cs | 56 +- .../src/Generated/SearchService.cs | 239 ++++-- .../SharedSearchServicePrivateLink.cs | 56 +- ....Provisioning.ServiceBus.netstandard2.0.cs | 77 +- .../src/Generated/MigrationConfiguration.cs | 95 ++- .../Generated/Models/MessageCountDetails.cs | 55 +- .../Generated/Models/ServiceBusAccessKeys.cs | 79 +- .../ServiceBusClientAffineProperties.cs | 41 +- .../Models/ServiceBusCorrelationFilter.cs | 110 ++- .../Generated/Models/ServiceBusEncryption.cs | 40 +- .../Models/ServiceBusFilterAction.cs | 40 +- .../Models/ServiceBusKeyVaultProperties.cs | 50 +- .../Models/ServiceBusNetworkRuleSetIPRules.cs | 31 +- ...iceBusNetworkRuleSetVirtualNetworkRules.cs | 31 +- ...ServiceBusPrivateEndpointConnectionData.cs | 77 +- ...iceBusPrivateLinkServiceConnectionState.cs | 31 +- .../src/Generated/Models/ServiceBusSku.cs | 40 +- .../Generated/Models/ServiceBusSqlFilter.cs | 40 +- .../Generated/ServiceBusDisasterRecovery.cs | 100 ++- .../src/Generated/ServiceBusNamespace.cs | 209 +++-- .../ServiceBusNamespaceAuthorizationRule.cs | 74 +- .../src/Generated/ServiceBusNetworkRuleSet.cs | 103 ++- .../ServiceBusPrivateEndpointConnection.cs | 85 +- .../src/Generated/ServiceBusQueue.cs | 268 ++++-- .../ServiceBusQueueAuthorizationRule.cs | 74 +- .../src/Generated/ServiceBusRule.cs | 94 ++- .../src/Generated/ServiceBusSubscription.cs | 239 ++++-- .../src/Generated/ServiceBusTopic.cs | 218 +++-- .../ServiceBusTopicAuthorizationRule.cs | 74 +- ...ure.Provisioning.SignalR.netstandard2.0.cs | 51 +- .../src/Generated/Models/SignalRFeature.cs | 40 +- .../src/Generated/Models/SignalRKeys.cs | 52 +- .../Models/SignalRLiveTraceCategory.cs | 30 +- .../Models/SignalRLiveTraceConfiguration.cs | 31 +- .../src/Generated/Models/SignalRNetworkAcl.cs | 30 +- .../Generated/Models/SignalRNetworkAcls.cs | 40 +- .../Models/SignalRPrivateEndpointAcl.cs | 20 +- .../SignalRPrivateEndpointConnectionData.cs | 76 +- ...ignalRPrivateLinkServiceConnectionState.cs | 41 +- .../Models/SignalRResourceLogCategory.cs | 30 +- .../Generated/Models/SignalRResourceSku.cs | 58 +- .../SignalRSharedPrivateLinkResourceData.cs | 86 +- .../Models/SignalRUpstreamAuthSettings.cs | 30 +- .../Models/SignalRUpstreamTemplate.cs | 60 +- .../src/Generated/SignalRCustomCertificate.cs | 84 +- .../src/Generated/SignalRCustomDomain.cs | 74 +- .../SignalRPrivateEndpointConnection.cs | 84 +- .../src/Generated/SignalRService.cs | 275 +++++-- .../src/Generated/SignalRSharedPrivateLink.cs | 93 ++- .../Azure.Provisioning.Sql.netstandard2.0.cs | 347 +++++--- .../BackupShortTermRetentionPolicy.cs | 65 +- .../src/Generated/DataMaskingPolicy.cs | 100 ++- .../DatabaseAdvancedThreatProtection.cs | 64 +- .../Generated/DistributedAvailabilityGroup.cs | 140 +++- .../src/Generated/ElasticPool.cs | 192 +++-- .../src/Generated/EncryptionProtector.cs | 119 ++- .../ExtendedDatabaseBlobAuditingPolicy.cs | 155 +++- .../ExtendedServerBlobAuditingPolicy.cs | 165 ++-- .../src/Generated/FailoverGroup.cs | 122 ++- .../src/Generated/GeoBackupPolicy.cs | 81 +- .../src/Generated/IPv6FirewallRule.cs | 56 +- .../src/Generated/InstanceFailoverGroup.cs | 103 ++- .../src/Generated/InstancePool.cs | 114 ++- .../src/Generated/LedgerDigestUpload.cs | 63 +- ...ogicalDatabaseTransparentDataEncryption.cs | 55 +- .../src/Generated/LongTermRetentionPolicy.cs | 104 ++- .../ManagedBackupShortTermRetentionPolicy.cs | 55 +- .../src/Generated/ManagedDatabase.cs | 280 +++++-- ...ManagedDatabaseAdvancedThreatProtection.cs | 64 +- .../ManagedDatabaseSecurityAlertPolicy.cs | 124 ++- .../ManagedDatabaseSensitivityLabel.cs | 130 ++- .../ManagedDatabaseVulnerabilityAssessment.cs | 85 +- ...baseVulnerabilityAssessmentRuleBaseline.cs | 45 +- .../src/Generated/ManagedInstance.cs | 359 +++++--- .../Generated/ManagedInstanceAdministrator.cs | 84 +- ...ManagedInstanceAdvancedThreatProtection.cs | 64 +- ...anagedInstanceAzureADOnlyAuthentication.cs | 55 +- .../src/Generated/ManagedInstanceDtc.cs | 92 ++- .../ManagedInstanceEncryptionProtector.cs | 102 ++- .../src/Generated/ManagedInstanceKey.cs | 101 ++- .../ManagedInstanceLongTermRetentionPolicy.cs | 85 +- ...anagedInstancePrivateEndpointConnection.cs | 75 +- ...anagedInstanceServerConfigurationOption.cs | 64 +- .../ManagedInstanceServerTrustCertificate.cs | 74 +- .../ManagedInstanceStartStopSchedule.cs | 93 ++- .../ManagedInstanceVulnerabilityAssessment.cs | 85 +- .../Generated/ManagedLedgerDigestUpload.cs | 63 +- ...DroppedDbBackupShortTermRetentionPolicy.cs | 45 +- .../src/Generated/ManagedServerDnsAlias.cs | 73 +- .../ManagedServerSecurityAlertPolicy.cs | 124 ++- .../ManagedTransparentDataEncryption.cs | 55 +- .../CreateDatabaseRestorePointDefinition.cs | 20 +- .../src/Generated/Models/DatabaseIdentity.cs | 39 +- ...VulnerabilityAssessmentRuleBaselineItem.cs | 21 +- .../Models/ElasticPoolPerDatabaseSettings.cs | 31 +- .../Models/FailoverGroupReadOnlyEndpoint.cs | 31 +- .../Models/FailoverGroupReadWriteEndpoint.cs | 31 +- .../InstanceFailoverGroupReadWriteEndpoint.cs | 31 +- .../Generated/Models/JobExecutionTarget.cs | 37 +- .../src/Generated/Models/JobStepAction.cs | 40 +- .../Models/JobStepExecutionOptions.cs | 60 +- .../src/Generated/Models/JobStepOutput.cs | 90 +- .../src/Generated/Models/JobTarget.cs | 80 +- .../ManagedInstanceDtcSecuritySettings.cs | 61 +- ...TransactionManagerCommunicationSettings.cs | 41 +- .../ManagedInstanceExternalAdministrator.cs | 71 +- .../Models/ManagedInstancePairInfo.cs | 30 +- .../Models/ManagedInstancePecProperty.cs | 28 +- ...ancePrivateEndpointConnectionProperties.cs | 38 +- ...ivateLinkServiceConnectionStateProperty.cs | 40 +- .../src/Generated/Models/PartnerRegionInfo.cs | 29 +- .../src/Generated/Models/PartnerServerInfo.cs | 38 +- .../Models/ServerExternalAdministrator.cs | 70 +- ...rverPrivateEndpointConnectionProperties.cs | 47 +- .../Models/ServerTrustGroupServerInfo.cs | 20 +- .../src/Generated/Models/SqlDatabaseKey.cs | 46 +- ...ivateLinkServiceConnectionStateProperty.cs | 40 +- .../src/Generated/Models/SqlScheduleItem.cs | 50 +- .../Generated/Models/SqlServerJobSchedule.cs | 60 +- .../SqlServerPrivateEndpointConnection.cs | 29 +- .../Generated/Models/SqlServicePrincipal.cs | 47 +- .../src/Generated/Models/SqlSku.cs | 60 +- .../src/Generated/Models/SyncGroupSchema.cs | 30 +- .../Generated/Models/SyncGroupSchemaTable.cs | 30 +- .../Models/SyncGroupSchemaTableColumn.cs | 40 +- ...ilityAssessmentRecurringScansProperties.cs | 41 +- .../src/Generated/OutboundFirewallRule.cs | 53 +- .../ServerAdvancedThreatProtection.cs | 64 +- .../src/Generated/SqlAgentConfiguration.cs | 54 +- .../src/Generated/SqlDatabase.cs | 569 +++++++++---- .../SqlDatabaseBlobAuditingPolicy.cs | 154 +++- .../SqlDatabaseSecurityAlertPolicy.cs | 124 ++- .../Generated/SqlDatabaseSensitivityLabel.cs | 129 ++- ...abaseSqlVulnerabilityAssessmentBaseline.cs | 55 +- ...eSqlVulnerabilityAssessmentBaselineRule.cs | 65 +- .../SqlDatabaseVulnerabilityAssessment.cs | 85 +- ...baseVulnerabilityAssessmentRuleBaseline.cs | 45 +- .../src/Generated/SqlFirewallRule.cs | 56 +- .../Generated/SqlPrivateEndpointConnection.cs | 83 +- .../src/Generated/SqlServer.cs | 229 ++++-- .../SqlServerAzureADAdministrator.cs | 89 +- .../SqlServerAzureADOnlyAuthentication.cs | 55 +- .../Generated/SqlServerBlobAuditingPolicy.cs | 154 +++- .../Generated/SqlServerCommunicationLink.cs | 82 +- .../Generated/SqlServerConnectionPolicy.cs | 72 +- .../SqlServerDatabaseRestorePoint.cs | 90 +- .../SqlServerDevOpsAuditingSetting.cs | 106 ++- .../src/Generated/SqlServerDnsAlias.cs | 54 +- .../src/Generated/SqlServerJob.cs | 74 +- .../src/Generated/SqlServerJobAgent.cs | 94 ++- .../src/Generated/SqlServerJobCredential.cs | 65 +- .../src/Generated/SqlServerJobExecution.cs | 161 ++-- .../src/Generated/SqlServerJobStep.cs | 105 ++- .../src/Generated/SqlServerJobTargetGroup.cs | 55 +- .../src/Generated/SqlServerKey.cs | 119 ++- .../Generated/SqlServerSecurityAlertPolicy.cs | 123 ++- .../SqlServerSqlVulnerabilityAssessment.cs | 55 +- ...erverSqlVulnerabilityAssessmentBaseline.cs | 65 +- ...rSqlVulnerabilityAssessmentBaselineRule.cs | 65 +- .../src/Generated/SqlServerTrustGroup.cs | 55 +- .../Generated/SqlServerVirtualNetworkRule.cs | 74 +- .../SqlServerVulnerabilityAssessment.cs | 85 +- .../src/Generated/SyncAgent.cs | 100 ++- .../src/Generated/SyncGroup.cs | 172 ++-- .../src/Generated/SyncMember.cs | 163 ++-- .../src/Generated/WorkloadClassifier.cs | 105 ++- .../src/Generated/WorkloadGroup.cs | 105 ++- ...ure.Provisioning.Storage.netstandard2.0.cs | 261 +++--- .../src/Generated/BlobContainer.cs | 232 ++++-- .../src/Generated/BlobInventoryPolicy.cs | 63 +- .../src/Generated/BlobService.cs | 138 +++- .../src/Generated/EncryptionScope.cs | 103 ++- .../src/Generated/FileService.cs | 78 +- .../src/Generated/FileShare.cs | 222 +++-- .../src/Generated/ImmutabilityPolicy.cs | 92 ++- .../Models/AccountImmutabilityPolicy.cs | 40 +- .../Models/BlobContainerImmutabilityPolicy.cs | 65 +- .../Models/BlobInventoryPolicyDefinition.cs | 61 +- .../Models/BlobInventoryPolicyFilter.cs | 70 +- .../Models/BlobInventoryPolicyRule.cs | 50 +- .../Models/BlobInventoryPolicySchema.cs | 49 +- .../Generated/Models/BlobRestoreContent.cs | 30 +- .../src/Generated/Models/BlobRestoreRange.cs | 30 +- .../src/Generated/Models/BlobRestoreStatus.cs | 46 +- .../Generated/Models/BlobServiceChangeFeed.cs | 30 +- .../src/Generated/Models/DateAfterCreation.cs | 30 +- .../Generated/Models/DateAfterModification.cs | 50 +- .../Generated/Models/DeleteRetentionPolicy.cs | 40 +- .../EncryptionScopeKeyVaultProperties.cs | 39 +- .../FilesIdentityBasedAuthentication.cs | 41 +- .../Models/GeoReplicationStatistics.cs | 37 +- .../Models/ImmutableStorageAccount.cs | 30 +- .../Models/ImmutableStorageWithVersioning.cs | 39 +- .../Models/LastAccessTimeTrackingPolicy.cs | 50 +- .../Generated/Models/LegalHoldProperties.cs | 37 +- .../src/Generated/Models/LegalHoldTag.cs | 55 +- .../src/Generated/Models/LocalUserKeys.cs | 34 +- .../Models/ManagementPolicyAction.cs | 40 +- .../Models/ManagementPolicyBaseBlob.cs | 70 +- .../Models/ManagementPolicyDefinition.cs | 30 +- .../Models/ManagementPolicyFilter.cs | 40 +- .../Generated/Models/ManagementPolicyRule.cs | 50 +- .../Models/ManagementPolicySnapShot.cs | 60 +- .../Models/ManagementPolicyTagFilter.cs | 40 +- .../Models/ManagementPolicyVersion.cs | 60 +- .../Models/ObjectReplicationPolicyFilter.cs | 31 +- .../Models/ObjectReplicationPolicyRule.cs | 50 +- .../Models/ProtectedAppendWritesHistory.cs | 28 +- .../src/Generated/Models/RestorePolicy.cs | 48 +- .../src/Generated/Models/SmbSetting.cs | 60 +- .../Models/StorageAccountEncryption.cs | 60 +- .../StorageAccountEncryptionIdentity.cs | 31 +- .../StorageAccountEncryptionServices.cs | 51 +- .../Models/StorageAccountEndpoints.cs | 82 +- .../Generated/Models/StorageAccountIPRule.cs | 30 +- .../Models/StorageAccountInternetEndpoints.cs | 47 +- .../src/Generated/Models/StorageAccountKey.cs | 52 +- .../Models/StorageAccountKeyCreationTime.cs | 29 +- .../StorageAccountKeyVaultProperties.cs | 68 +- .../StorageAccountMicrosoftEndpoints.cs | 65 +- .../Models/StorageAccountNetworkRuleSet.cs | 60 +- .../StorageAccountResourceAccessRule.cs | 31 +- .../Models/StorageAccountSasPolicy.cs | 30 +- .../StorageAccountSkuConversionStatus.cs | 48 +- .../StorageAccountVirtualNetworkRule.cs | 41 +- .../StorageActiveDirectoryProperties.cs | 91 ++- .../src/Generated/Models/StorageCorsRule.cs | 60 +- .../Generated/Models/StorageCustomDomain.cs | 30 +- .../Models/StorageEncryptionService.cs | 39 +- .../Models/StoragePermissionScope.cs | 40 +- .../StoragePrivateEndpointConnectionData.cs | 66 +- ...toragePrivateLinkServiceConnectionState.cs | 41 +- .../Models/StorageRoutingPreference.cs | 40 +- .../Models/StorageServiceAccessPolicy.cs | 40 +- .../Models/StorageSignedIdentifier.cs | 30 +- .../src/Generated/Models/StorageSku.cs | 29 +- .../Generated/Models/StorageSshPublicKey.cs | 30 +- .../Models/StorageTableAccessPolicy.cs | 40 +- .../Models/StorageTableSignedIdentifier.cs | 30 +- .../Generated/Models/UpdateHistoryEntry.cs | 82 +- .../src/Generated/ObjectReplicationPolicy.cs | 92 ++- .../src/Generated/QueueService.cs | 54 +- .../src/Generated/StorageAccount.cs | 468 +++++++---- .../src/Generated/StorageAccountLocalUser.cs | 123 ++- .../StorageAccountManagementPolicy.cs | 59 +- .../StoragePrivateEndpointConnection.cs | 74 +- .../src/Generated/StorageQueue.cs | 64 +- .../src/Generated/StorageTable.cs | 64 +- .../src/Generated/TableService.cs | 54 +- .../tests/BasicStorageTests.cs | 8 +- ...e.Provisioning.WebPubSub.netstandard2.0.cs | 50 +- .../src/Generated/Models/BillingInfoSku.cs | 58 +- .../src/Generated/Models/LiveTraceCategory.cs | 30 +- .../Models/LiveTraceConfiguration.cs | 30 +- .../Generated/Models/PrivateEndpointAcl.cs | 20 +- .../src/Generated/Models/PublicNetworkAcls.cs | 30 +- .../Generated/Models/ResourceLogCategory.cs | 30 +- .../Generated/Models/UpstreamAuthSettings.cs | 30 +- .../Generated/Models/WebPubSubEventHandler.cs | 50 +- .../Models/WebPubSubHubProperties.cs | 30 +- .../src/Generated/Models/WebPubSubKeys.cs | 52 +- .../Generated/Models/WebPubSubNetworkAcls.cs | 40 +- .../WebPubSubPrivateEndpointConnectionData.cs | 76 +- ...PubSubPrivateLinkServiceConnectionState.cs | 41 +- .../Models/WebPubSubSharedPrivateLinkData.cs | 86 +- .../src/Generated/WebPubSubHub.cs | 55 +- .../WebPubSubPrivateEndpointConnection.cs | 84 +- .../src/Generated/WebPubSubService.cs | 235 ++++-- .../Generated/WebPubSubSharedPrivateLink.cs | 93 ++- .../api/Azure.Provisioning.netstandard2.0.cs | 358 +++++--- .../src/BicepDictionaryOfT.cs | 81 +- .../Azure.Provisioning/src/BicepListOfT.cs | 61 +- .../Azure.Provisioning/src/BicepValue.cs | 137 ++-- .../src/BicepValueExtensions.cs | 37 + .../Azure.Provisioning/src/BicepValueKind.cs | 25 + .../Azure.Provisioning/src/BicepValueOfT.cs | 89 +- .../src/Expressions/BicepFunction.cs | 32 +- .../src/Expressions/BicepStringBuilder.cs | 28 +- .../src/Expressions/BicepTypeMapping.cs | 27 +- .../src/Generated/ArmApplication.cs | 244 ++++-- .../src/Generated/ArmApplicationDefinition.cs | 205 +++-- .../src/Generated/ArmDeployment.cs | 78 +- .../src/Generated/ArmDeploymentScript.cs | 65 +- .../Generated/AuthorizationRoleDefinition.cs | 84 +- .../Generated/FederatedIdentityCredential.cs | 75 +- .../src/Generated/GenericResource.cs | 151 +++- .../src/Generated/JitRequest.cs | 130 ++- .../src/Generated/ManagementGroup.cs | 73 +- .../ManagementGroupPolicyDefinition.cs | 106 ++- .../ManagementGroupPolicySetDefinition.cs | 106 ++- .../Generated/ManagementGroupSubscription.cs | 80 +- .../src/Generated/ManagementLock.cs | 65 +- .../src/Generated/Models/ApiProfile.cs | 28 +- .../Models/ArmApplicationArtifact.cs | 37 +- .../Models/ArmApplicationAuthorization.cs | 30 +- .../ArmApplicationDefinitionArtifact.cs | 41 +- .../Generated/Models/ArmApplicationDetails.cs | 37 +- .../Models/ArmApplicationJitAccessPolicy.cs | 51 +- .../Models/ArmApplicationManagedIdentity.cs | 49 +- .../ArmApplicationNotificationEndpoint.cs | 21 +- .../Models/ArmApplicationPackageContact.cs | 37 +- .../ArmApplicationPackageLockingPolicy.cs | 31 +- .../ArmApplicationPackageSupportUris.cs | 29 +- .../Generated/Models/ArmApplicationPolicy.cs | 40 +- .../src/Generated/Models/ArmApplicationSku.cs | 70 +- .../ArmApplicationUserAssignedIdentity.cs | 29 +- .../src/Generated/Models/ArmDependency.cs | 46 +- .../Generated/Models/ArmDeploymentContent.cs | 39 +- .../Models/ArmDeploymentParametersLink.cs | 30 +- .../Models/ArmDeploymentProperties.cs | 89 +- .../Models/ArmDeploymentPropertiesExtended.cs | 155 ++-- .../ArmDeploymentScriptManagedIdentity.cs | 40 +- .../Models/ArmDeploymentTemplateLink.cs | 60 +- .../Models/ArmDeploymentWhatIfProperties.cs | 21 +- .../src/Generated/Models/ArmPlan.cs | 60 +- .../Generated/Models/ArmPolicyParameter.cs | 50 +- .../Models/ArmPolicyParameterValue.cs | 20 +- .../Generated/Models/BasicArmDependency.cs | 37 +- .../Models/CreateManagementGroupDetails.cs | 47 +- .../src/Generated/Models/ErrorDeployment.cs | 30 +- .../Models/ErrorDeploymentExtended.cs | 37 +- .../Generated/Models/ExtendedAzureLocation.cs | 30 +- .../src/Generated/Models/JitApprover.cs | 40 +- .../Models/JitAuthorizationPolicies.cs | 30 +- .../Generated/Models/JitSchedulingPolicy.cs | 39 +- .../Models/LinkedTemplateArtifact.cs | 30 +- .../src/Generated/Models/ManagedByTenant.cs | 19 +- .../Models/ManagedServiceIdentity.cs | 48 +- .../Models/ManagementGroupChildInfo.cs | 55 +- .../Models/ManagementGroupChildOptions.cs | 55 +- .../Generated/Models/ManagementGroupInfo.cs | 73 +- .../ManagementGroupParentCreateOptions.cs | 39 +- .../Models/ManagementGroupPathElement.cs | 28 +- .../Generated/Models/ManagementLockOwner.cs | 20 +- .../Generated/Models/NonComplianceMessage.cs | 30 +- .../ParameterDefinitionsValueMetadata.cs | 61 +- .../Models/ParentManagementGroupInfo.cs | 37 +- .../Models/PolicyAssignmentProperties.cs | 118 ++- .../Generated/Models/PolicyDefinitionGroup.cs | 60 +- .../Models/PolicyDefinitionReference.cs | 50 +- .../src/Generated/Models/PolicyOverride.cs | 40 +- .../Models/ProviderExtendedLocation.cs | 37 +- .../Generated/Models/ProviderResourceType.cs | 100 ++- .../Generated/Models/ResourceProviderData.cs | 64 +- .../src/Generated/Models/ResourceSelector.cs | 30 +- .../Models/ResourceSelectorExpression.cs | 40 +- .../src/Generated/Models/ResourceTypeAlias.cs | 64 +- .../Generated/Models/ResourceTypeAliasPath.cs | 46 +- .../Models/ResourceTypeAliasPathMetadata.cs | 29 +- .../Models/ResourceTypeAliasPattern.cs | 37 +- .../src/Generated/Models/ResourcesSku.cs | 70 +- .../RoleAssignmentScheduleTicketInfo.cs | 31 +- .../Models/RoleDefinitionPermission.cs | 50 +- ...lityScheduleRequestPropertiesTicketInfo.cs | 31 +- .../Models/RoleManagementApprovalSettings.cs | 61 +- .../Models/RoleManagementApprovalStage.cs | 70 +- .../RoleManagementExpandedProperties.cs | 101 ++- .../RoleManagementPolicyApprovalRule.cs | 23 +- ...nagementPolicyAuthenticationContextRule.cs | 33 +- .../RoleManagementPolicyEnablementRule.cs | 23 +- .../RoleManagementPolicyExpirationRule.cs | 33 +- .../RoleManagementPolicyNotificationRule.cs | 63 +- .../Models/RoleManagementPolicyRule.cs | 30 +- .../Models/RoleManagementPolicyRuleTarget.cs | 71 +- .../Models/RoleManagementPrincipal.cs | 46 +- .../Models/RoleManagementUserInfo.cs | 50 +- .../src/Generated/Models/SubResource.cs | 19 +- .../Generated/Models/SubscriptionPolicies.cs | 37 +- .../Models/SystemAssignedServiceIdentity.cs | 39 +- .../src/Generated/Models/SystemData.cs | 64 +- .../Models/TemplateSpecVersionInfo.cs | 37 +- .../Models/UserAssignedIdentityDetails.cs | 28 +- .../Generated/Models/WritableSubResource.cs | 20 +- .../src/Generated/Models/ZoneMapping.cs | 28 +- .../src/Generated/PolicyAssignment.cs | 164 ++-- .../src/Generated/ResourceGroup.cs | 90 +- .../src/Generated/RoleAssignment.cs | 151 +++- .../RoleAssignmentScheduleRequest.cs | 239 ++++-- .../RoleEligibilityScheduleRequest.cs | 229 ++++-- .../RoleManagementPolicyAssignment.cs | 84 +- .../src/Generated/Subscription.cs | 104 ++- .../Generated/SubscriptionPolicyDefinition.cs | 105 ++- .../SubscriptionPolicySetDefinition.cs | 106 ++- .../src/Generated/TagResource.cs | 44 +- .../src/Generated/TemplateSpec.cs | 94 ++- .../src/Generated/TemplateSpecVersion.cs | 114 ++- .../src/Generated/Tenant.cs | 113 +-- .../src/Generated/UserAssignedIdentity.cs | 82 +- .../Azure.Provisioning/src/IBicepValue.cs | 79 ++ .../Azure.Provisioning/src/Infrastructure.cs | 2 +- .../src/Primitives/BicepValueReference.cs | 31 +- .../Primitives/LocationPropertyResolver.cs | 5 +- .../src/Primitives/ModuleImport.cs | 10 +- .../Primitives/NamedProvisionableConstruct.cs | 2 - .../src/Primitives/ProvisionableConstruct.cs | 274 ++++++- .../src/Primitives/ProvisionableResource.cs | 45 +- .../ResourceNamePropertyResolver.cs | 2 +- .../src/Primitives/ResourceReference.cs | 23 +- .../src/ProvisioningParameter.cs | 4 +- .../src/ProvisioningVariable.cs | 2 +- .../tests/ProvisioningTestBase.cs | 8 +- .../Azure.Provisioning/tests/SampleTests.cs | 2 +- .../Generator/src/Model/Property.cs | 23 + .../Generator/src/Model/Resource.cs | 117 +-- .../Generator/src/Model/SimpleModel.cs | 80 +- 1291 files changed, 67507 insertions(+), 25544 deletions(-) create mode 100644 sdk/provisioning/Azure.Provisioning/src/BicepValueExtensions.cs create mode 100644 sdk/provisioning/Azure.Provisioning/src/BicepValueKind.cs create mode 100644 sdk/provisioning/Azure.Provisioning/src/IBicepValue.cs diff --git a/sdk/provisioning/Azure.Provisioning.AppConfiguration/api/Azure.Provisioning.AppConfiguration.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.AppConfiguration/api/Azure.Provisioning.AppConfiguration.netstandard2.0.cs index ab2952ac500ed..46a0ec9d79c8a 100644 --- a/sdk/provisioning/Azure.Provisioning.AppConfiguration/api/Azure.Provisioning.AppConfiguration.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.AppConfiguration/api/Azure.Provisioning.AppConfiguration.netstandard2.0.cs @@ -42,9 +42,10 @@ public partial class AppConfigurationKeyValue : Azure.Provisioning.Primitives.Pr public Azure.Provisioning.BicepValue LastModifiedOn { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppConfiguration.AppConfigurationStore? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppConfiguration.AppConfigurationKeyValue FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -58,17 +59,19 @@ public partial class AppConfigurationKeyVaultProperties : Azure.Provisioning.Pri public AppConfigurationKeyVaultProperties() { } public Azure.Provisioning.BicepValue IdentityClientId { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyIdentifier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AppConfigurationPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public AppConfigurationPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.AppConfiguration.AppConfigurationPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppConfiguration.AppConfigurationStore? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppConfiguration.AppConfigurationPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -82,12 +85,13 @@ public static partial class ResourceVersions public partial class AppConfigurationPrivateEndpointConnectionReference : Azure.Provisioning.Primitives.ProvisionableConstruct { public AppConfigurationPrivateEndpointConnectionReference() { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } } + public Azure.Provisioning.AppConfiguration.AppConfigurationPrivateLinkServiceConnectionState ConnectionState { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class AppConfigurationPrivateLinkServiceConnectionState : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -95,6 +99,7 @@ public AppConfigurationPrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum AppConfigurationPrivateLinkServiceConnectionStatus { @@ -126,7 +131,8 @@ public partial class AppConfigurationReplica : Azure.Provisioning.Primitives.Pro public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppConfiguration.AppConfigurationStore? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppConfiguration.AppConfigurationReplica FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -151,10 +157,10 @@ public partial class AppConfigurationStore : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepValue CreateMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue DisableLocalAuth { get { throw null; } set { } } public Azure.Provisioning.BicepValue EnablePurgeProtection { get { throw null; } set { } } - public Azure.Provisioning.BicepValue EncryptionKeyVaultProperties { get { throw null; } set { } } + public Azure.Provisioning.AppConfiguration.AppConfigurationKeyVaultProperties EncryptionKeyVaultProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue Endpoint { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepList PrivateEndpointConnections { get { throw null; } } @@ -162,10 +168,11 @@ public partial class AppConfigurationStore : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue SkuName { get { throw null; } set { } } public Azure.Provisioning.BicepValue SoftDeleteRetentionInDays { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.AppConfiguration.AppConfigurationBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.AppConfiguration.AppConfigurationBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppConfiguration.AppConfigurationStore FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.BicepList GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -188,7 +195,6 @@ public AppConfigurationStoreApiKey() { } public Azure.Provisioning.BicepValue LastModifiedOn { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue Value { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.AppConfiguration.AppConfigurationStoreApiKey FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } } } diff --git a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationKeyValue.cs b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationKeyValue.cs index c51ec3487e773..86e71d30389ad 100644 --- a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationKeyValue.cs +++ b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationKeyValue.cs @@ -23,82 +23,123 @@ public partial class AppConfigurationKeyValue : ProvisionableResource /// Identifier of key and label combination. Key and label are joined by $ /// character. Label is optional. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The content type of the key-value's value. Providing a /// proper content-type can enable transformations of values when they are /// retrieved by applications. /// - public BicepValue ContentType { get => _contentType; set => _contentType.Assign(value); } - private readonly BicepValue _contentType; + public BicepValue ContentType + { + get { Initialize(); return _contentType!; } + set { Initialize(); _contentType!.Assign(value); } + } + private BicepValue? _contentType; /// /// A dictionary of tags that can help identify what a key-value may be /// applicable for. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The value of the key-value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// An ETag indicating the state of a key-value within a configuration /// store. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// A value indicating whether the key-value is locked. A /// locked key-value may not be modified until it is unlocked. /// - public BicepValue IsLocked { get => _isLocked; } - private readonly BicepValue _isLocked; + public BicepValue IsLocked + { + get { Initialize(); return _isLocked!; } + } + private BicepValue? _isLocked; /// /// The primary identifier of a key-value. The key is used in /// unison with the label to uniquely identify a key-value. /// - public BicepValue Key { get => _key; } - private readonly BicepValue _key; + public BicepValue Key + { + get { Initialize(); return _key!; } + } + private BicepValue? _key; /// /// A value used to group key-values. The label is used in /// unison with the key to uniquely identify a key-value. /// - public BicepValue Label { get => _label; } - private readonly BicepValue _label; + public BicepValue Label + { + get { Initialize(); return _label!; } + } + private BicepValue? _label; /// /// The last time a modifying operation was performed on the given /// key-value. /// - public BicepValue LastModifiedOn { get => _lastModifiedOn; } - private readonly BicepValue _lastModifiedOn; + public BicepValue LastModifiedOn + { + get { Initialize(); return _lastModifiedOn!; } + } + private BicepValue? _lastModifiedOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent AppConfigurationStore. /// - public AppConfigurationStore? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public AppConfigurationStore? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new AppConfigurationKeyValue. @@ -113,18 +154,25 @@ public partial class AppConfigurationKeyValue : ProvisionableResource public AppConfigurationKeyValue(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.AppConfiguration/configurationStores/keyValues", resourceVersion ?? "2024-05-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _contentType = BicepValue.DefineProperty(this, "ContentType", ["properties", "contentType"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["properties", "tags"]); - _value = BicepValue.DefineProperty(this, "Value", ["properties", "value"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["properties", "eTag"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isLocked = BicepValue.DefineProperty(this, "IsLocked", ["properties", "locked"], isOutput: true); - _key = BicepValue.DefineProperty(this, "Key", ["properties", "key"], isOutput: true); - _label = BicepValue.DefineProperty(this, "Label", ["properties", "label"], isOutput: true); - _lastModifiedOn = BicepValue.DefineProperty(this, "LastModifiedOn", ["properties", "lastModified"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of AppConfigurationKeyValue. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _contentType = DefineProperty("ContentType", ["properties", "contentType"]); + _tags = DefineDictionaryProperty("Tags", ["properties", "tags"]); + _value = DefineProperty("Value", ["properties", "value"]); + _eTag = DefineProperty("ETag", ["properties", "eTag"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isLocked = DefineProperty("IsLocked", ["properties", "locked"], isOutput: true); + _key = DefineProperty("Key", ["properties", "key"], isOutput: true); + _label = DefineProperty("Label", ["properties", "label"], isOutput: true); + _lastModifiedOn = DefineProperty("LastModifiedOn", ["properties", "lastModified"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationPrivateEndpointConnection.cs index 22c4f66ec7e7b..fd5ca152da996 100644 --- a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationPrivateEndpointConnection.cs @@ -20,45 +20,70 @@ public partial class AppConfigurationPrivateEndpointConnection : ProvisionableRe /// /// Private endpoint connection name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// A collection of information about the state of the connection between /// service consumer and provider. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public AppConfigurationPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private AppConfigurationPrivateLinkServiceConnectionState? _connectionState; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning status of the private endpoint connection. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent AppConfigurationStore. /// - public AppConfigurationStore? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public AppConfigurationStore? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new AppConfigurationPrivateEndpointConnection. @@ -74,13 +99,21 @@ public partial class AppConfigurationPrivateEndpointConnection : ProvisionableRe public AppConfigurationPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.AppConfiguration/configurationStores/privateEndpointConnections", resourceVersion ?? "2024-05-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// AppConfigurationPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationReplica.cs b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationReplica.cs index 53c5c4c67832d..846a3d3695aa0 100644 --- a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationReplica.cs +++ b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationReplica.cs @@ -21,44 +21,68 @@ public partial class AppConfigurationReplica : ProvisionableResource /// /// The name of the replica. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The location of the replica. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The URI of the replica where the replica API will be available. /// - public BicepValue Endpoint { get => _endpoint; } - private readonly BicepValue _endpoint; + public BicepValue Endpoint + { + get { Initialize(); return _endpoint!; } + } + private BicepValue? _endpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning state of the replica. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent AppConfigurationStore. /// - public AppConfigurationStore? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public AppConfigurationStore? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new AppConfigurationReplica. @@ -73,13 +97,20 @@ public partial class AppConfigurationReplica : ProvisionableResource public AppConfigurationReplica(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.AppConfiguration/configurationStores/replicas", resourceVersion ?? "2024-05-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"]); - _endpoint = BicepValue.DefineProperty(this, "Endpoint", ["properties", "endpoint"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of AppConfigurationReplica. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"]); + _endpoint = DefineProperty("Endpoint", ["properties", "endpoint"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationStore.cs b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationStore.cs index 7775710ab674f..dfdfcd7911d7b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationStore.cs +++ b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/AppConfigurationStore.cs @@ -25,108 +25,170 @@ public partial class AppConfigurationStore : ProvisionableResource /// /// The name of the configuration store. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Indicates whether the configuration store need to be recovered. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// Disables all authentication methods other than AAD authentication. /// - public BicepValue DisableLocalAuth { get => _disableLocalAuth; set => _disableLocalAuth.Assign(value); } - private readonly BicepValue _disableLocalAuth; + public BicepValue DisableLocalAuth + { + get { Initialize(); return _disableLocalAuth!; } + set { Initialize(); _disableLocalAuth!.Assign(value); } + } + private BicepValue? _disableLocalAuth; /// /// Property specifying whether protection against purge is enabled for /// this configuration store. /// - public BicepValue EnablePurgeProtection { get => _enablePurgeProtection; set => _enablePurgeProtection.Assign(value); } - private readonly BicepValue _enablePurgeProtection; + public BicepValue EnablePurgeProtection + { + get { Initialize(); return _enablePurgeProtection!; } + set { Initialize(); _enablePurgeProtection!.Assign(value); } + } + private BicepValue? _enablePurgeProtection; /// /// Key vault properties. /// - public BicepValue EncryptionKeyVaultProperties { get => _encryptionKeyVaultProperties; set => _encryptionKeyVaultProperties.Assign(value); } - private readonly BicepValue _encryptionKeyVaultProperties; + public AppConfigurationKeyVaultProperties EncryptionKeyVaultProperties + { + get { Initialize(); return _encryptionKeyVaultProperties!; } + set { Initialize(); AssignOrReplace(ref _encryptionKeyVaultProperties, value); } + } + private AppConfigurationKeyVaultProperties? _encryptionKeyVaultProperties; /// /// The managed identity information, if configured. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Control permission for data plane traffic coming from public networks /// while private endpoint is enabled. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// The SKU name of the configuration store. /// - public BicepValue SkuName { get => _skuName; set => _skuName.Assign(value); } - private readonly BicepValue _skuName; + public BicepValue SkuName + { + get { Initialize(); return _skuName!; } + set { Initialize(); _skuName!.Assign(value); } + } + private BicepValue? _skuName; /// /// The amount of time in days that the configuration store will be /// retained when it is soft deleted. /// - public BicepValue SoftDeleteRetentionInDays { get => _softDeleteRetentionInDays; set => _softDeleteRetentionInDays.Assign(value); } - private readonly BicepValue _softDeleteRetentionInDays; + public BicepValue SoftDeleteRetentionInDays + { + get { Initialize(); return _softDeleteRetentionInDays!; } + set { Initialize(); _softDeleteRetentionInDays!.Assign(value); } + } + private BicepValue? _softDeleteRetentionInDays; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The creation date of configuration store. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// The DNS endpoint where the configuration store API will be available. /// - public BicepValue Endpoint { get => _endpoint; } - private readonly BicepValue _endpoint; + public BicepValue Endpoint + { + get { Initialize(); return _endpoint!; } + } + private BicepValue? _endpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The list of private endpoint connections that are set up for this /// resource. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// The provisioning state of the configuration store. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new AppConfigurationStore. @@ -141,23 +203,30 @@ public partial class AppConfigurationStore : ProvisionableResource public AppConfigurationStore(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.AppConfiguration/configurationStores", resourceVersion ?? "2024-05-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["properties", "createMode"]); - _disableLocalAuth = BicepValue.DefineProperty(this, "DisableLocalAuth", ["properties", "disableLocalAuth"]); - _enablePurgeProtection = BicepValue.DefineProperty(this, "EnablePurgeProtection", ["properties", "enablePurgeProtection"]); - _encryptionKeyVaultProperties = BicepValue.DefineProperty(this, "EncryptionKeyVaultProperties", ["properties", "encryption", "keyVaultProperties"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _skuName = BicepValue.DefineProperty(this, "SkuName", ["sku", "name"]); - _softDeleteRetentionInDays = BicepValue.DefineProperty(this, "SoftDeleteRetentionInDays", ["properties", "softDeleteRetentionInDays"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationDate"], isOutput: true); - _endpoint = BicepValue.DefineProperty(this, "Endpoint", ["properties", "endpoint"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AppConfigurationStore. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _createMode = DefineProperty("CreateMode", ["properties", "createMode"]); + _disableLocalAuth = DefineProperty("DisableLocalAuth", ["properties", "disableLocalAuth"]); + _enablePurgeProtection = DefineProperty("EnablePurgeProtection", ["properties", "enablePurgeProtection"]); + _encryptionKeyVaultProperties = DefineModelProperty("EncryptionKeyVaultProperties", ["properties", "encryption", "keyVaultProperties"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _skuName = DefineProperty("SkuName", ["sku", "name"]); + _softDeleteRetentionInDays = DefineProperty("SoftDeleteRetentionInDays", ["properties", "softDeleteRetentionInDays"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationDate"], isOutput: true); + _endpoint = DefineProperty("Endpoint", ["properties", "endpoint"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// @@ -217,10 +286,12 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this AppConfigurationStore resource. /// /// The keys for this AppConfigurationStore resource. - public BicepList GetKeys() => - BicepList.FromExpression( - AppConfigurationStoreApiKey.FromExpression, + public BicepList GetKeys() + { + return BicepList.FromExpression( + e => { AppConfigurationStoreApiKey key = new(); ((IBicepValue)key).Expression = e; return key; }, new MemberExpression(new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")), "keys")); + } /// /// Creates a role assignment for a user-assigned identity that grants diff --git a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationKeyVaultProperties.cs b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationKeyVaultProperties.cs index 6c2782cc61387..40b33cb2e9f6a 100644 --- a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationKeyVaultProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationKeyVaultProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class AppConfigurationKeyVaultProperties : ProvisionableConstruct /// /// The URI of the key vault key used to encrypt data. /// - public BicepValue KeyIdentifier { get => _keyIdentifier; set => _keyIdentifier.Assign(value); } - private readonly BicepValue _keyIdentifier; + public BicepValue KeyIdentifier + { + get { Initialize(); return _keyIdentifier!; } + set { Initialize(); _keyIdentifier!.Assign(value); } + } + private BicepValue? _keyIdentifier; /// /// The client id of the identity which will be used to access key vault. /// - public BicepValue IdentityClientId { get => _identityClientId; set => _identityClientId.Assign(value); } - private readonly BicepValue _identityClientId; + public BicepValue IdentityClientId + { + get { Initialize(); return _identityClientId!; } + set { Initialize(); _identityClientId!.Assign(value); } + } + private BicepValue? _identityClientId; /// /// Creates a new AppConfigurationKeyVaultProperties. /// public AppConfigurationKeyVaultProperties() { - _keyIdentifier = BicepValue.DefineProperty(this, "KeyIdentifier", ["keyIdentifier"]); - _identityClientId = BicepValue.DefineProperty(this, "IdentityClientId", ["identityClientId"]); + } + + /// + /// Define all the provisionable properties of + /// AppConfigurationKeyVaultProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyIdentifier = DefineProperty("KeyIdentifier", ["keyIdentifier"]); + _identityClientId = DefineProperty("IdentityClientId", ["identityClientId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionReference.cs b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionReference.cs index f88a6c36c2198..d488ab999973b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionReference.cs +++ b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionReference.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -18,50 +20,77 @@ public partial class AppConfigurationPrivateEndpointConnectionReference : Provis /// /// The provisioning status of the private endpoint connection. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// A collection of information about the state of the connection between /// service consumer and provider. /// - public BicepValue ConnectionState { get => _connectionState; } - private readonly BicepValue _connectionState; + public AppConfigurationPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + } + private AppConfigurationPrivateLinkServiceConnectionState? _connectionState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new AppConfigurationPrivateEndpointConnectionReference. /// public AppConfigurationPrivateEndpointConnectionReference() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// AppConfigurationPrivateEndpointConnectionReference. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkServiceConnectionState.cs b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkServiceConnectionState.cs index a6aa3c4bffc4d..4a4c336ae6ad4 100644 --- a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkServiceConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkServiceConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,49 @@ public partial class AppConfigurationPrivateLinkServiceConnectionState : Provisi /// /// The private link service connection status. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The private link service connection description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Any action that is required beyond basic workflow (approve/ reject/ /// disconnect). /// - public BicepValue ActionsRequired { get => _actionsRequired; } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + } + private BicepValue? _actionsRequired; /// /// Creates a new AppConfigurationPrivateLinkServiceConnectionState. /// public AppConfigurationPrivateLinkServiceConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// AppConfigurationPrivateLinkServiceConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationStoreApiKey.cs b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationStoreApiKey.cs index 2da1b73c819e7..a524481371571 100644 --- a/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationStoreApiKey.cs +++ b/sdk/provisioning/Azure.Provisioning.AppConfiguration/src/Generated/Models/AppConfigurationStoreApiKey.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Expressions; using Azure.Provisioning.Primitives; using System; @@ -18,67 +20,76 @@ public partial class AppConfigurationStoreApiKey : ProvisionableConstruct /// /// The key ID. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// A name for the key describing its usage. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The value of the key that is used for authentication purposes. /// - public BicepValue Value { get => _value; } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + } + private BicepValue? _value; /// /// A connection string that can be used by supporting clients for /// authentication. /// - public BicepValue ConnectionString { get => _connectionString; } - private readonly BicepValue _connectionString; + public BicepValue ConnectionString + { + get { Initialize(); return _connectionString!; } + } + private BicepValue? _connectionString; /// /// The last time any of the key's properties were modified. /// - public BicepValue LastModifiedOn { get => _lastModifiedOn; } - private readonly BicepValue _lastModifiedOn; + public BicepValue LastModifiedOn + { + get { Initialize(); return _lastModifiedOn!; } + } + private BicepValue? _lastModifiedOn; /// /// Whether this key can only be used for read operations. /// - public BicepValue IsReadOnly { get => _isReadOnly; } - private readonly BicepValue _isReadOnly; + public BicepValue IsReadOnly + { + get { Initialize(); return _isReadOnly!; } + } + private BicepValue? _isReadOnly; /// /// Creates a new AppConfigurationStoreApiKey. /// public AppConfigurationStoreApiKey() { - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _value = BicepValue.DefineProperty(this, "Value", ["value"], isOutput: true, isSecure: true); - _connectionString = BicepValue.DefineProperty(this, "ConnectionString", ["connectionString"], isOutput: true, isSecure: true); - _lastModifiedOn = BicepValue.DefineProperty(this, "LastModifiedOn", ["lastModified"], isOutput: true); - _isReadOnly = BicepValue.DefineProperty(this, "IsReadOnly", ["readOnly"], isOutput: true); } /// - /// Creates a new AppConfigurationStoreApiKey resource from a Bicep - /// expression that evaluates to a AppConfigurationStoreApiKey. + /// Define all the provisionable properties of AppConfigurationStoreApiKey. /// - /// - /// A Bicep expression that evaluates to a AppConfigurationStoreApiKey - /// resource. - /// - /// A AppConfigurationStoreApiKey resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static AppConfigurationStoreApiKey FromExpression(BicepExpression expression) + protected override void DefineProvisionableProperties() { - AppConfigurationStoreApiKey resource = new(); - resource.OverrideWithExpression(expression); - return resource; + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _value = DefineProperty("Value", ["value"], isOutput: true, isSecure: true); + _connectionString = DefineProperty("ConnectionString", ["connectionString"], isOutput: true, isSecure: true); + _lastModifiedOn = DefineProperty("LastModifiedOn", ["lastModified"], isOutput: true); + _isReadOnly = DefineProperty("IsReadOnly", ["readOnly"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/api/Azure.Provisioning.AppContainers.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/api/Azure.Provisioning.AppContainers.netstandard2.0.cs index 856fdacbaea15..285d69ed2e2bf 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/api/Azure.Provisioning.AppContainers.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/api/Azure.Provisioning.AppContainers.netstandard2.0.cs @@ -6,6 +6,7 @@ public AppContainerResources() { } public Azure.Provisioning.BicepValue Cpu { get { throw null; } set { } } public Azure.Provisioning.BicepValue EphemeralStorage { get { throw null; } } public Azure.Provisioning.BicepValue Memory { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AppContainersBuiltInRole : System.IEquatable @@ -31,13 +32,13 @@ public AppContainerResources() { } public partial class ContainerApp : Azure.Provisioning.Primitives.ProvisionableResource { public ContainerApp(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue Configuration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppConfiguration Configuration { get { throw null; } set { } } public Azure.Provisioning.BicepValue CustomDomainVerificationId { get { throw null; } } public Azure.Provisioning.BicepValue EnvironmentId { get { throw null; } set { } } public Azure.Provisioning.BicepValue EventStreamEndpoint { get { throw null; } } - public Azure.Provisioning.BicepValue ExtendedLocation { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppExtendedLocation ExtendedLocation { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue LatestReadyRevisionName { get { throw null; } } public Azure.Provisioning.BicepValue LatestRevisionFqdn { get { throw null; } } public Azure.Provisioning.BicepValue LatestRevisionName { get { throw null; } } @@ -47,10 +48,11 @@ public partial class ContainerApp : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepList OutboundIPAddressList { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Template { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppTemplate Template { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkloadProfileName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppContainers.ContainerApp FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -77,33 +79,37 @@ public partial class ContainerAppAllowedPrincipals : Azure.Provisioning.Primitiv public ContainerAppAllowedPrincipals() { } public Azure.Provisioning.BicepList Groups { get { throw null; } set { } } public Azure.Provisioning.BicepList Identities { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppAppleConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppAppleConfiguration() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepList LoginScopes { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Registration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppAppleRegistrationConfiguration Registration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppAppleRegistrationConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppAppleRegistrationConfiguration() { } public Azure.Provisioning.BicepValue ClientId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ClientSecretSettingName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppAuthConfig : Azure.Provisioning.Primitives.ProvisionableResource { public ContainerAppAuthConfig(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue EncryptionSettings { get { throw null; } set { } } - public Azure.Provisioning.BicepValue GlobalValidation { get { throw null; } set { } } - public Azure.Provisioning.BicepValue HttpSettings { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.EncryptionSettings EncryptionSettings { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppGlobalValidation GlobalValidation { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppHttpSettings HttpSettings { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue IdentityProviders { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Login { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppIdentityProvidersConfiguration IdentityProviders { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppLogin Login { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppContainers.ContainerApp? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Platform { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.AppContainers.ContainerAppAuthPlatform Platform { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppContainers.ContainerAppAuthConfig FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -118,21 +124,24 @@ public partial class ContainerAppAuthPlatform : Azure.Provisioning.Primitives.Pr public ContainerAppAuthPlatform() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue RuntimeVersion { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppAzureActiveDirectoryConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppAzureActiveDirectoryConfiguration() { } public Azure.Provisioning.BicepValue IsAutoProvisioned { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Login { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Registration { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Validation { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppAzureActiveDirectoryLoginConfiguration Login { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppAzureActiveDirectoryRegistrationConfiguration Registration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppAzureActiveDirectoryValidationConfiguration Validation { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppAzureActiveDirectoryLoginConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppAzureActiveDirectoryLoginConfiguration() { } public Azure.Provisioning.BicepValue IsWwwAuthenticationDisabled { get { throw null; } set { } } public Azure.Provisioning.BicepList LoginParameters { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppAzureActiveDirectoryRegistrationConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -143,13 +152,15 @@ public ContainerAppAzureActiveDirectoryRegistrationConfiguration() { } public Azure.Provisioning.BicepValue ClientSecretCertificateThumbprint { get { throw null; } set { } } public Azure.Provisioning.BicepValue ClientSecretSettingName { get { throw null; } set { } } public Azure.Provisioning.BicepValue OpenIdIssuer { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppAzureActiveDirectoryValidationConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppAzureActiveDirectoryValidationConfiguration() { } public Azure.Provisioning.BicepList AllowedAudiences { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DefaultAuthorizationPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue JwtClaimChecks { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppDefaultAuthorizationPolicy DefaultAuthorizationPolicy { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppJwtClaimChecks JwtClaimChecks { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppAzureFileProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -158,12 +169,14 @@ public ContainerAppAzureFileProperties() { } public Azure.Provisioning.BicepValue AccountKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue AccountName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ShareName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppAzureStaticWebAppsConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppAzureStaticWebAppsConfiguration() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue RegistrationClientId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppCertificateProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -179,6 +192,7 @@ public ContainerAppCertificateProperties() { } public Azure.Provisioning.BicepValue SubjectName { get { throw null; } } public Azure.Provisioning.BicepValue Thumbprint { get { throw null; } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppCertificateProvisioningState { @@ -193,33 +207,36 @@ public partial class ContainerAppClientRegistration : Azure.Provisioning.Primiti public ContainerAppClientRegistration() { } public Azure.Provisioning.BicepValue ClientId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ClientSecretSettingName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppConfiguration() { } public Azure.Provisioning.BicepValue ActiveRevisionsMode { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Dapr { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Ingress { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppDaprConfiguration Dapr { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppIngressConfiguration Ingress { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxInactiveRevisions { get { throw null; } set { } } public Azure.Provisioning.BicepList Registries { get { throw null; } set { } } public Azure.Provisioning.BicepList Secrets { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServiceType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppConnectedEnvironment : Azure.Provisioning.Primitives.ProvisionableResource { public ContainerAppConnectedEnvironment(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue CustomDomainConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppCustomDomainConfiguration CustomDomainConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue DaprAIConnectionString { get { throw null; } set { } } public Azure.Provisioning.BicepValue DefaultDomain { get { throw null; } } public Azure.Provisioning.BicepValue DeploymentErrors { get { throw null; } } - public Azure.Provisioning.BicepValue ExtendedLocation { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppExtendedLocation ExtendedLocation { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue StaticIP { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppContainers.ContainerAppConnectedEnvironment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -235,9 +252,10 @@ public partial class ContainerAppConnectedEnvironmentCertificate : Azure.Provisi public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppContainers.ContainerAppConnectedEnvironment? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.AppContainers.ContainerAppCertificateProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppContainers.ContainerAppConnectedEnvironmentCertificate FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -259,8 +277,9 @@ public partial class ContainerAppConnectedEnvironmentDaprComponent : Azure.Provi public Azure.Provisioning.BicepList Scopes { get { throw null; } set { } } public Azure.Provisioning.BicepList Secrets { get { throw null; } set { } } public Azure.Provisioning.BicepValue SecretStoreComponent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppContainers.ContainerAppConnectedEnvironmentDaprComponent FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -283,11 +302,12 @@ public enum ContainerAppConnectedEnvironmentProvisioningState public partial class ContainerAppConnectedEnvironmentStorage : Azure.Provisioning.Primitives.ProvisionableResource { public ContainerAppConnectedEnvironmentStorage(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectedEnvironmentStorageAzureFile { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppAzureFileProperties ConnectedEnvironmentStorageAzureFile { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppContainers.ContainerAppConnectedEnvironment? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppContainers.ContainerAppConnectedEnvironmentStorage FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -305,14 +325,16 @@ public ContainerAppContainer() { } public Azure.Provisioning.BicepValue Image { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepList Probes { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resources { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.AppContainerResources Resources { get { throw null; } set { } } public Azure.Provisioning.BicepList VolumeMounts { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppCookieExpiration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppCookieExpiration() { } public Azure.Provisioning.BicepValue Convention { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeToExpiration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppCookieExpirationConvention { @@ -328,6 +350,7 @@ public ContainerAppCorsPolicy() { } public Azure.Provisioning.BicepList AllowedOrigins { get { throw null; } set { } } public Azure.Provisioning.BicepList ExposeHeaders { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxAge { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppCredentials : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -337,6 +360,7 @@ public ContainerAppCredentials() { } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue SubscriptionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppCustomDomain : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -344,6 +368,7 @@ public ContainerAppCustomDomain() { } public Azure.Provisioning.BicepValue BindingType { get { throw null; } set { } } public Azure.Provisioning.BicepValue CertificateId { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppCustomDomainBindingType { @@ -360,13 +385,15 @@ public ContainerAppCustomDomainConfiguration() { } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } } public Azure.Provisioning.BicepValue SubjectName { get { throw null; } } public Azure.Provisioning.BicepValue Thumbprint { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppCustomOpenIdConnectProviderConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppCustomOpenIdConnectProviderConfiguration() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Login { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Registration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppOpenIdConnectLogin Login { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppOpenIdConnectRegistration Registration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppCustomScaleRule : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -374,6 +401,7 @@ public ContainerAppCustomScaleRule() { } public Azure.Provisioning.BicepList Auth { get { throw null; } set { } } public Azure.Provisioning.BicepValue CustomScaleRuleType { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary Metadata { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppDaprConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -386,6 +414,7 @@ public ContainerAppDaprConfiguration() { } public Azure.Provisioning.BicepValue IsApiLoggingEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue LogLevel { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppDaprLogLevel { @@ -404,12 +433,14 @@ public ContainerAppDaprMetadata() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue SecretRef { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppDefaultAuthorizationPolicy : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppDefaultAuthorizationPolicy() { } public Azure.Provisioning.BicepList AllowedApplications { get { throw null; } set { } } - public Azure.Provisioning.BicepValue AllowedPrincipals { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppAllowedPrincipals AllowedPrincipals { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppEnvironmentProvisioningState { @@ -430,12 +461,14 @@ public ContainerAppEnvironmentVariable() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue SecretRef { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppExtendedLocation : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppExtendedLocation() { } public Azure.Provisioning.BicepValue ExtendedLocationType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppExtendedLocationType { @@ -447,7 +480,8 @@ public ContainerAppFacebookConfiguration() { } public Azure.Provisioning.BicepValue GraphApiVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepList LoginScopes { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Registration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppRegistration Registration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppForwardProxy : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -455,6 +489,7 @@ public ContainerAppForwardProxy() { } public Azure.Provisioning.BicepValue Convention { get { throw null; } set { } } public Azure.Provisioning.BicepValue CustomHostHeaderName { get { throw null; } set { } } public Azure.Provisioning.BicepValue CustomProtoHeaderName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppForwardProxyConvention { @@ -465,22 +500,24 @@ public enum ContainerAppForwardProxyConvention public partial class ContainerAppGitHubActionConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppGitHubActionConfiguration() { } - public Azure.Provisioning.BicepValue AzureCredentials { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppCredentials AzureCredentials { get { throw null; } set { } } public Azure.Provisioning.BicepValue ContextPath { get { throw null; } set { } } public Azure.Provisioning.BicepValue GitHubPersonalAccessToken { get { throw null; } set { } } public Azure.Provisioning.BicepValue Image { get { throw null; } set { } } public Azure.Provisioning.BicepValue OS { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublishType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RegistryInfo { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppRegistryInfo RegistryInfo { get { throw null; } set { } } public Azure.Provisioning.BicepValue RuntimeStack { get { throw null; } set { } } public Azure.Provisioning.BicepValue RuntimeVersion { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppGitHubConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppGitHubConfiguration() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepList LoginScopes { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Registration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppClientRegistration Registration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppGlobalValidation : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -488,20 +525,23 @@ public ContainerAppGlobalValidation() { } public Azure.Provisioning.BicepList ExcludedPaths { get { throw null; } set { } } public Azure.Provisioning.BicepValue RedirectToProvider { get { throw null; } set { } } public Azure.Provisioning.BicepValue UnauthenticatedClientAction { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppGoogleConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppGoogleConfiguration() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepList LoginScopes { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Registration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppClientRegistration Registration { get { throw null; } set { } } public Azure.Provisioning.BicepList ValidationAllowedAudiences { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppHttpHeaderInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppHttpHeaderInfo() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppHttpRequestInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -511,12 +551,14 @@ public ContainerAppHttpRequestInfo() { } public Azure.Provisioning.BicepValue Path { get { throw null; } set { } } public Azure.Provisioning.BicepValue Port { get { throw null; } set { } } public Azure.Provisioning.BicepValue Scheme { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppHttpScaleRule : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppHttpScaleRule() { } public Azure.Provisioning.BicepList Auth { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary Metadata { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppHttpScheme { @@ -528,21 +570,23 @@ public enum ContainerAppHttpScheme public partial class ContainerAppHttpSettings : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppHttpSettings() { } - public Azure.Provisioning.BicepValue ForwardProxy { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppForwardProxy ForwardProxy { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequireHttps { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoutesApiPrefix { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppIdentityProvidersConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppIdentityProvidersConfiguration() { } - public Azure.Provisioning.BicepValue Apple { get { throw null; } set { } } - public Azure.Provisioning.BicepValue AzureActiveDirectory { get { throw null; } set { } } - public Azure.Provisioning.BicepValue AzureStaticWebApps { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppAppleConfiguration Apple { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppAzureActiveDirectoryConfiguration AzureActiveDirectory { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppAzureStaticWebAppsConfiguration AzureStaticWebApps { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary CustomOpenIdConnectProviders { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Facebook { get { throw null; } set { } } - public Azure.Provisioning.BicepValue GitHub { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Google { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Twitter { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppFacebookConfiguration Facebook { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppGitHubConfiguration GitHub { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppGoogleConfiguration Google { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppTwitterConfiguration Twitter { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppIngressClientCertificateMode { @@ -559,7 +603,7 @@ public ContainerAppIngressConfiguration() { } public Azure.Provisioning.BicepList AdditionalPortMappings { get { throw null; } set { } } public Azure.Provisioning.BicepValue AllowInsecure { get { throw null; } set { } } public Azure.Provisioning.BicepValue ClientCertificateMode { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CorsPolicy { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppCorsPolicy CorsPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepList CustomDomains { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExposedPort { get { throw null; } set { } } public Azure.Provisioning.BicepValue External { get { throw null; } set { } } @@ -569,6 +613,7 @@ public ContainerAppIngressConfiguration() { } public Azure.Provisioning.BicepValue TargetPort { get { throw null; } set { } } public Azure.Provisioning.BicepList Traffic { get { throw null; } set { } } public Azure.Provisioning.BicepValue Transport { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppIngressTransportMethod { @@ -589,8 +634,9 @@ public ContainerAppInitContainer() { } public Azure.Provisioning.BicepList Env { get { throw null; } set { } } public Azure.Provisioning.BicepValue Image { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resources { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.AppContainerResources Resources { get { throw null; } set { } } public Azure.Provisioning.BicepList VolumeMounts { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppIPRuleAction { @@ -604,23 +650,25 @@ public ContainerAppIPSecurityRestrictionRule() { } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue IPAddressRange { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppJob : Azure.Provisioning.Primitives.ProvisionableResource { public ContainerAppJob(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue Configuration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppJobConfiguration Configuration { get { throw null; } set { } } public Azure.Provisioning.BicepValue EnvironmentId { get { throw null; } set { } } public Azure.Provisioning.BicepValue EventStreamEndpoint { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepList OutboundIPAddresses { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Template { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppJobTemplate Template { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkloadProfileName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppContainers.ContainerAppJob FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -631,14 +679,15 @@ public static partial class ResourceVersions public partial class ContainerAppJobConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppJobConfiguration() { } - public Azure.Provisioning.BicepValue EventTriggerConfig { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ManualTriggerConfig { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.EventTriggerConfiguration EventTriggerConfig { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.JobConfigurationManualTriggerConfig ManualTriggerConfig { get { throw null; } set { } } public Azure.Provisioning.BicepList Registries { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReplicaRetryLimit { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReplicaTimeout { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ScheduleTriggerConfig { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.JobConfigurationScheduleTriggerConfig ScheduleTriggerConfig { get { throw null; } set { } } public Azure.Provisioning.BicepList Secrets { get { throw null; } set { } } public Azure.Provisioning.BicepValue TriggerType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppJobProvisioningState { @@ -655,6 +704,7 @@ public ContainerAppJobScale() { } public Azure.Provisioning.BicepValue MinExecutions { get { throw null; } set { } } public Azure.Provisioning.BicepValue PollingIntervalInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepList Rules { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppJobScaleRule : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -663,6 +713,7 @@ public ContainerAppJobScaleRule() { } public Azure.Provisioning.BicepValue JobScaleRuleType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Metadata { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppJobTemplate : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -670,6 +721,7 @@ public ContainerAppJobTemplate() { } public Azure.Provisioning.BicepList Containers { get { throw null; } set { } } public Azure.Provisioning.BicepList InitContainers { get { throw null; } set { } } public Azure.Provisioning.BicepList Volumes { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppJobTriggerType { @@ -682,34 +734,39 @@ public partial class ContainerAppJwtClaimChecks : Azure.Provisioning.Primitives. public ContainerAppJwtClaimChecks() { } public Azure.Provisioning.BicepList AllowedClientApplications { get { throw null; } set { } } public Azure.Provisioning.BicepList AllowedGroups { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppLogAnalyticsConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppLogAnalyticsConfiguration() { } public Azure.Provisioning.BicepValue CustomerId { get { throw null; } set { } } public Azure.Provisioning.BicepValue SharedKey { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppLogin : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppLogin() { } public Azure.Provisioning.BicepList AllowedExternalRedirectUrls { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CookieExpiration { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Nonce { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppCookieExpiration CookieExpiration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppLoginNonce Nonce { get { throw null; } set { } } public Azure.Provisioning.BicepValue PreserveUrlFragmentsForLogins { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoutesLogoutEndpoint { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TokenStore { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppTokenStore TokenStore { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppLoginNonce : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppLoginNonce() { } public Azure.Provisioning.BicepValue NonceExpirationInterval { get { throw null; } set { } } public Azure.Provisioning.BicepValue ValidateNonce { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppLogsConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppLogsConfiguration() { } public Azure.Provisioning.BicepValue Destination { get { throw null; } set { } } - public Azure.Provisioning.BicepValue LogAnalyticsConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppLogAnalyticsConfiguration LogAnalyticsConfiguration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppManagedCertificate : Azure.Provisioning.Primitives.ProvisionableResource { @@ -718,9 +775,10 @@ public partial class ContainerAppManagedCertificate : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppContainers.ContainerAppManagedEnvironment? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.AppContainers.ManagedCertificateProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppContainers.ContainerAppManagedCertificate FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -731,8 +789,8 @@ public static partial class ResourceVersions public partial class ContainerAppManagedEnvironment : Azure.Provisioning.Primitives.ProvisionableResource { public ContainerAppManagedEnvironment(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue AppLogsConfiguration { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CustomDomainConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppLogsConfiguration AppLogsConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppCustomDomainConfiguration CustomDomainConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue DaprAIConnectionString { get { throw null; } set { } } public Azure.Provisioning.BicepValue DaprAIInstrumentationKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue DaprVersion { get { throw null; } } @@ -750,12 +808,13 @@ public partial class ContainerAppManagedEnvironment : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue StaticIP { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } - public Azure.Provisioning.BicepValue VnetConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppVnetConfiguration VnetConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepList WorkloadProfiles { get { throw null; } set { } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.AppContainers.AppContainersBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.AppContainers.AppContainersBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppContainers.ContainerAppManagedEnvironment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -772,9 +831,10 @@ public partial class ContainerAppManagedEnvironmentCertificate : Azure.Provision public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppContainers.ContainerAppManagedEnvironment? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.AppContainers.ContainerAppCertificateProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppContainers.ContainerAppManagedEnvironmentCertificate FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -797,8 +857,9 @@ public partial class ContainerAppManagedEnvironmentDaprComponent : Azure.Provisi public Azure.Provisioning.BicepList Scopes { get { throw null; } set { } } public Azure.Provisioning.BicepList Secrets { get { throw null; } set { } } public Azure.Provisioning.BicepValue SecretStoreComponent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppContainers.ContainerAppManagedEnvironmentDaprComponent FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -817,10 +878,11 @@ public partial class ContainerAppManagedEnvironmentStorage : Azure.Provisioning. { public ContainerAppManagedEnvironmentStorage(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue ManagedEnvironmentStorageAzureFile { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppAzureFileProperties ManagedEnvironmentStorageAzureFile { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppContainers.ContainerAppManagedEnvironment? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppContainers.ContainerAppManagedEnvironmentStorage FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -835,6 +897,7 @@ public partial class ContainerAppOpenIdConnectClientCredential : Azure.Provision public ContainerAppOpenIdConnectClientCredential() { } public Azure.Provisioning.BicepValue ClientSecretSettingName { get { throw null; } set { } } public Azure.Provisioning.BicepValue Method { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppOpenIdConnectClientCredentialMethod { @@ -848,32 +911,36 @@ public ContainerAppOpenIdConnectConfig() { } public Azure.Provisioning.BicepValue Issuer { get { throw null; } set { } } public Azure.Provisioning.BicepValue TokenEndpoint { get { throw null; } set { } } public Azure.Provisioning.BicepValue WellKnownOpenIdConfiguration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppOpenIdConnectLogin : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppOpenIdConnectLogin() { } public Azure.Provisioning.BicepValue NameClaimType { get { throw null; } set { } } public Azure.Provisioning.BicepList Scopes { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppOpenIdConnectRegistration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppOpenIdConnectRegistration() { } - public Azure.Provisioning.BicepValue ClientCredential { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppOpenIdConnectClientCredential ClientCredential { get { throw null; } set { } } public Azure.Provisioning.BicepValue ClientId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue OpenIdConnectConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppOpenIdConnectConfig OpenIdConnectConfiguration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppProbe : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppProbe() { } public Azure.Provisioning.BicepValue FailureThreshold { get { throw null; } set { } } - public Azure.Provisioning.BicepValue HttpGet { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppHttpRequestInfo HttpGet { get { throw null; } set { } } public Azure.Provisioning.BicepValue InitialDelaySeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue PeriodSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProbeType { get { throw null; } set { } } public Azure.Provisioning.BicepValue SuccessThreshold { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TcpSocket { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppTcpSocketRequestInfo TcpSocket { get { throw null; } set { } } public Azure.Provisioning.BicepValue TerminationGracePeriodSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeoutSeconds { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppProbeType { @@ -902,12 +969,14 @@ public ContainerAppQueueScaleRule() { } public Azure.Provisioning.BicepList Auth { get { throw null; } set { } } public Azure.Provisioning.BicepValue QueueLength { get { throw null; } set { } } public Azure.Provisioning.BicepValue QueueName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppRegistration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppRegistration() { } public Azure.Provisioning.BicepValue AppId { get { throw null; } set { } } public Azure.Provisioning.BicepValue AppSecretSettingName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppRegistryCredentials : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -916,6 +985,7 @@ public ContainerAppRegistryCredentials() { } public Azure.Provisioning.BicepValue PasswordSecretRef { get { throw null; } set { } } public Azure.Provisioning.BicepValue Server { get { throw null; } set { } } public Azure.Provisioning.BicepValue Username { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppRegistryInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -923,6 +993,7 @@ public ContainerAppRegistryInfo() { } public Azure.Provisioning.BicepValue RegistryPassword { get { throw null; } set { } } public Azure.Provisioning.BicepValue RegistryServer { get { throw null; } set { } } public Azure.Provisioning.BicepValue RegistryUserName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppRevisionTrafficWeight : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -931,6 +1002,7 @@ public ContainerAppRevisionTrafficWeight() { } public Azure.Provisioning.BicepValue Label { get { throw null; } set { } } public Azure.Provisioning.BicepValue RevisionName { get { throw null; } set { } } public Azure.Provisioning.BicepValue Weight { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppScale : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -938,39 +1010,44 @@ public ContainerAppScale() { } public Azure.Provisioning.BicepValue MaxReplicas { get { throw null; } set { } } public Azure.Provisioning.BicepValue MinReplicas { get { throw null; } set { } } public Azure.Provisioning.BicepList Rules { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppScaleRule : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppScaleRule() { } - public Azure.Provisioning.BicepValue AzureQueue { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Custom { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Http { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppQueueScaleRule AzureQueue { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppCustomScaleRule Custom { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppHttpScaleRule Http { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Tcp { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppTcpScaleRule Tcp { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppScaleRuleAuth : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppScaleRuleAuth() { } public Azure.Provisioning.BicepValue SecretRef { get { throw null; } set { } } public Azure.Provisioning.BicepValue TriggerParameter { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppServiceBind : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppServiceBind() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServiceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppSourceControl : Azure.Provisioning.Primitives.ProvisionableResource { public ContainerAppSourceControl(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Branch { get { throw null; } set { } } - public Azure.Provisioning.BicepValue GitHubActionConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppGitHubActionConfiguration GitHubActionConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue OperationState { get { throw null; } } public Azure.Provisioning.AppContainers.ContainerApp? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue RepoUri { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppContainers.ContainerAppSourceControl FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -998,12 +1075,14 @@ public partial class ContainerAppTcpScaleRule : Azure.Provisioning.Primitives.Pr public ContainerAppTcpScaleRule() { } public Azure.Provisioning.BicepList Auth { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary Metadata { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppTcpSocketRequestInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppTcpSocketRequestInfo() { } public Azure.Provisioning.BicepValue Host { get { throw null; } set { } } public Azure.Provisioning.BicepValue Port { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppTemplate : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1011,10 +1090,11 @@ public ContainerAppTemplate() { } public Azure.Provisioning.BicepList Containers { get { throw null; } set { } } public Azure.Provisioning.BicepList InitContainers { get { throw null; } set { } } public Azure.Provisioning.BicepValue RevisionSuffix { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Scale { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppScale Scale { get { throw null; } set { } } public Azure.Provisioning.BicepList ServiceBinds { get { throw null; } set { } } public Azure.Provisioning.BicepValue TerminationGracePeriodSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepList Volumes { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppTokenStore : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1022,18 +1102,21 @@ public ContainerAppTokenStore() { } public Azure.Provisioning.BicepValue AzureBlobStorageSasUrlSettingName { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue TokenRefreshExtensionHours { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppTwitterConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppTwitterConfiguration() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Registration { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppTwitterRegistration Registration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppTwitterRegistration : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerAppTwitterRegistration() { } public Azure.Provisioning.BicepValue ConsumerKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue ConsumerSecretSettingName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerAppUnauthenticatedClientActionV2 { @@ -1050,6 +1133,7 @@ public ContainerAppVnetConfiguration() { } public Azure.Provisioning.BicepValue IsInternal { get { throw null; } set { } } public Azure.Provisioning.BicepValue PlatformReservedCidr { get { throw null; } set { } } public Azure.Provisioning.BicepValue PlatformReservedDnsIP { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppVolume : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1059,6 +1143,7 @@ public ContainerAppVolume() { } public Azure.Provisioning.BicepList Secrets { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageName { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppVolumeMount : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1066,6 +1151,7 @@ public ContainerAppVolumeMount() { } public Azure.Provisioning.BicepValue MountPath { get { throw null; } set { } } public Azure.Provisioning.BicepValue SubPath { get { throw null; } set { } } public Azure.Provisioning.BicepValue VolumeName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppWorkloadProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1074,6 +1160,7 @@ public ContainerAppWorkloadProfile() { } public Azure.Provisioning.BicepValue MinimumNodeCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkloadProfileType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppWritableSecret : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1082,19 +1169,22 @@ public ContainerAppWritableSecret() { } public Azure.Provisioning.BicepValue KeyVaultUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class EncryptionSettings : Azure.Provisioning.Primitives.ProvisionableConstruct { public EncryptionSettings() { } public Azure.Provisioning.BicepValue ContainerAppAuthEncryptionSecretName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ContainerAppAuthSigningSecretName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class EventTriggerConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public EventTriggerConfiguration() { } public Azure.Provisioning.BicepValue Parallelism { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReplicaCompletionCount { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Scale { get { throw null; } set { } } + public Azure.Provisioning.AppContainers.ContainerAppJobScale Scale { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class IngressPortMapping : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1102,12 +1192,14 @@ public IngressPortMapping() { } public Azure.Provisioning.BicepValue ExposedPort { get { throw null; } set { } } public Azure.Provisioning.BicepValue External { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetPort { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class JobConfigurationManualTriggerConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { public JobConfigurationManualTriggerConfig() { } public Azure.Provisioning.BicepValue Parallelism { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReplicaCompletionCount { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class JobConfigurationScheduleTriggerConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1115,6 +1207,7 @@ public JobConfigurationScheduleTriggerConfig() { } public Azure.Provisioning.BicepValue CronExpression { get { throw null; } set { } } public Azure.Provisioning.BicepValue Parallelism { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReplicaCompletionCount { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ManagedCertificateDomainControlValidation { @@ -1132,12 +1225,14 @@ public ManagedCertificateProperties() { } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue SubjectName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ValidationToken { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class SecretVolumeItem : Azure.Provisioning.Primitives.ProvisionableConstruct { public SecretVolumeItem() { } public Azure.Provisioning.BicepValue Path { get { throw null; } set { } } public Azure.Provisioning.BicepValue SecretRef { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum StickySessionAffinity { diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerApp.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerApp.cs index 6eced79ab94fd..45df2f008dc3e 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerApp.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerApp.cs @@ -23,39 +23,63 @@ public partial class ContainerApp : ProvisionableResource /// /// Name of the Container App. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Non versioned Container App configuration properties. /// - public BicepValue Configuration { get => _configuration; set => _configuration.Assign(value); } - private readonly BicepValue _configuration; + public ContainerAppConfiguration Configuration + { + get { Initialize(); return _configuration!; } + set { Initialize(); AssignOrReplace(ref _configuration, value); } + } + private ContainerAppConfiguration? _configuration; /// /// Resource ID of environment. /// - public BicepValue EnvironmentId { get => _environmentId; set => _environmentId.Assign(value); } - private readonly BicepValue _environmentId; + public BicepValue EnvironmentId + { + get { Initialize(); return _environmentId!; } + set { Initialize(); _environmentId!.Assign(value); } + } + private BicepValue? _environmentId; /// /// The complex type of the extended location. /// - public BicepValue ExtendedLocation { get => _extendedLocation; set => _extendedLocation.Assign(value); } - private readonly BicepValue _extendedLocation; + public ContainerAppExtendedLocation ExtendedLocation + { + get { Initialize(); return _extendedLocation!; } + set { Initialize(); AssignOrReplace(ref _extendedLocation, value); } + } + private ContainerAppExtendedLocation? _extendedLocation; /// /// managed identities for the Container App to interact with other Azure /// services without maintaining any secrets or credentials in code. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// The fully qualified resource ID of the resource that manages this @@ -64,86 +88,133 @@ public partial class ContainerApp : ProvisionableResource /// the resource if it is removed from the template since it is managed by /// another resource. /// - public BicepValue ManagedBy { get => _managedBy; set => _managedBy.Assign(value); } - private readonly BicepValue _managedBy; + public BicepValue ManagedBy + { + get { Initialize(); return _managedBy!; } + set { Initialize(); _managedBy!.Assign(value); } + } + private BicepValue? _managedBy; /// /// Deprecated. Resource ID of the Container App's environment. /// - public BicepValue ManagedEnvironmentId { get => _managedEnvironmentId; set => _managedEnvironmentId.Assign(value); } - private readonly BicepValue _managedEnvironmentId; + public BicepValue ManagedEnvironmentId + { + get { Initialize(); return _managedEnvironmentId!; } + set { Initialize(); _managedEnvironmentId!.Assign(value); } + } + private BicepValue? _managedEnvironmentId; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Container App versioned application definition. /// - public BicepValue Template { get => _template; set => _template.Assign(value); } - private readonly BicepValue _template; + public ContainerAppTemplate Template + { + get { Initialize(); return _template!; } + set { Initialize(); AssignOrReplace(ref _template, value); } + } + private ContainerAppTemplate? _template; /// /// Workload profile name to pin for container app execution. /// - public BicepValue WorkloadProfileName { get => _workloadProfileName; set => _workloadProfileName.Assign(value); } - private readonly BicepValue _workloadProfileName; + public BicepValue WorkloadProfileName + { + get { Initialize(); return _workloadProfileName!; } + set { Initialize(); _workloadProfileName!.Assign(value); } + } + private BicepValue? _workloadProfileName; /// /// Id used to verify domain name ownership. /// - public BicepValue CustomDomainVerificationId { get => _customDomainVerificationId; } - private readonly BicepValue _customDomainVerificationId; + public BicepValue CustomDomainVerificationId + { + get { Initialize(); return _customDomainVerificationId!; } + } + private BicepValue? _customDomainVerificationId; /// /// The endpoint of the eventstream of the container app. /// - public BicepValue EventStreamEndpoint { get => _eventStreamEndpoint; } - private readonly BicepValue _eventStreamEndpoint; + public BicepValue EventStreamEndpoint + { + get { Initialize(); return _eventStreamEndpoint!; } + } + private BicepValue? _eventStreamEndpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Name of the latest ready revision of the Container App. /// - public BicepValue LatestReadyRevisionName { get => _latestReadyRevisionName; } - private readonly BicepValue _latestReadyRevisionName; + public BicepValue LatestReadyRevisionName + { + get { Initialize(); return _latestReadyRevisionName!; } + } + private BicepValue? _latestReadyRevisionName; /// /// Fully Qualified Domain Name of the latest revision of the Container App. /// - public BicepValue LatestRevisionFqdn { get => _latestRevisionFqdn; } - private readonly BicepValue _latestRevisionFqdn; + public BicepValue LatestRevisionFqdn + { + get { Initialize(); return _latestRevisionFqdn!; } + } + private BicepValue? _latestRevisionFqdn; /// /// Name of the latest revision of the Container App. /// - public BicepValue LatestRevisionName { get => _latestRevisionName; } - private readonly BicepValue _latestRevisionName; + public BicepValue LatestRevisionName + { + get { Initialize(); return _latestRevisionName!; } + } + private BicepValue? _latestRevisionName; /// /// Outbound IP Addresses for container app. /// - public BicepList OutboundIPAddressList { get => _outboundIPAddressList; } - private readonly BicepList _outboundIPAddressList; + public BicepList OutboundIPAddressList + { + get { Initialize(); return _outboundIPAddressList!; } + } + private BicepList? _outboundIPAddressList; /// /// Provisioning state of the Container App. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ContainerApp. @@ -158,26 +229,33 @@ public partial class ContainerApp : ProvisionableResource public ContainerApp(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.App/containerApps", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _configuration = BicepValue.DefineProperty(this, "Configuration", ["properties", "configuration"]); - _environmentId = BicepValue.DefineProperty(this, "EnvironmentId", ["properties", "environmentId"]); - _extendedLocation = BicepValue.DefineProperty(this, "ExtendedLocation", ["extendedLocation"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _managedBy = BicepValue.DefineProperty(this, "ManagedBy", ["managedBy"]); - _managedEnvironmentId = BicepValue.DefineProperty(this, "ManagedEnvironmentId", ["properties", "managedEnvironmentId"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _template = BicepValue.DefineProperty(this, "Template", ["properties", "template"]); - _workloadProfileName = BicepValue.DefineProperty(this, "WorkloadProfileName", ["properties", "workloadProfileName"]); - _customDomainVerificationId = BicepValue.DefineProperty(this, "CustomDomainVerificationId", ["properties", "customDomainVerificationId"], isOutput: true); - _eventStreamEndpoint = BicepValue.DefineProperty(this, "EventStreamEndpoint", ["properties", "eventStreamEndpoint"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _latestReadyRevisionName = BicepValue.DefineProperty(this, "LatestReadyRevisionName", ["properties", "latestReadyRevisionName"], isOutput: true); - _latestRevisionFqdn = BicepValue.DefineProperty(this, "LatestRevisionFqdn", ["properties", "latestRevisionFqdn"], isOutput: true); - _latestRevisionName = BicepValue.DefineProperty(this, "LatestRevisionName", ["properties", "latestRevisionName"], isOutput: true); - _outboundIPAddressList = BicepList.DefineProperty(this, "OutboundIPAddressList", ["properties", "outboundIpAddresses"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ContainerApp. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _configuration = DefineModelProperty("Configuration", ["properties", "configuration"]); + _environmentId = DefineProperty("EnvironmentId", ["properties", "environmentId"]); + _extendedLocation = DefineModelProperty("ExtendedLocation", ["extendedLocation"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _managedBy = DefineProperty("ManagedBy", ["managedBy"]); + _managedEnvironmentId = DefineProperty("ManagedEnvironmentId", ["properties", "managedEnvironmentId"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _template = DefineModelProperty("Template", ["properties", "template"]); + _workloadProfileName = DefineProperty("WorkloadProfileName", ["properties", "workloadProfileName"]); + _customDomainVerificationId = DefineProperty("CustomDomainVerificationId", ["properties", "customDomainVerificationId"], isOutput: true); + _eventStreamEndpoint = DefineProperty("EventStreamEndpoint", ["properties", "eventStreamEndpoint"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _latestReadyRevisionName = DefineProperty("LatestReadyRevisionName", ["properties", "latestReadyRevisionName"], isOutput: true); + _latestRevisionFqdn = DefineProperty("LatestRevisionFqdn", ["properties", "latestRevisionFqdn"], isOutput: true); + _latestRevisionName = DefineProperty("LatestRevisionName", ["properties", "latestRevisionName"], isOutput: true); + _outboundIPAddressList = DefineListProperty("OutboundIPAddressList", ["properties", "outboundIpAddresses"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppAuthConfig.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppAuthConfig.cs index 9e49893f22782..a8cb9a5e3f792 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppAuthConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppAuthConfig.cs @@ -21,69 +21,107 @@ public partial class ContainerAppAuthConfig : ProvisionableResource /// /// Name of the Container App AuthConfig. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The configuration settings of the secrets references of encryption key /// and signing key for ContainerApp Service Authentication/Authorization. /// - public BicepValue EncryptionSettings { get => _encryptionSettings; set => _encryptionSettings.Assign(value); } - private readonly BicepValue _encryptionSettings; + public EncryptionSettings EncryptionSettings + { + get { Initialize(); return _encryptionSettings!; } + set { Initialize(); AssignOrReplace(ref _encryptionSettings, value); } + } + private EncryptionSettings? _encryptionSettings; /// /// The configuration settings that determines the validation flow of users /// using Service Authentication/Authorization. /// - public BicepValue GlobalValidation { get => _globalValidation; set => _globalValidation.Assign(value); } - private readonly BicepValue _globalValidation; + public ContainerAppGlobalValidation GlobalValidation + { + get { Initialize(); return _globalValidation!; } + set { Initialize(); AssignOrReplace(ref _globalValidation, value); } + } + private ContainerAppGlobalValidation? _globalValidation; /// /// The configuration settings of the HTTP requests for authentication and /// authorization requests made against ContainerApp Service /// Authentication/Authorization. /// - public BicepValue HttpSettings { get => _httpSettings; set => _httpSettings.Assign(value); } - private readonly BicepValue _httpSettings; + public ContainerAppHttpSettings HttpSettings + { + get { Initialize(); return _httpSettings!; } + set { Initialize(); AssignOrReplace(ref _httpSettings, value); } + } + private ContainerAppHttpSettings? _httpSettings; /// /// The configuration settings of each of the identity providers used to /// configure ContainerApp Service Authentication/Authorization. /// - public BicepValue IdentityProviders { get => _identityProviders; set => _identityProviders.Assign(value); } - private readonly BicepValue _identityProviders; + public ContainerAppIdentityProvidersConfiguration IdentityProviders + { + get { Initialize(); return _identityProviders!; } + set { Initialize(); AssignOrReplace(ref _identityProviders, value); } + } + private ContainerAppIdentityProvidersConfiguration? _identityProviders; /// /// The configuration settings of the login flow of users using /// ContainerApp Service Authentication/Authorization. /// - public BicepValue Login { get => _login; set => _login.Assign(value); } - private readonly BicepValue _login; + public ContainerAppLogin Login + { + get { Initialize(); return _login!; } + set { Initialize(); AssignOrReplace(ref _login, value); } + } + private ContainerAppLogin? _login; /// /// The configuration settings of the platform of ContainerApp Service /// Authentication/Authorization. /// - public BicepValue Platform { get => _platform; set => _platform.Assign(value); } - private readonly BicepValue _platform; + public ContainerAppAuthPlatform Platform + { + get { Initialize(); return _platform!; } + set { Initialize(); AssignOrReplace(ref _platform, value); } + } + private ContainerAppAuthPlatform? _platform; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerApp. /// - public ContainerApp? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerApp? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerAppAuthConfig. @@ -98,16 +136,23 @@ public partial class ContainerAppAuthConfig : ProvisionableResource public ContainerAppAuthConfig(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.App/containerApps/authConfigs", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _encryptionSettings = BicepValue.DefineProperty(this, "EncryptionSettings", ["properties", "encryptionSettings"]); - _globalValidation = BicepValue.DefineProperty(this, "GlobalValidation", ["properties", "globalValidation"]); - _httpSettings = BicepValue.DefineProperty(this, "HttpSettings", ["properties", "httpSettings"]); - _identityProviders = BicepValue.DefineProperty(this, "IdentityProviders", ["properties", "identityProviders"]); - _login = BicepValue.DefineProperty(this, "Login", ["properties", "login"]); - _platform = BicepValue.DefineProperty(this, "Platform", ["properties", "platform"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ContainerAppAuthConfig. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _encryptionSettings = DefineModelProperty("EncryptionSettings", ["properties", "encryptionSettings"]); + _globalValidation = DefineModelProperty("GlobalValidation", ["properties", "globalValidation"]); + _httpSettings = DefineModelProperty("HttpSettings", ["properties", "httpSettings"]); + _identityProviders = DefineModelProperty("IdentityProviders", ["properties", "identityProviders"]); + _login = DefineModelProperty("Login", ["properties", "login"]); + _platform = DefineModelProperty("Platform", ["properties", "platform"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironment.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironment.cs index 70590b98950d4..755312360a302 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironment.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironment.cs @@ -22,75 +22,118 @@ public partial class ContainerAppConnectedEnvironment : ProvisionableResource /// /// Name of the connectedEnvironment. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Custom domain configuration for the environment. /// - public BicepValue CustomDomainConfiguration { get => _customDomainConfiguration; set => _customDomainConfiguration.Assign(value); } - private readonly BicepValue _customDomainConfiguration; + public ContainerAppCustomDomainConfiguration CustomDomainConfiguration + { + get { Initialize(); return _customDomainConfiguration!; } + set { Initialize(); AssignOrReplace(ref _customDomainConfiguration, value); } + } + private ContainerAppCustomDomainConfiguration? _customDomainConfiguration; /// /// Application Insights connection string used by Dapr to export Service /// to Service communication telemetry. /// - public BicepValue DaprAIConnectionString { get => _daprAIConnectionString; set => _daprAIConnectionString.Assign(value); } - private readonly BicepValue _daprAIConnectionString; + public BicepValue DaprAIConnectionString + { + get { Initialize(); return _daprAIConnectionString!; } + set { Initialize(); _daprAIConnectionString!.Assign(value); } + } + private BicepValue? _daprAIConnectionString; /// /// The complex type of the extended location. /// - public BicepValue ExtendedLocation { get => _extendedLocation; set => _extendedLocation.Assign(value); } - private readonly BicepValue _extendedLocation; + public ContainerAppExtendedLocation ExtendedLocation + { + get { Initialize(); return _extendedLocation!; } + set { Initialize(); AssignOrReplace(ref _extendedLocation, value); } + } + private ContainerAppExtendedLocation? _extendedLocation; /// /// Static IP of the connectedEnvironment. /// - public BicepValue StaticIP { get => _staticIP; set => _staticIP.Assign(value); } - private readonly BicepValue _staticIP; + public BicepValue StaticIP + { + get { Initialize(); return _staticIP!; } + set { Initialize(); _staticIP!.Assign(value); } + } + private BicepValue? _staticIP; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Default Domain Name for the cluster. /// - public BicepValue DefaultDomain { get => _defaultDomain; } - private readonly BicepValue _defaultDomain; + public BicepValue DefaultDomain + { + get { Initialize(); return _defaultDomain!; } + } + private BicepValue? _defaultDomain; /// /// Any errors that occurred during deployment or deployment validation. /// - public BicepValue DeploymentErrors { get => _deploymentErrors; } - private readonly BicepValue _deploymentErrors; + public BicepValue DeploymentErrors + { + get { Initialize(); return _deploymentErrors!; } + } + private BicepValue? _deploymentErrors; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the Kubernetes Environment. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ContainerAppConnectedEnvironment. @@ -105,18 +148,26 @@ public partial class ContainerAppConnectedEnvironment : ProvisionableResource public ContainerAppConnectedEnvironment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.App/connectedEnvironments", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _customDomainConfiguration = BicepValue.DefineProperty(this, "CustomDomainConfiguration", ["properties", "customDomainConfiguration"]); - _daprAIConnectionString = BicepValue.DefineProperty(this, "DaprAIConnectionString", ["properties", "daprAIConnectionString"]); - _extendedLocation = BicepValue.DefineProperty(this, "ExtendedLocation", ["extendedLocation"]); - _staticIP = BicepValue.DefineProperty(this, "StaticIP", ["properties", "staticIp"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _defaultDomain = BicepValue.DefineProperty(this, "DefaultDomain", ["properties", "defaultDomain"], isOutput: true); - _deploymentErrors = BicepValue.DefineProperty(this, "DeploymentErrors", ["properties", "deploymentErrors"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppConnectedEnvironment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _customDomainConfiguration = DefineModelProperty("CustomDomainConfiguration", ["properties", "customDomainConfiguration"]); + _daprAIConnectionString = DefineProperty("DaprAIConnectionString", ["properties", "daprAIConnectionString"]); + _extendedLocation = DefineModelProperty("ExtendedLocation", ["extendedLocation"]); + _staticIP = DefineProperty("StaticIP", ["properties", "staticIp"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _defaultDomain = DefineProperty("DefaultDomain", ["properties", "defaultDomain"], isOutput: true); + _deploymentErrors = DefineProperty("DeploymentErrors", ["properties", "deploymentErrors"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironmentCertificate.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironmentCertificate.cs index 75d80c4c70e77..b1bc180275e55 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironmentCertificate.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironmentCertificate.cs @@ -21,44 +21,70 @@ public partial class ContainerAppConnectedEnvironmentCertificate : Provisionable /// /// Name of the Certificate. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Certificate resource specific properties. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public ContainerAppCertificateProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private ContainerAppCertificateProperties? _properties; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerAppConnectedEnvironment. /// - public ContainerAppConnectedEnvironment? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerAppConnectedEnvironment? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerAppConnectedEnvironmentCertificate. @@ -74,13 +100,21 @@ public partial class ContainerAppConnectedEnvironmentCertificate : Provisionable public ContainerAppConnectedEnvironmentCertificate(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.App/connectedEnvironments/certificates", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppConnectedEnvironmentCertificate. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironmentDaprComponent.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironmentDaprComponent.cs index c632f1f10c6c6..ebb2c41375325 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironmentDaprComponent.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironmentDaprComponent.cs @@ -21,74 +21,120 @@ public partial class ContainerAppConnectedEnvironmentDaprComponent : Provisionab /// /// Name of the Dapr Component. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Component type. /// - public BicepValue ComponentType { get => _componentType; set => _componentType.Assign(value); } - private readonly BicepValue _componentType; + public BicepValue ComponentType + { + get { Initialize(); return _componentType!; } + set { Initialize(); _componentType!.Assign(value); } + } + private BicepValue? _componentType; /// /// Boolean describing if the component errors are ignores. /// - public BicepValue IgnoreErrors { get => _ignoreErrors; set => _ignoreErrors.Assign(value); } - private readonly BicepValue _ignoreErrors; + public BicepValue IgnoreErrors + { + get { Initialize(); return _ignoreErrors!; } + set { Initialize(); _ignoreErrors!.Assign(value); } + } + private BicepValue? _ignoreErrors; /// /// Initialization timeout. /// - public BicepValue InitTimeout { get => _initTimeout; set => _initTimeout.Assign(value); } - private readonly BicepValue _initTimeout; + public BicepValue InitTimeout + { + get { Initialize(); return _initTimeout!; } + set { Initialize(); _initTimeout!.Assign(value); } + } + private BicepValue? _initTimeout; /// /// Component metadata. /// - public BicepList Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepList _metadata; + public BicepList Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepList? _metadata; /// /// Names of container apps that can use this Dapr component. /// - public BicepList Scopes { get => _scopes; set => _scopes.Assign(value); } - private readonly BicepList _scopes; + public BicepList Scopes + { + get { Initialize(); return _scopes!; } + set { Initialize(); _scopes!.Assign(value); } + } + private BicepList? _scopes; /// /// Collection of secrets used by a Dapr component. /// - public BicepList Secrets { get => _secrets; set => _secrets.Assign(value); } - private readonly BicepList _secrets; + public BicepList Secrets + { + get { Initialize(); return _secrets!; } + set { Initialize(); _secrets!.Assign(value); } + } + private BicepList? _secrets; /// /// Name of a Dapr component to retrieve component secrets from. /// - public BicepValue SecretStoreComponent { get => _secretStoreComponent; set => _secretStoreComponent.Assign(value); } - private readonly BicepValue _secretStoreComponent; + public BicepValue SecretStoreComponent + { + get { Initialize(); return _secretStoreComponent!; } + set { Initialize(); _secretStoreComponent!.Assign(value); } + } + private BicepValue? _secretStoreComponent; /// /// Component version. /// - public BicepValue Version { get => _version; set => _version.Assign(value); } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + set { Initialize(); _version!.Assign(value); } + } + private BicepValue? _version; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerAppConnectedEnvironment. /// - public ContainerAppConnectedEnvironment? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerAppConnectedEnvironment? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerAppConnectedEnvironmentDaprComponent. @@ -104,18 +150,26 @@ public partial class ContainerAppConnectedEnvironmentDaprComponent : Provisionab public ContainerAppConnectedEnvironmentDaprComponent(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.App/connectedEnvironments/daprComponents", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _componentType = BicepValue.DefineProperty(this, "ComponentType", ["properties", "componentType"]); - _ignoreErrors = BicepValue.DefineProperty(this, "IgnoreErrors", ["properties", "ignoreErrors"]); - _initTimeout = BicepValue.DefineProperty(this, "InitTimeout", ["properties", "initTimeout"]); - _metadata = BicepList.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _scopes = BicepList.DefineProperty(this, "Scopes", ["properties", "scopes"]); - _secrets = BicepList.DefineProperty(this, "Secrets", ["properties", "secrets"]); - _secretStoreComponent = BicepValue.DefineProperty(this, "SecretStoreComponent", ["properties", "secretStoreComponent"]); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppConnectedEnvironmentDaprComponent. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _componentType = DefineProperty("ComponentType", ["properties", "componentType"]); + _ignoreErrors = DefineProperty("IgnoreErrors", ["properties", "ignoreErrors"]); + _initTimeout = DefineProperty("InitTimeout", ["properties", "initTimeout"]); + _metadata = DefineListProperty("Metadata", ["properties", "metadata"]); + _scopes = DefineListProperty("Scopes", ["properties", "scopes"]); + _secrets = DefineListProperty("Secrets", ["properties", "secrets"]); + _secretStoreComponent = DefineProperty("SecretStoreComponent", ["properties", "secretStoreComponent"]); + _version = DefineProperty("Version", ["properties", "version"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironmentStorage.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironmentStorage.cs index b80fe062f8e17..0e8bcb67aabfa 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironmentStorage.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppConnectedEnvironmentStorage.cs @@ -20,32 +20,50 @@ public partial class ContainerAppConnectedEnvironmentStorage : ProvisionableReso /// /// Name of the storage. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Azure file properties. /// - public BicepValue ConnectedEnvironmentStorageAzureFile { get => _connectedEnvironmentStorageAzureFile; set => _connectedEnvironmentStorageAzureFile.Assign(value); } - private readonly BicepValue _connectedEnvironmentStorageAzureFile; + public ContainerAppAzureFileProperties ConnectedEnvironmentStorageAzureFile + { + get { Initialize(); return _connectedEnvironmentStorageAzureFile!; } + set { Initialize(); AssignOrReplace(ref _connectedEnvironmentStorageAzureFile, value); } + } + private ContainerAppAzureFileProperties? _connectedEnvironmentStorageAzureFile; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerAppConnectedEnvironment. /// - public ContainerAppConnectedEnvironment? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerAppConnectedEnvironment? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerAppConnectedEnvironmentStorage. @@ -60,11 +78,19 @@ public partial class ContainerAppConnectedEnvironmentStorage : ProvisionableReso public ContainerAppConnectedEnvironmentStorage(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.App/connectedEnvironments/storages", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectedEnvironmentStorageAzureFile = BicepValue.DefineProperty(this, "ConnectedEnvironmentStorageAzureFile", ["properties", "azureFile"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppConnectedEnvironmentStorage. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectedEnvironmentStorageAzureFile = DefineModelProperty("ConnectedEnvironmentStorageAzureFile", ["properties", "azureFile"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppJob.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppJob.cs index cfa89067b4c35..d46bf54c4e67d 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppJob.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppJob.cs @@ -21,81 +21,128 @@ public partial class ContainerAppJob : ProvisionableResource /// /// Job Name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Container Apps Job configuration properties. /// - public BicepValue Configuration { get => _configuration; set => _configuration.Assign(value); } - private readonly BicepValue _configuration; + public ContainerAppJobConfiguration Configuration + { + get { Initialize(); return _configuration!; } + set { Initialize(); AssignOrReplace(ref _configuration, value); } + } + private ContainerAppJobConfiguration? _configuration; /// /// Resource ID of environment. /// - public BicepValue EnvironmentId { get => _environmentId; set => _environmentId.Assign(value); } - private readonly BicepValue _environmentId; + public BicepValue EnvironmentId + { + get { Initialize(); return _environmentId!; } + set { Initialize(); _environmentId!.Assign(value); } + } + private BicepValue? _environmentId; /// /// Managed identities needed by a container app job to interact with other /// Azure services to not maintain any secrets or credentials in code. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Container Apps job definition. /// - public BicepValue Template { get => _template; set => _template.Assign(value); } - private readonly BicepValue _template; + public ContainerAppJobTemplate Template + { + get { Initialize(); return _template!; } + set { Initialize(); AssignOrReplace(ref _template, value); } + } + private ContainerAppJobTemplate? _template; /// /// Workload profile name to pin for container apps job execution. /// - public BicepValue WorkloadProfileName { get => _workloadProfileName; set => _workloadProfileName.Assign(value); } - private readonly BicepValue _workloadProfileName; + public BicepValue WorkloadProfileName + { + get { Initialize(); return _workloadProfileName!; } + set { Initialize(); _workloadProfileName!.Assign(value); } + } + private BicepValue? _workloadProfileName; /// /// The endpoint of the eventstream of the container apps job. /// - public BicepValue EventStreamEndpoint { get => _eventStreamEndpoint; } - private readonly BicepValue _eventStreamEndpoint; + public BicepValue EventStreamEndpoint + { + get { Initialize(); return _eventStreamEndpoint!; } + } + private BicepValue? _eventStreamEndpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Outbound IP Addresses of a container apps job. /// - public BicepList OutboundIPAddresses { get => _outboundIPAddresses; } - private readonly BicepList _outboundIPAddresses; + public BicepList OutboundIPAddresses + { + get { Initialize(); return _outboundIPAddresses!; } + } + private BicepList? _outboundIPAddresses; /// /// Provisioning state of the Container Apps Job. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ContainerAppJob. @@ -110,19 +157,26 @@ public partial class ContainerAppJob : ProvisionableResource public ContainerAppJob(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.App/jobs", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _configuration = BicepValue.DefineProperty(this, "Configuration", ["properties", "configuration"]); - _environmentId = BicepValue.DefineProperty(this, "EnvironmentId", ["properties", "environmentId"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _template = BicepValue.DefineProperty(this, "Template", ["properties", "template"]); - _workloadProfileName = BicepValue.DefineProperty(this, "WorkloadProfileName", ["properties", "workloadProfileName"]); - _eventStreamEndpoint = BicepValue.DefineProperty(this, "EventStreamEndpoint", ["properties", "eventStreamEndpoint"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _outboundIPAddresses = BicepList.DefineProperty(this, "OutboundIPAddresses", ["properties", "outboundIpAddresses"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ContainerAppJob. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _configuration = DefineModelProperty("Configuration", ["properties", "configuration"]); + _environmentId = DefineProperty("EnvironmentId", ["properties", "environmentId"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _template = DefineModelProperty("Template", ["properties", "template"]); + _workloadProfileName = DefineProperty("WorkloadProfileName", ["properties", "workloadProfileName"]); + _eventStreamEndpoint = DefineProperty("EventStreamEndpoint", ["properties", "eventStreamEndpoint"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _outboundIPAddresses = DefineListProperty("OutboundIPAddresses", ["properties", "outboundIpAddresses"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedCertificate.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedCertificate.cs index b4da04bc07dd3..c2b948e65c88e 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedCertificate.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedCertificate.cs @@ -21,44 +21,70 @@ public partial class ContainerAppManagedCertificate : ProvisionableResource /// /// Name of the Managed Certificate. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Certificate resource specific properties. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public ManagedCertificateProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private ManagedCertificateProperties? _properties; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerAppManagedEnvironment. /// - public ContainerAppManagedEnvironment? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerAppManagedEnvironment? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerAppManagedCertificate. @@ -73,13 +99,21 @@ public partial class ContainerAppManagedCertificate : ProvisionableResource public ContainerAppManagedCertificate(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.App/managedEnvironments/managedCertificates", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppManagedCertificate. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironment.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironment.cs index 627143efcf0ae..d2f88f4781cab 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironment.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironment.cs @@ -25,42 +25,66 @@ public partial class ContainerAppManagedEnvironment : ProvisionableResource /// /// Name of the Environment. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Cluster configuration which enables the log daemon to export /// app logs to a destination. Currently only /// "log-analytics" is supported /// - public BicepValue AppLogsConfiguration { get => _appLogsConfiguration; set => _appLogsConfiguration.Assign(value); } - private readonly BicepValue _appLogsConfiguration; + public ContainerAppLogsConfiguration AppLogsConfiguration + { + get { Initialize(); return _appLogsConfiguration!; } + set { Initialize(); AssignOrReplace(ref _appLogsConfiguration, value); } + } + private ContainerAppLogsConfiguration? _appLogsConfiguration; /// /// Custom domain configuration for the environment. /// - public BicepValue CustomDomainConfiguration { get => _customDomainConfiguration; set => _customDomainConfiguration.Assign(value); } - private readonly BicepValue _customDomainConfiguration; + public ContainerAppCustomDomainConfiguration CustomDomainConfiguration + { + get { Initialize(); return _customDomainConfiguration!; } + set { Initialize(); AssignOrReplace(ref _customDomainConfiguration, value); } + } + private ContainerAppCustomDomainConfiguration? _customDomainConfiguration; /// /// Application Insights connection string used by Dapr to export Service /// to Service communication telemetry. /// - public BicepValue DaprAIConnectionString { get => _daprAIConnectionString; set => _daprAIConnectionString.Assign(value); } - private readonly BicepValue _daprAIConnectionString; + public BicepValue DaprAIConnectionString + { + get { Initialize(); return _daprAIConnectionString!; } + set { Initialize(); _daprAIConnectionString!.Assign(value); } + } + private BicepValue? _daprAIConnectionString; /// /// Azure Monitor instrumentation key used by Dapr to export Service to /// Service communication telemetry. /// - public BicepValue DaprAIInstrumentationKey { get => _daprAIInstrumentationKey; set => _daprAIInstrumentationKey.Assign(value); } - private readonly BicepValue _daprAIInstrumentationKey; + public BicepValue DaprAIInstrumentationKey + { + get { Initialize(); return _daprAIInstrumentationKey!; } + set { Initialize(); _daprAIInstrumentationKey!.Assign(value); } + } + private BicepValue? _daprAIInstrumentationKey; /// /// Name of the platform-managed resource group created for the Managed @@ -68,104 +92,163 @@ public partial class ContainerAppManagedEnvironment : ProvisionableResource /// provided, this resource group will be created in the same subscription /// as the subnet. /// - public BicepValue InfrastructureResourceGroup { get => _infrastructureResourceGroup; set => _infrastructureResourceGroup.Assign(value); } - private readonly BicepValue _infrastructureResourceGroup; + public BicepValue InfrastructureResourceGroup + { + get { Initialize(); return _infrastructureResourceGroup!; } + set { Initialize(); _infrastructureResourceGroup!.Assign(value); } + } + private BicepValue? _infrastructureResourceGroup; /// /// Boolean indicating whether the peer traffic encryption is enabled. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Boolean indicating whether the mutual TLS authentication is enabled. /// - public BicepValue IsMtlsEnabled { get => _isMtlsEnabled; set => _isMtlsEnabled.Assign(value); } - private readonly BicepValue _isMtlsEnabled; + public BicepValue IsMtlsEnabled + { + get { Initialize(); return _isMtlsEnabled!; } + set { Initialize(); _isMtlsEnabled!.Assign(value); } + } + private BicepValue? _isMtlsEnabled; /// /// Whether or not this Managed Environment is zone-redundant. /// - public BicepValue IsZoneRedundant { get => _isZoneRedundant; set => _isZoneRedundant.Assign(value); } - private readonly BicepValue _isZoneRedundant; + public BicepValue IsZoneRedundant + { + get { Initialize(); return _isZoneRedundant!; } + set { Initialize(); _isZoneRedundant!.Assign(value); } + } + private BicepValue? _isZoneRedundant; /// /// Kind of the Environment. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Vnet configuration for the environment. /// - public BicepValue VnetConfiguration { get => _vnetConfiguration; set => _vnetConfiguration.Assign(value); } - private readonly BicepValue _vnetConfiguration; + public ContainerAppVnetConfiguration VnetConfiguration + { + get { Initialize(); return _vnetConfiguration!; } + set { Initialize(); AssignOrReplace(ref _vnetConfiguration, value); } + } + private ContainerAppVnetConfiguration? _vnetConfiguration; /// /// Workload profiles configured for the Managed Environment. /// - public BicepList WorkloadProfiles { get => _workloadProfiles; set => _workloadProfiles.Assign(value); } - private readonly BicepList _workloadProfiles; + public BicepList WorkloadProfiles + { + get { Initialize(); return _workloadProfiles!; } + set { Initialize(); _workloadProfiles!.Assign(value); } + } + private BicepList? _workloadProfiles; /// /// The version of Dapr. /// - public BicepValue DaprVersion { get => _daprVersion; } - private readonly BicepValue _daprVersion; + public BicepValue DaprVersion + { + get { Initialize(); return _daprVersion!; } + } + private BicepValue? _daprVersion; /// /// Default Domain Name for the cluster. /// - public BicepValue DefaultDomain { get => _defaultDomain; } - private readonly BicepValue _defaultDomain; + public BicepValue DefaultDomain + { + get { Initialize(); return _defaultDomain!; } + } + private BicepValue? _defaultDomain; /// /// Any errors that occurred during deployment or deployment validation. /// - public BicepValue DeploymentErrors { get => _deploymentErrors; } - private readonly BicepValue _deploymentErrors; + public BicepValue DeploymentErrors + { + get { Initialize(); return _deploymentErrors!; } + } + private BicepValue? _deploymentErrors; /// /// The endpoint of the eventstream of the Environment. /// - public BicepValue EventStreamEndpoint { get => _eventStreamEndpoint; } - private readonly BicepValue _eventStreamEndpoint; + public BicepValue EventStreamEndpoint + { + get { Initialize(); return _eventStreamEndpoint!; } + } + private BicepValue? _eventStreamEndpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The version of Keda. /// - public BicepValue KedaVersion { get => _kedaVersion; } - private readonly BicepValue _kedaVersion; + public BicepValue KedaVersion + { + get { Initialize(); return _kedaVersion!; } + } + private BicepValue? _kedaVersion; /// /// Provisioning state of the Environment. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Static IP of the Environment. /// - public BicepValue StaticIP { get => _staticIP; } - private readonly BicepValue _staticIP; + public BicepValue StaticIP + { + get { Initialize(); return _staticIP!; } + } + private BicepValue? _staticIP; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ContainerAppManagedEnvironment. @@ -180,29 +263,37 @@ public partial class ContainerAppManagedEnvironment : ProvisionableResource public ContainerAppManagedEnvironment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.App/managedEnvironments", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _appLogsConfiguration = BicepValue.DefineProperty(this, "AppLogsConfiguration", ["properties", "appLogsConfiguration"]); - _customDomainConfiguration = BicepValue.DefineProperty(this, "CustomDomainConfiguration", ["properties", "customDomainConfiguration"]); - _daprAIConnectionString = BicepValue.DefineProperty(this, "DaprAIConnectionString", ["properties", "daprAIConnectionString"]); - _daprAIInstrumentationKey = BicepValue.DefineProperty(this, "DaprAIInstrumentationKey", ["properties", "daprAIInstrumentationKey"]); - _infrastructureResourceGroup = BicepValue.DefineProperty(this, "InfrastructureResourceGroup", ["properties", "infrastructureResourceGroup"]); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["properties", "peerTrafficConfiguration", "encryption", "enabled"]); - _isMtlsEnabled = BicepValue.DefineProperty(this, "IsMtlsEnabled", ["properties", "peerAuthentication", "mtls", "enabled"]); - _isZoneRedundant = BicepValue.DefineProperty(this, "IsZoneRedundant", ["properties", "zoneRedundant"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _vnetConfiguration = BicepValue.DefineProperty(this, "VnetConfiguration", ["properties", "vnetConfiguration"]); - _workloadProfiles = BicepList.DefineProperty(this, "WorkloadProfiles", ["properties", "workloadProfiles"]); - _daprVersion = BicepValue.DefineProperty(this, "DaprVersion", ["properties", "daprConfiguration", "version"], isOutput: true); - _defaultDomain = BicepValue.DefineProperty(this, "DefaultDomain", ["properties", "defaultDomain"], isOutput: true); - _deploymentErrors = BicepValue.DefineProperty(this, "DeploymentErrors", ["properties", "deploymentErrors"], isOutput: true); - _eventStreamEndpoint = BicepValue.DefineProperty(this, "EventStreamEndpoint", ["properties", "eventStreamEndpoint"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _kedaVersion = BicepValue.DefineProperty(this, "KedaVersion", ["properties", "kedaConfiguration", "version"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _staticIP = BicepValue.DefineProperty(this, "StaticIP", ["properties", "staticIp"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppManagedEnvironment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _appLogsConfiguration = DefineModelProperty("AppLogsConfiguration", ["properties", "appLogsConfiguration"]); + _customDomainConfiguration = DefineModelProperty("CustomDomainConfiguration", ["properties", "customDomainConfiguration"]); + _daprAIConnectionString = DefineProperty("DaprAIConnectionString", ["properties", "daprAIConnectionString"]); + _daprAIInstrumentationKey = DefineProperty("DaprAIInstrumentationKey", ["properties", "daprAIInstrumentationKey"]); + _infrastructureResourceGroup = DefineProperty("InfrastructureResourceGroup", ["properties", "infrastructureResourceGroup"]); + _isEnabled = DefineProperty("IsEnabled", ["properties", "peerTrafficConfiguration", "encryption", "enabled"]); + _isMtlsEnabled = DefineProperty("IsMtlsEnabled", ["properties", "peerAuthentication", "mtls", "enabled"]); + _isZoneRedundant = DefineProperty("IsZoneRedundant", ["properties", "zoneRedundant"]); + _kind = DefineProperty("Kind", ["kind"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _vnetConfiguration = DefineModelProperty("VnetConfiguration", ["properties", "vnetConfiguration"]); + _workloadProfiles = DefineListProperty("WorkloadProfiles", ["properties", "workloadProfiles"]); + _daprVersion = DefineProperty("DaprVersion", ["properties", "daprConfiguration", "version"], isOutput: true); + _defaultDomain = DefineProperty("DefaultDomain", ["properties", "defaultDomain"], isOutput: true); + _deploymentErrors = DefineProperty("DeploymentErrors", ["properties", "deploymentErrors"], isOutput: true); + _eventStreamEndpoint = DefineProperty("EventStreamEndpoint", ["properties", "eventStreamEndpoint"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _kedaVersion = DefineProperty("KedaVersion", ["properties", "kedaConfiguration", "version"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _staticIP = DefineProperty("StaticIP", ["properties", "staticIp"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironmentCertificate.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironmentCertificate.cs index 9ca2fe792d0b2..96362aa316413 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironmentCertificate.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironmentCertificate.cs @@ -21,44 +21,70 @@ public partial class ContainerAppManagedEnvironmentCertificate : ProvisionableRe /// /// Name of the Certificate. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Certificate resource specific properties. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public ContainerAppCertificateProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private ContainerAppCertificateProperties? _properties; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerAppManagedEnvironment. /// - public ContainerAppManagedEnvironment? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerAppManagedEnvironment? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerAppManagedEnvironmentCertificate. @@ -74,13 +100,21 @@ public partial class ContainerAppManagedEnvironmentCertificate : ProvisionableRe public ContainerAppManagedEnvironmentCertificate(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.App/managedEnvironments/certificates", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppManagedEnvironmentCertificate. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironmentDaprComponent.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironmentDaprComponent.cs index 36b200419a506..6618ceb346731 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironmentDaprComponent.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironmentDaprComponent.cs @@ -21,74 +21,120 @@ public partial class ContainerAppManagedEnvironmentDaprComponent : Provisionable /// /// Name of the Dapr Component. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Component type. /// - public BicepValue ComponentType { get => _componentType; set => _componentType.Assign(value); } - private readonly BicepValue _componentType; + public BicepValue ComponentType + { + get { Initialize(); return _componentType!; } + set { Initialize(); _componentType!.Assign(value); } + } + private BicepValue? _componentType; /// /// Boolean describing if the component errors are ignores. /// - public BicepValue IgnoreErrors { get => _ignoreErrors; set => _ignoreErrors.Assign(value); } - private readonly BicepValue _ignoreErrors; + public BicepValue IgnoreErrors + { + get { Initialize(); return _ignoreErrors!; } + set { Initialize(); _ignoreErrors!.Assign(value); } + } + private BicepValue? _ignoreErrors; /// /// Initialization timeout. /// - public BicepValue InitTimeout { get => _initTimeout; set => _initTimeout.Assign(value); } - private readonly BicepValue _initTimeout; + public BicepValue InitTimeout + { + get { Initialize(); return _initTimeout!; } + set { Initialize(); _initTimeout!.Assign(value); } + } + private BicepValue? _initTimeout; /// /// Component metadata. /// - public BicepList Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepList _metadata; + public BicepList Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepList? _metadata; /// /// Names of container apps that can use this Dapr component. /// - public BicepList Scopes { get => _scopes; set => _scopes.Assign(value); } - private readonly BicepList _scopes; + public BicepList Scopes + { + get { Initialize(); return _scopes!; } + set { Initialize(); _scopes!.Assign(value); } + } + private BicepList? _scopes; /// /// Collection of secrets used by a Dapr component. /// - public BicepList Secrets { get => _secrets; set => _secrets.Assign(value); } - private readonly BicepList _secrets; + public BicepList Secrets + { + get { Initialize(); return _secrets!; } + set { Initialize(); _secrets!.Assign(value); } + } + private BicepList? _secrets; /// /// Name of a Dapr component to retrieve component secrets from. /// - public BicepValue SecretStoreComponent { get => _secretStoreComponent; set => _secretStoreComponent.Assign(value); } - private readonly BicepValue _secretStoreComponent; + public BicepValue SecretStoreComponent + { + get { Initialize(); return _secretStoreComponent!; } + set { Initialize(); _secretStoreComponent!.Assign(value); } + } + private BicepValue? _secretStoreComponent; /// /// Component version. /// - public BicepValue Version { get => _version; set => _version.Assign(value); } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + set { Initialize(); _version!.Assign(value); } + } + private BicepValue? _version; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerAppManagedEnvironment. /// - public ContainerAppManagedEnvironment? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerAppManagedEnvironment? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerAppManagedEnvironmentDaprComponent. @@ -104,18 +150,26 @@ public partial class ContainerAppManagedEnvironmentDaprComponent : Provisionable public ContainerAppManagedEnvironmentDaprComponent(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.App/managedEnvironments/daprComponents", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _componentType = BicepValue.DefineProperty(this, "ComponentType", ["properties", "componentType"]); - _ignoreErrors = BicepValue.DefineProperty(this, "IgnoreErrors", ["properties", "ignoreErrors"]); - _initTimeout = BicepValue.DefineProperty(this, "InitTimeout", ["properties", "initTimeout"]); - _metadata = BicepList.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _scopes = BicepList.DefineProperty(this, "Scopes", ["properties", "scopes"]); - _secrets = BicepList.DefineProperty(this, "Secrets", ["properties", "secrets"]); - _secretStoreComponent = BicepValue.DefineProperty(this, "SecretStoreComponent", ["properties", "secretStoreComponent"]); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppManagedEnvironmentDaprComponent. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _componentType = DefineProperty("ComponentType", ["properties", "componentType"]); + _ignoreErrors = DefineProperty("IgnoreErrors", ["properties", "ignoreErrors"]); + _initTimeout = DefineProperty("InitTimeout", ["properties", "initTimeout"]); + _metadata = DefineListProperty("Metadata", ["properties", "metadata"]); + _scopes = DefineListProperty("Scopes", ["properties", "scopes"]); + _secrets = DefineListProperty("Secrets", ["properties", "secrets"]); + _secretStoreComponent = DefineProperty("SecretStoreComponent", ["properties", "secretStoreComponent"]); + _version = DefineProperty("Version", ["properties", "version"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironmentStorage.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironmentStorage.cs index 4dd3a6dc43025..cf895e39f992c 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironmentStorage.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppManagedEnvironmentStorage.cs @@ -20,32 +20,50 @@ public partial class ContainerAppManagedEnvironmentStorage : ProvisionableResour /// /// Name of the storage. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Azure file properties. /// - public BicepValue ManagedEnvironmentStorageAzureFile { get => _managedEnvironmentStorageAzureFile; set => _managedEnvironmentStorageAzureFile.Assign(value); } - private readonly BicepValue _managedEnvironmentStorageAzureFile; + public ContainerAppAzureFileProperties ManagedEnvironmentStorageAzureFile + { + get { Initialize(); return _managedEnvironmentStorageAzureFile!; } + set { Initialize(); AssignOrReplace(ref _managedEnvironmentStorageAzureFile, value); } + } + private ContainerAppAzureFileProperties? _managedEnvironmentStorageAzureFile; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerAppManagedEnvironment. /// - public ContainerAppManagedEnvironment? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerAppManagedEnvironment? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerAppManagedEnvironmentStorage. @@ -60,11 +78,19 @@ public partial class ContainerAppManagedEnvironmentStorage : ProvisionableResour public ContainerAppManagedEnvironmentStorage(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.App/managedEnvironments/storages", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _managedEnvironmentStorageAzureFile = BicepValue.DefineProperty(this, "ManagedEnvironmentStorageAzureFile", ["properties", "azureFile"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppManagedEnvironmentStorage. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _managedEnvironmentStorageAzureFile = DefineModelProperty("ManagedEnvironmentStorageAzureFile", ["properties", "azureFile"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppSourceControl.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppSourceControl.cs index cd3c8e630b7c1..4457fb9c51cea 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppSourceControl.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/ContainerAppSourceControl.cs @@ -20,52 +20,81 @@ public partial class ContainerAppSourceControl : ProvisionableResource /// /// Name of the Container App SourceControl. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The branch which will trigger the auto deployment. /// - public BicepValue Branch { get => _branch; set => _branch.Assign(value); } - private readonly BicepValue _branch; + public BicepValue Branch + { + get { Initialize(); return _branch!; } + set { Initialize(); _branch!.Assign(value); } + } + private BicepValue? _branch; /// /// Container App Revision Template with all possible settings and the /// defaults if user did not provide them. The defaults are /// populated as they were at the creation time /// - public BicepValue GitHubActionConfiguration { get => _gitHubActionConfiguration; set => _gitHubActionConfiguration.Assign(value); } - private readonly BicepValue _gitHubActionConfiguration; + public ContainerAppGitHubActionConfiguration GitHubActionConfiguration + { + get { Initialize(); return _gitHubActionConfiguration!; } + set { Initialize(); AssignOrReplace(ref _gitHubActionConfiguration, value); } + } + private ContainerAppGitHubActionConfiguration? _gitHubActionConfiguration; /// /// The repo url which will be integrated to ContainerApp. /// - public BicepValue RepoUri { get => _repoUri; set => _repoUri.Assign(value); } - private readonly BicepValue _repoUri; + public BicepValue RepoUri + { + get { Initialize(); return _repoUri!; } + set { Initialize(); _repoUri!.Assign(value); } + } + private BicepValue? _repoUri; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Current provisioning State of the operation. /// - public BicepValue OperationState { get => _operationState; } - private readonly BicepValue _operationState; + public BicepValue OperationState + { + get { Initialize(); return _operationState!; } + } + private BicepValue? _operationState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerApp. /// - public ContainerApp? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerApp? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerAppSourceControl. @@ -80,14 +109,21 @@ public partial class ContainerAppSourceControl : ProvisionableResource public ContainerAppSourceControl(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.App/containerApps/sourcecontrols", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _branch = BicepValue.DefineProperty(this, "Branch", ["properties", "branch"]); - _gitHubActionConfiguration = BicepValue.DefineProperty(this, "GitHubActionConfiguration", ["properties", "githubActionConfiguration"]); - _repoUri = BicepValue.DefineProperty(this, "RepoUri", ["properties", "repoUrl"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _operationState = BicepValue.DefineProperty(this, "OperationState", ["properties", "operationState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ContainerAppSourceControl. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _branch = DefineProperty("Branch", ["properties", "branch"]); + _gitHubActionConfiguration = DefineModelProperty("GitHubActionConfiguration", ["properties", "githubActionConfiguration"]); + _repoUri = DefineProperty("RepoUri", ["properties", "repoUrl"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _operationState = DefineProperty("OperationState", ["properties", "operationState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/AppContainerResources.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/AppContainerResources.cs index 8c4ee12b4a810..e65f8878544c9 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/AppContainerResources.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/AppContainerResources.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,47 @@ public partial class AppContainerResources : ProvisionableConstruct /// /// Required CPU in cores, e.g. 0.5. /// - public BicepValue Cpu { get => _cpu; set => _cpu.Assign(value); } - private readonly BicepValue _cpu; + public BicepValue Cpu + { + get { Initialize(); return _cpu!; } + set { Initialize(); _cpu!.Assign(value); } + } + private BicepValue? _cpu; /// /// Required memory, e.g. "250Mb". /// - public BicepValue Memory { get => _memory; set => _memory.Assign(value); } - private readonly BicepValue _memory; + public BicepValue Memory + { + get { Initialize(); return _memory!; } + set { Initialize(); _memory!.Assign(value); } + } + private BicepValue? _memory; /// /// Ephemeral Storage, e.g. "1Gi". /// - public BicepValue EphemeralStorage { get => _ephemeralStorage; } - private readonly BicepValue _ephemeralStorage; + public BicepValue EphemeralStorage + { + get { Initialize(); return _ephemeralStorage!; } + } + private BicepValue? _ephemeralStorage; /// /// Creates a new AppContainerResources. /// public AppContainerResources() { - _cpu = BicepValue.DefineProperty(this, "Cpu", ["cpu"]); - _memory = BicepValue.DefineProperty(this, "Memory", ["memory"]); - _ephemeralStorage = BicepValue.DefineProperty(this, "EphemeralStorage", ["ephemeralStorage"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AppContainerResources. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _cpu = DefineProperty("Cpu", ["cpu"]); + _memory = DefineProperty("Memory", ["memory"]); + _ephemeralStorage = DefineProperty("EphemeralStorage", ["ephemeralStorage"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAllowedPrincipals.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAllowedPrincipals.cs index 3bd28afb956ed..34fdb863e0cf9 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAllowedPrincipals.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAllowedPrincipals.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class ContainerAppAllowedPrincipals : ProvisionableConstruct /// /// The list of the allowed groups. /// - public BicepList Groups { get => _groups; set => _groups.Assign(value); } - private readonly BicepList _groups; + public BicepList Groups + { + get { Initialize(); return _groups!; } + set { Initialize(); _groups!.Assign(value); } + } + private BicepList? _groups; /// /// The list of the allowed identities. /// - public BicepList Identities { get => _identities; set => _identities.Assign(value); } - private readonly BicepList _identities; + public BicepList Identities + { + get { Initialize(); return _identities!; } + set { Initialize(); _identities!.Assign(value); } + } + private BicepList? _identities; /// /// Creates a new ContainerAppAllowedPrincipals. /// public ContainerAppAllowedPrincipals() { - _groups = BicepList.DefineProperty(this, "Groups", ["groups"]); - _identities = BicepList.DefineProperty(this, "Identities", ["identities"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppAllowedPrincipals. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _groups = DefineListProperty("Groups", ["groups"]); + _identities = DefineListProperty("Identities", ["identities"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAppleConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAppleConfiguration.cs index b5f74c9b5b734..f7f32f67ca07c 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAppleConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAppleConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,28 +21,49 @@ public partial class ContainerAppAppleConfiguration : ProvisionableConstruct /// enabled despite the set registration; otherwise, /// <code>true</code>. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// The configuration settings of the Apple registration. /// - public BicepValue Registration { get => _registration; set => _registration.Assign(value); } - private readonly BicepValue _registration; + public ContainerAppAppleRegistrationConfiguration Registration + { + get { Initialize(); return _registration!; } + set { Initialize(); AssignOrReplace(ref _registration, value); } + } + private ContainerAppAppleRegistrationConfiguration? _registration; /// /// A list of the scopes that should be requested while authenticating. /// - public BicepList LoginScopes { get => _loginScopes; set => _loginScopes.Assign(value); } - private readonly BicepList _loginScopes; + public BicepList LoginScopes + { + get { Initialize(); return _loginScopes!; } + set { Initialize(); _loginScopes!.Assign(value); } + } + private BicepList? _loginScopes; /// /// Creates a new ContainerAppAppleConfiguration. /// public ContainerAppAppleConfiguration() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _registration = BicepValue.DefineProperty(this, "Registration", ["registration"]); - _loginScopes = BicepList.DefineProperty(this, "LoginScopes", ["login", "scopes"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppAppleConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _registration = DefineModelProperty("Registration", ["registration"]); + _loginScopes = DefineListProperty("LoginScopes", ["login", "scopes"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAppleRegistrationConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAppleRegistrationConfiguration.cs index ee34ca544e700..5bd6d222710bf 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAppleRegistrationConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAppleRegistrationConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class ContainerAppAppleRegistrationConfiguration : ProvisionableC /// /// The Client ID of the app used for login. /// - public BicepValue ClientId { get => _clientId; set => _clientId.Assign(value); } - private readonly BicepValue _clientId; + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + set { Initialize(); _clientId!.Assign(value); } + } + private BicepValue? _clientId; /// /// The app setting name that contains the client secret. /// - public BicepValue ClientSecretSettingName { get => _clientSecretSettingName; set => _clientSecretSettingName.Assign(value); } - private readonly BicepValue _clientSecretSettingName; + public BicepValue ClientSecretSettingName + { + get { Initialize(); return _clientSecretSettingName!; } + set { Initialize(); _clientSecretSettingName!.Assign(value); } + } + private BicepValue? _clientSecretSettingName; /// /// Creates a new ContainerAppAppleRegistrationConfiguration. /// public ContainerAppAppleRegistrationConfiguration() { - _clientId = BicepValue.DefineProperty(this, "ClientId", ["clientId"]); - _clientSecretSettingName = BicepValue.DefineProperty(this, "ClientSecretSettingName", ["clientSecretSettingName"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppAppleRegistrationConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _clientId = DefineProperty("ClientId", ["clientId"]); + _clientSecretSettingName = DefineProperty("ClientSecretSettingName", ["clientSecretSettingName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAuthPlatform.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAuthPlatform.cs index 89b4e0759e7a5..99df8350ee75c 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAuthPlatform.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAuthPlatform.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,8 +21,12 @@ public partial class ContainerAppAuthPlatform : ProvisionableConstruct /// feature is enabled for the current app; otherwise, /// <code>false</code>. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// The RuntimeVersion of the Authentication / Authorization feature in use @@ -28,15 +34,27 @@ public partial class ContainerAppAuthPlatform : ProvisionableConstruct /// the behavior of certain features in the Authentication / Authorization /// module. /// - public BicepValue RuntimeVersion { get => _runtimeVersion; set => _runtimeVersion.Assign(value); } - private readonly BicepValue _runtimeVersion; + public BicepValue RuntimeVersion + { + get { Initialize(); return _runtimeVersion!; } + set { Initialize(); _runtimeVersion!.Assign(value); } + } + private BicepValue? _runtimeVersion; /// /// Creates a new ContainerAppAuthPlatform. /// public ContainerAppAuthPlatform() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _runtimeVersion = BicepValue.DefineProperty(this, "RuntimeVersion", ["runtimeVersion"]); + } + + /// + /// Define all the provisionable properties of ContainerAppAuthPlatform. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _runtimeVersion = DefineProperty("RuntimeVersion", ["runtimeVersion"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryConfiguration.cs index fe8947d01bc9f..ff0b65f50bc85 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,28 +21,44 @@ public partial class ContainerAppAzureActiveDirectoryConfiguration : Provisionab /// should not be enabled despite the set registration; otherwise, /// <code>true</code>. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// The configuration settings of the Azure Active Directory app /// registration. /// - public BicepValue Registration { get => _registration; set => _registration.Assign(value); } - private readonly BicepValue _registration; + public ContainerAppAzureActiveDirectoryRegistrationConfiguration Registration + { + get { Initialize(); return _registration!; } + set { Initialize(); AssignOrReplace(ref _registration, value); } + } + private ContainerAppAzureActiveDirectoryRegistrationConfiguration? _registration; /// /// The configuration settings of the Azure Active Directory login flow. /// - public BicepValue Login { get => _login; set => _login.Assign(value); } - private readonly BicepValue _login; + public ContainerAppAzureActiveDirectoryLoginConfiguration Login + { + get { Initialize(); return _login!; } + set { Initialize(); AssignOrReplace(ref _login, value); } + } + private ContainerAppAzureActiveDirectoryLoginConfiguration? _login; /// /// The configuration settings of the Azure Active Directory token /// validation flow. /// - public BicepValue Validation { get => _validation; set => _validation.Assign(value); } - private readonly BicepValue _validation; + public ContainerAppAzureActiveDirectoryValidationConfiguration Validation + { + get { Initialize(); return _validation!; } + set { Initialize(); AssignOrReplace(ref _validation, value); } + } + private ContainerAppAzureActiveDirectoryValidationConfiguration? _validation; /// /// Gets a value indicating whether the Azure AD configuration was @@ -48,18 +66,31 @@ public partial class ContainerAppAzureActiveDirectoryConfiguration : Provisionab /// internal flag primarily intended to support the Azure Management /// Portal. Users should not read or write to this property. /// - public BicepValue IsAutoProvisioned { get => _isAutoProvisioned; set => _isAutoProvisioned.Assign(value); } - private readonly BicepValue _isAutoProvisioned; + public BicepValue IsAutoProvisioned + { + get { Initialize(); return _isAutoProvisioned!; } + set { Initialize(); _isAutoProvisioned!.Assign(value); } + } + private BicepValue? _isAutoProvisioned; /// /// Creates a new ContainerAppAzureActiveDirectoryConfiguration. /// public ContainerAppAzureActiveDirectoryConfiguration() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _registration = BicepValue.DefineProperty(this, "Registration", ["registration"]); - _login = BicepValue.DefineProperty(this, "Login", ["login"]); - _validation = BicepValue.DefineProperty(this, "Validation", ["validation"]); - _isAutoProvisioned = BicepValue.DefineProperty(this, "IsAutoProvisioned", ["isAutoProvisioned"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppAzureActiveDirectoryConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _registration = DefineModelProperty("Registration", ["registration"]); + _login = DefineModelProperty("Login", ["login"]); + _validation = DefineModelProperty("Validation", ["validation"]); + _isAutoProvisioned = DefineProperty("IsAutoProvisioned", ["isAutoProvisioned"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryLoginConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryLoginConfiguration.cs index 245a1836ace1d..447549612d3f1 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryLoginConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryLoginConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,22 +21,39 @@ public partial class ContainerAppAzureActiveDirectoryLoginConfiguration : Provis /// when a user logs in. Each parameter must be in the form /// "key=value". /// - public BicepList LoginParameters { get => _loginParameters; set => _loginParameters.Assign(value); } - private readonly BicepList _loginParameters; + public BicepList LoginParameters + { + get { Initialize(); return _loginParameters!; } + set { Initialize(); _loginParameters!.Assign(value); } + } + private BicepList? _loginParameters; /// /// <code>true</code> if the www-authenticate provider should /// be omitted from the request; otherwise, <code>false</code>. /// - public BicepValue IsWwwAuthenticationDisabled { get => _isWwwAuthenticationDisabled; set => _isWwwAuthenticationDisabled.Assign(value); } - private readonly BicepValue _isWwwAuthenticationDisabled; + public BicepValue IsWwwAuthenticationDisabled + { + get { Initialize(); return _isWwwAuthenticationDisabled!; } + set { Initialize(); _isWwwAuthenticationDisabled!.Assign(value); } + } + private BicepValue? _isWwwAuthenticationDisabled; /// /// Creates a new ContainerAppAzureActiveDirectoryLoginConfiguration. /// public ContainerAppAzureActiveDirectoryLoginConfiguration() { - _loginParameters = BicepList.DefineProperty(this, "LoginParameters", ["loginParameters"]); - _isWwwAuthenticationDisabled = BicepValue.DefineProperty(this, "IsWwwAuthenticationDisabled", ["disableWWWAuthenticate"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppAzureActiveDirectoryLoginConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _loginParameters = DefineListProperty("LoginParameters", ["loginParameters"]); + _isWwwAuthenticationDisabled = DefineProperty("IsWwwAuthenticationDisabled", ["disableWWWAuthenticate"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryRegistrationConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryRegistrationConfiguration.cs index 2c48564875796..d9e2a62935b4f 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryRegistrationConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryRegistrationConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -22,8 +24,12 @@ public partial class ContainerAppAzureActiveDirectoryRegistrationConfiguration : /// issuer. More information on OpenID Connect Discovery: /// http://openid.net/specs/openid-connect-discovery-1_0.html /// - public BicepValue OpenIdIssuer { get => _openIdIssuer; set => _openIdIssuer.Assign(value); } - private readonly BicepValue _openIdIssuer; + public BicepValue OpenIdIssuer + { + get { Initialize(); return _openIdIssuer!; } + set { Initialize(); _openIdIssuer!.Assign(value); } + } + private BicepValue? _openIdIssuer; /// /// The Client ID of this relying party application, known as the @@ -33,23 +39,35 @@ public partial class ContainerAppAzureActiveDirectoryRegistrationConfiguration : /// information on OpenID Connect: /// http://openid.net/specs/openid-connect-core-1_0.html /// - public BicepValue ClientId { get => _clientId; set => _clientId.Assign(value); } - private readonly BicepValue _clientId; + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + set { Initialize(); _clientId!.Assign(value); } + } + private BicepValue? _clientId; /// /// The app setting name that contains the client secret of the relying /// party application. /// - public BicepValue ClientSecretSettingName { get => _clientSecretSettingName; set => _clientSecretSettingName.Assign(value); } - private readonly BicepValue _clientSecretSettingName; + public BicepValue ClientSecretSettingName + { + get { Initialize(); return _clientSecretSettingName!; } + set { Initialize(); _clientSecretSettingName!.Assign(value); } + } + private BicepValue? _clientSecretSettingName; /// /// An alternative to the client secret, that is the thumbprint of a /// certificate used for signing purposes. This property acts as /// a replacement for the Client Secret. It is also optional. /// - public BicepValue ClientSecretCertificateThumbprint { get => _clientSecretCertificateThumbprint; set => _clientSecretCertificateThumbprint.Assign(value); } - private readonly BicepValue _clientSecretCertificateThumbprint; + public BicepValue ClientSecretCertificateThumbprint + { + get { Initialize(); return _clientSecretCertificateThumbprint!; } + set { Initialize(); _clientSecretCertificateThumbprint!.Assign(value); } + } + private BicepValue? _clientSecretCertificateThumbprint; /// /// An alternative to the client secret thumbprint, that is the subject @@ -57,8 +75,12 @@ public partial class ContainerAppAzureActiveDirectoryRegistrationConfiguration : /// property acts as a replacement for the Client Secret /// Certificate Thumbprint. It is also optional. /// - public BicepValue ClientSecretCertificateSubjectAlternativeName { get => _clientSecretCertificateSubjectAlternativeName; set => _clientSecretCertificateSubjectAlternativeName.Assign(value); } - private readonly BicepValue _clientSecretCertificateSubjectAlternativeName; + public BicepValue ClientSecretCertificateSubjectAlternativeName + { + get { Initialize(); return _clientSecretCertificateSubjectAlternativeName!; } + set { Initialize(); _clientSecretCertificateSubjectAlternativeName!.Assign(value); } + } + private BicepValue? _clientSecretCertificateSubjectAlternativeName; /// /// An alternative to the client secret thumbprint, that is the issuer of a @@ -66,19 +88,32 @@ public partial class ContainerAppAzureActiveDirectoryRegistrationConfiguration : /// a replacement for the Client Secret Certificate /// Thumbprint. It is also optional. /// - public BicepValue ClientSecretCertificateIssuer { get => _clientSecretCertificateIssuer; set => _clientSecretCertificateIssuer.Assign(value); } - private readonly BicepValue _clientSecretCertificateIssuer; + public BicepValue ClientSecretCertificateIssuer + { + get { Initialize(); return _clientSecretCertificateIssuer!; } + set { Initialize(); _clientSecretCertificateIssuer!.Assign(value); } + } + private BicepValue? _clientSecretCertificateIssuer; /// /// Creates a new ContainerAppAzureActiveDirectoryRegistrationConfiguration. /// public ContainerAppAzureActiveDirectoryRegistrationConfiguration() { - _openIdIssuer = BicepValue.DefineProperty(this, "OpenIdIssuer", ["openIdIssuer"]); - _clientId = BicepValue.DefineProperty(this, "ClientId", ["clientId"]); - _clientSecretSettingName = BicepValue.DefineProperty(this, "ClientSecretSettingName", ["clientSecretSettingName"]); - _clientSecretCertificateThumbprint = BicepValue.DefineProperty(this, "ClientSecretCertificateThumbprint", ["clientSecretCertificateThumbprint"]); - _clientSecretCertificateSubjectAlternativeName = BicepValue.DefineProperty(this, "ClientSecretCertificateSubjectAlternativeName", ["clientSecretCertificateSubjectAlternativeName"]); - _clientSecretCertificateIssuer = BicepValue.DefineProperty(this, "ClientSecretCertificateIssuer", ["clientSecretCertificateIssuer"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppAzureActiveDirectoryRegistrationConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _openIdIssuer = DefineProperty("OpenIdIssuer", ["openIdIssuer"]); + _clientId = DefineProperty("ClientId", ["clientId"]); + _clientSecretSettingName = DefineProperty("ClientSecretSettingName", ["clientSecretSettingName"]); + _clientSecretCertificateThumbprint = DefineProperty("ClientSecretCertificateThumbprint", ["clientSecretCertificateThumbprint"]); + _clientSecretCertificateSubjectAlternativeName = DefineProperty("ClientSecretCertificateSubjectAlternativeName", ["clientSecretCertificateSubjectAlternativeName"]); + _clientSecretCertificateIssuer = DefineProperty("ClientSecretCertificateIssuer", ["clientSecretCertificateIssuer"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryValidationConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryValidationConfiguration.cs index 7c6a7faaa546d..33aae6e2f230b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryValidationConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryValidationConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,29 +21,50 @@ public partial class ContainerAppAzureActiveDirectoryValidationConfiguration : P /// The configuration settings of the checks that should be made while /// validating the JWT Claims. /// - public BicepValue JwtClaimChecks { get => _jwtClaimChecks; set => _jwtClaimChecks.Assign(value); } - private readonly BicepValue _jwtClaimChecks; + public ContainerAppJwtClaimChecks JwtClaimChecks + { + get { Initialize(); return _jwtClaimChecks!; } + set { Initialize(); AssignOrReplace(ref _jwtClaimChecks, value); } + } + private ContainerAppJwtClaimChecks? _jwtClaimChecks; /// /// The list of audiences that can make successful /// authentication/authorization requests. /// - public BicepList AllowedAudiences { get => _allowedAudiences; set => _allowedAudiences.Assign(value); } - private readonly BicepList _allowedAudiences; + public BicepList AllowedAudiences + { + get { Initialize(); return _allowedAudiences!; } + set { Initialize(); _allowedAudiences!.Assign(value); } + } + private BicepList? _allowedAudiences; /// /// The configuration settings of the default authorization policy. /// - public BicepValue DefaultAuthorizationPolicy { get => _defaultAuthorizationPolicy; set => _defaultAuthorizationPolicy.Assign(value); } - private readonly BicepValue _defaultAuthorizationPolicy; + public ContainerAppDefaultAuthorizationPolicy DefaultAuthorizationPolicy + { + get { Initialize(); return _defaultAuthorizationPolicy!; } + set { Initialize(); AssignOrReplace(ref _defaultAuthorizationPolicy, value); } + } + private ContainerAppDefaultAuthorizationPolicy? _defaultAuthorizationPolicy; /// /// Creates a new ContainerAppAzureActiveDirectoryValidationConfiguration. /// public ContainerAppAzureActiveDirectoryValidationConfiguration() { - _jwtClaimChecks = BicepValue.DefineProperty(this, "JwtClaimChecks", ["jwtClaimChecks"]); - _allowedAudiences = BicepList.DefineProperty(this, "AllowedAudiences", ["allowedAudiences"]); - _defaultAuthorizationPolicy = BicepValue.DefineProperty(this, "DefaultAuthorizationPolicy", ["defaultAuthorizationPolicy"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppAzureActiveDirectoryValidationConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _jwtClaimChecks = DefineModelProperty("JwtClaimChecks", ["jwtClaimChecks"]); + _allowedAudiences = DefineListProperty("AllowedAudiences", ["allowedAudiences"]); + _defaultAuthorizationPolicy = DefineModelProperty("DefaultAuthorizationPolicy", ["defaultAuthorizationPolicy"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureFileProperties.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureFileProperties.cs index 297f4ce44fe7c..b27ffaced74c7 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureFileProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureFileProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,60 @@ public partial class ContainerAppAzureFileProperties : ProvisionableConstruct /// /// Storage account name for azure file. /// - public BicepValue AccountName { get => _accountName; set => _accountName.Assign(value); } - private readonly BicepValue _accountName; + public BicepValue AccountName + { + get { Initialize(); return _accountName!; } + set { Initialize(); _accountName!.Assign(value); } + } + private BicepValue? _accountName; /// /// Storage account key for azure file. /// - public BicepValue AccountKey { get => _accountKey; set => _accountKey.Assign(value); } - private readonly BicepValue _accountKey; + public BicepValue AccountKey + { + get { Initialize(); return _accountKey!; } + set { Initialize(); _accountKey!.Assign(value); } + } + private BicepValue? _accountKey; /// /// Access mode for storage. /// - public BicepValue AccessMode { get => _accessMode; set => _accessMode.Assign(value); } - private readonly BicepValue _accessMode; + public BicepValue AccessMode + { + get { Initialize(); return _accessMode!; } + set { Initialize(); _accessMode!.Assign(value); } + } + private BicepValue? _accessMode; /// /// Azure file share name. /// - public BicepValue ShareName { get => _shareName; set => _shareName.Assign(value); } - private readonly BicepValue _shareName; + public BicepValue ShareName + { + get { Initialize(); return _shareName!; } + set { Initialize(); _shareName!.Assign(value); } + } + private BicepValue? _shareName; /// /// Creates a new ContainerAppAzureFileProperties. /// public ContainerAppAzureFileProperties() { - _accountName = BicepValue.DefineProperty(this, "AccountName", ["accountName"]); - _accountKey = BicepValue.DefineProperty(this, "AccountKey", ["accountKey"]); - _accessMode = BicepValue.DefineProperty(this, "AccessMode", ["accessMode"]); - _shareName = BicepValue.DefineProperty(this, "ShareName", ["shareName"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppAzureFileProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _accountName = DefineProperty("AccountName", ["accountName"]); + _accountKey = DefineProperty("AccountKey", ["accountKey"]); + _accessMode = DefineProperty("AccessMode", ["accessMode"]); + _shareName = DefineProperty("ShareName", ["shareName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureStaticWebAppsConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureStaticWebAppsConfiguration.cs index cf9458cbfed36..5416165a2ca31 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureStaticWebAppsConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppAzureStaticWebAppsConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,38 @@ public partial class ContainerAppAzureStaticWebAppsConfiguration : Provisionable /// should not be enabled despite the set registration; otherwise, /// <code>true</code>. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// The Client ID of the app used for login. /// - public BicepValue RegistrationClientId { get => _registrationClientId; set => _registrationClientId.Assign(value); } - private readonly BicepValue _registrationClientId; + public BicepValue RegistrationClientId + { + get { Initialize(); return _registrationClientId!; } + set { Initialize(); _registrationClientId!.Assign(value); } + } + private BicepValue? _registrationClientId; /// /// Creates a new ContainerAppAzureStaticWebAppsConfiguration. /// public ContainerAppAzureStaticWebAppsConfiguration() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _registrationClientId = BicepValue.DefineProperty(this, "RegistrationClientId", ["registration", "clientId"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppAzureStaticWebAppsConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _registrationClientId = DefineProperty("RegistrationClientId", ["registration", "clientId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCertificateProperties.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCertificateProperties.cs index dde760c4019e9..dae8c02b7f15f 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCertificateProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCertificateProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,84 +19,128 @@ public partial class ContainerAppCertificateProperties : ProvisionableConstruct /// /// Provisioning state of the certificate. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Certificate password. /// - public BicepValue Password { get => _password; set => _password.Assign(value); } - private readonly BicepValue _password; + public BicepValue Password + { + get { Initialize(); return _password!; } + set { Initialize(); _password!.Assign(value); } + } + private BicepValue? _password; /// /// Subject name of the certificate. /// - public BicepValue SubjectName { get => _subjectName; } - private readonly BicepValue _subjectName; + public BicepValue SubjectName + { + get { Initialize(); return _subjectName!; } + } + private BicepValue? _subjectName; /// /// Subject alternative names the certificate applies to. /// - public BicepList SubjectAlternativeNames { get => _subjectAlternativeNames; } - private readonly BicepList _subjectAlternativeNames; + public BicepList SubjectAlternativeNames + { + get { Initialize(); return _subjectAlternativeNames!; } + } + private BicepList? _subjectAlternativeNames; /// /// PFX or PEM blob. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Certificate issuer. /// - public BicepValue Issuer { get => _issuer; } - private readonly BicepValue _issuer; + public BicepValue Issuer + { + get { Initialize(); return _issuer!; } + } + private BicepValue? _issuer; /// /// Certificate issue Date. /// - public BicepValue IssueOn { get => _issueOn; } - private readonly BicepValue _issueOn; + public BicepValue IssueOn + { + get { Initialize(); return _issueOn!; } + } + private BicepValue? _issueOn; /// /// Certificate expiration date. /// - public BicepValue ExpireOn { get => _expireOn; } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + } + private BicepValue? _expireOn; /// /// Certificate thumbprint. /// - public BicepValue Thumbprint { get => _thumbprint; } - private readonly BicepValue _thumbprint; + public BicepValue Thumbprint + { + get { Initialize(); return _thumbprint!; } + } + private BicepValue? _thumbprint; /// /// Is the certificate valid?. /// - public BicepValue IsValid { get => _isValid; } - private readonly BicepValue _isValid; + public BicepValue IsValid + { + get { Initialize(); return _isValid!; } + } + private BicepValue? _isValid; /// /// Public key hash. /// - public BicepValue PublicKeyHash { get => _publicKeyHash; } - private readonly BicepValue _publicKeyHash; + public BicepValue PublicKeyHash + { + get { Initialize(); return _publicKeyHash!; } + } + private BicepValue? _publicKeyHash; /// /// Creates a new ContainerAppCertificateProperties. /// public ContainerAppCertificateProperties() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); - _password = BicepValue.DefineProperty(this, "Password", ["password"]); - _subjectName = BicepValue.DefineProperty(this, "SubjectName", ["subjectName"], isOutput: true); - _subjectAlternativeNames = BicepList.DefineProperty(this, "SubjectAlternativeNames", ["subjectAlternativeNames"], isOutput: true); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _issuer = BicepValue.DefineProperty(this, "Issuer", ["issuer"], isOutput: true); - _issueOn = BicepValue.DefineProperty(this, "IssueOn", ["issueDate"], isOutput: true); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["expirationDate"], isOutput: true); - _thumbprint = BicepValue.DefineProperty(this, "Thumbprint", ["thumbprint"], isOutput: true); - _isValid = BicepValue.DefineProperty(this, "IsValid", ["valid"], isOutput: true); - _publicKeyHash = BicepValue.DefineProperty(this, "PublicKeyHash", ["publicKeyHash"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppCertificateProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _password = DefineProperty("Password", ["password"]); + _subjectName = DefineProperty("SubjectName", ["subjectName"], isOutput: true); + _subjectAlternativeNames = DefineListProperty("SubjectAlternativeNames", ["subjectAlternativeNames"], isOutput: true); + _value = DefineProperty("Value", ["value"]); + _issuer = DefineProperty("Issuer", ["issuer"], isOutput: true); + _issueOn = DefineProperty("IssueOn", ["issueDate"], isOutput: true); + _expireOn = DefineProperty("ExpireOn", ["expirationDate"], isOutput: true); + _thumbprint = DefineProperty("Thumbprint", ["thumbprint"], isOutput: true); + _isValid = DefineProperty("IsValid", ["valid"], isOutput: true); + _publicKeyHash = DefineProperty("PublicKeyHash", ["publicKeyHash"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppClientRegistration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppClientRegistration.cs index a41d14a24420d..b057493038cd6 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppClientRegistration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppClientRegistration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class ContainerAppClientRegistration : ProvisionableConstruct /// /// The Client ID of the app used for login. /// - public BicepValue ClientId { get => _clientId; set => _clientId.Assign(value); } - private readonly BicepValue _clientId; + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + set { Initialize(); _clientId!.Assign(value); } + } + private BicepValue? _clientId; /// /// The app setting name that contains the client secret. /// - public BicepValue ClientSecretSettingName { get => _clientSecretSettingName; set => _clientSecretSettingName.Assign(value); } - private readonly BicepValue _clientSecretSettingName; + public BicepValue ClientSecretSettingName + { + get { Initialize(); return _clientSecretSettingName!; } + set { Initialize(); _clientSecretSettingName!.Assign(value); } + } + private BicepValue? _clientSecretSettingName; /// /// Creates a new ContainerAppClientRegistration. /// public ContainerAppClientRegistration() { - _clientId = BicepValue.DefineProperty(this, "ClientId", ["clientId"]); - _clientSecretSettingName = BicepValue.DefineProperty(this, "ClientSecretSettingName", ["clientSecretSettingName"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppClientRegistration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _clientId = DefineProperty("ClientId", ["clientId"]); + _clientSecretSettingName = DefineProperty("ClientSecretSettingName", ["clientSecretSettingName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppConfiguration.cs index 2ee51697abfb4..6b03a68f31cd5 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -19,8 +21,12 @@ public partial class ContainerAppConfiguration : ProvisionableConstruct /// /// Collection of secrets used by a Container app. /// - public BicepList Secrets { get => _secrets; set => _secrets.Assign(value); } - private readonly BicepList _secrets; + public BicepList Secrets + { + get { Initialize(); return _secrets!; } + set { Initialize(); _secrets!.Assign(value); } + } + private BicepList? _secrets; /// /// ActiveRevisionsMode controls how active revisions are handled for the @@ -30,51 +36,83 @@ public partial class ContainerAppConfiguration : ProvisionableConstruct /// this mode. If no value if provided, this is the /// default.</item></list> /// - public BicepValue ActiveRevisionsMode { get => _activeRevisionsMode; set => _activeRevisionsMode.Assign(value); } - private readonly BicepValue _activeRevisionsMode; + public BicepValue ActiveRevisionsMode + { + get { Initialize(); return _activeRevisionsMode!; } + set { Initialize(); _activeRevisionsMode!.Assign(value); } + } + private BicepValue? _activeRevisionsMode; /// /// Ingress configurations. /// - public BicepValue Ingress { get => _ingress; set => _ingress.Assign(value); } - private readonly BicepValue _ingress; + public ContainerAppIngressConfiguration Ingress + { + get { Initialize(); return _ingress!; } + set { Initialize(); AssignOrReplace(ref _ingress, value); } + } + private ContainerAppIngressConfiguration? _ingress; /// /// Collection of private container registry credentials for containers /// used by the Container app. /// - public BicepList Registries { get => _registries; set => _registries.Assign(value); } - private readonly BicepList _registries; + public BicepList Registries + { + get { Initialize(); return _registries!; } + set { Initialize(); _registries!.Assign(value); } + } + private BicepList? _registries; /// /// Dapr configuration for the Container App. /// - public BicepValue Dapr { get => _dapr; set => _dapr.Assign(value); } - private readonly BicepValue _dapr; + public ContainerAppDaprConfiguration Dapr + { + get { Initialize(); return _dapr!; } + set { Initialize(); AssignOrReplace(ref _dapr, value); } + } + private ContainerAppDaprConfiguration? _dapr; /// /// Optional. Max inactive revisions a Container App can have. /// - public BicepValue MaxInactiveRevisions { get => _maxInactiveRevisions; set => _maxInactiveRevisions.Assign(value); } - private readonly BicepValue _maxInactiveRevisions; + public BicepValue MaxInactiveRevisions + { + get { Initialize(); return _maxInactiveRevisions!; } + set { Initialize(); _maxInactiveRevisions!.Assign(value); } + } + private BicepValue? _maxInactiveRevisions; /// /// Dev ContainerApp service type. /// - public BicepValue ServiceType { get => _serviceType; set => _serviceType.Assign(value); } - private readonly BicepValue _serviceType; + public BicepValue ServiceType + { + get { Initialize(); return _serviceType!; } + set { Initialize(); _serviceType!.Assign(value); } + } + private BicepValue? _serviceType; /// /// Creates a new ContainerAppConfiguration. /// public ContainerAppConfiguration() { - _secrets = BicepList.DefineProperty(this, "Secrets", ["secrets"]); - _activeRevisionsMode = BicepValue.DefineProperty(this, "ActiveRevisionsMode", ["activeRevisionsMode"]); - _ingress = BicepValue.DefineProperty(this, "Ingress", ["ingress"]); - _registries = BicepList.DefineProperty(this, "Registries", ["registries"]); - _dapr = BicepValue.DefineProperty(this, "Dapr", ["dapr"]); - _maxInactiveRevisions = BicepValue.DefineProperty(this, "MaxInactiveRevisions", ["maxInactiveRevisions"]); - _serviceType = BicepValue.DefineProperty(this, "ServiceType", ["service", "type"]); + } + + /// + /// Define all the provisionable properties of ContainerAppConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _secrets = DefineListProperty("Secrets", ["secrets"]); + _activeRevisionsMode = DefineProperty("ActiveRevisionsMode", ["activeRevisionsMode"]); + _ingress = DefineModelProperty("Ingress", ["ingress"]); + _registries = DefineListProperty("Registries", ["registries"]); + _dapr = DefineModelProperty("Dapr", ["dapr"]); + _maxInactiveRevisions = DefineProperty("MaxInactiveRevisions", ["maxInactiveRevisions"]); + _serviceType = DefineProperty("ServiceType", ["service", "type"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppContainer.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppContainer.cs index f7d748cbfed76..bc1ec500f8e50 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppContainer.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppContainer.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,63 +19,103 @@ public partial class ContainerAppContainer : ProvisionableConstruct /// /// List of probes for the container. /// - public BicepList Probes { get => _probes; set => _probes.Assign(value); } - private readonly BicepList _probes; + public BicepList Probes + { + get { Initialize(); return _probes!; } + set { Initialize(); _probes!.Assign(value); } + } + private BicepList? _probes; /// /// Container image tag. /// - public BicepValue Image { get => _image; set => _image.Assign(value); } - private readonly BicepValue _image; + public BicepValue Image + { + get { Initialize(); return _image!; } + set { Initialize(); _image!.Assign(value); } + } + private BicepValue? _image; /// /// Custom container name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Container start command. /// - public BicepList Command { get => _command; set => _command.Assign(value); } - private readonly BicepList _command; + public BicepList Command + { + get { Initialize(); return _command!; } + set { Initialize(); _command!.Assign(value); } + } + private BicepList? _command; /// /// Container start command arguments. /// - public BicepList Args { get => _args; set => _args.Assign(value); } - private readonly BicepList _args; + public BicepList Args + { + get { Initialize(); return _args!; } + set { Initialize(); _args!.Assign(value); } + } + private BicepList? _args; /// /// Container environment variables. /// - public BicepList Env { get => _env; set => _env.Assign(value); } - private readonly BicepList _env; + public BicepList Env + { + get { Initialize(); return _env!; } + set { Initialize(); _env!.Assign(value); } + } + private BicepList? _env; /// /// Container resource requirements. /// - public BicepValue Resources { get => _resources; set => _resources.Assign(value); } - private readonly BicepValue _resources; + public AppContainerResources Resources + { + get { Initialize(); return _resources!; } + set { Initialize(); AssignOrReplace(ref _resources, value); } + } + private AppContainerResources? _resources; /// /// Container volume mounts. /// - public BicepList VolumeMounts { get => _volumeMounts; set => _volumeMounts.Assign(value); } - private readonly BicepList _volumeMounts; + public BicepList VolumeMounts + { + get { Initialize(); return _volumeMounts!; } + set { Initialize(); _volumeMounts!.Assign(value); } + } + private BicepList? _volumeMounts; /// /// Creates a new ContainerAppContainer. /// public ContainerAppContainer() { - _probes = BicepList.DefineProperty(this, "Probes", ["probes"]); - _image = BicepValue.DefineProperty(this, "Image", ["image"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _command = BicepList.DefineProperty(this, "Command", ["command"]); - _args = BicepList.DefineProperty(this, "Args", ["args"]); - _env = BicepList.DefineProperty(this, "Env", ["env"]); - _resources = BicepValue.DefineProperty(this, "Resources", ["resources"]); - _volumeMounts = BicepList.DefineProperty(this, "VolumeMounts", ["volumeMounts"]); + } + + /// + /// Define all the provisionable properties of ContainerAppContainer. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _probes = DefineListProperty("Probes", ["probes"]); + _image = DefineProperty("Image", ["image"]); + _name = DefineProperty("Name", ["name"]); + _command = DefineListProperty("Command", ["command"]); + _args = DefineListProperty("Args", ["args"]); + _env = DefineListProperty("Env", ["env"]); + _resources = DefineModelProperty("Resources", ["resources"]); + _volumeMounts = DefineListProperty("VolumeMounts", ["volumeMounts"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCookieExpiration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCookieExpiration.cs index fefc1c7ef8aba..a68bbf92d0ba9 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCookieExpiration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCookieExpiration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,22 +19,38 @@ public partial class ContainerAppCookieExpiration : ProvisionableConstruct /// The convention used when determining the session cookie's /// expiration. /// - public BicepValue Convention { get => _convention; set => _convention.Assign(value); } - private readonly BicepValue _convention; + public BicepValue Convention + { + get { Initialize(); return _convention!; } + set { Initialize(); _convention!.Assign(value); } + } + private BicepValue? _convention; /// /// The time after the request is made when the session cookie should /// expire. /// - public BicepValue TimeToExpiration { get => _timeToExpiration; set => _timeToExpiration.Assign(value); } - private readonly BicepValue _timeToExpiration; + public BicepValue TimeToExpiration + { + get { Initialize(); return _timeToExpiration!; } + set { Initialize(); _timeToExpiration!.Assign(value); } + } + private BicepValue? _timeToExpiration; /// /// Creates a new ContainerAppCookieExpiration. /// public ContainerAppCookieExpiration() { - _convention = BicepValue.DefineProperty(this, "Convention", ["convention"]); - _timeToExpiration = BicepValue.DefineProperty(this, "TimeToExpiration", ["timeToExpiration"]); + } + + /// + /// Define all the provisionable properties of ContainerAppCookieExpiration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _convention = DefineProperty("Convention", ["convention"]); + _timeToExpiration = DefineProperty("TimeToExpiration", ["timeToExpiration"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCorsPolicy.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCorsPolicy.cs index a5286b2899722..87048ed05798b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCorsPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCorsPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,49 +19,81 @@ public partial class ContainerAppCorsPolicy : ProvisionableConstruct /// /// Specifies the content for the access-control-allow-origins header. /// - public BicepList AllowedOrigins { get => _allowedOrigins; set => _allowedOrigins.Assign(value); } - private readonly BicepList _allowedOrigins; + public BicepList AllowedOrigins + { + get { Initialize(); return _allowedOrigins!; } + set { Initialize(); _allowedOrigins!.Assign(value); } + } + private BicepList? _allowedOrigins; /// /// Specifies the content for the access-control-allow-methods header. /// - public BicepList AllowedMethods { get => _allowedMethods; set => _allowedMethods.Assign(value); } - private readonly BicepList _allowedMethods; + public BicepList AllowedMethods + { + get { Initialize(); return _allowedMethods!; } + set { Initialize(); _allowedMethods!.Assign(value); } + } + private BicepList? _allowedMethods; /// /// Specifies the content for the access-control-allow-headers header. /// - public BicepList AllowedHeaders { get => _allowedHeaders; set => _allowedHeaders.Assign(value); } - private readonly BicepList _allowedHeaders; + public BicepList AllowedHeaders + { + get { Initialize(); return _allowedHeaders!; } + set { Initialize(); _allowedHeaders!.Assign(value); } + } + private BicepList? _allowedHeaders; /// /// Specifies the content for the access-control-expose-headers header. /// - public BicepList ExposeHeaders { get => _exposeHeaders; set => _exposeHeaders.Assign(value); } - private readonly BicepList _exposeHeaders; + public BicepList ExposeHeaders + { + get { Initialize(); return _exposeHeaders!; } + set { Initialize(); _exposeHeaders!.Assign(value); } + } + private BicepList? _exposeHeaders; /// /// Specifies the content for the access-control-max-age header. /// - public BicepValue MaxAge { get => _maxAge; set => _maxAge.Assign(value); } - private readonly BicepValue _maxAge; + public BicepValue MaxAge + { + get { Initialize(); return _maxAge!; } + set { Initialize(); _maxAge!.Assign(value); } + } + private BicepValue? _maxAge; /// /// Specifies whether the resource allows credentials. /// - public BicepValue AllowCredentials { get => _allowCredentials; set => _allowCredentials.Assign(value); } - private readonly BicepValue _allowCredentials; + public BicepValue AllowCredentials + { + get { Initialize(); return _allowCredentials!; } + set { Initialize(); _allowCredentials!.Assign(value); } + } + private BicepValue? _allowCredentials; /// /// Creates a new ContainerAppCorsPolicy. /// public ContainerAppCorsPolicy() { - _allowedOrigins = BicepList.DefineProperty(this, "AllowedOrigins", ["allowedOrigins"]); - _allowedMethods = BicepList.DefineProperty(this, "AllowedMethods", ["allowedMethods"]); - _allowedHeaders = BicepList.DefineProperty(this, "AllowedHeaders", ["allowedHeaders"]); - _exposeHeaders = BicepList.DefineProperty(this, "ExposeHeaders", ["exposeHeaders"]); - _maxAge = BicepValue.DefineProperty(this, "MaxAge", ["maxAge"]); - _allowCredentials = BicepValue.DefineProperty(this, "AllowCredentials", ["allowCredentials"]); + } + + /// + /// Define all the provisionable properties of ContainerAppCorsPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _allowedOrigins = DefineListProperty("AllowedOrigins", ["allowedOrigins"]); + _allowedMethods = DefineListProperty("AllowedMethods", ["allowedMethods"]); + _allowedHeaders = DefineListProperty("AllowedHeaders", ["allowedHeaders"]); + _exposeHeaders = DefineListProperty("ExposeHeaders", ["exposeHeaders"]); + _maxAge = DefineProperty("MaxAge", ["maxAge"]); + _allowCredentials = DefineProperty("AllowCredentials", ["allowCredentials"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCredentials.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCredentials.cs index a6e5cb1bb22fa..c7d8daaa5a6ee 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCredentials.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCredentials.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,70 @@ public partial class ContainerAppCredentials : ProvisionableConstruct /// /// Client Id. /// - public BicepValue ClientId { get => _clientId; set => _clientId.Assign(value); } - private readonly BicepValue _clientId; + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + set { Initialize(); _clientId!.Assign(value); } + } + private BicepValue? _clientId; /// /// Client Secret. /// - public BicepValue ClientSecret { get => _clientSecret; set => _clientSecret.Assign(value); } - private readonly BicepValue _clientSecret; + public BicepValue ClientSecret + { + get { Initialize(); return _clientSecret!; } + set { Initialize(); _clientSecret!.Assign(value); } + } + private BicepValue? _clientSecret; /// /// Tenant Id. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// Kind of auth github does for deploying the template. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Subscription Id. /// - public BicepValue SubscriptionId { get => _subscriptionId; set => _subscriptionId.Assign(value); } - private readonly BicepValue _subscriptionId; + public BicepValue SubscriptionId + { + get { Initialize(); return _subscriptionId!; } + set { Initialize(); _subscriptionId!.Assign(value); } + } + private BicepValue? _subscriptionId; /// /// Creates a new ContainerAppCredentials. /// public ContainerAppCredentials() { - _clientId = BicepValue.DefineProperty(this, "ClientId", ["clientId"]); - _clientSecret = BicepValue.DefineProperty(this, "ClientSecret", ["clientSecret"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _subscriptionId = BicepValue.DefineProperty(this, "SubscriptionId", ["subscriptionId"]); + } + + /// + /// Define all the provisionable properties of ContainerAppCredentials. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _clientId = DefineProperty("ClientId", ["clientId"]); + _clientSecret = DefineProperty("ClientSecret", ["clientSecret"]); + _tenantId = DefineProperty("TenantId", ["tenantId"]); + _kind = DefineProperty("Kind", ["kind"]); + _subscriptionId = DefineProperty("SubscriptionId", ["subscriptionId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomDomain.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomDomain.cs index 0f8efa8c45e5e..442477a12f1e4 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomDomain.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomDomain.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,49 @@ public partial class ContainerAppCustomDomain : ProvisionableConstruct /// /// Hostname. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Custom Domain binding type. /// - public BicepValue BindingType { get => _bindingType; set => _bindingType.Assign(value); } - private readonly BicepValue _bindingType; + public BicepValue BindingType + { + get { Initialize(); return _bindingType!; } + set { Initialize(); _bindingType!.Assign(value); } + } + private BicepValue? _bindingType; /// /// Resource Id of the Certificate to be bound to this hostname. Must exist /// in the Managed Environment. /// - public BicepValue CertificateId { get => _certificateId; set => _certificateId.Assign(value); } - private readonly BicepValue _certificateId; + public BicepValue CertificateId + { + get { Initialize(); return _certificateId!; } + set { Initialize(); _certificateId!.Assign(value); } + } + private BicepValue? _certificateId; /// /// Creates a new ContainerAppCustomDomain. /// public ContainerAppCustomDomain() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _bindingType = BicepValue.DefineProperty(this, "BindingType", ["bindingType"]); - _certificateId = BicepValue.DefineProperty(this, "CertificateId", ["certificateId"]); + } + + /// + /// Define all the provisionable properties of ContainerAppCustomDomain. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _bindingType = DefineProperty("BindingType", ["bindingType"]); + _certificateId = DefineProperty("CertificateId", ["certificateId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomDomainConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomDomainConfiguration.cs index 895ac75fe5b2a..06e14741398ef 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomDomainConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomDomainConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,56 +18,89 @@ public partial class ContainerAppCustomDomainConfiguration : ProvisionableConstr /// /// Id used to verify domain name ownership. /// - public BicepValue CustomDomainVerificationId { get => _customDomainVerificationId; } - private readonly BicepValue _customDomainVerificationId; + public BicepValue CustomDomainVerificationId + { + get { Initialize(); return _customDomainVerificationId!; } + } + private BicepValue? _customDomainVerificationId; /// /// Dns suffix for the environment domain. /// - public BicepValue DnsSuffix { get => _dnsSuffix; set => _dnsSuffix.Assign(value); } - private readonly BicepValue _dnsSuffix; + public BicepValue DnsSuffix + { + get { Initialize(); return _dnsSuffix!; } + set { Initialize(); _dnsSuffix!.Assign(value); } + } + private BicepValue? _dnsSuffix; /// /// PFX or PEM blob. /// - public BicepValue CertificateValue { get => _certificateValue; set => _certificateValue.Assign(value); } - private readonly BicepValue _certificateValue; + public BicepValue CertificateValue + { + get { Initialize(); return _certificateValue!; } + set { Initialize(); _certificateValue!.Assign(value); } + } + private BicepValue? _certificateValue; /// /// Certificate password. /// - public BicepValue CertificatePassword { get => _certificatePassword; set => _certificatePassword.Assign(value); } - private readonly BicepValue _certificatePassword; + public BicepValue CertificatePassword + { + get { Initialize(); return _certificatePassword!; } + set { Initialize(); _certificatePassword!.Assign(value); } + } + private BicepValue? _certificatePassword; /// /// Certificate expiration date. /// - public BicepValue ExpireOn { get => _expireOn; } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + } + private BicepValue? _expireOn; /// /// Certificate thumbprint. /// - public BicepValue Thumbprint { get => _thumbprint; } - private readonly BicepValue _thumbprint; + public BicepValue Thumbprint + { + get { Initialize(); return _thumbprint!; } + } + private BicepValue? _thumbprint; /// /// Subject name of the certificate. /// - public BicepValue SubjectName { get => _subjectName; } - private readonly BicepValue _subjectName; + public BicepValue SubjectName + { + get { Initialize(); return _subjectName!; } + } + private BicepValue? _subjectName; /// /// Creates a new ContainerAppCustomDomainConfiguration. /// public ContainerAppCustomDomainConfiguration() { - _customDomainVerificationId = BicepValue.DefineProperty(this, "CustomDomainVerificationId", ["customDomainVerificationId"], isOutput: true); - _dnsSuffix = BicepValue.DefineProperty(this, "DnsSuffix", ["dnsSuffix"]); - _certificateValue = BicepValue.DefineProperty(this, "CertificateValue", ["certificateValue"]); - _certificatePassword = BicepValue.DefineProperty(this, "CertificatePassword", ["certificatePassword"]); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["expirationDate"], isOutput: true); - _thumbprint = BicepValue.DefineProperty(this, "Thumbprint", ["thumbprint"], isOutput: true); - _subjectName = BicepValue.DefineProperty(this, "SubjectName", ["subjectName"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppCustomDomainConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _customDomainVerificationId = DefineProperty("CustomDomainVerificationId", ["customDomainVerificationId"], isOutput: true); + _dnsSuffix = DefineProperty("DnsSuffix", ["dnsSuffix"]); + _certificateValue = DefineProperty("CertificateValue", ["certificateValue"]); + _certificatePassword = DefineProperty("CertificatePassword", ["certificatePassword"]); + _expireOn = DefineProperty("ExpireOn", ["expirationDate"], isOutput: true); + _thumbprint = DefineProperty("Thumbprint", ["thumbprint"], isOutput: true); + _subjectName = DefineProperty("SubjectName", ["subjectName"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomOpenIdConnectProviderConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomOpenIdConnectProviderConfiguration.cs index 927daf1536a48..dfcefee9926df 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomOpenIdConnectProviderConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomOpenIdConnectProviderConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,30 +20,51 @@ public partial class ContainerAppCustomOpenIdConnectProviderConfiguration : Prov /// <code>false</code> if the custom Open ID provider provider /// should not be enabled; otherwise, <code>true</code>. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// The configuration settings of the app registration for the custom Open /// ID Connect provider. /// - public BicepValue Registration { get => _registration; set => _registration.Assign(value); } - private readonly BicepValue _registration; + public ContainerAppOpenIdConnectRegistration Registration + { + get { Initialize(); return _registration!; } + set { Initialize(); AssignOrReplace(ref _registration, value); } + } + private ContainerAppOpenIdConnectRegistration? _registration; /// /// The configuration settings of the login flow of the custom Open ID /// Connect provider. /// - public BicepValue Login { get => _login; set => _login.Assign(value); } - private readonly BicepValue _login; + public ContainerAppOpenIdConnectLogin Login + { + get { Initialize(); return _login!; } + set { Initialize(); AssignOrReplace(ref _login, value); } + } + private ContainerAppOpenIdConnectLogin? _login; /// /// Creates a new ContainerAppCustomOpenIdConnectProviderConfiguration. /// public ContainerAppCustomOpenIdConnectProviderConfiguration() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _registration = BicepValue.DefineProperty(this, "Registration", ["registration"]); - _login = BicepValue.DefineProperty(this, "Login", ["login"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppCustomOpenIdConnectProviderConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _registration = DefineModelProperty("Registration", ["registration"]); + _login = DefineModelProperty("Login", ["login"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomScaleRule.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomScaleRule.cs index ff66e6bb3f4e2..ca8c125db6cb3 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomScaleRule.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppCustomScaleRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,28 +20,48 @@ public partial class ContainerAppCustomScaleRule : ProvisionableConstruct /// Type of the custom scale rule eg: azure-servicebus, redis /// etc. /// - public BicepValue CustomScaleRuleType { get => _customScaleRuleType; set => _customScaleRuleType.Assign(value); } - private readonly BicepValue _customScaleRuleType; + public BicepValue CustomScaleRuleType + { + get { Initialize(); return _customScaleRuleType!; } + set { Initialize(); _customScaleRuleType!.Assign(value); } + } + private BicepValue? _customScaleRuleType; /// /// Metadata properties to describe custom scale rule. /// - public BicepDictionary Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepDictionary _metadata; + public BicepDictionary Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepDictionary? _metadata; /// /// Authentication secrets for the custom scale rule. /// - public BicepList Auth { get => _auth; set => _auth.Assign(value); } - private readonly BicepList _auth; + public BicepList Auth + { + get { Initialize(); return _auth!; } + set { Initialize(); _auth!.Assign(value); } + } + private BicepList? _auth; /// /// Creates a new ContainerAppCustomScaleRule. /// public ContainerAppCustomScaleRule() { - _customScaleRuleType = BicepValue.DefineProperty(this, "CustomScaleRuleType", ["type"]); - _metadata = BicepDictionary.DefineProperty(this, "Metadata", ["metadata"]); - _auth = BicepList.DefineProperty(this, "Auth", ["auth"]); + } + + /// + /// Define all the provisionable properties of ContainerAppCustomScaleRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _customScaleRuleType = DefineProperty("CustomScaleRuleType", ["type"]); + _metadata = DefineDictionaryProperty("Metadata", ["metadata"]); + _auth = DefineListProperty("Auth", ["auth"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppDaprConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppDaprConfiguration.cs index fd17a3feafef6..879922fb8037d 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppDaprConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppDaprConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,67 +18,108 @@ public partial class ContainerAppDaprConfiguration : ProvisionableConstruct /// /// Boolean indicating if the Dapr side car is enabled. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Dapr application identifier. /// - public BicepValue AppId { get => _appId; set => _appId.Assign(value); } - private readonly BicepValue _appId; + public BicepValue AppId + { + get { Initialize(); return _appId!; } + set { Initialize(); _appId!.Assign(value); } + } + private BicepValue? _appId; /// /// Tells Dapr which protocol your application is using. Valid options are /// http and grpc. Default is http. /// - public BicepValue AppProtocol { get => _appProtocol; set => _appProtocol.Assign(value); } - private readonly BicepValue _appProtocol; + public BicepValue AppProtocol + { + get { Initialize(); return _appProtocol!; } + set { Initialize(); _appProtocol!.Assign(value); } + } + private BicepValue? _appProtocol; /// /// Tells Dapr which port your application is listening on. /// - public BicepValue AppPort { get => _appPort; set => _appPort.Assign(value); } - private readonly BicepValue _appPort; + public BicepValue AppPort + { + get { Initialize(); return _appPort!; } + set { Initialize(); _appPort!.Assign(value); } + } + private BicepValue? _appPort; /// /// Dapr max size of http header read buffer in KB to handle when sending /// multi-KB headers. Default is 65KB. /// - public BicepValue HttpReadBufferSize { get => _httpReadBufferSize; set => _httpReadBufferSize.Assign(value); } - private readonly BicepValue _httpReadBufferSize; + public BicepValue HttpReadBufferSize + { + get { Initialize(); return _httpReadBufferSize!; } + set { Initialize(); _httpReadBufferSize!.Assign(value); } + } + private BicepValue? _httpReadBufferSize; /// /// Increasing max size of request body http and grpc servers parameter in /// MB to handle uploading of big files. Default is 4 MB. /// - public BicepValue HttpMaxRequestSize { get => _httpMaxRequestSize; set => _httpMaxRequestSize.Assign(value); } - private readonly BicepValue _httpMaxRequestSize; + public BicepValue HttpMaxRequestSize + { + get { Initialize(); return _httpMaxRequestSize!; } + set { Initialize(); _httpMaxRequestSize!.Assign(value); } + } + private BicepValue? _httpMaxRequestSize; /// /// Sets the log level for the Dapr sidecar. Allowed values are debug, /// info, warn, error. Default is info. /// - public BicepValue LogLevel { get => _logLevel; set => _logLevel.Assign(value); } - private readonly BicepValue _logLevel; + public BicepValue LogLevel + { + get { Initialize(); return _logLevel!; } + set { Initialize(); _logLevel!.Assign(value); } + } + private BicepValue? _logLevel; /// /// Enables API logging for the Dapr sidecar. /// - public BicepValue IsApiLoggingEnabled { get => _isApiLoggingEnabled; set => _isApiLoggingEnabled.Assign(value); } - private readonly BicepValue _isApiLoggingEnabled; + public BicepValue IsApiLoggingEnabled + { + get { Initialize(); return _isApiLoggingEnabled!; } + set { Initialize(); _isApiLoggingEnabled!.Assign(value); } + } + private BicepValue? _isApiLoggingEnabled; /// /// Creates a new ContainerAppDaprConfiguration. /// public ContainerAppDaprConfiguration() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _appId = BicepValue.DefineProperty(this, "AppId", ["appId"]); - _appProtocol = BicepValue.DefineProperty(this, "AppProtocol", ["appProtocol"]); - _appPort = BicepValue.DefineProperty(this, "AppPort", ["appPort"]); - _httpReadBufferSize = BicepValue.DefineProperty(this, "HttpReadBufferSize", ["httpReadBufferSize"]); - _httpMaxRequestSize = BicepValue.DefineProperty(this, "HttpMaxRequestSize", ["httpMaxRequestSize"]); - _logLevel = BicepValue.DefineProperty(this, "LogLevel", ["logLevel"]); - _isApiLoggingEnabled = BicepValue.DefineProperty(this, "IsApiLoggingEnabled", ["enableApiLogging"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppDaprConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _appId = DefineProperty("AppId", ["appId"]); + _appProtocol = DefineProperty("AppProtocol", ["appProtocol"]); + _appPort = DefineProperty("AppPort", ["appPort"]); + _httpReadBufferSize = DefineProperty("HttpReadBufferSize", ["httpReadBufferSize"]); + _httpMaxRequestSize = DefineProperty("HttpMaxRequestSize", ["httpMaxRequestSize"]); + _logLevel = DefineProperty("LogLevel", ["logLevel"]); + _isApiLoggingEnabled = DefineProperty("IsApiLoggingEnabled", ["enableApiLogging"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppDaprMetadata.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppDaprMetadata.cs index f9c08f6b73380..18780df23a7dd 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppDaprMetadata.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppDaprMetadata.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,49 @@ public partial class ContainerAppDaprMetadata : ProvisionableConstruct /// /// Metadata property name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Metadata property value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Name of the Dapr Component secret from which to pull the metadata /// property value. /// - public BicepValue SecretRef { get => _secretRef; set => _secretRef.Assign(value); } - private readonly BicepValue _secretRef; + public BicepValue SecretRef + { + get { Initialize(); return _secretRef!; } + set { Initialize(); _secretRef!.Assign(value); } + } + private BicepValue? _secretRef; /// /// Creates a new ContainerAppDaprMetadata. /// public ContainerAppDaprMetadata() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _secretRef = BicepValue.DefineProperty(this, "SecretRef", ["secretRef"]); + } + + /// + /// Define all the provisionable properties of ContainerAppDaprMetadata. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _value = DefineProperty("Value", ["value"]); + _secretRef = DefineProperty("SecretRef", ["secretRef"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppDefaultAuthorizationPolicy.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppDefaultAuthorizationPolicy.cs index dc6cb460eebef..340a50123058b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppDefaultAuthorizationPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppDefaultAuthorizationPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,22 +21,39 @@ public partial class ContainerAppDefaultAuthorizationPolicy : ProvisionableConst /// The configuration settings of the Azure Active Directory allowed /// principals. /// - public BicepValue AllowedPrincipals { get => _allowedPrincipals; set => _allowedPrincipals.Assign(value); } - private readonly BicepValue _allowedPrincipals; + public ContainerAppAllowedPrincipals AllowedPrincipals + { + get { Initialize(); return _allowedPrincipals!; } + set { Initialize(); AssignOrReplace(ref _allowedPrincipals, value); } + } + private ContainerAppAllowedPrincipals? _allowedPrincipals; /// /// The configuration settings of the Azure Active Directory allowed /// applications. /// - public BicepList AllowedApplications { get => _allowedApplications; set => _allowedApplications.Assign(value); } - private readonly BicepList _allowedApplications; + public BicepList AllowedApplications + { + get { Initialize(); return _allowedApplications!; } + set { Initialize(); _allowedApplications!.Assign(value); } + } + private BicepList? _allowedApplications; /// /// Creates a new ContainerAppDefaultAuthorizationPolicy. /// public ContainerAppDefaultAuthorizationPolicy() { - _allowedPrincipals = BicepValue.DefineProperty(this, "AllowedPrincipals", ["allowedPrincipals"]); - _allowedApplications = BicepList.DefineProperty(this, "AllowedApplications", ["allowedApplications"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppDefaultAuthorizationPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _allowedPrincipals = DefineModelProperty("AllowedPrincipals", ["allowedPrincipals"]); + _allowedApplications = DefineListProperty("AllowedApplications", ["allowedApplications"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppEnvironmentVariable.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppEnvironmentVariable.cs index 7943041ddff05..cf39d4e295dfa 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppEnvironmentVariable.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppEnvironmentVariable.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,50 @@ public partial class ContainerAppEnvironmentVariable : ProvisionableConstruct /// /// Environment variable name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Non-secret environment variable value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Name of the Container App secret from which to pull the environment /// variable value. /// - public BicepValue SecretRef { get => _secretRef; set => _secretRef.Assign(value); } - private readonly BicepValue _secretRef; + public BicepValue SecretRef + { + get { Initialize(); return _secretRef!; } + set { Initialize(); _secretRef!.Assign(value); } + } + private BicepValue? _secretRef; /// /// Creates a new ContainerAppEnvironmentVariable. /// public ContainerAppEnvironmentVariable() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _secretRef = BicepValue.DefineProperty(this, "SecretRef", ["secretRef"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppEnvironmentVariable. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _value = DefineProperty("Value", ["value"]); + _secretRef = DefineProperty("SecretRef", ["secretRef"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppExtendedLocation.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppExtendedLocation.cs index 92c96a3d03131..a545465dfd47d 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppExtendedLocation.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppExtendedLocation.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class ContainerAppExtendedLocation : ProvisionableConstruct /// /// The name of the extended location. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The type of the extended location. /// - public BicepValue ExtendedLocationType { get => _extendedLocationType; set => _extendedLocationType.Assign(value); } - private readonly BicepValue _extendedLocationType; + public BicepValue ExtendedLocationType + { + get { Initialize(); return _extendedLocationType!; } + set { Initialize(); _extendedLocationType!.Assign(value); } + } + private BicepValue? _extendedLocationType; /// /// Creates a new ContainerAppExtendedLocation. /// public ContainerAppExtendedLocation() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _extendedLocationType = BicepValue.DefineProperty(this, "ExtendedLocationType", ["type"]); + } + + /// + /// Define all the provisionable properties of ContainerAppExtendedLocation. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _extendedLocationType = DefineProperty("ExtendedLocationType", ["type"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppFacebookConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppFacebookConfiguration.cs index 64650173783c8..08a1e305e10bb 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppFacebookConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppFacebookConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,36 +21,61 @@ public partial class ContainerAppFacebookConfiguration : ProvisionableConstruct /// enabled despite the set registration; otherwise, /// <code>true</code>. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// The configuration settings of the app registration for the Facebook /// provider. /// - public BicepValue Registration { get => _registration; set => _registration.Assign(value); } - private readonly BicepValue _registration; + public ContainerAppRegistration Registration + { + get { Initialize(); return _registration!; } + set { Initialize(); AssignOrReplace(ref _registration, value); } + } + private ContainerAppRegistration? _registration; /// /// The version of the Facebook api to be used while logging in. /// - public BicepValue GraphApiVersion { get => _graphApiVersion; set => _graphApiVersion.Assign(value); } - private readonly BicepValue _graphApiVersion; + public BicepValue GraphApiVersion + { + get { Initialize(); return _graphApiVersion!; } + set { Initialize(); _graphApiVersion!.Assign(value); } + } + private BicepValue? _graphApiVersion; /// /// A list of the scopes that should be requested while authenticating. /// - public BicepList LoginScopes { get => _loginScopes; set => _loginScopes.Assign(value); } - private readonly BicepList _loginScopes; + public BicepList LoginScopes + { + get { Initialize(); return _loginScopes!; } + set { Initialize(); _loginScopes!.Assign(value); } + } + private BicepList? _loginScopes; /// /// Creates a new ContainerAppFacebookConfiguration. /// public ContainerAppFacebookConfiguration() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _registration = BicepValue.DefineProperty(this, "Registration", ["registration"]); - _graphApiVersion = BicepValue.DefineProperty(this, "GraphApiVersion", ["graphApiVersion"]); - _loginScopes = BicepList.DefineProperty(this, "LoginScopes", ["login", "scopes"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppFacebookConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _registration = DefineModelProperty("Registration", ["registration"]); + _graphApiVersion = DefineProperty("GraphApiVersion", ["graphApiVersion"]); + _loginScopes = DefineListProperty("LoginScopes", ["login", "scopes"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppForwardProxy.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppForwardProxy.cs index 78b753af6b532..dd3c9aac7ffca 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppForwardProxy.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppForwardProxy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class ContainerAppForwardProxy : ProvisionableConstruct /// /// The convention used to determine the url of the request made. /// - public BicepValue Convention { get => _convention; set => _convention.Assign(value); } - private readonly BicepValue _convention; + public BicepValue Convention + { + get { Initialize(); return _convention!; } + set { Initialize(); _convention!.Assign(value); } + } + private BicepValue? _convention; /// /// The name of the header containing the host of the request. /// - public BicepValue CustomHostHeaderName { get => _customHostHeaderName; set => _customHostHeaderName.Assign(value); } - private readonly BicepValue _customHostHeaderName; + public BicepValue CustomHostHeaderName + { + get { Initialize(); return _customHostHeaderName!; } + set { Initialize(); _customHostHeaderName!.Assign(value); } + } + private BicepValue? _customHostHeaderName; /// /// The name of the header containing the scheme of the request. /// - public BicepValue CustomProtoHeaderName { get => _customProtoHeaderName; set => _customProtoHeaderName.Assign(value); } - private readonly BicepValue _customProtoHeaderName; + public BicepValue CustomProtoHeaderName + { + get { Initialize(); return _customProtoHeaderName!; } + set { Initialize(); _customProtoHeaderName!.Assign(value); } + } + private BicepValue? _customProtoHeaderName; /// /// Creates a new ContainerAppForwardProxy. /// public ContainerAppForwardProxy() { - _convention = BicepValue.DefineProperty(this, "Convention", ["convention"]); - _customHostHeaderName = BicepValue.DefineProperty(this, "CustomHostHeaderName", ["customHostHeaderName"]); - _customProtoHeaderName = BicepValue.DefineProperty(this, "CustomProtoHeaderName", ["customProtoHeaderName"]); + } + + /// + /// Define all the provisionable properties of ContainerAppForwardProxy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _convention = DefineProperty("Convention", ["convention"]); + _customHostHeaderName = DefineProperty("CustomHostHeaderName", ["customHostHeaderName"]); + _customProtoHeaderName = DefineProperty("CustomProtoHeaderName", ["customProtoHeaderName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGitHubActionConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGitHubActionConfiguration.cs index 9c15c799489da..cf08450a3670a 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGitHubActionConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGitHubActionConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,70 +19,115 @@ public partial class ContainerAppGitHubActionConfiguration : ProvisionableConstr /// /// Registry configurations. /// - public BicepValue RegistryInfo { get => _registryInfo; set => _registryInfo.Assign(value); } - private readonly BicepValue _registryInfo; + public ContainerAppRegistryInfo RegistryInfo + { + get { Initialize(); return _registryInfo!; } + set { Initialize(); AssignOrReplace(ref _registryInfo, value); } + } + private ContainerAppRegistryInfo? _registryInfo; /// /// AzureCredentials configurations. /// - public BicepValue AzureCredentials { get => _azureCredentials; set => _azureCredentials.Assign(value); } - private readonly BicepValue _azureCredentials; + public ContainerAppCredentials AzureCredentials + { + get { Initialize(); return _azureCredentials!; } + set { Initialize(); AssignOrReplace(ref _azureCredentials, value); } + } + private ContainerAppCredentials? _azureCredentials; /// /// Context path. /// - public BicepValue ContextPath { get => _contextPath; set => _contextPath.Assign(value); } - private readonly BicepValue _contextPath; + public BicepValue ContextPath + { + get { Initialize(); return _contextPath!; } + set { Initialize(); _contextPath!.Assign(value); } + } + private BicepValue? _contextPath; /// /// One time Github PAT to configure github environment. /// - public BicepValue GitHubPersonalAccessToken { get => _gitHubPersonalAccessToken; set => _gitHubPersonalAccessToken.Assign(value); } - private readonly BicepValue _gitHubPersonalAccessToken; + public BicepValue GitHubPersonalAccessToken + { + get { Initialize(); return _gitHubPersonalAccessToken!; } + set { Initialize(); _gitHubPersonalAccessToken!.Assign(value); } + } + private BicepValue? _gitHubPersonalAccessToken; /// /// Image name. /// - public BicepValue Image { get => _image; set => _image.Assign(value); } - private readonly BicepValue _image; + public BicepValue Image + { + get { Initialize(); return _image!; } + set { Initialize(); _image!.Assign(value); } + } + private BicepValue? _image; /// /// Code or Image. /// - public BicepValue PublishType { get => _publishType; set => _publishType.Assign(value); } - private readonly BicepValue _publishType; + public BicepValue PublishType + { + get { Initialize(); return _publishType!; } + set { Initialize(); _publishType!.Assign(value); } + } + private BicepValue? _publishType; /// /// Operation system. /// - public BicepValue OS { get => _oS; set => _oS.Assign(value); } - private readonly BicepValue _oS; + public BicepValue OS + { + get { Initialize(); return _oS!; } + set { Initialize(); _oS!.Assign(value); } + } + private BicepValue? _oS; /// /// Runtime stack. /// - public BicepValue RuntimeStack { get => _runtimeStack; set => _runtimeStack.Assign(value); } - private readonly BicepValue _runtimeStack; + public BicepValue RuntimeStack + { + get { Initialize(); return _runtimeStack!; } + set { Initialize(); _runtimeStack!.Assign(value); } + } + private BicepValue? _runtimeStack; /// /// Runtime version. /// - public BicepValue RuntimeVersion { get => _runtimeVersion; set => _runtimeVersion.Assign(value); } - private readonly BicepValue _runtimeVersion; + public BicepValue RuntimeVersion + { + get { Initialize(); return _runtimeVersion!; } + set { Initialize(); _runtimeVersion!.Assign(value); } + } + private BicepValue? _runtimeVersion; /// /// Creates a new ContainerAppGitHubActionConfiguration. /// public ContainerAppGitHubActionConfiguration() { - _registryInfo = BicepValue.DefineProperty(this, "RegistryInfo", ["registryInfo"]); - _azureCredentials = BicepValue.DefineProperty(this, "AzureCredentials", ["azureCredentials"]); - _contextPath = BicepValue.DefineProperty(this, "ContextPath", ["contextPath"]); - _gitHubPersonalAccessToken = BicepValue.DefineProperty(this, "GitHubPersonalAccessToken", ["githubPersonalAccessToken"]); - _image = BicepValue.DefineProperty(this, "Image", ["image"]); - _publishType = BicepValue.DefineProperty(this, "PublishType", ["publishType"]); - _oS = BicepValue.DefineProperty(this, "OS", ["os"]); - _runtimeStack = BicepValue.DefineProperty(this, "RuntimeStack", ["runtimeStack"]); - _runtimeVersion = BicepValue.DefineProperty(this, "RuntimeVersion", ["runtimeVersion"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppGitHubActionConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _registryInfo = DefineModelProperty("RegistryInfo", ["registryInfo"]); + _azureCredentials = DefineModelProperty("AzureCredentials", ["azureCredentials"]); + _contextPath = DefineProperty("ContextPath", ["contextPath"]); + _gitHubPersonalAccessToken = DefineProperty("GitHubPersonalAccessToken", ["githubPersonalAccessToken"]); + _image = DefineProperty("Image", ["image"]); + _publishType = DefineProperty("PublishType", ["publishType"]); + _oS = DefineProperty("OS", ["os"]); + _runtimeStack = DefineProperty("RuntimeStack", ["runtimeStack"]); + _runtimeVersion = DefineProperty("RuntimeVersion", ["runtimeVersion"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGitHubConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGitHubConfiguration.cs index ab2590fcd7f71..ee654d558d03e 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGitHubConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGitHubConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,29 +21,50 @@ public partial class ContainerAppGitHubConfiguration : ProvisionableConstruct /// enabled despite the set registration; otherwise, /// <code>true</code>. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// The configuration settings of the app registration for the GitHub /// provider. /// - public BicepValue Registration { get => _registration; set => _registration.Assign(value); } - private readonly BicepValue _registration; + public ContainerAppClientRegistration Registration + { + get { Initialize(); return _registration!; } + set { Initialize(); AssignOrReplace(ref _registration, value); } + } + private ContainerAppClientRegistration? _registration; /// /// A list of the scopes that should be requested while authenticating. /// - public BicepList LoginScopes { get => _loginScopes; set => _loginScopes.Assign(value); } - private readonly BicepList _loginScopes; + public BicepList LoginScopes + { + get { Initialize(); return _loginScopes!; } + set { Initialize(); _loginScopes!.Assign(value); } + } + private BicepList? _loginScopes; /// /// Creates a new ContainerAppGitHubConfiguration. /// public ContainerAppGitHubConfiguration() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _registration = BicepValue.DefineProperty(this, "Registration", ["registration"]); - _loginScopes = BicepList.DefineProperty(this, "LoginScopes", ["login", "scopes"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppGitHubConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _registration = DefineModelProperty("Registration", ["registration"]); + _loginScopes = DefineListProperty("LoginScopes", ["login", "scopes"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGlobalValidation.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGlobalValidation.cs index c396492f8c06a..9e24d88bf9988 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGlobalValidation.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGlobalValidation.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,8 +21,12 @@ public partial class ContainerAppGlobalValidation : ProvisionableConstruct /// The action to take when an unauthenticated client attempts to access /// the app. /// - public BicepValue UnauthenticatedClientAction { get => _unauthenticatedClientAction; set => _unauthenticatedClientAction.Assign(value); } - private readonly BicepValue _unauthenticatedClientAction; + public BicepValue UnauthenticatedClientAction + { + get { Initialize(); return _unauthenticatedClientAction!; } + set { Initialize(); _unauthenticatedClientAction!.Assign(value); } + } + private BicepValue? _unauthenticatedClientAction; /// /// The default authentication provider to use when multiple providers are @@ -28,23 +34,39 @@ public partial class ContainerAppGlobalValidation : ProvisionableConstruct /// providers are configured and the unauthenticated client /// action is set to "RedirectToLoginPage". /// - public BicepValue RedirectToProvider { get => _redirectToProvider; set => _redirectToProvider.Assign(value); } - private readonly BicepValue _redirectToProvider; + public BicepValue RedirectToProvider + { + get { Initialize(); return _redirectToProvider!; } + set { Initialize(); _redirectToProvider!.Assign(value); } + } + private BicepValue? _redirectToProvider; /// /// The paths for which unauthenticated flow would not be redirected to the /// login page. /// - public BicepList ExcludedPaths { get => _excludedPaths; set => _excludedPaths.Assign(value); } - private readonly BicepList _excludedPaths; + public BicepList ExcludedPaths + { + get { Initialize(); return _excludedPaths!; } + set { Initialize(); _excludedPaths!.Assign(value); } + } + private BicepList? _excludedPaths; /// /// Creates a new ContainerAppGlobalValidation. /// public ContainerAppGlobalValidation() { - _unauthenticatedClientAction = BicepValue.DefineProperty(this, "UnauthenticatedClientAction", ["unauthenticatedClientAction"]); - _redirectToProvider = BicepValue.DefineProperty(this, "RedirectToProvider", ["redirectToProvider"]); - _excludedPaths = BicepList.DefineProperty(this, "ExcludedPaths", ["excludedPaths"]); + } + + /// + /// Define all the provisionable properties of ContainerAppGlobalValidation. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _unauthenticatedClientAction = DefineProperty("UnauthenticatedClientAction", ["unauthenticatedClientAction"]); + _redirectToProvider = DefineProperty("RedirectToProvider", ["redirectToProvider"]); + _excludedPaths = DefineListProperty("ExcludedPaths", ["excludedPaths"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGoogleConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGoogleConfiguration.cs index fc04053026b6a..bc7328b0513e2 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGoogleConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppGoogleConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,37 +21,62 @@ public partial class ContainerAppGoogleConfiguration : ProvisionableConstruct /// enabled despite the set registration; otherwise, /// <code>true</code>. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// The configuration settings of the app registration for the Google /// provider. /// - public BicepValue Registration { get => _registration; set => _registration.Assign(value); } - private readonly BicepValue _registration; + public ContainerAppClientRegistration Registration + { + get { Initialize(); return _registration!; } + set { Initialize(); AssignOrReplace(ref _registration, value); } + } + private ContainerAppClientRegistration? _registration; /// /// A list of the scopes that should be requested while authenticating. /// - public BicepList LoginScopes { get => _loginScopes; set => _loginScopes.Assign(value); } - private readonly BicepList _loginScopes; + public BicepList LoginScopes + { + get { Initialize(); return _loginScopes!; } + set { Initialize(); _loginScopes!.Assign(value); } + } + private BicepList? _loginScopes; /// /// The configuration settings of the allowed list of audiences from which /// to validate the JWT token. /// - public BicepList ValidationAllowedAudiences { get => _validationAllowedAudiences; set => _validationAllowedAudiences.Assign(value); } - private readonly BicepList _validationAllowedAudiences; + public BicepList ValidationAllowedAudiences + { + get { Initialize(); return _validationAllowedAudiences!; } + set { Initialize(); _validationAllowedAudiences!.Assign(value); } + } + private BicepList? _validationAllowedAudiences; /// /// Creates a new ContainerAppGoogleConfiguration. /// public ContainerAppGoogleConfiguration() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _registration = BicepValue.DefineProperty(this, "Registration", ["registration"]); - _loginScopes = BicepList.DefineProperty(this, "LoginScopes", ["login", "scopes"]); - _validationAllowedAudiences = BicepList.DefineProperty(this, "ValidationAllowedAudiences", ["validation", "allowedAudiences"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppGoogleConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _registration = DefineModelProperty("Registration", ["registration"]); + _loginScopes = DefineListProperty("LoginScopes", ["login", "scopes"]); + _validationAllowedAudiences = DefineListProperty("ValidationAllowedAudiences", ["validation", "allowedAudiences"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpHeaderInfo.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpHeaderInfo.cs index 6385373fcef7b..512e7faca476d 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpHeaderInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpHeaderInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class ContainerAppHttpHeaderInfo : ProvisionableConstruct /// /// The header field name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The header field value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new ContainerAppHttpHeaderInfo. /// public ContainerAppHttpHeaderInfo() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of ContainerAppHttpHeaderInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpRequestInfo.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpRequestInfo.cs index b9c9c52948bea..933bf6ed1ed62 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpRequestInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpRequestInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,43 +20,71 @@ public partial class ContainerAppHttpRequestInfo : ProvisionableConstruct /// Host name to connect to, defaults to the pod IP. You probably want to /// set "Host" in httpHeaders instead. /// - public BicepValue Host { get => _host; set => _host.Assign(value); } - private readonly BicepValue _host; + public BicepValue Host + { + get { Initialize(); return _host!; } + set { Initialize(); _host!.Assign(value); } + } + private BicepValue? _host; /// /// Custom headers to set in the request. HTTP allows repeated headers. /// - public BicepList HttpHeaders { get => _httpHeaders; set => _httpHeaders.Assign(value); } - private readonly BicepList _httpHeaders; + public BicepList HttpHeaders + { + get { Initialize(); return _httpHeaders!; } + set { Initialize(); _httpHeaders!.Assign(value); } + } + private BicepList? _httpHeaders; /// /// Path to access on the HTTP server. /// - public BicepValue Path { get => _path; set => _path.Assign(value); } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + set { Initialize(); _path!.Assign(value); } + } + private BicepValue? _path; /// /// Name or number of the port to access on the container. Number must be /// in the range 1 to 65535. Name must be an IANA_SVC_NAME. /// - public BicepValue Port { get => _port; set => _port.Assign(value); } - private readonly BicepValue _port; + public BicepValue Port + { + get { Initialize(); return _port!; } + set { Initialize(); _port!.Assign(value); } + } + private BicepValue? _port; /// /// Scheme to use for connecting to the host. Defaults to HTTP. /// - public BicepValue Scheme { get => _scheme; set => _scheme.Assign(value); } - private readonly BicepValue _scheme; + public BicepValue Scheme + { + get { Initialize(); return _scheme!; } + set { Initialize(); _scheme!.Assign(value); } + } + private BicepValue? _scheme; /// /// Creates a new ContainerAppHttpRequestInfo. /// public ContainerAppHttpRequestInfo() { - _host = BicepValue.DefineProperty(this, "Host", ["host"]); - _httpHeaders = BicepList.DefineProperty(this, "HttpHeaders", ["httpHeaders"]); - _path = BicepValue.DefineProperty(this, "Path", ["path"]); - _port = BicepValue.DefineProperty(this, "Port", ["port"]); - _scheme = BicepValue.DefineProperty(this, "Scheme", ["scheme"]); + } + + /// + /// Define all the provisionable properties of ContainerAppHttpRequestInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _host = DefineProperty("Host", ["host"]); + _httpHeaders = DefineListProperty("HttpHeaders", ["httpHeaders"]); + _path = DefineProperty("Path", ["path"]); + _port = DefineProperty("Port", ["port"]); + _scheme = DefineProperty("Scheme", ["scheme"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpScaleRule.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpScaleRule.cs index 8023c44ef3d89..edff79730006d 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpScaleRule.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpScaleRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class ContainerAppHttpScaleRule : ProvisionableConstruct /// /// Metadata properties to describe http scale rule. /// - public BicepDictionary Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepDictionary _metadata; + public BicepDictionary Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepDictionary? _metadata; /// /// Authentication secrets for the custom scale rule. /// - public BicepList Auth { get => _auth; set => _auth.Assign(value); } - private readonly BicepList _auth; + public BicepList Auth + { + get { Initialize(); return _auth!; } + set { Initialize(); _auth!.Assign(value); } + } + private BicepList? _auth; /// /// Creates a new ContainerAppHttpScaleRule. /// public ContainerAppHttpScaleRule() { - _metadata = BicepDictionary.DefineProperty(this, "Metadata", ["metadata"]); - _auth = BicepList.DefineProperty(this, "Auth", ["auth"]); + } + + /// + /// Define all the provisionable properties of ContainerAppHttpScaleRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _metadata = DefineDictionaryProperty("Metadata", ["metadata"]); + _auth = DefineListProperty("Auth", ["auth"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpSettings.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpSettings.cs index 86381ec56d3be..0f9a623b5eb1f 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppHttpSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -20,29 +22,49 @@ public partial class ContainerAppHttpSettings : ProvisionableConstruct /// responses not having the HTTPS scheme are permissible; otherwise, /// <code>true</code>. /// - public BicepValue RequireHttps { get => _requireHttps; set => _requireHttps.Assign(value); } - private readonly BicepValue _requireHttps; + public BicepValue RequireHttps + { + get { Initialize(); return _requireHttps!; } + set { Initialize(); _requireHttps!.Assign(value); } + } + private BicepValue? _requireHttps; /// /// The prefix that should precede all the authentication/authorization /// paths. /// - public BicepValue RoutesApiPrefix { get => _routesApiPrefix; set => _routesApiPrefix.Assign(value); } - private readonly BicepValue _routesApiPrefix; + public BicepValue RoutesApiPrefix + { + get { Initialize(); return _routesApiPrefix!; } + set { Initialize(); _routesApiPrefix!.Assign(value); } + } + private BicepValue? _routesApiPrefix; /// /// The configuration settings of a forward proxy used to make the requests. /// - public BicepValue ForwardProxy { get => _forwardProxy; set => _forwardProxy.Assign(value); } - private readonly BicepValue _forwardProxy; + public ContainerAppForwardProxy ForwardProxy + { + get { Initialize(); return _forwardProxy!; } + set { Initialize(); AssignOrReplace(ref _forwardProxy, value); } + } + private ContainerAppForwardProxy? _forwardProxy; /// /// Creates a new ContainerAppHttpSettings. /// public ContainerAppHttpSettings() { - _requireHttps = BicepValue.DefineProperty(this, "RequireHttps", ["requireHttps"]); - _routesApiPrefix = BicepValue.DefineProperty(this, "RoutesApiPrefix", ["routes", "apiPrefix"]); - _forwardProxy = BicepValue.DefineProperty(this, "ForwardProxy", ["forwardProxy"]); + } + + /// + /// Define all the provisionable properties of ContainerAppHttpSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _requireHttps = DefineProperty("RequireHttps", ["requireHttps"]); + _routesApiPrefix = DefineProperty("RoutesApiPrefix", ["routes", "apiPrefix"]); + _forwardProxy = DefineModelProperty("ForwardProxy", ["forwardProxy"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppIPSecurityRestrictionRule.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppIPSecurityRestrictionRule.cs index 5550d7b2bb8e0..aba5cbbce585e 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppIPSecurityRestrictionRule.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppIPSecurityRestrictionRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,37 +18,62 @@ public partial class ContainerAppIPSecurityRestrictionRule : ProvisionableConstr /// /// Name for the IP restriction rule. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Describe the IP restriction rule that is being sent to the /// container-app. This is an optional field. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// CIDR notation to match incoming IP address. /// - public BicepValue IPAddressRange { get => _iPAddressRange; set => _iPAddressRange.Assign(value); } - private readonly BicepValue _iPAddressRange; + public BicepValue IPAddressRange + { + get { Initialize(); return _iPAddressRange!; } + set { Initialize(); _iPAddressRange!.Assign(value); } + } + private BicepValue? _iPAddressRange; /// /// Allow or Deny rules to determine for incoming IP. Note: Rules can only /// consist of ALL Allow or ALL Deny. /// - public BicepValue Action { get => _action; set => _action.Assign(value); } - private readonly BicepValue _action; + public BicepValue Action + { + get { Initialize(); return _action!; } + set { Initialize(); _action!.Assign(value); } + } + private BicepValue? _action; /// /// Creates a new ContainerAppIPSecurityRestrictionRule. /// public ContainerAppIPSecurityRestrictionRule() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _iPAddressRange = BicepValue.DefineProperty(this, "IPAddressRange", ["ipAddressRange"]); - _action = BicepValue.DefineProperty(this, "Action", ["action"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppIPSecurityRestrictionRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _description = DefineProperty("Description", ["description"]); + _iPAddressRange = DefineProperty("IPAddressRange", ["ipAddressRange"]); + _action = DefineProperty("Action", ["action"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppIdentityProvidersConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppIdentityProvidersConfiguration.cs index 180395765bc4c..315b8f6814998 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppIdentityProvidersConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppIdentityProvidersConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,65 +20,106 @@ public partial class ContainerAppIdentityProvidersConfiguration : ProvisionableC /// /// The configuration settings of the Azure Active directory provider. /// - public BicepValue AzureActiveDirectory { get => _azureActiveDirectory; set => _azureActiveDirectory.Assign(value); } - private readonly BicepValue _azureActiveDirectory; + public ContainerAppAzureActiveDirectoryConfiguration AzureActiveDirectory + { + get { Initialize(); return _azureActiveDirectory!; } + set { Initialize(); AssignOrReplace(ref _azureActiveDirectory, value); } + } + private ContainerAppAzureActiveDirectoryConfiguration? _azureActiveDirectory; /// /// The configuration settings of the Facebook provider. /// - public BicepValue Facebook { get => _facebook; set => _facebook.Assign(value); } - private readonly BicepValue _facebook; + public ContainerAppFacebookConfiguration Facebook + { + get { Initialize(); return _facebook!; } + set { Initialize(); AssignOrReplace(ref _facebook, value); } + } + private ContainerAppFacebookConfiguration? _facebook; /// /// The configuration settings of the GitHub provider. /// - public BicepValue GitHub { get => _gitHub; set => _gitHub.Assign(value); } - private readonly BicepValue _gitHub; + public ContainerAppGitHubConfiguration GitHub + { + get { Initialize(); return _gitHub!; } + set { Initialize(); AssignOrReplace(ref _gitHub, value); } + } + private ContainerAppGitHubConfiguration? _gitHub; /// /// The configuration settings of the Google provider. /// - public BicepValue Google { get => _google; set => _google.Assign(value); } - private readonly BicepValue _google; + public ContainerAppGoogleConfiguration Google + { + get { Initialize(); return _google!; } + set { Initialize(); AssignOrReplace(ref _google, value); } + } + private ContainerAppGoogleConfiguration? _google; /// /// The configuration settings of the Twitter provider. /// - public BicepValue Twitter { get => _twitter; set => _twitter.Assign(value); } - private readonly BicepValue _twitter; + public ContainerAppTwitterConfiguration Twitter + { + get { Initialize(); return _twitter!; } + set { Initialize(); AssignOrReplace(ref _twitter, value); } + } + private ContainerAppTwitterConfiguration? _twitter; /// /// The configuration settings of the Apple provider. /// - public BicepValue Apple { get => _apple; set => _apple.Assign(value); } - private readonly BicepValue _apple; + public ContainerAppAppleConfiguration Apple + { + get { Initialize(); return _apple!; } + set { Initialize(); AssignOrReplace(ref _apple, value); } + } + private ContainerAppAppleConfiguration? _apple; /// /// The configuration settings of the Azure Static Web Apps provider. /// - public BicepValue AzureStaticWebApps { get => _azureStaticWebApps; set => _azureStaticWebApps.Assign(value); } - private readonly BicepValue _azureStaticWebApps; + public ContainerAppAzureStaticWebAppsConfiguration AzureStaticWebApps + { + get { Initialize(); return _azureStaticWebApps!; } + set { Initialize(); AssignOrReplace(ref _azureStaticWebApps, value); } + } + private ContainerAppAzureStaticWebAppsConfiguration? _azureStaticWebApps; /// /// The map of the name of the alias of each custom Open ID Connect /// provider to the configuration settings of the custom Open /// ID Connect provider. /// - public BicepDictionary CustomOpenIdConnectProviders { get => _customOpenIdConnectProviders; set => _customOpenIdConnectProviders.Assign(value); } - private readonly BicepDictionary _customOpenIdConnectProviders; + public BicepDictionary CustomOpenIdConnectProviders + { + get { Initialize(); return _customOpenIdConnectProviders!; } + set { Initialize(); _customOpenIdConnectProviders!.Assign(value); } + } + private BicepDictionary? _customOpenIdConnectProviders; /// /// Creates a new ContainerAppIdentityProvidersConfiguration. /// public ContainerAppIdentityProvidersConfiguration() { - _azureActiveDirectory = BicepValue.DefineProperty(this, "AzureActiveDirectory", ["azureActiveDirectory"]); - _facebook = BicepValue.DefineProperty(this, "Facebook", ["facebook"]); - _gitHub = BicepValue.DefineProperty(this, "GitHub", ["gitHub"]); - _google = BicepValue.DefineProperty(this, "Google", ["google"]); - _twitter = BicepValue.DefineProperty(this, "Twitter", ["twitter"]); - _apple = BicepValue.DefineProperty(this, "Apple", ["apple"]); - _azureStaticWebApps = BicepValue.DefineProperty(this, "AzureStaticWebApps", ["azureStaticWebApps"]); - _customOpenIdConnectProviders = BicepDictionary.DefineProperty(this, "CustomOpenIdConnectProviders", ["customOpenIdConnectProviders"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppIdentityProvidersConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _azureActiveDirectory = DefineModelProperty("AzureActiveDirectory", ["azureActiveDirectory"]); + _facebook = DefineModelProperty("Facebook", ["facebook"]); + _gitHub = DefineModelProperty("GitHub", ["gitHub"]); + _google = DefineModelProperty("Google", ["google"]); + _twitter = DefineModelProperty("Twitter", ["twitter"]); + _apple = DefineModelProperty("Apple", ["apple"]); + _azureStaticWebApps = DefineModelProperty("AzureStaticWebApps", ["azureStaticWebApps"]); + _customOpenIdConnectProviders = DefineDictionaryProperty("CustomOpenIdConnectProviders", ["customOpenIdConnectProviders"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppIngressConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppIngressConfiguration.cs index 6493d2e7cb84a..08b47a441b395 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppIngressConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppIngressConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,63 +20,102 @@ public partial class ContainerAppIngressConfiguration : ProvisionableConstruct /// /// Hostname. /// - public BicepValue Fqdn { get => _fqdn; } - private readonly BicepValue _fqdn; + public BicepValue Fqdn + { + get { Initialize(); return _fqdn!; } + } + private BicepValue? _fqdn; /// /// Bool indicating if app exposes an external http endpoint. /// - public BicepValue External { get => _external; set => _external.Assign(value); } - private readonly BicepValue _external; + public BicepValue External + { + get { Initialize(); return _external!; } + set { Initialize(); _external!.Assign(value); } + } + private BicepValue? _external; /// /// Target Port in containers for traffic from ingress. /// - public BicepValue TargetPort { get => _targetPort; set => _targetPort.Assign(value); } - private readonly BicepValue _targetPort; + public BicepValue TargetPort + { + get { Initialize(); return _targetPort!; } + set { Initialize(); _targetPort!.Assign(value); } + } + private BicepValue? _targetPort; /// /// Exposed Port in containers for TCP traffic from ingress. /// - public BicepValue ExposedPort { get => _exposedPort; set => _exposedPort.Assign(value); } - private readonly BicepValue _exposedPort; + public BicepValue ExposedPort + { + get { Initialize(); return _exposedPort!; } + set { Initialize(); _exposedPort!.Assign(value); } + } + private BicepValue? _exposedPort; /// /// Ingress transport protocol. /// - public BicepValue Transport { get => _transport; set => _transport.Assign(value); } - private readonly BicepValue _transport; + public BicepValue Transport + { + get { Initialize(); return _transport!; } + set { Initialize(); _transport!.Assign(value); } + } + private BicepValue? _transport; /// /// Traffic weights for app's revisions. /// - public BicepList Traffic { get => _traffic; set => _traffic.Assign(value); } - private readonly BicepList _traffic; + public BicepList Traffic + { + get { Initialize(); return _traffic!; } + set { Initialize(); _traffic!.Assign(value); } + } + private BicepList? _traffic; /// /// custom domain bindings for Container Apps' hostnames. /// - public BicepList CustomDomains { get => _customDomains; set => _customDomains.Assign(value); } - private readonly BicepList _customDomains; + public BicepList CustomDomains + { + get { Initialize(); return _customDomains!; } + set { Initialize(); _customDomains!.Assign(value); } + } + private BicepList? _customDomains; /// /// Bool indicating if HTTP connections to is allowed. If set to false HTTP /// connections are automatically redirected to HTTPS connections. /// - public BicepValue AllowInsecure { get => _allowInsecure; set => _allowInsecure.Assign(value); } - private readonly BicepValue _allowInsecure; + public BicepValue AllowInsecure + { + get { Initialize(); return _allowInsecure!; } + set { Initialize(); _allowInsecure!.Assign(value); } + } + private BicepValue? _allowInsecure; /// /// Rules to restrict incoming IP address. /// - public BicepList IPSecurityRestrictions { get => _iPSecurityRestrictions; set => _iPSecurityRestrictions.Assign(value); } - private readonly BicepList _iPSecurityRestrictions; + public BicepList IPSecurityRestrictions + { + get { Initialize(); return _iPSecurityRestrictions!; } + set { Initialize(); _iPSecurityRestrictions!.Assign(value); } + } + private BicepList? _iPSecurityRestrictions; /// /// Sticky Session Affinity. /// - public BicepValue StickySessionsAffinity { get => _stickySessionsAffinity; set => _stickySessionsAffinity.Assign(value); } - private readonly BicepValue _stickySessionsAffinity; + public BicepValue StickySessionsAffinity + { + get { Initialize(); return _stickySessionsAffinity!; } + set { Initialize(); _stickySessionsAffinity!.Assign(value); } + } + private BicepValue? _stickySessionsAffinity; /// /// Client certificate mode for mTLS authentication. Ignore indicates @@ -82,38 +123,59 @@ public partial class ContainerAppIngressConfiguration : ProvisionableConstruct /// forwards client certificate but does not require a client certificate. /// Require indicates server requires a client certificate. /// - public BicepValue ClientCertificateMode { get => _clientCertificateMode; set => _clientCertificateMode.Assign(value); } - private readonly BicepValue _clientCertificateMode; + public BicepValue ClientCertificateMode + { + get { Initialize(); return _clientCertificateMode!; } + set { Initialize(); _clientCertificateMode!.Assign(value); } + } + private BicepValue? _clientCertificateMode; /// /// CORS policy for container app. /// - public BicepValue CorsPolicy { get => _corsPolicy; set => _corsPolicy.Assign(value); } - private readonly BicepValue _corsPolicy; + public ContainerAppCorsPolicy CorsPolicy + { + get { Initialize(); return _corsPolicy!; } + set { Initialize(); AssignOrReplace(ref _corsPolicy, value); } + } + private ContainerAppCorsPolicy? _corsPolicy; /// /// Settings to expose additional ports on container app. /// - public BicepList AdditionalPortMappings { get => _additionalPortMappings; set => _additionalPortMappings.Assign(value); } - private readonly BicepList _additionalPortMappings; + public BicepList AdditionalPortMappings + { + get { Initialize(); return _additionalPortMappings!; } + set { Initialize(); _additionalPortMappings!.Assign(value); } + } + private BicepList? _additionalPortMappings; /// /// Creates a new ContainerAppIngressConfiguration. /// public ContainerAppIngressConfiguration() { - _fqdn = BicepValue.DefineProperty(this, "Fqdn", ["fqdn"], isOutput: true); - _external = BicepValue.DefineProperty(this, "External", ["external"]); - _targetPort = BicepValue.DefineProperty(this, "TargetPort", ["targetPort"]); - _exposedPort = BicepValue.DefineProperty(this, "ExposedPort", ["exposedPort"]); - _transport = BicepValue.DefineProperty(this, "Transport", ["transport"]); - _traffic = BicepList.DefineProperty(this, "Traffic", ["traffic"]); - _customDomains = BicepList.DefineProperty(this, "CustomDomains", ["customDomains"]); - _allowInsecure = BicepValue.DefineProperty(this, "AllowInsecure", ["allowInsecure"]); - _iPSecurityRestrictions = BicepList.DefineProperty(this, "IPSecurityRestrictions", ["ipSecurityRestrictions"]); - _stickySessionsAffinity = BicepValue.DefineProperty(this, "StickySessionsAffinity", ["stickySessions", "affinity"]); - _clientCertificateMode = BicepValue.DefineProperty(this, "ClientCertificateMode", ["clientCertificateMode"]); - _corsPolicy = BicepValue.DefineProperty(this, "CorsPolicy", ["corsPolicy"]); - _additionalPortMappings = BicepList.DefineProperty(this, "AdditionalPortMappings", ["additionalPortMappings"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppIngressConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _fqdn = DefineProperty("Fqdn", ["fqdn"], isOutput: true); + _external = DefineProperty("External", ["external"]); + _targetPort = DefineProperty("TargetPort", ["targetPort"]); + _exposedPort = DefineProperty("ExposedPort", ["exposedPort"]); + _transport = DefineProperty("Transport", ["transport"]); + _traffic = DefineListProperty("Traffic", ["traffic"]); + _customDomains = DefineListProperty("CustomDomains", ["customDomains"]); + _allowInsecure = DefineProperty("AllowInsecure", ["allowInsecure"]); + _iPSecurityRestrictions = DefineListProperty("IPSecurityRestrictions", ["ipSecurityRestrictions"]); + _stickySessionsAffinity = DefineProperty("StickySessionsAffinity", ["stickySessions", "affinity"]); + _clientCertificateMode = DefineProperty("ClientCertificateMode", ["clientCertificateMode"]); + _corsPolicy = DefineModelProperty("CorsPolicy", ["corsPolicy"]); + _additionalPortMappings = DefineListProperty("AdditionalPortMappings", ["additionalPortMappings"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppInitContainer.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppInitContainer.cs index 8f6c36a90cea0..8e2031a200a8a 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppInitContainer.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppInitContainer.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,56 +19,92 @@ public partial class ContainerAppInitContainer : ProvisionableConstruct /// /// Container image tag. /// - public BicepValue Image { get => _image; set => _image.Assign(value); } - private readonly BicepValue _image; + public BicepValue Image + { + get { Initialize(); return _image!; } + set { Initialize(); _image!.Assign(value); } + } + private BicepValue? _image; /// /// Custom container name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Container start command. /// - public BicepList Command { get => _command; set => _command.Assign(value); } - private readonly BicepList _command; + public BicepList Command + { + get { Initialize(); return _command!; } + set { Initialize(); _command!.Assign(value); } + } + private BicepList? _command; /// /// Container start command arguments. /// - public BicepList Args { get => _args; set => _args.Assign(value); } - private readonly BicepList _args; + public BicepList Args + { + get { Initialize(); return _args!; } + set { Initialize(); _args!.Assign(value); } + } + private BicepList? _args; /// /// Container environment variables. /// - public BicepList Env { get => _env; set => _env.Assign(value); } - private readonly BicepList _env; + public BicepList Env + { + get { Initialize(); return _env!; } + set { Initialize(); _env!.Assign(value); } + } + private BicepList? _env; /// /// Container resource requirements. /// - public BicepValue Resources { get => _resources; set => _resources.Assign(value); } - private readonly BicepValue _resources; + public AppContainerResources Resources + { + get { Initialize(); return _resources!; } + set { Initialize(); AssignOrReplace(ref _resources, value); } + } + private AppContainerResources? _resources; /// /// Container volume mounts. /// - public BicepList VolumeMounts { get => _volumeMounts; set => _volumeMounts.Assign(value); } - private readonly BicepList _volumeMounts; + public BicepList VolumeMounts + { + get { Initialize(); return _volumeMounts!; } + set { Initialize(); _volumeMounts!.Assign(value); } + } + private BicepList? _volumeMounts; /// /// Creates a new ContainerAppInitContainer. /// public ContainerAppInitContainer() { - _image = BicepValue.DefineProperty(this, "Image", ["image"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _command = BicepList.DefineProperty(this, "Command", ["command"]); - _args = BicepList.DefineProperty(this, "Args", ["args"]); - _env = BicepList.DefineProperty(this, "Env", ["env"]); - _resources = BicepValue.DefineProperty(this, "Resources", ["resources"]); - _volumeMounts = BicepList.DefineProperty(this, "VolumeMounts", ["volumeMounts"]); + } + + /// + /// Define all the provisionable properties of ContainerAppInitContainer. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _image = DefineProperty("Image", ["image"]); + _name = DefineProperty("Name", ["name"]); + _command = DefineListProperty("Command", ["command"]); + _args = DefineListProperty("Args", ["args"]); + _env = DefineListProperty("Env", ["env"]); + _resources = DefineModelProperty("Resources", ["resources"]); + _volumeMounts = DefineListProperty("VolumeMounts", ["volumeMounts"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs index 96d9bba9d8ee1..f038d0bc27079 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,67 +19,107 @@ public partial class ContainerAppJobConfiguration : ProvisionableConstruct /// /// Collection of secrets used by a Container Apps Job. /// - public BicepList Secrets { get => _secrets; set => _secrets.Assign(value); } - private readonly BicepList _secrets; + public BicepList Secrets + { + get { Initialize(); return _secrets!; } + set { Initialize(); _secrets!.Assign(value); } + } + private BicepList? _secrets; /// /// Trigger type of the job. /// - public BicepValue TriggerType { get => _triggerType; set => _triggerType.Assign(value); } - private readonly BicepValue _triggerType; + public BicepValue TriggerType + { + get { Initialize(); return _triggerType!; } + set { Initialize(); _triggerType!.Assign(value); } + } + private BicepValue? _triggerType; /// /// Maximum number of seconds a replica is allowed to run. /// - public BicepValue ReplicaTimeout { get => _replicaTimeout; set => _replicaTimeout.Assign(value); } - private readonly BicepValue _replicaTimeout; + public BicepValue ReplicaTimeout + { + get { Initialize(); return _replicaTimeout!; } + set { Initialize(); _replicaTimeout!.Assign(value); } + } + private BicepValue? _replicaTimeout; /// /// Maximum number of retries before failing the job. /// - public BicepValue ReplicaRetryLimit { get => _replicaRetryLimit; set => _replicaRetryLimit.Assign(value); } - private readonly BicepValue _replicaRetryLimit; + public BicepValue ReplicaRetryLimit + { + get { Initialize(); return _replicaRetryLimit!; } + set { Initialize(); _replicaRetryLimit!.Assign(value); } + } + private BicepValue? _replicaRetryLimit; /// /// Manual trigger configuration for a single execution job. Properties /// replicaCompletionCount and parallelism would be set to 1 by default. /// - public BicepValue ManualTriggerConfig { get => _manualTriggerConfig; set => _manualTriggerConfig.Assign(value); } - private readonly BicepValue _manualTriggerConfig; + public JobConfigurationManualTriggerConfig ManualTriggerConfig + { + get { Initialize(); return _manualTriggerConfig!; } + set { Initialize(); AssignOrReplace(ref _manualTriggerConfig, value); } + } + private JobConfigurationManualTriggerConfig? _manualTriggerConfig; /// /// Cron formatted repeating trigger schedule ("* * * * *") for /// cronjobs. Properties completions and parallelism would be set to 1 by /// default. /// - public BicepValue ScheduleTriggerConfig { get => _scheduleTriggerConfig; set => _scheduleTriggerConfig.Assign(value); } - private readonly BicepValue _scheduleTriggerConfig; + public JobConfigurationScheduleTriggerConfig ScheduleTriggerConfig + { + get { Initialize(); return _scheduleTriggerConfig!; } + set { Initialize(); AssignOrReplace(ref _scheduleTriggerConfig, value); } + } + private JobConfigurationScheduleTriggerConfig? _scheduleTriggerConfig; /// /// Trigger configuration of an event driven job. /// - public BicepValue EventTriggerConfig { get => _eventTriggerConfig; set => _eventTriggerConfig.Assign(value); } - private readonly BicepValue _eventTriggerConfig; + public EventTriggerConfiguration EventTriggerConfig + { + get { Initialize(); return _eventTriggerConfig!; } + set { Initialize(); AssignOrReplace(ref _eventTriggerConfig, value); } + } + private EventTriggerConfiguration? _eventTriggerConfig; /// /// Collection of private container registry credentials used by a /// Container apps job. /// - public BicepList Registries { get => _registries; set => _registries.Assign(value); } - private readonly BicepList _registries; + public BicepList Registries + { + get { Initialize(); return _registries!; } + set { Initialize(); _registries!.Assign(value); } + } + private BicepList? _registries; /// /// Creates a new ContainerAppJobConfiguration. /// public ContainerAppJobConfiguration() { - _secrets = BicepList.DefineProperty(this, "Secrets", ["secrets"]); - _triggerType = BicepValue.DefineProperty(this, "TriggerType", ["triggerType"]); - _replicaTimeout = BicepValue.DefineProperty(this, "ReplicaTimeout", ["replicaTimeout"]); - _replicaRetryLimit = BicepValue.DefineProperty(this, "ReplicaRetryLimit", ["replicaRetryLimit"]); - _manualTriggerConfig = BicepValue.DefineProperty(this, "ManualTriggerConfig", ["manualTriggerConfig"]); - _scheduleTriggerConfig = BicepValue.DefineProperty(this, "ScheduleTriggerConfig", ["scheduleTriggerConfig"]); - _eventTriggerConfig = BicepValue.DefineProperty(this, "EventTriggerConfig", ["eventTriggerConfig"]); - _registries = BicepList.DefineProperty(this, "Registries", ["registries"]); + } + + /// + /// Define all the provisionable properties of ContainerAppJobConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _secrets = DefineListProperty("Secrets", ["secrets"]); + _triggerType = DefineProperty("TriggerType", ["triggerType"]); + _replicaTimeout = DefineProperty("ReplicaTimeout", ["replicaTimeout"]); + _replicaRetryLimit = DefineProperty("ReplicaRetryLimit", ["replicaRetryLimit"]); + _manualTriggerConfig = DefineModelProperty("ManualTriggerConfig", ["manualTriggerConfig"]); + _scheduleTriggerConfig = DefineModelProperty("ScheduleTriggerConfig", ["scheduleTriggerConfig"]); + _eventTriggerConfig = DefineModelProperty("EventTriggerConfig", ["eventTriggerConfig"]); + _registries = DefineListProperty("Registries", ["registries"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobScale.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobScale.cs index 2200d477c2a95..08754d1cc8460 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobScale.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobScale.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,37 +19,61 @@ public partial class ContainerAppJobScale : ProvisionableConstruct /// /// Interval to check each event source in seconds. Defaults to 30s. /// - public BicepValue PollingIntervalInSeconds { get => _pollingIntervalInSeconds; set => _pollingIntervalInSeconds.Assign(value); } - private readonly BicepValue _pollingIntervalInSeconds; + public BicepValue PollingIntervalInSeconds + { + get { Initialize(); return _pollingIntervalInSeconds!; } + set { Initialize(); _pollingIntervalInSeconds!.Assign(value); } + } + private BicepValue? _pollingIntervalInSeconds; /// /// Minimum number of job executions that are created for a trigger, /// default 0. /// - public BicepValue MinExecutions { get => _minExecutions; set => _minExecutions.Assign(value); } - private readonly BicepValue _minExecutions; + public BicepValue MinExecutions + { + get { Initialize(); return _minExecutions!; } + set { Initialize(); _minExecutions!.Assign(value); } + } + private BicepValue? _minExecutions; /// /// Maximum number of job executions that are created for a trigger, /// default 100. /// - public BicepValue MaxExecutions { get => _maxExecutions; set => _maxExecutions.Assign(value); } - private readonly BicepValue _maxExecutions; + public BicepValue MaxExecutions + { + get { Initialize(); return _maxExecutions!; } + set { Initialize(); _maxExecutions!.Assign(value); } + } + private BicepValue? _maxExecutions; /// /// Scaling rules. /// - public BicepList Rules { get => _rules; set => _rules.Assign(value); } - private readonly BicepList _rules; + public BicepList Rules + { + get { Initialize(); return _rules!; } + set { Initialize(); _rules!.Assign(value); } + } + private BicepList? _rules; /// /// Creates a new ContainerAppJobScale. /// public ContainerAppJobScale() { - _pollingIntervalInSeconds = BicepValue.DefineProperty(this, "PollingIntervalInSeconds", ["pollingInterval"]); - _minExecutions = BicepValue.DefineProperty(this, "MinExecutions", ["minExecutions"]); - _maxExecutions = BicepValue.DefineProperty(this, "MaxExecutions", ["maxExecutions"]); - _rules = BicepList.DefineProperty(this, "Rules", ["rules"]); + } + + /// + /// Define all the provisionable properties of ContainerAppJobScale. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _pollingIntervalInSeconds = DefineProperty("PollingIntervalInSeconds", ["pollingInterval"]); + _minExecutions = DefineProperty("MinExecutions", ["minExecutions"]); + _maxExecutions = DefineProperty("MaxExecutions", ["maxExecutions"]); + _rules = DefineListProperty("Rules", ["rules"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.cs index f07b28e68d295..517cec0a69fee 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,14 +19,22 @@ public partial class ContainerAppJobScaleRule : ProvisionableConstruct /// /// Scale Rule Name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Type of the scale rule eg: azure-servicebus, redis etc. /// - public BicepValue JobScaleRuleType { get => _jobScaleRuleType; set => _jobScaleRuleType.Assign(value); } - private readonly BicepValue _jobScaleRuleType; + public BicepValue JobScaleRuleType + { + get { Initialize(); return _jobScaleRuleType!; } + set { Initialize(); _jobScaleRuleType!.Assign(value); } + } + private BicepValue? _jobScaleRuleType; /// /// Metadata properties to describe the scale rule. @@ -42,23 +52,39 @@ public partial class ContainerAppJobScaleRule : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepValue _metadata; + public BicepValue Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepValue? _metadata; /// /// Authentication secrets for the scale rule. /// - public BicepList Auth { get => _auth; set => _auth.Assign(value); } - private readonly BicepList _auth; + public BicepList Auth + { + get { Initialize(); return _auth!; } + set { Initialize(); _auth!.Assign(value); } + } + private BicepList? _auth; /// /// Creates a new ContainerAppJobScaleRule. /// public ContainerAppJobScaleRule() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _jobScaleRuleType = BicepValue.DefineProperty(this, "JobScaleRuleType", ["type"]); - _metadata = BicepValue.DefineProperty(this, "Metadata", ["metadata"]); - _auth = BicepList.DefineProperty(this, "Auth", ["auth"]); + } + + /// + /// Define all the provisionable properties of ContainerAppJobScaleRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _jobScaleRuleType = DefineProperty("JobScaleRuleType", ["type"]); + _metadata = DefineProperty("Metadata", ["metadata"]); + _auth = DefineListProperty("Auth", ["auth"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobTemplate.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobTemplate.cs index 1bf0a1f7ad07b..8d7f827f2bb3f 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobTemplate.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJobTemplate.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,28 +21,48 @@ public partial class ContainerAppJobTemplate : ProvisionableConstruct /// /// List of specialized containers that run before app containers. /// - public BicepList InitContainers { get => _initContainers; set => _initContainers.Assign(value); } - private readonly BicepList _initContainers; + public BicepList InitContainers + { + get { Initialize(); return _initContainers!; } + set { Initialize(); _initContainers!.Assign(value); } + } + private BicepList? _initContainers; /// /// List of container definitions for the Container App. /// - public BicepList Containers { get => _containers; set => _containers.Assign(value); } - private readonly BicepList _containers; + public BicepList Containers + { + get { Initialize(); return _containers!; } + set { Initialize(); _containers!.Assign(value); } + } + private BicepList? _containers; /// /// List of volume definitions for the Container App. /// - public BicepList Volumes { get => _volumes; set => _volumes.Assign(value); } - private readonly BicepList _volumes; + public BicepList Volumes + { + get { Initialize(); return _volumes!; } + set { Initialize(); _volumes!.Assign(value); } + } + private BicepList? _volumes; /// /// Creates a new ContainerAppJobTemplate. /// public ContainerAppJobTemplate() { - _initContainers = BicepList.DefineProperty(this, "InitContainers", ["initContainers"]); - _containers = BicepList.DefineProperty(this, "Containers", ["containers"]); - _volumes = BicepList.DefineProperty(this, "Volumes", ["volumes"]); + } + + /// + /// Define all the provisionable properties of ContainerAppJobTemplate. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _initContainers = DefineListProperty("InitContainers", ["initContainers"]); + _containers = DefineListProperty("Containers", ["containers"]); + _volumes = DefineListProperty("Volumes", ["volumes"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJwtClaimChecks.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJwtClaimChecks.cs index c413f7f2c0cdf..d196607b80749 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJwtClaimChecks.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppJwtClaimChecks.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,37 @@ public partial class ContainerAppJwtClaimChecks : ProvisionableConstruct /// /// The list of the allowed groups. /// - public BicepList AllowedGroups { get => _allowedGroups; set => _allowedGroups.Assign(value); } - private readonly BicepList _allowedGroups; + public BicepList AllowedGroups + { + get { Initialize(); return _allowedGroups!; } + set { Initialize(); _allowedGroups!.Assign(value); } + } + private BicepList? _allowedGroups; /// /// The list of the allowed client applications. /// - public BicepList AllowedClientApplications { get => _allowedClientApplications; set => _allowedClientApplications.Assign(value); } - private readonly BicepList _allowedClientApplications; + public BicepList AllowedClientApplications + { + get { Initialize(); return _allowedClientApplications!; } + set { Initialize(); _allowedClientApplications!.Assign(value); } + } + private BicepList? _allowedClientApplications; /// /// Creates a new ContainerAppJwtClaimChecks. /// public ContainerAppJwtClaimChecks() { - _allowedGroups = BicepList.DefineProperty(this, "AllowedGroups", ["allowedGroups"]); - _allowedClientApplications = BicepList.DefineProperty(this, "AllowedClientApplications", ["allowedClientApplications"]); + } + + /// + /// Define all the provisionable properties of ContainerAppJwtClaimChecks. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _allowedGroups = DefineListProperty("AllowedGroups", ["allowedGroups"]); + _allowedClientApplications = DefineListProperty("AllowedClientApplications", ["allowedClientApplications"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLogAnalyticsConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLogAnalyticsConfiguration.cs index 6750efc0a5f1b..68161d9f50f48 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLogAnalyticsConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLogAnalyticsConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class ContainerAppLogAnalyticsConfiguration : ProvisionableConstr /// /// Log analytics customer id. /// - public BicepValue CustomerId { get => _customerId; set => _customerId.Assign(value); } - private readonly BicepValue _customerId; + public BicepValue CustomerId + { + get { Initialize(); return _customerId!; } + set { Initialize(); _customerId!.Assign(value); } + } + private BicepValue? _customerId; /// /// Log analytics customer key. /// - public BicepValue SharedKey { get => _sharedKey; set => _sharedKey.Assign(value); } - private readonly BicepValue _sharedKey; + public BicepValue SharedKey + { + get { Initialize(); return _sharedKey!; } + set { Initialize(); _sharedKey!.Assign(value); } + } + private BicepValue? _sharedKey; /// /// Creates a new ContainerAppLogAnalyticsConfiguration. /// public ContainerAppLogAnalyticsConfiguration() { - _customerId = BicepValue.DefineProperty(this, "CustomerId", ["customerId"]); - _sharedKey = BicepValue.DefineProperty(this, "SharedKey", ["sharedKey"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppLogAnalyticsConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _customerId = DefineProperty("CustomerId", ["customerId"]); + _sharedKey = DefineProperty("SharedKey", ["sharedKey"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLogin.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLogin.cs index 1ce505b99402e..53f81d11e5804 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLogin.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLogin.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,22 +20,34 @@ public partial class ContainerAppLogin : ProvisionableConstruct /// /// The endpoint at which a logout request should be made. /// - public BicepValue RoutesLogoutEndpoint { get => _routesLogoutEndpoint; set => _routesLogoutEndpoint.Assign(value); } - private readonly BicepValue _routesLogoutEndpoint; + public BicepValue RoutesLogoutEndpoint + { + get { Initialize(); return _routesLogoutEndpoint!; } + set { Initialize(); _routesLogoutEndpoint!.Assign(value); } + } + private BicepValue? _routesLogoutEndpoint; /// /// The configuration settings of the token store. /// - public BicepValue TokenStore { get => _tokenStore; set => _tokenStore.Assign(value); } - private readonly BicepValue _tokenStore; + public ContainerAppTokenStore TokenStore + { + get { Initialize(); return _tokenStore!; } + set { Initialize(); AssignOrReplace(ref _tokenStore, value); } + } + private ContainerAppTokenStore? _tokenStore; /// /// <code>true</code> if the fragments from the request are /// preserved after the login request is made; otherwise, /// <code>false</code>. /// - public BicepValue PreserveUrlFragmentsForLogins { get => _preserveUrlFragmentsForLogins; set => _preserveUrlFragmentsForLogins.Assign(value); } - private readonly BicepValue _preserveUrlFragmentsForLogins; + public BicepValue PreserveUrlFragmentsForLogins + { + get { Initialize(); return _preserveUrlFragmentsForLogins!; } + set { Initialize(); _preserveUrlFragmentsForLogins!.Assign(value); } + } + private BicepValue? _preserveUrlFragmentsForLogins; /// /// External URLs that can be redirected to as part of logging in or @@ -42,31 +56,51 @@ public partial class ContainerAppLogin : ProvisionableConstruct /// by Windows Store application backends. Note that URLs /// within the current domain are always implicitly allowed. /// - public BicepList AllowedExternalRedirectUrls { get => _allowedExternalRedirectUrls; set => _allowedExternalRedirectUrls.Assign(value); } - private readonly BicepList _allowedExternalRedirectUrls; + public BicepList AllowedExternalRedirectUrls + { + get { Initialize(); return _allowedExternalRedirectUrls!; } + set { Initialize(); _allowedExternalRedirectUrls!.Assign(value); } + } + private BicepList? _allowedExternalRedirectUrls; /// /// The configuration settings of the session cookie's expiration. /// - public BicepValue CookieExpiration { get => _cookieExpiration; set => _cookieExpiration.Assign(value); } - private readonly BicepValue _cookieExpiration; + public ContainerAppCookieExpiration CookieExpiration + { + get { Initialize(); return _cookieExpiration!; } + set { Initialize(); AssignOrReplace(ref _cookieExpiration, value); } + } + private ContainerAppCookieExpiration? _cookieExpiration; /// /// The configuration settings of the nonce used in the login flow. /// - public BicepValue Nonce { get => _nonce; set => _nonce.Assign(value); } - private readonly BicepValue _nonce; + public ContainerAppLoginNonce Nonce + { + get { Initialize(); return _nonce!; } + set { Initialize(); AssignOrReplace(ref _nonce, value); } + } + private ContainerAppLoginNonce? _nonce; /// /// Creates a new ContainerAppLogin. /// public ContainerAppLogin() { - _routesLogoutEndpoint = BicepValue.DefineProperty(this, "RoutesLogoutEndpoint", ["routes", "logoutEndpoint"]); - _tokenStore = BicepValue.DefineProperty(this, "TokenStore", ["tokenStore"]); - _preserveUrlFragmentsForLogins = BicepValue.DefineProperty(this, "PreserveUrlFragmentsForLogins", ["preserveUrlFragmentsForLogins"]); - _allowedExternalRedirectUrls = BicepList.DefineProperty(this, "AllowedExternalRedirectUrls", ["allowedExternalRedirectUrls"]); - _cookieExpiration = BicepValue.DefineProperty(this, "CookieExpiration", ["cookieExpiration"]); - _nonce = BicepValue.DefineProperty(this, "Nonce", ["nonce"]); + } + + /// + /// Define all the provisionable properties of ContainerAppLogin. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _routesLogoutEndpoint = DefineProperty("RoutesLogoutEndpoint", ["routes", "logoutEndpoint"]); + _tokenStore = DefineModelProperty("TokenStore", ["tokenStore"]); + _preserveUrlFragmentsForLogins = DefineProperty("PreserveUrlFragmentsForLogins", ["preserveUrlFragmentsForLogins"]); + _allowedExternalRedirectUrls = DefineListProperty("AllowedExternalRedirectUrls", ["allowedExternalRedirectUrls"]); + _cookieExpiration = DefineModelProperty("CookieExpiration", ["cookieExpiration"]); + _nonce = DefineModelProperty("Nonce", ["nonce"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLoginNonce.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLoginNonce.cs index 99ce34f38602a..16cedbf5478e4 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLoginNonce.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLoginNonce.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,37 @@ public partial class ContainerAppLoginNonce : ProvisionableConstruct /// while completing the login flow; otherwise, /// <code>true</code>. /// - public BicepValue ValidateNonce { get => _validateNonce; set => _validateNonce.Assign(value); } - private readonly BicepValue _validateNonce; + public BicepValue ValidateNonce + { + get { Initialize(); return _validateNonce!; } + set { Initialize(); _validateNonce!.Assign(value); } + } + private BicepValue? _validateNonce; /// /// The time after the request is made when the nonce should expire. /// - public BicepValue NonceExpirationInterval { get => _nonceExpirationInterval; set => _nonceExpirationInterval.Assign(value); } - private readonly BicepValue _nonceExpirationInterval; + public BicepValue NonceExpirationInterval + { + get { Initialize(); return _nonceExpirationInterval!; } + set { Initialize(); _nonceExpirationInterval!.Assign(value); } + } + private BicepValue? _nonceExpirationInterval; /// /// Creates a new ContainerAppLoginNonce. /// public ContainerAppLoginNonce() { - _validateNonce = BicepValue.DefineProperty(this, "ValidateNonce", ["validateNonce"]); - _nonceExpirationInterval = BicepValue.DefineProperty(this, "NonceExpirationInterval", ["nonceExpirationInterval"]); + } + + /// + /// Define all the provisionable properties of ContainerAppLoginNonce. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _validateNonce = DefineProperty("ValidateNonce", ["validateNonce"]); + _nonceExpirationInterval = DefineProperty("NonceExpirationInterval", ["nonceExpirationInterval"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLogsConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLogsConfiguration.cs index ddcec5dadd119..d2228afe24a2b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLogsConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppLogsConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,22 +19,39 @@ public partial class ContainerAppLogsConfiguration : ProvisionableConstruct /// Logs destination, can be 'log-analytics', /// 'azure-monitor' or 'none'. /// - public BicepValue Destination { get => _destination; set => _destination.Assign(value); } - private readonly BicepValue _destination; + public BicepValue Destination + { + get { Initialize(); return _destination!; } + set { Initialize(); _destination!.Assign(value); } + } + private BicepValue? _destination; /// /// Log Analytics configuration, must only be provided when destination is /// configured as 'log-analytics'. /// - public BicepValue LogAnalyticsConfiguration { get => _logAnalyticsConfiguration; set => _logAnalyticsConfiguration.Assign(value); } - private readonly BicepValue _logAnalyticsConfiguration; + public ContainerAppLogAnalyticsConfiguration LogAnalyticsConfiguration + { + get { Initialize(); return _logAnalyticsConfiguration!; } + set { Initialize(); AssignOrReplace(ref _logAnalyticsConfiguration, value); } + } + private ContainerAppLogAnalyticsConfiguration? _logAnalyticsConfiguration; /// /// Creates a new ContainerAppLogsConfiguration. /// public ContainerAppLogsConfiguration() { - _destination = BicepValue.DefineProperty(this, "Destination", ["destination"]); - _logAnalyticsConfiguration = BicepValue.DefineProperty(this, "LogAnalyticsConfiguration", ["logAnalyticsConfiguration"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppLogsConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _destination = DefineProperty("Destination", ["destination"]); + _logAnalyticsConfiguration = DefineModelProperty("LogAnalyticsConfiguration", ["logAnalyticsConfiguration"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectClientCredential.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectClientCredential.cs index 944cc1591b575..9179e37195a69 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectClientCredential.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectClientCredential.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,22 +19,39 @@ public partial class ContainerAppOpenIdConnectClientCredential : ProvisionableCo /// /// The method that should be used to authenticate the user. /// - public BicepValue Method { get => _method; set => _method.Assign(value); } - private readonly BicepValue _method; + public BicepValue Method + { + get { Initialize(); return _method!; } + set { Initialize(); _method!.Assign(value); } + } + private BicepValue? _method; /// /// The app setting that contains the client secret for the custom Open ID /// Connect provider. /// - public BicepValue ClientSecretSettingName { get => _clientSecretSettingName; set => _clientSecretSettingName.Assign(value); } - private readonly BicepValue _clientSecretSettingName; + public BicepValue ClientSecretSettingName + { + get { Initialize(); return _clientSecretSettingName!; } + set { Initialize(); _clientSecretSettingName!.Assign(value); } + } + private BicepValue? _clientSecretSettingName; /// /// Creates a new ContainerAppOpenIdConnectClientCredential. /// public ContainerAppOpenIdConnectClientCredential() { - _method = BicepValue.DefineProperty(this, "Method", ["method"]); - _clientSecretSettingName = BicepValue.DefineProperty(this, "ClientSecretSettingName", ["clientSecretSettingName"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppOpenIdConnectClientCredential. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _method = DefineProperty("Method", ["method"]); + _clientSecretSettingName = DefineProperty("ClientSecretSettingName", ["clientSecretSettingName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectConfig.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectConfig.cs index f24e5fcba1906..020c78bf95145 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,43 +19,72 @@ public partial class ContainerAppOpenIdConnectConfig : ProvisionableConstruct /// /// The endpoint to be used to make an authorization request. /// - public BicepValue AuthorizationEndpoint { get => _authorizationEndpoint; set => _authorizationEndpoint.Assign(value); } - private readonly BicepValue _authorizationEndpoint; + public BicepValue AuthorizationEndpoint + { + get { Initialize(); return _authorizationEndpoint!; } + set { Initialize(); _authorizationEndpoint!.Assign(value); } + } + private BicepValue? _authorizationEndpoint; /// /// The endpoint to be used to request a token. /// - public BicepValue TokenEndpoint { get => _tokenEndpoint; set => _tokenEndpoint.Assign(value); } - private readonly BicepValue _tokenEndpoint; + public BicepValue TokenEndpoint + { + get { Initialize(); return _tokenEndpoint!; } + set { Initialize(); _tokenEndpoint!.Assign(value); } + } + private BicepValue? _tokenEndpoint; /// /// The endpoint that issues the token. /// - public BicepValue Issuer { get => _issuer; set => _issuer.Assign(value); } - private readonly BicepValue _issuer; + public BicepValue Issuer + { + get { Initialize(); return _issuer!; } + set { Initialize(); _issuer!.Assign(value); } + } + private BicepValue? _issuer; /// /// The endpoint that provides the keys necessary to validate the token. /// - public BicepValue CertificationUri { get => _certificationUri; set => _certificationUri.Assign(value); } - private readonly BicepValue _certificationUri; + public BicepValue CertificationUri + { + get { Initialize(); return _certificationUri!; } + set { Initialize(); _certificationUri!.Assign(value); } + } + private BicepValue? _certificationUri; /// /// The endpoint that contains all the configuration endpoints for the /// provider. /// - public BicepValue WellKnownOpenIdConfiguration { get => _wellKnownOpenIdConfiguration; set => _wellKnownOpenIdConfiguration.Assign(value); } - private readonly BicepValue _wellKnownOpenIdConfiguration; + public BicepValue WellKnownOpenIdConfiguration + { + get { Initialize(); return _wellKnownOpenIdConfiguration!; } + set { Initialize(); _wellKnownOpenIdConfiguration!.Assign(value); } + } + private BicepValue? _wellKnownOpenIdConfiguration; /// /// Creates a new ContainerAppOpenIdConnectConfig. /// public ContainerAppOpenIdConnectConfig() { - _authorizationEndpoint = BicepValue.DefineProperty(this, "AuthorizationEndpoint", ["authorizationEndpoint"]); - _tokenEndpoint = BicepValue.DefineProperty(this, "TokenEndpoint", ["tokenEndpoint"]); - _issuer = BicepValue.DefineProperty(this, "Issuer", ["issuer"]); - _certificationUri = BicepValue.DefineProperty(this, "CertificationUri", ["certificationUri"]); - _wellKnownOpenIdConfiguration = BicepValue.DefineProperty(this, "WellKnownOpenIdConfiguration", ["wellKnownOpenIdConfiguration"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppOpenIdConnectConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _authorizationEndpoint = DefineProperty("AuthorizationEndpoint", ["authorizationEndpoint"]); + _tokenEndpoint = DefineProperty("TokenEndpoint", ["tokenEndpoint"]); + _issuer = DefineProperty("Issuer", ["issuer"]); + _certificationUri = DefineProperty("CertificationUri", ["certificationUri"]); + _wellKnownOpenIdConfiguration = DefineProperty("WellKnownOpenIdConfiguration", ["wellKnownOpenIdConfiguration"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectLogin.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectLogin.cs index 09c86486012d6..0fa995e125d60 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectLogin.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectLogin.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,38 @@ public partial class ContainerAppOpenIdConnectLogin : ProvisionableConstruct /// /// The name of the claim that contains the users name. /// - public BicepValue NameClaimType { get => _nameClaimType; set => _nameClaimType.Assign(value); } - private readonly BicepValue _nameClaimType; + public BicepValue NameClaimType + { + get { Initialize(); return _nameClaimType!; } + set { Initialize(); _nameClaimType!.Assign(value); } + } + private BicepValue? _nameClaimType; /// /// A list of the scopes that should be requested while authenticating. /// - public BicepList Scopes { get => _scopes; set => _scopes.Assign(value); } - private readonly BicepList _scopes; + public BicepList Scopes + { + get { Initialize(); return _scopes!; } + set { Initialize(); _scopes!.Assign(value); } + } + private BicepList? _scopes; /// /// Creates a new ContainerAppOpenIdConnectLogin. /// public ContainerAppOpenIdConnectLogin() { - _nameClaimType = BicepValue.DefineProperty(this, "NameClaimType", ["nameClaimType"]); - _scopes = BicepList.DefineProperty(this, "Scopes", ["scopes"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppOpenIdConnectLogin. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _nameClaimType = DefineProperty("NameClaimType", ["nameClaimType"]); + _scopes = DefineListProperty("Scopes", ["scopes"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectRegistration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectRegistration.cs index 1654fabb92cce..6e9171ec01efd 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectRegistration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectRegistration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,50 @@ public partial class ContainerAppOpenIdConnectRegistration : ProvisionableConstr /// /// The client id of the custom Open ID Connect provider. /// - public BicepValue ClientId { get => _clientId; set => _clientId.Assign(value); } - private readonly BicepValue _clientId; + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + set { Initialize(); _clientId!.Assign(value); } + } + private BicepValue? _clientId; /// /// The authentication credentials of the custom Open ID Connect provider. /// - public BicepValue ClientCredential { get => _clientCredential; set => _clientCredential.Assign(value); } - private readonly BicepValue _clientCredential; + public ContainerAppOpenIdConnectClientCredential ClientCredential + { + get { Initialize(); return _clientCredential!; } + set { Initialize(); AssignOrReplace(ref _clientCredential, value); } + } + private ContainerAppOpenIdConnectClientCredential? _clientCredential; /// /// The configuration settings of the endpoints used for the custom Open ID /// Connect provider. /// - public BicepValue OpenIdConnectConfiguration { get => _openIdConnectConfiguration; set => _openIdConnectConfiguration.Assign(value); } - private readonly BicepValue _openIdConnectConfiguration; + public ContainerAppOpenIdConnectConfig OpenIdConnectConfiguration + { + get { Initialize(); return _openIdConnectConfiguration!; } + set { Initialize(); AssignOrReplace(ref _openIdConnectConfiguration, value); } + } + private ContainerAppOpenIdConnectConfig? _openIdConnectConfiguration; /// /// Creates a new ContainerAppOpenIdConnectRegistration. /// public ContainerAppOpenIdConnectRegistration() { - _clientId = BicepValue.DefineProperty(this, "ClientId", ["clientId"]); - _clientCredential = BicepValue.DefineProperty(this, "ClientCredential", ["clientCredential"]); - _openIdConnectConfiguration = BicepValue.DefineProperty(this, "OpenIdConnectConfiguration", ["openIdConnectConfiguration"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppOpenIdConnectRegistration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _clientId = DefineProperty("ClientId", ["clientId"]); + _clientCredential = DefineModelProperty("ClientCredential", ["clientCredential"]); + _openIdConnectConfiguration = DefineModelProperty("OpenIdConnectConfiguration", ["openIdConnectConfiguration"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppProbe.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppProbe.cs index a0b49e03074f8..83341c58d8c87 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppProbe.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppProbe.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -20,43 +22,67 @@ public partial class ContainerAppProbe : ProvisionableConstruct /// after having succeeded. Defaults to 3. Minimum value is 1. Maximum /// value is 10. /// - public BicepValue FailureThreshold { get => _failureThreshold; set => _failureThreshold.Assign(value); } - private readonly BicepValue _failureThreshold; + public BicepValue FailureThreshold + { + get { Initialize(); return _failureThreshold!; } + set { Initialize(); _failureThreshold!.Assign(value); } + } + private BicepValue? _failureThreshold; /// /// HTTPGet specifies the http request to perform. /// - public BicepValue HttpGet { get => _httpGet; set => _httpGet.Assign(value); } - private readonly BicepValue _httpGet; + public ContainerAppHttpRequestInfo HttpGet + { + get { Initialize(); return _httpGet!; } + set { Initialize(); AssignOrReplace(ref _httpGet, value); } + } + private ContainerAppHttpRequestInfo? _httpGet; /// /// Number of seconds after the container has started before liveness /// probes are initiated. Minimum value is 1. Maximum value is 60. /// - public BicepValue InitialDelaySeconds { get => _initialDelaySeconds; set => _initialDelaySeconds.Assign(value); } - private readonly BicepValue _initialDelaySeconds; + public BicepValue InitialDelaySeconds + { + get { Initialize(); return _initialDelaySeconds!; } + set { Initialize(); _initialDelaySeconds!.Assign(value); } + } + private BicepValue? _initialDelaySeconds; /// /// How often (in seconds) to perform the probe. Default to 10 seconds. /// Minimum value is 1. Maximum value is 240. /// - public BicepValue PeriodSeconds { get => _periodSeconds; set => _periodSeconds.Assign(value); } - private readonly BicepValue _periodSeconds; + public BicepValue PeriodSeconds + { + get { Initialize(); return _periodSeconds!; } + set { Initialize(); _periodSeconds!.Assign(value); } + } + private BicepValue? _periodSeconds; /// /// Minimum consecutive successes for the probe to be considered successful /// after having failed. Defaults to 1. Must be 1 for liveness and /// startup. Minimum value is 1. Maximum value is 10. /// - public BicepValue SuccessThreshold { get => _successThreshold; set => _successThreshold.Assign(value); } - private readonly BicepValue _successThreshold; + public BicepValue SuccessThreshold + { + get { Initialize(); return _successThreshold!; } + set { Initialize(); _successThreshold!.Assign(value); } + } + private BicepValue? _successThreshold; /// /// TCPSocket specifies an action involving a TCP port. TCP hooks not yet /// supported. /// - public BicepValue TcpSocket { get => _tcpSocket; set => _tcpSocket.Assign(value); } - private readonly BicepValue _tcpSocket; + public ContainerAppTcpSocketRequestInfo TcpSocket + { + get { Initialize(); return _tcpSocket!; } + set { Initialize(); AssignOrReplace(ref _tcpSocket, value); } + } + private ContainerAppTcpSocketRequestInfo? _tcpSocket; /// /// Optional duration in seconds the pod needs to terminate gracefully upon @@ -72,35 +98,55 @@ public partial class ContainerAppProbe : ProvisionableConstruct /// ProbeTerminationGracePeriod feature gate. Maximum value is 3600 /// seconds (1 hour). /// - public BicepValue TerminationGracePeriodSeconds { get => _terminationGracePeriodSeconds; set => _terminationGracePeriodSeconds.Assign(value); } - private readonly BicepValue _terminationGracePeriodSeconds; + public BicepValue TerminationGracePeriodSeconds + { + get { Initialize(); return _terminationGracePeriodSeconds!; } + set { Initialize(); _terminationGracePeriodSeconds!.Assign(value); } + } + private BicepValue? _terminationGracePeriodSeconds; /// /// Number of seconds after which the probe times out. Defaults to 1 /// second. Minimum value is 1. Maximum value is 240. /// - public BicepValue TimeoutSeconds { get => _timeoutSeconds; set => _timeoutSeconds.Assign(value); } - private readonly BicepValue _timeoutSeconds; + public BicepValue TimeoutSeconds + { + get { Initialize(); return _timeoutSeconds!; } + set { Initialize(); _timeoutSeconds!.Assign(value); } + } + private BicepValue? _timeoutSeconds; /// /// The type of probe. /// - public BicepValue ProbeType { get => _probeType; set => _probeType.Assign(value); } - private readonly BicepValue _probeType; + public BicepValue ProbeType + { + get { Initialize(); return _probeType!; } + set { Initialize(); _probeType!.Assign(value); } + } + private BicepValue? _probeType; /// /// Creates a new ContainerAppProbe. /// public ContainerAppProbe() { - _failureThreshold = BicepValue.DefineProperty(this, "FailureThreshold", ["failureThreshold"]); - _httpGet = BicepValue.DefineProperty(this, "HttpGet", ["httpGet"]); - _initialDelaySeconds = BicepValue.DefineProperty(this, "InitialDelaySeconds", ["initialDelaySeconds"]); - _periodSeconds = BicepValue.DefineProperty(this, "PeriodSeconds", ["periodSeconds"]); - _successThreshold = BicepValue.DefineProperty(this, "SuccessThreshold", ["successThreshold"]); - _tcpSocket = BicepValue.DefineProperty(this, "TcpSocket", ["tcpSocket"]); - _terminationGracePeriodSeconds = BicepValue.DefineProperty(this, "TerminationGracePeriodSeconds", ["terminationGracePeriodSeconds"]); - _timeoutSeconds = BicepValue.DefineProperty(this, "TimeoutSeconds", ["timeoutSeconds"]); - _probeType = BicepValue.DefineProperty(this, "ProbeType", ["type"]); + } + + /// + /// Define all the provisionable properties of ContainerAppProbe. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _failureThreshold = DefineProperty("FailureThreshold", ["failureThreshold"]); + _httpGet = DefineModelProperty("HttpGet", ["httpGet"]); + _initialDelaySeconds = DefineProperty("InitialDelaySeconds", ["initialDelaySeconds"]); + _periodSeconds = DefineProperty("PeriodSeconds", ["periodSeconds"]); + _successThreshold = DefineProperty("SuccessThreshold", ["successThreshold"]); + _tcpSocket = DefineModelProperty("TcpSocket", ["tcpSocket"]); + _terminationGracePeriodSeconds = DefineProperty("TerminationGracePeriodSeconds", ["terminationGracePeriodSeconds"]); + _timeoutSeconds = DefineProperty("TimeoutSeconds", ["timeoutSeconds"]); + _probeType = DefineProperty("ProbeType", ["type"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppQueueScaleRule.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppQueueScaleRule.cs index e20d7b2b7906d..1325bed38f389 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppQueueScaleRule.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppQueueScaleRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,48 @@ public partial class ContainerAppQueueScaleRule : ProvisionableConstruct /// /// Queue name. /// - public BicepValue QueueName { get => _queueName; set => _queueName.Assign(value); } - private readonly BicepValue _queueName; + public BicepValue QueueName + { + get { Initialize(); return _queueName!; } + set { Initialize(); _queueName!.Assign(value); } + } + private BicepValue? _queueName; /// /// Queue length. /// - public BicepValue QueueLength { get => _queueLength; set => _queueLength.Assign(value); } - private readonly BicepValue _queueLength; + public BicepValue QueueLength + { + get { Initialize(); return _queueLength!; } + set { Initialize(); _queueLength!.Assign(value); } + } + private BicepValue? _queueLength; /// /// Authentication secrets for the queue scale rule. /// - public BicepList Auth { get => _auth; set => _auth.Assign(value); } - private readonly BicepList _auth; + public BicepList Auth + { + get { Initialize(); return _auth!; } + set { Initialize(); _auth!.Assign(value); } + } + private BicepList? _auth; /// /// Creates a new ContainerAppQueueScaleRule. /// public ContainerAppQueueScaleRule() { - _queueName = BicepValue.DefineProperty(this, "QueueName", ["queueName"]); - _queueLength = BicepValue.DefineProperty(this, "QueueLength", ["queueLength"]); - _auth = BicepList.DefineProperty(this, "Auth", ["auth"]); + } + + /// + /// Define all the provisionable properties of ContainerAppQueueScaleRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _queueName = DefineProperty("QueueName", ["queueName"]); + _queueLength = DefineProperty("QueueLength", ["queueLength"]); + _auth = DefineListProperty("Auth", ["auth"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRegistration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRegistration.cs index 4d191cf285029..3fa6b06c8f003 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRegistration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRegistration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class ContainerAppRegistration : ProvisionableConstruct /// /// The App ID of the app used for login. /// - public BicepValue AppId { get => _appId; set => _appId.Assign(value); } - private readonly BicepValue _appId; + public BicepValue AppId + { + get { Initialize(); return _appId!; } + set { Initialize(); _appId!.Assign(value); } + } + private BicepValue? _appId; /// /// The app setting name that contains the app secret. /// - public BicepValue AppSecretSettingName { get => _appSecretSettingName; set => _appSecretSettingName.Assign(value); } - private readonly BicepValue _appSecretSettingName; + public BicepValue AppSecretSettingName + { + get { Initialize(); return _appSecretSettingName!; } + set { Initialize(); _appSecretSettingName!.Assign(value); } + } + private BicepValue? _appSecretSettingName; /// /// Creates a new ContainerAppRegistration. /// public ContainerAppRegistration() { - _appId = BicepValue.DefineProperty(this, "AppId", ["appId"]); - _appSecretSettingName = BicepValue.DefineProperty(this, "AppSecretSettingName", ["appSecretSettingName"]); + } + + /// + /// Define all the provisionable properties of ContainerAppRegistration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _appId = DefineProperty("AppId", ["appId"]); + _appSecretSettingName = DefineProperty("AppSecretSettingName", ["appSecretSettingName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRegistryCredentials.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRegistryCredentials.cs index 44b0c6bc02ae6..080bb43cc728b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRegistryCredentials.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRegistryCredentials.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,20 +18,32 @@ public partial class ContainerAppRegistryCredentials : ProvisionableConstruct /// /// Container Registry Server. /// - public BicepValue Server { get => _server; set => _server.Assign(value); } - private readonly BicepValue _server; + public BicepValue Server + { + get { Initialize(); return _server!; } + set { Initialize(); _server!.Assign(value); } + } + private BicepValue? _server; /// /// Container Registry Username. /// - public BicepValue Username { get => _username; set => _username.Assign(value); } - private readonly BicepValue _username; + public BicepValue Username + { + get { Initialize(); return _username!; } + set { Initialize(); _username!.Assign(value); } + } + private BicepValue? _username; /// /// The name of the Secret that contains the registry login password. /// - public BicepValue PasswordSecretRef { get => _passwordSecretRef; set => _passwordSecretRef.Assign(value); } - private readonly BicepValue _passwordSecretRef; + public BicepValue PasswordSecretRef + { + get { Initialize(); return _passwordSecretRef!; } + set { Initialize(); _passwordSecretRef!.Assign(value); } + } + private BicepValue? _passwordSecretRef; /// /// A Managed Identity to use to authenticate with Azure Container @@ -37,17 +51,30 @@ public partial class ContainerAppRegistryCredentials : ProvisionableConstruct /// identity Resource ID. For system-assigned identities, use /// 'system'. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public BicepValue Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); _identity!.Assign(value); } + } + private BicepValue? _identity; /// /// Creates a new ContainerAppRegistryCredentials. /// public ContainerAppRegistryCredentials() { - _server = BicepValue.DefineProperty(this, "Server", ["server"]); - _username = BicepValue.DefineProperty(this, "Username", ["username"]); - _passwordSecretRef = BicepValue.DefineProperty(this, "PasswordSecretRef", ["passwordSecretRef"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppRegistryCredentials. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _server = DefineProperty("Server", ["server"]); + _username = DefineProperty("Username", ["username"]); + _passwordSecretRef = DefineProperty("PasswordSecretRef", ["passwordSecretRef"]); + _identity = DefineProperty("Identity", ["identity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRegistryInfo.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRegistryInfo.cs index 1d62a8de0980e..88463b5364c68 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRegistryInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRegistryInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class ContainerAppRegistryInfo : ProvisionableConstruct /// /// registry server Url. /// - public BicepValue RegistryServer { get => _registryServer; set => _registryServer.Assign(value); } - private readonly BicepValue _registryServer; + public BicepValue RegistryServer + { + get { Initialize(); return _registryServer!; } + set { Initialize(); _registryServer!.Assign(value); } + } + private BicepValue? _registryServer; /// /// registry username. /// - public BicepValue RegistryUserName { get => _registryUserName; set => _registryUserName.Assign(value); } - private readonly BicepValue _registryUserName; + public BicepValue RegistryUserName + { + get { Initialize(); return _registryUserName!; } + set { Initialize(); _registryUserName!.Assign(value); } + } + private BicepValue? _registryUserName; /// /// registry secret. /// - public BicepValue RegistryPassword { get => _registryPassword; set => _registryPassword.Assign(value); } - private readonly BicepValue _registryPassword; + public BicepValue RegistryPassword + { + get { Initialize(); return _registryPassword!; } + set { Initialize(); _registryPassword!.Assign(value); } + } + private BicepValue? _registryPassword; /// /// Creates a new ContainerAppRegistryInfo. /// public ContainerAppRegistryInfo() { - _registryServer = BicepValue.DefineProperty(this, "RegistryServer", ["registryUrl"]); - _registryUserName = BicepValue.DefineProperty(this, "RegistryUserName", ["registryUserName"]); - _registryPassword = BicepValue.DefineProperty(this, "RegistryPassword", ["registryPassword"]); + } + + /// + /// Define all the provisionable properties of ContainerAppRegistryInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _registryServer = DefineProperty("RegistryServer", ["registryUrl"]); + _registryUserName = DefineProperty("RegistryUserName", ["registryUserName"]); + _registryPassword = DefineProperty("RegistryPassword", ["registryPassword"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRevisionTrafficWeight.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRevisionTrafficWeight.cs index ec33070daad01..df9b1869edd72 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRevisionTrafficWeight.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppRevisionTrafficWeight.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,60 @@ public partial class ContainerAppRevisionTrafficWeight : ProvisionableConstruct /// /// Name of a revision. /// - public BicepValue RevisionName { get => _revisionName; set => _revisionName.Assign(value); } - private readonly BicepValue _revisionName; + public BicepValue RevisionName + { + get { Initialize(); return _revisionName!; } + set { Initialize(); _revisionName!.Assign(value); } + } + private BicepValue? _revisionName; /// /// Traffic weight assigned to a revision. /// - public BicepValue Weight { get => _weight; set => _weight.Assign(value); } - private readonly BicepValue _weight; + public BicepValue Weight + { + get { Initialize(); return _weight!; } + set { Initialize(); _weight!.Assign(value); } + } + private BicepValue? _weight; /// /// Indicates that the traffic weight belongs to a latest stable revision. /// - public BicepValue IsLatestRevision { get => _isLatestRevision; set => _isLatestRevision.Assign(value); } - private readonly BicepValue _isLatestRevision; + public BicepValue IsLatestRevision + { + get { Initialize(); return _isLatestRevision!; } + set { Initialize(); _isLatestRevision!.Assign(value); } + } + private BicepValue? _isLatestRevision; /// /// Associates a traffic label with a revision. /// - public BicepValue Label { get => _label; set => _label.Assign(value); } - private readonly BicepValue _label; + public BicepValue Label + { + get { Initialize(); return _label!; } + set { Initialize(); _label!.Assign(value); } + } + private BicepValue? _label; /// /// Creates a new ContainerAppRevisionTrafficWeight. /// public ContainerAppRevisionTrafficWeight() { - _revisionName = BicepValue.DefineProperty(this, "RevisionName", ["revisionName"]); - _weight = BicepValue.DefineProperty(this, "Weight", ["weight"]); - _isLatestRevision = BicepValue.DefineProperty(this, "IsLatestRevision", ["latestRevision"]); - _label = BicepValue.DefineProperty(this, "Label", ["label"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppRevisionTrafficWeight. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _revisionName = DefineProperty("RevisionName", ["revisionName"]); + _weight = DefineProperty("Weight", ["weight"]); + _isLatestRevision = DefineProperty("IsLatestRevision", ["latestRevision"]); + _label = DefineProperty("Label", ["label"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppScale.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppScale.cs index de8955e9653db..a35918df007ce 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppScale.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppScale.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,49 @@ public partial class ContainerAppScale : ProvisionableConstruct /// /// Optional. Minimum number of container replicas. /// - public BicepValue MinReplicas { get => _minReplicas; set => _minReplicas.Assign(value); } - private readonly BicepValue _minReplicas; + public BicepValue MinReplicas + { + get { Initialize(); return _minReplicas!; } + set { Initialize(); _minReplicas!.Assign(value); } + } + private BicepValue? _minReplicas; /// /// Optional. Maximum number of container replicas. Defaults to 10 if not /// set. /// - public BicepValue MaxReplicas { get => _maxReplicas; set => _maxReplicas.Assign(value); } - private readonly BicepValue _maxReplicas; + public BicepValue MaxReplicas + { + get { Initialize(); return _maxReplicas!; } + set { Initialize(); _maxReplicas!.Assign(value); } + } + private BicepValue? _maxReplicas; /// /// Scaling rules. /// - public BicepList Rules { get => _rules; set => _rules.Assign(value); } - private readonly BicepList _rules; + public BicepList Rules + { + get { Initialize(); return _rules!; } + set { Initialize(); _rules!.Assign(value); } + } + private BicepList? _rules; /// /// Creates a new ContainerAppScale. /// public ContainerAppScale() { - _minReplicas = BicepValue.DefineProperty(this, "MinReplicas", ["minReplicas"]); - _maxReplicas = BicepValue.DefineProperty(this, "MaxReplicas", ["maxReplicas"]); - _rules = BicepList.DefineProperty(this, "Rules", ["rules"]); + } + + /// + /// Define all the provisionable properties of ContainerAppScale. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _minReplicas = DefineProperty("MinReplicas", ["minReplicas"]); + _maxReplicas = DefineProperty("MaxReplicas", ["maxReplicas"]); + _rules = DefineListProperty("Rules", ["rules"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppScaleRule.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppScaleRule.cs index 0fffdd972a0d7..8cdd08d15e900 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppScaleRule.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppScaleRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,42 +19,70 @@ public partial class ContainerAppScaleRule : ProvisionableConstruct /// /// Scale Rule Name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Azure Queue based scaling. /// - public BicepValue AzureQueue { get => _azureQueue; set => _azureQueue.Assign(value); } - private readonly BicepValue _azureQueue; + public ContainerAppQueueScaleRule AzureQueue + { + get { Initialize(); return _azureQueue!; } + set { Initialize(); AssignOrReplace(ref _azureQueue, value); } + } + private ContainerAppQueueScaleRule? _azureQueue; /// /// Custom scale rule. /// - public BicepValue Custom { get => _custom; set => _custom.Assign(value); } - private readonly BicepValue _custom; + public ContainerAppCustomScaleRule Custom + { + get { Initialize(); return _custom!; } + set { Initialize(); AssignOrReplace(ref _custom, value); } + } + private ContainerAppCustomScaleRule? _custom; /// /// HTTP requests based scaling. /// - public BicepValue Http { get => _http; set => _http.Assign(value); } - private readonly BicepValue _http; + public ContainerAppHttpScaleRule Http + { + get { Initialize(); return _http!; } + set { Initialize(); AssignOrReplace(ref _http, value); } + } + private ContainerAppHttpScaleRule? _http; /// /// Tcp requests based scaling. /// - public BicepValue Tcp { get => _tcp; set => _tcp.Assign(value); } - private readonly BicepValue _tcp; + public ContainerAppTcpScaleRule Tcp + { + get { Initialize(); return _tcp!; } + set { Initialize(); AssignOrReplace(ref _tcp, value); } + } + private ContainerAppTcpScaleRule? _tcp; /// /// Creates a new ContainerAppScaleRule. /// public ContainerAppScaleRule() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _azureQueue = BicepValue.DefineProperty(this, "AzureQueue", ["azureQueue"]); - _custom = BicepValue.DefineProperty(this, "Custom", ["custom"]); - _http = BicepValue.DefineProperty(this, "Http", ["http"]); - _tcp = BicepValue.DefineProperty(this, "Tcp", ["tcp"]); + } + + /// + /// Define all the provisionable properties of ContainerAppScaleRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _azureQueue = DefineModelProperty("AzureQueue", ["azureQueue"]); + _custom = DefineModelProperty("Custom", ["custom"]); + _http = DefineModelProperty("Http", ["http"]); + _tcp = DefineModelProperty("Tcp", ["tcp"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppScaleRuleAuth.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppScaleRuleAuth.cs index a480ae75ddfdd..3b15ba149a8a1 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppScaleRuleAuth.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppScaleRuleAuth.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class ContainerAppScaleRuleAuth : ProvisionableConstruct /// /// Name of the secret from which to pull the auth params. /// - public BicepValue SecretRef { get => _secretRef; set => _secretRef.Assign(value); } - private readonly BicepValue _secretRef; + public BicepValue SecretRef + { + get { Initialize(); return _secretRef!; } + set { Initialize(); _secretRef!.Assign(value); } + } + private BicepValue? _secretRef; /// /// Trigger Parameter that uses the secret. /// - public BicepValue TriggerParameter { get => _triggerParameter; set => _triggerParameter.Assign(value); } - private readonly BicepValue _triggerParameter; + public BicepValue TriggerParameter + { + get { Initialize(); return _triggerParameter!; } + set { Initialize(); _triggerParameter!.Assign(value); } + } + private BicepValue? _triggerParameter; /// /// Creates a new ContainerAppScaleRuleAuth. /// public ContainerAppScaleRuleAuth() { - _secretRef = BicepValue.DefineProperty(this, "SecretRef", ["secretRef"]); - _triggerParameter = BicepValue.DefineProperty(this, "TriggerParameter", ["triggerParameter"]); + } + + /// + /// Define all the provisionable properties of ContainerAppScaleRuleAuth. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _secretRef = DefineProperty("SecretRef", ["secretRef"]); + _triggerParameter = DefineProperty("TriggerParameter", ["triggerParameter"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppServiceBind.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppServiceBind.cs index 90c1dc9efc3cf..54f551ff364d7 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppServiceBind.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppServiceBind.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class ContainerAppServiceBind : ProvisionableConstruct /// /// Resource id of the target service. /// - public BicepValue ServiceId { get => _serviceId; set => _serviceId.Assign(value); } - private readonly BicepValue _serviceId; + public BicepValue ServiceId + { + get { Initialize(); return _serviceId!; } + set { Initialize(); _serviceId!.Assign(value); } + } + private BicepValue? _serviceId; /// /// Name of the service bind. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new ContainerAppServiceBind. /// public ContainerAppServiceBind() { - _serviceId = BicepValue.DefineProperty(this, "ServiceId", ["serviceId"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of ContainerAppServiceBind. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _serviceId = DefineProperty("ServiceId", ["serviceId"]); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTcpScaleRule.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTcpScaleRule.cs index f3fecfaec347d..366c2491aa991 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTcpScaleRule.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTcpScaleRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class ContainerAppTcpScaleRule : ProvisionableConstruct /// /// Metadata properties to describe tcp scale rule. /// - public BicepDictionary Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepDictionary _metadata; + public BicepDictionary Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepDictionary? _metadata; /// /// Authentication secrets for the tcp scale rule. /// - public BicepList Auth { get => _auth; set => _auth.Assign(value); } - private readonly BicepList _auth; + public BicepList Auth + { + get { Initialize(); return _auth!; } + set { Initialize(); _auth!.Assign(value); } + } + private BicepList? _auth; /// /// Creates a new ContainerAppTcpScaleRule. /// public ContainerAppTcpScaleRule() { - _metadata = BicepDictionary.DefineProperty(this, "Metadata", ["metadata"]); - _auth = BicepList.DefineProperty(this, "Auth", ["auth"]); + } + + /// + /// Define all the provisionable properties of ContainerAppTcpScaleRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _metadata = DefineDictionaryProperty("Metadata", ["metadata"]); + _auth = DefineListProperty("Auth", ["auth"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTcpSocketRequestInfo.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTcpSocketRequestInfo.cs index 3c6b0e14e7608..8b19197770030 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTcpSocketRequestInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTcpSocketRequestInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,22 +19,39 @@ public partial class ContainerAppTcpSocketRequestInfo : ProvisionableConstruct /// /// Optional: Host name to connect to, defaults to the pod IP. /// - public BicepValue Host { get => _host; set => _host.Assign(value); } - private readonly BicepValue _host; + public BicepValue Host + { + get { Initialize(); return _host!; } + set { Initialize(); _host!.Assign(value); } + } + private BicepValue? _host; /// /// Number or name of the port to access on the container. Number must be /// in the range 1 to 65535. Name must be an IANA_SVC_NAME. /// - public BicepValue Port { get => _port; set => _port.Assign(value); } - private readonly BicepValue _port; + public BicepValue Port + { + get { Initialize(); return _port!; } + set { Initialize(); _port!.Assign(value); } + } + private BicepValue? _port; /// /// Creates a new ContainerAppTcpSocketRequestInfo. /// public ContainerAppTcpSocketRequestInfo() { - _host = BicepValue.DefineProperty(this, "Host", ["host"]); - _port = BicepValue.DefineProperty(this, "Port", ["port"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppTcpSocketRequestInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _host = DefineProperty("Host", ["host"]); + _port = DefineProperty("Port", ["port"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTemplate.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTemplate.cs index d28304a4a3e3d..25a316e865773 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTemplate.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTemplate.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -20,8 +22,12 @@ public partial class ContainerAppTemplate : ProvisionableConstruct /// /// User friendly suffix that is appended to the revision name. /// - public BicepValue RevisionSuffix { get => _revisionSuffix; set => _revisionSuffix.Assign(value); } - private readonly BicepValue _revisionSuffix; + public BicepValue RevisionSuffix + { + get { Initialize(); return _revisionSuffix!; } + set { Initialize(); _revisionSuffix!.Assign(value); } + } + private BicepValue? _revisionSuffix; /// /// Optional duration in seconds the Container App Instance needs to @@ -31,50 +37,82 @@ public partial class ContainerAppTemplate : ProvisionableConstruct /// used instead. Set this value longer than the expected cleanup time for /// your process. Defaults to 30 seconds. /// - public BicepValue TerminationGracePeriodSeconds { get => _terminationGracePeriodSeconds; set => _terminationGracePeriodSeconds.Assign(value); } - private readonly BicepValue _terminationGracePeriodSeconds; + public BicepValue TerminationGracePeriodSeconds + { + get { Initialize(); return _terminationGracePeriodSeconds!; } + set { Initialize(); _terminationGracePeriodSeconds!.Assign(value); } + } + private BicepValue? _terminationGracePeriodSeconds; /// /// List of specialized containers that run before app containers. /// - public BicepList InitContainers { get => _initContainers; set => _initContainers.Assign(value); } - private readonly BicepList _initContainers; + public BicepList InitContainers + { + get { Initialize(); return _initContainers!; } + set { Initialize(); _initContainers!.Assign(value); } + } + private BicepList? _initContainers; /// /// List of container definitions for the Container App. /// - public BicepList Containers { get => _containers; set => _containers.Assign(value); } - private readonly BicepList _containers; + public BicepList Containers + { + get { Initialize(); return _containers!; } + set { Initialize(); _containers!.Assign(value); } + } + private BicepList? _containers; /// /// Scaling properties for the Container App. /// - public BicepValue Scale { get => _scale; set => _scale.Assign(value); } - private readonly BicepValue _scale; + public ContainerAppScale Scale + { + get { Initialize(); return _scale!; } + set { Initialize(); AssignOrReplace(ref _scale, value); } + } + private ContainerAppScale? _scale; /// /// List of volume definitions for the Container App. /// - public BicepList Volumes { get => _volumes; set => _volumes.Assign(value); } - private readonly BicepList _volumes; + public BicepList Volumes + { + get { Initialize(); return _volumes!; } + set { Initialize(); _volumes!.Assign(value); } + } + private BicepList? _volumes; /// /// List of container app services bound to the app. /// - public BicepList ServiceBinds { get => _serviceBinds; set => _serviceBinds.Assign(value); } - private readonly BicepList _serviceBinds; + public BicepList ServiceBinds + { + get { Initialize(); return _serviceBinds!; } + set { Initialize(); _serviceBinds!.Assign(value); } + } + private BicepList? _serviceBinds; /// /// Creates a new ContainerAppTemplate. /// public ContainerAppTemplate() { - _revisionSuffix = BicepValue.DefineProperty(this, "RevisionSuffix", ["revisionSuffix"]); - _terminationGracePeriodSeconds = BicepValue.DefineProperty(this, "TerminationGracePeriodSeconds", ["terminationGracePeriodSeconds"]); - _initContainers = BicepList.DefineProperty(this, "InitContainers", ["initContainers"]); - _containers = BicepList.DefineProperty(this, "Containers", ["containers"]); - _scale = BicepValue.DefineProperty(this, "Scale", ["scale"]); - _volumes = BicepList.DefineProperty(this, "Volumes", ["volumes"]); - _serviceBinds = BicepList.DefineProperty(this, "ServiceBinds", ["serviceBinds"]); + } + + /// + /// Define all the provisionable properties of ContainerAppTemplate. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _revisionSuffix = DefineProperty("RevisionSuffix", ["revisionSuffix"]); + _terminationGracePeriodSeconds = DefineProperty("TerminationGracePeriodSeconds", ["terminationGracePeriodSeconds"]); + _initContainers = DefineListProperty("InitContainers", ["initContainers"]); + _containers = DefineListProperty("Containers", ["containers"]); + _scale = DefineModelProperty("Scale", ["scale"]); + _volumes = DefineListProperty("Volumes", ["volumes"]); + _serviceBinds = DefineListProperty("ServiceBinds", ["serviceBinds"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTokenStore.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTokenStore.cs index 84ec6e2e534da..b0e096f0fbf22 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTokenStore.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTokenStore.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,31 +21,51 @@ public partial class ContainerAppTokenStore : ProvisionableConstruct /// <code>false</code>. The default is /// <code>false</code>. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// The number of hours after session token expiration that a session token /// can be used to call the token refresh API. The default is /// 72 hours. /// - public BicepValue TokenRefreshExtensionHours { get => _tokenRefreshExtensionHours; set => _tokenRefreshExtensionHours.Assign(value); } - private readonly BicepValue _tokenRefreshExtensionHours; + public BicepValue TokenRefreshExtensionHours + { + get { Initialize(); return _tokenRefreshExtensionHours!; } + set { Initialize(); _tokenRefreshExtensionHours!.Assign(value); } + } + private BicepValue? _tokenRefreshExtensionHours; /// /// The name of the app secrets containing the SAS URL of the blob storage /// containing the tokens. /// - public BicepValue AzureBlobStorageSasUrlSettingName { get => _azureBlobStorageSasUrlSettingName; set => _azureBlobStorageSasUrlSettingName.Assign(value); } - private readonly BicepValue _azureBlobStorageSasUrlSettingName; + public BicepValue AzureBlobStorageSasUrlSettingName + { + get { Initialize(); return _azureBlobStorageSasUrlSettingName!; } + set { Initialize(); _azureBlobStorageSasUrlSettingName!.Assign(value); } + } + private BicepValue? _azureBlobStorageSasUrlSettingName; /// /// Creates a new ContainerAppTokenStore. /// public ContainerAppTokenStore() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _tokenRefreshExtensionHours = BicepValue.DefineProperty(this, "TokenRefreshExtensionHours", ["tokenRefreshExtensionHours"]); - _azureBlobStorageSasUrlSettingName = BicepValue.DefineProperty(this, "AzureBlobStorageSasUrlSettingName", ["azureBlobStorage", "sasUrlSettingName"]); + } + + /// + /// Define all the provisionable properties of ContainerAppTokenStore. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _tokenRefreshExtensionHours = DefineProperty("TokenRefreshExtensionHours", ["tokenRefreshExtensionHours"]); + _azureBlobStorageSasUrlSettingName = DefineProperty("AzureBlobStorageSasUrlSettingName", ["azureBlobStorage", "sasUrlSettingName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTwitterConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTwitterConfiguration.cs index 721221bdbafcf..1913320ef5db2 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTwitterConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTwitterConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,22 +20,39 @@ public partial class ContainerAppTwitterConfiguration : ProvisionableConstruct /// enabled despite the set registration; otherwise, /// <code>true</code>. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// The configuration settings of the app registration for the Twitter /// provider. /// - public BicepValue Registration { get => _registration; set => _registration.Assign(value); } - private readonly BicepValue _registration; + public ContainerAppTwitterRegistration Registration + { + get { Initialize(); return _registration!; } + set { Initialize(); AssignOrReplace(ref _registration, value); } + } + private ContainerAppTwitterRegistration? _registration; /// /// Creates a new ContainerAppTwitterConfiguration. /// public ContainerAppTwitterConfiguration() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _registration = BicepValue.DefineProperty(this, "Registration", ["registration"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppTwitterConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _registration = DefineModelProperty("Registration", ["registration"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTwitterRegistration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTwitterRegistration.cs index 5eaa887bca371..676303c067263 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTwitterRegistration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppTwitterRegistration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,22 +21,39 @@ public partial class ContainerAppTwitterRegistration : ProvisionableConstruct /// Sign-In. Twitter Sign-In documentation: /// https://dev.twitter.com/web/sign-in /// - public BicepValue ConsumerKey { get => _consumerKey; set => _consumerKey.Assign(value); } - private readonly BicepValue _consumerKey; + public BicepValue ConsumerKey + { + get { Initialize(); return _consumerKey!; } + set { Initialize(); _consumerKey!.Assign(value); } + } + private BicepValue? _consumerKey; /// /// The app setting name that contains the OAuth 1.0a consumer secret of /// the Twitter application used for sign-in. /// - public BicepValue ConsumerSecretSettingName { get => _consumerSecretSettingName; set => _consumerSecretSettingName.Assign(value); } - private readonly BicepValue _consumerSecretSettingName; + public BicepValue ConsumerSecretSettingName + { + get { Initialize(); return _consumerSecretSettingName!; } + set { Initialize(); _consumerSecretSettingName!.Assign(value); } + } + private BicepValue? _consumerSecretSettingName; /// /// Creates a new ContainerAppTwitterRegistration. /// public ContainerAppTwitterRegistration() { - _consumerKey = BicepValue.DefineProperty(this, "ConsumerKey", ["consumerKey"]); - _consumerSecretSettingName = BicepValue.DefineProperty(this, "ConsumerSecretSettingName", ["consumerSecretSettingName"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppTwitterRegistration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _consumerKey = DefineProperty("ConsumerKey", ["consumerKey"]); + _consumerSecretSettingName = DefineProperty("ConsumerSecretSettingName", ["consumerSecretSettingName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppVnetConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppVnetConfiguration.cs index f9b3896a096a3..0fdc25cb81aa5 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppVnetConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppVnetConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -19,47 +21,76 @@ public partial class ContainerAppVnetConfiguration : ProvisionableConstruct /// These environments do not have a public static IP resource. They must /// provide infrastructureSubnetId if enabling this property. /// - public BicepValue IsInternal { get => _isInternal; set => _isInternal.Assign(value); } - private readonly BicepValue _isInternal; + public BicepValue IsInternal + { + get { Initialize(); return _isInternal!; } + set { Initialize(); _isInternal!.Assign(value); } + } + private BicepValue? _isInternal; /// /// Resource ID of a subnet for infrastructure components. Must not overlap /// with any other provided IP ranges. /// - public BicepValue InfrastructureSubnetId { get => _infrastructureSubnetId; set => _infrastructureSubnetId.Assign(value); } - private readonly BicepValue _infrastructureSubnetId; + public BicepValue InfrastructureSubnetId + { + get { Initialize(); return _infrastructureSubnetId!; } + set { Initialize(); _infrastructureSubnetId!.Assign(value); } + } + private BicepValue? _infrastructureSubnetId; /// /// CIDR notation IP range assigned to the Docker bridge, network. Must not /// overlap with any other provided IP ranges. /// - public BicepValue DockerBridgeCidr { get => _dockerBridgeCidr; set => _dockerBridgeCidr.Assign(value); } - private readonly BicepValue _dockerBridgeCidr; + public BicepValue DockerBridgeCidr + { + get { Initialize(); return _dockerBridgeCidr!; } + set { Initialize(); _dockerBridgeCidr!.Assign(value); } + } + private BicepValue? _dockerBridgeCidr; /// /// IP range in CIDR notation that can be reserved for environment /// infrastructure IP addresses. Must not overlap with any other provided /// IP ranges. /// - public BicepValue PlatformReservedCidr { get => _platformReservedCidr; set => _platformReservedCidr.Assign(value); } - private readonly BicepValue _platformReservedCidr; + public BicepValue PlatformReservedCidr + { + get { Initialize(); return _platformReservedCidr!; } + set { Initialize(); _platformReservedCidr!.Assign(value); } + } + private BicepValue? _platformReservedCidr; /// /// An IP address from the IP range defined by platformReservedCidr that /// will be reserved for the internal DNS server. /// - public BicepValue PlatformReservedDnsIP { get => _platformReservedDnsIP; set => _platformReservedDnsIP.Assign(value); } - private readonly BicepValue _platformReservedDnsIP; + public BicepValue PlatformReservedDnsIP + { + get { Initialize(); return _platformReservedDnsIP!; } + set { Initialize(); _platformReservedDnsIP!.Assign(value); } + } + private BicepValue? _platformReservedDnsIP; /// /// Creates a new ContainerAppVnetConfiguration. /// public ContainerAppVnetConfiguration() { - _isInternal = BicepValue.DefineProperty(this, "IsInternal", ["internal"]); - _infrastructureSubnetId = BicepValue.DefineProperty(this, "InfrastructureSubnetId", ["infrastructureSubnetId"]); - _dockerBridgeCidr = BicepValue.DefineProperty(this, "DockerBridgeCidr", ["dockerBridgeCidr"]); - _platformReservedCidr = BicepValue.DefineProperty(this, "PlatformReservedCidr", ["platformReservedCidr"]); - _platformReservedDnsIP = BicepValue.DefineProperty(this, "PlatformReservedDnsIP", ["platformReservedDnsIP"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerAppVnetConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isInternal = DefineProperty("IsInternal", ["internal"]); + _infrastructureSubnetId = DefineProperty("InfrastructureSubnetId", ["infrastructureSubnetId"]); + _dockerBridgeCidr = DefineProperty("DockerBridgeCidr", ["dockerBridgeCidr"]); + _platformReservedCidr = DefineProperty("PlatformReservedCidr", ["platformReservedCidr"]); + _platformReservedDnsIP = DefineProperty("PlatformReservedDnsIP", ["platformReservedDnsIP"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppVolume.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppVolume.cs index e3813045c3a70..1ef64c43519d9 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppVolume.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppVolume.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,44 +19,72 @@ public partial class ContainerAppVolume : ProvisionableConstruct /// /// Volume name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Storage type for the volume. If not provided, use EmptyDir. /// - public BicepValue StorageType { get => _storageType; set => _storageType.Assign(value); } - private readonly BicepValue _storageType; + public BicepValue StorageType + { + get { Initialize(); return _storageType!; } + set { Initialize(); _storageType!.Assign(value); } + } + private BicepValue? _storageType; /// /// Name of storage resource. No need to provide for EmptyDir and Secret. /// - public BicepValue StorageName { get => _storageName; set => _storageName.Assign(value); } - private readonly BicepValue _storageName; + public BicepValue StorageName + { + get { Initialize(); return _storageName!; } + set { Initialize(); _storageName!.Assign(value); } + } + private BicepValue? _storageName; /// /// List of secrets to be added in volume. If no secrets are provided, all /// secrets in collection will be added to volume. /// - public BicepList Secrets { get => _secrets; set => _secrets.Assign(value); } - private readonly BicepList _secrets; + public BicepList Secrets + { + get { Initialize(); return _secrets!; } + set { Initialize(); _secrets!.Assign(value); } + } + private BicepList? _secrets; /// /// Mount options used while mounting the AzureFile. Must be a /// comma-separated string. /// - public BicepValue MountOptions { get => _mountOptions; set => _mountOptions.Assign(value); } - private readonly BicepValue _mountOptions; + public BicepValue MountOptions + { + get { Initialize(); return _mountOptions!; } + set { Initialize(); _mountOptions!.Assign(value); } + } + private BicepValue? _mountOptions; /// /// Creates a new ContainerAppVolume. /// public ContainerAppVolume() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _storageType = BicepValue.DefineProperty(this, "StorageType", ["storageType"]); - _storageName = BicepValue.DefineProperty(this, "StorageName", ["storageName"]); - _secrets = BicepList.DefineProperty(this, "Secrets", ["secrets"]); - _mountOptions = BicepValue.DefineProperty(this, "MountOptions", ["mountOptions"]); + } + + /// + /// Define all the provisionable properties of ContainerAppVolume. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _storageType = DefineProperty("StorageType", ["storageType"]); + _storageName = DefineProperty("StorageName", ["storageName"]); + _secrets = DefineListProperty("Secrets", ["secrets"]); + _mountOptions = DefineProperty("MountOptions", ["mountOptions"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppVolumeMount.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppVolumeMount.cs index a612fa408f242..585f851aebddf 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppVolumeMount.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppVolumeMount.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,30 +18,50 @@ public partial class ContainerAppVolumeMount : ProvisionableConstruct /// /// This must match the Name of a Volume. /// - public BicepValue VolumeName { get => _volumeName; set => _volumeName.Assign(value); } - private readonly BicepValue _volumeName; + public BicepValue VolumeName + { + get { Initialize(); return _volumeName!; } + set { Initialize(); _volumeName!.Assign(value); } + } + private BicepValue? _volumeName; /// /// Path within the container at which the volume should be mounted.Must /// not contain ':'. /// - public BicepValue MountPath { get => _mountPath; set => _mountPath.Assign(value); } - private readonly BicepValue _mountPath; + public BicepValue MountPath + { + get { Initialize(); return _mountPath!; } + set { Initialize(); _mountPath!.Assign(value); } + } + private BicepValue? _mountPath; /// /// Path within the volume from which the container's volume should be /// mounted. Defaults to "" (volume's root). /// - public BicepValue SubPath { get => _subPath; set => _subPath.Assign(value); } - private readonly BicepValue _subPath; + public BicepValue SubPath + { + get { Initialize(); return _subPath!; } + set { Initialize(); _subPath!.Assign(value); } + } + private BicepValue? _subPath; /// /// Creates a new ContainerAppVolumeMount. /// public ContainerAppVolumeMount() { - _volumeName = BicepValue.DefineProperty(this, "VolumeName", ["volumeName"]); - _mountPath = BicepValue.DefineProperty(this, "MountPath", ["mountPath"]); - _subPath = BicepValue.DefineProperty(this, "SubPath", ["subPath"]); + } + + /// + /// Define all the provisionable properties of ContainerAppVolumeMount. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _volumeName = DefineProperty("VolumeName", ["volumeName"]); + _mountPath = DefineProperty("MountPath", ["mountPath"]); + _subPath = DefineProperty("SubPath", ["subPath"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppWorkloadProfile.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppWorkloadProfile.cs index 2b344636cf365..5e81f6e64ba56 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppWorkloadProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppWorkloadProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class ContainerAppWorkloadProfile : ProvisionableConstruct /// /// Workload profile type for the workloads to run on. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Workload profile type for the workloads to run on. /// - public BicepValue WorkloadProfileType { get => _workloadProfileType; set => _workloadProfileType.Assign(value); } - private readonly BicepValue _workloadProfileType; + public BicepValue WorkloadProfileType + { + get { Initialize(); return _workloadProfileType!; } + set { Initialize(); _workloadProfileType!.Assign(value); } + } + private BicepValue? _workloadProfileType; /// /// The minimum capacity. /// - public BicepValue MinimumNodeCount { get => _minimumNodeCount; set => _minimumNodeCount.Assign(value); } - private readonly BicepValue _minimumNodeCount; + public BicepValue MinimumNodeCount + { + get { Initialize(); return _minimumNodeCount!; } + set { Initialize(); _minimumNodeCount!.Assign(value); } + } + private BicepValue? _minimumNodeCount; /// /// The maximum capacity. /// - public BicepValue MaximumNodeCount { get => _maximumNodeCount; set => _maximumNodeCount.Assign(value); } - private readonly BicepValue _maximumNodeCount; + public BicepValue MaximumNodeCount + { + get { Initialize(); return _maximumNodeCount!; } + set { Initialize(); _maximumNodeCount!.Assign(value); } + } + private BicepValue? _maximumNodeCount; /// /// Creates a new ContainerAppWorkloadProfile. /// public ContainerAppWorkloadProfile() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _workloadProfileType = BicepValue.DefineProperty(this, "WorkloadProfileType", ["workloadProfileType"]); - _minimumNodeCount = BicepValue.DefineProperty(this, "MinimumNodeCount", ["minimumCount"]); - _maximumNodeCount = BicepValue.DefineProperty(this, "MaximumNodeCount", ["maximumCount"]); + } + + /// + /// Define all the provisionable properties of ContainerAppWorkloadProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _workloadProfileType = DefineProperty("WorkloadProfileType", ["workloadProfileType"]); + _minimumNodeCount = DefineProperty("MinimumNodeCount", ["minimumCount"]); + _maximumNodeCount = DefineProperty("MaximumNodeCount", ["maximumCount"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppWritableSecret.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppWritableSecret.cs index 5c7aadc00c565..5b580a899789a 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppWritableSecret.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ContainerAppWritableSecret.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,37 +18,61 @@ public partial class ContainerAppWritableSecret : ProvisionableConstruct /// /// Secret Name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Secret Value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Resource ID of a managed identity to authenticate with Azure Key Vault, /// or System to use a system-assigned identity. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public BicepValue Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); _identity!.Assign(value); } + } + private BicepValue? _identity; /// /// Azure Key Vault URL pointing to the secret referenced by the container /// app. /// - public BicepValue KeyVaultUri { get => _keyVaultUri; set => _keyVaultUri.Assign(value); } - private readonly BicepValue _keyVaultUri; + public BicepValue KeyVaultUri + { + get { Initialize(); return _keyVaultUri!; } + set { Initialize(); _keyVaultUri!.Assign(value); } + } + private BicepValue? _keyVaultUri; /// /// Creates a new ContainerAppWritableSecret. /// public ContainerAppWritableSecret() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _keyVaultUri = BicepValue.DefineProperty(this, "KeyVaultUri", ["keyVaultUrl"]); + } + + /// + /// Define all the provisionable properties of ContainerAppWritableSecret. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _value = DefineProperty("Value", ["value"]); + _identity = DefineProperty("Identity", ["identity"]); + _keyVaultUri = DefineProperty("KeyVaultUri", ["keyVaultUrl"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/EncryptionSettings.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/EncryptionSettings.cs index ccb8422fc8177..c6d1402049b86 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/EncryptionSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/EncryptionSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class EncryptionSettings : ProvisionableConstruct /// /// The secret name which is referenced for EncryptionKey. /// - public BicepValue ContainerAppAuthEncryptionSecretName { get => _containerAppAuthEncryptionSecretName; set => _containerAppAuthEncryptionSecretName.Assign(value); } - private readonly BicepValue _containerAppAuthEncryptionSecretName; + public BicepValue ContainerAppAuthEncryptionSecretName + { + get { Initialize(); return _containerAppAuthEncryptionSecretName!; } + set { Initialize(); _containerAppAuthEncryptionSecretName!.Assign(value); } + } + private BicepValue? _containerAppAuthEncryptionSecretName; /// /// The secret name which is referenced for SigningKey. /// - public BicepValue ContainerAppAuthSigningSecretName { get => _containerAppAuthSigningSecretName; set => _containerAppAuthSigningSecretName.Assign(value); } - private readonly BicepValue _containerAppAuthSigningSecretName; + public BicepValue ContainerAppAuthSigningSecretName + { + get { Initialize(); return _containerAppAuthSigningSecretName!; } + set { Initialize(); _containerAppAuthSigningSecretName!.Assign(value); } + } + private BicepValue? _containerAppAuthSigningSecretName; /// /// Creates a new EncryptionSettings. /// public EncryptionSettings() { - _containerAppAuthEncryptionSecretName = BicepValue.DefineProperty(this, "ContainerAppAuthEncryptionSecretName", ["containerAppAuthEncryptionSecretName"]); - _containerAppAuthSigningSecretName = BicepValue.DefineProperty(this, "ContainerAppAuthSigningSecretName", ["containerAppAuthSigningSecretName"]); + } + + /// + /// Define all the provisionable properties of EncryptionSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _containerAppAuthEncryptionSecretName = DefineProperty("ContainerAppAuthEncryptionSecretName", ["containerAppAuthEncryptionSecretName"]); + _containerAppAuthSigningSecretName = DefineProperty("ContainerAppAuthSigningSecretName", ["containerAppAuthSigningSecretName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/EventTriggerConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/EventTriggerConfiguration.cs index f0dfd05c20aad..ffd43864f66a2 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/EventTriggerConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/EventTriggerConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,28 +20,48 @@ public partial class EventTriggerConfiguration : ProvisionableConstruct /// Minimum number of successful replica completions before overall job /// completion. /// - public BicepValue ReplicaCompletionCount { get => _replicaCompletionCount; set => _replicaCompletionCount.Assign(value); } - private readonly BicepValue _replicaCompletionCount; + public BicepValue ReplicaCompletionCount + { + get { Initialize(); return _replicaCompletionCount!; } + set { Initialize(); _replicaCompletionCount!.Assign(value); } + } + private BicepValue? _replicaCompletionCount; /// /// Number of parallel replicas of a job that can run at a given time. /// - public BicepValue Parallelism { get => _parallelism; set => _parallelism.Assign(value); } - private readonly BicepValue _parallelism; + public BicepValue Parallelism + { + get { Initialize(); return _parallelism!; } + set { Initialize(); _parallelism!.Assign(value); } + } + private BicepValue? _parallelism; /// /// Scaling configurations for event driven jobs. /// - public BicepValue Scale { get => _scale; set => _scale.Assign(value); } - private readonly BicepValue _scale; + public ContainerAppJobScale Scale + { + get { Initialize(); return _scale!; } + set { Initialize(); AssignOrReplace(ref _scale, value); } + } + private ContainerAppJobScale? _scale; /// /// Creates a new EventTriggerConfiguration. /// public EventTriggerConfiguration() { - _replicaCompletionCount = BicepValue.DefineProperty(this, "ReplicaCompletionCount", ["replicaCompletionCount"]); - _parallelism = BicepValue.DefineProperty(this, "Parallelism", ["parallelism"]); - _scale = BicepValue.DefineProperty(this, "Scale", ["scale"]); + } + + /// + /// Define all the provisionable properties of EventTriggerConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _replicaCompletionCount = DefineProperty("ReplicaCompletionCount", ["replicaCompletionCount"]); + _parallelism = DefineProperty("Parallelism", ["parallelism"]); + _scale = DefineModelProperty("Scale", ["scale"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/IngressPortMapping.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/IngressPortMapping.cs index 7a5e1b16e81fb..3eef47f2d8e03 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/IngressPortMapping.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/IngressPortMapping.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,49 @@ public partial class IngressPortMapping : ProvisionableConstruct /// /// Specifies whether the app port is accessible outside of the environment. /// - public BicepValue External { get => _external; set => _external.Assign(value); } - private readonly BicepValue _external; + public BicepValue External + { + get { Initialize(); return _external!; } + set { Initialize(); _external!.Assign(value); } + } + private BicepValue? _external; /// /// Specifies the port user's container listens on. /// - public BicepValue TargetPort { get => _targetPort; set => _targetPort.Assign(value); } - private readonly BicepValue _targetPort; + public BicepValue TargetPort + { + get { Initialize(); return _targetPort!; } + set { Initialize(); _targetPort!.Assign(value); } + } + private BicepValue? _targetPort; /// /// Specifies the exposed port for the target port. If not specified, it /// defaults to target port. /// - public BicepValue ExposedPort { get => _exposedPort; set => _exposedPort.Assign(value); } - private readonly BicepValue _exposedPort; + public BicepValue ExposedPort + { + get { Initialize(); return _exposedPort!; } + set { Initialize(); _exposedPort!.Assign(value); } + } + private BicepValue? _exposedPort; /// /// Creates a new IngressPortMapping. /// public IngressPortMapping() { - _external = BicepValue.DefineProperty(this, "External", ["external"]); - _targetPort = BicepValue.DefineProperty(this, "TargetPort", ["targetPort"]); - _exposedPort = BicepValue.DefineProperty(this, "ExposedPort", ["exposedPort"]); + } + + /// + /// Define all the provisionable properties of IngressPortMapping. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _external = DefineProperty("External", ["external"]); + _targetPort = DefineProperty("TargetPort", ["targetPort"]); + _exposedPort = DefineProperty("ExposedPort", ["exposedPort"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/JobConfigurationManualTriggerConfig.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/JobConfigurationManualTriggerConfig.cs index 98bf83e1ab0ff..da39e94820e05 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/JobConfigurationManualTriggerConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/JobConfigurationManualTriggerConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,38 @@ public partial class JobConfigurationManualTriggerConfig : ProvisionableConstruc /// Minimum number of successful replica completions before overall job /// completion. /// - public BicepValue ReplicaCompletionCount { get => _replicaCompletionCount; set => _replicaCompletionCount.Assign(value); } - private readonly BicepValue _replicaCompletionCount; + public BicepValue ReplicaCompletionCount + { + get { Initialize(); return _replicaCompletionCount!; } + set { Initialize(); _replicaCompletionCount!.Assign(value); } + } + private BicepValue? _replicaCompletionCount; /// /// Number of parallel replicas of a job that can run at a given time. /// - public BicepValue Parallelism { get => _parallelism; set => _parallelism.Assign(value); } - private readonly BicepValue _parallelism; + public BicepValue Parallelism + { + get { Initialize(); return _parallelism!; } + set { Initialize(); _parallelism!.Assign(value); } + } + private BicepValue? _parallelism; /// /// Creates a new JobConfigurationManualTriggerConfig. /// public JobConfigurationManualTriggerConfig() { - _replicaCompletionCount = BicepValue.DefineProperty(this, "ReplicaCompletionCount", ["replicaCompletionCount"]); - _parallelism = BicepValue.DefineProperty(this, "Parallelism", ["parallelism"]); + } + + /// + /// Define all the provisionable properties of + /// JobConfigurationManualTriggerConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _replicaCompletionCount = DefineProperty("ReplicaCompletionCount", ["replicaCompletionCount"]); + _parallelism = DefineProperty("Parallelism", ["parallelism"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/JobConfigurationScheduleTriggerConfig.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/JobConfigurationScheduleTriggerConfig.cs index e73f6aa16b17b..f366c5ed549b4 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/JobConfigurationScheduleTriggerConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/JobConfigurationScheduleTriggerConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,28 +21,49 @@ public partial class JobConfigurationScheduleTriggerConfig : ProvisionableConstr /// Minimum number of successful replica completions before overall job /// completion. /// - public BicepValue ReplicaCompletionCount { get => _replicaCompletionCount; set => _replicaCompletionCount.Assign(value); } - private readonly BicepValue _replicaCompletionCount; + public BicepValue ReplicaCompletionCount + { + get { Initialize(); return _replicaCompletionCount!; } + set { Initialize(); _replicaCompletionCount!.Assign(value); } + } + private BicepValue? _replicaCompletionCount; /// /// Cron formatted repeating schedule ("* * * * *") of a Cron Job. /// - public BicepValue CronExpression { get => _cronExpression; set => _cronExpression.Assign(value); } - private readonly BicepValue _cronExpression; + public BicepValue CronExpression + { + get { Initialize(); return _cronExpression!; } + set { Initialize(); _cronExpression!.Assign(value); } + } + private BicepValue? _cronExpression; /// /// Number of parallel replicas of a job that can run at a given time. /// - public BicepValue Parallelism { get => _parallelism; set => _parallelism.Assign(value); } - private readonly BicepValue _parallelism; + public BicepValue Parallelism + { + get { Initialize(); return _parallelism!; } + set { Initialize(); _parallelism!.Assign(value); } + } + private BicepValue? _parallelism; /// /// Creates a new JobConfigurationScheduleTriggerConfig. /// public JobConfigurationScheduleTriggerConfig() { - _replicaCompletionCount = BicepValue.DefineProperty(this, "ReplicaCompletionCount", ["replicaCompletionCount"]); - _cronExpression = BicepValue.DefineProperty(this, "CronExpression", ["cronExpression"]); - _parallelism = BicepValue.DefineProperty(this, "Parallelism", ["parallelism"]); + } + + /// + /// Define all the provisionable properties of + /// JobConfigurationScheduleTriggerConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _replicaCompletionCount = DefineProperty("ReplicaCompletionCount", ["replicaCompletionCount"]); + _cronExpression = DefineProperty("CronExpression", ["cronExpression"]); + _parallelism = DefineProperty("Parallelism", ["parallelism"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ManagedCertificateProperties.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ManagedCertificateProperties.cs index f61b2deb89718..59b0402dfefd8 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ManagedCertificateProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/ManagedCertificateProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,43 +18,68 @@ public partial class ManagedCertificateProperties : ProvisionableConstruct /// /// Provisioning state of the certificate. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Subject name of the certificate. /// - public BicepValue SubjectName { get => _subjectName; set => _subjectName.Assign(value); } - private readonly BicepValue _subjectName; + public BicepValue SubjectName + { + get { Initialize(); return _subjectName!; } + set { Initialize(); _subjectName!.Assign(value); } + } + private BicepValue? _subjectName; /// /// Any error occurred during the certificate provision. /// - public BicepValue Error { get => _error; } - private readonly BicepValue _error; + public BicepValue Error + { + get { Initialize(); return _error!; } + } + private BicepValue? _error; /// /// Selected type of domain control validation for managed certificates. /// - public BicepValue DomainControlValidation { get => _domainControlValidation; set => _domainControlValidation.Assign(value); } - private readonly BicepValue _domainControlValidation; + public BicepValue DomainControlValidation + { + get { Initialize(); return _domainControlValidation!; } + set { Initialize(); _domainControlValidation!.Assign(value); } + } + private BicepValue? _domainControlValidation; /// /// A TXT token used for DNS TXT domain control validation when issuing /// this type of managed certificates. /// - public BicepValue ValidationToken { get => _validationToken; } - private readonly BicepValue _validationToken; + public BicepValue ValidationToken + { + get { Initialize(); return _validationToken!; } + } + private BicepValue? _validationToken; /// /// Creates a new ManagedCertificateProperties. /// public ManagedCertificateProperties() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); - _subjectName = BicepValue.DefineProperty(this, "SubjectName", ["subjectName"]); - _error = BicepValue.DefineProperty(this, "Error", ["error"], isOutput: true); - _domainControlValidation = BicepValue.DefineProperty(this, "DomainControlValidation", ["domainControlValidation"]); - _validationToken = BicepValue.DefineProperty(this, "ValidationToken", ["validationToken"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagedCertificateProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _subjectName = DefineProperty("SubjectName", ["subjectName"]); + _error = DefineProperty("Error", ["error"], isOutput: true); + _domainControlValidation = DefineProperty("DomainControlValidation", ["domainControlValidation"]); + _validationToken = DefineProperty("ValidationToken", ["validationToken"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/SecretVolumeItem.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/SecretVolumeItem.cs index 36c098d769ec2..fce0669d29fb2 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/SecretVolumeItem.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/src/Generated/Models/SecretVolumeItem.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,38 @@ public partial class SecretVolumeItem : ProvisionableConstruct /// /// Name of the Container App secret from which to pull the secret value. /// - public BicepValue SecretRef { get => _secretRef; set => _secretRef.Assign(value); } - private readonly BicepValue _secretRef; + public BicepValue SecretRef + { + get { Initialize(); return _secretRef!; } + set { Initialize(); _secretRef!.Assign(value); } + } + private BicepValue? _secretRef; /// /// Path to project secret to. If no path is provided, path defaults to /// name of secret listed in secretRef. /// - public BicepValue Path { get => _path; set => _path.Assign(value); } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + set { Initialize(); _path!.Assign(value); } + } + private BicepValue? _path; /// /// Creates a new SecretVolumeItem. /// public SecretVolumeItem() { - _secretRef = BicepValue.DefineProperty(this, "SecretRef", ["secretRef"]); - _path = BicepValue.DefineProperty(this, "Path", ["path"]); + } + + /// + /// Define all the provisionable properties of SecretVolumeItem. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _secretRef = DefineProperty("SecretRef", ["secretRef"]); + _path = DefineProperty("Path", ["path"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppContainers/tests/BasicAppContainersTests.cs b/sdk/provisioning/Azure.Provisioning.AppContainers/tests/BasicAppContainersTests.cs index a915b303a0716..ee9c58881e400 100644 --- a/sdk/provisioning/Azure.Provisioning.AppContainers/tests/BasicAppContainersTests.cs +++ b/sdk/provisioning/Azure.Provisioning.AppContainers/tests/BasicAppContainersTests.cs @@ -91,7 +91,7 @@ await test.Define( Resources = new AppContainerResources { - Cpu = BicepFunction.ParseJson("0.5").Expression!, + Cpu = (BicepExpression?)BicepFunction.ParseJson("0.5"), Memory = "1Gi" } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/api/Azure.Provisioning.AppService.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.AppService/api/Azure.Provisioning.AppService.netstandard2.0.cs index dd9bd9fbbb040..483e032f4e3d2 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/api/Azure.Provisioning.AppService.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/api/Azure.Provisioning.AppService.netstandard2.0.cs @@ -8,7 +8,7 @@ public partial class AppCertificate : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue DomainValidationMethod { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } } public Azure.Provisioning.BicepValue FriendlyName { get { throw null; } } - public Azure.Provisioning.BicepValue HostingEnvironmentProfile { get { throw null; } } + public Azure.Provisioning.AppService.HostingEnvironmentProfile HostingEnvironmentProfile { get { throw null; } } public Azure.Provisioning.BicepList HostNames { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue IssueOn { get { throw null; } } @@ -27,9 +27,10 @@ public partial class AppCertificate : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue ServerFarmId { get { throw null; } set { } } public Azure.Provisioning.BicepValue SiteName { get { throw null; } } public Azure.Provisioning.BicepValue SubjectName { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue ThumbprintString { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.AppCertificate FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -73,6 +74,7 @@ public AppDaprConfig() { } public Azure.Provisioning.BicepValue IsApiLoggingEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue LogLevel { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum AppDaprLogLevel { @@ -88,15 +90,17 @@ public enum AppDaprLogLevel public partial class ApplicationLogsConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { public ApplicationLogsConfig() { } - public Azure.Provisioning.BicepValue AzureBlobStorage { get { throw null; } set { } } - public Azure.Provisioning.BicepValue AzureTableStorage { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppServiceBlobStorageApplicationLogsConfig AzureBlobStorage { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppServiceTableStorageApplicationLogsConfig AzureTableStorage { get { throw null; } set { } } public Azure.Provisioning.BicepValue FileSystemLevel { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AppLogsConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public AppLogsConfiguration() { } public Azure.Provisioning.BicepValue Destination { get { throw null; } set { } } - public Azure.Provisioning.BicepValue LogAnalyticsConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppService.LogAnalyticsConfiguration LogAnalyticsConfiguration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AppServiceArmPlan : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -106,6 +110,7 @@ public AppServiceArmPlan() { } public Azure.Provisioning.BicepValue PromotionCode { get { throw null; } } public Azure.Provisioning.BicepValue Publisher { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class AppServiceBlobStorageApplicationLogsConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -113,6 +118,7 @@ public AppServiceBlobStorageApplicationLogsConfig() { } public Azure.Provisioning.BicepValue Level { get { throw null; } set { } } public Azure.Provisioning.BicepValue RetentionInDays { get { throw null; } set { } } public Azure.Provisioning.BicepValue SasUri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AppServiceBlobStorageHttpLogsConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -120,6 +126,7 @@ public AppServiceBlobStorageHttpLogsConfig() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue RetentionInDays { get { throw null; } set { } } public Azure.Provisioning.BicepValue SasUri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AppServiceBuiltInRole : System.IEquatable @@ -152,8 +159,9 @@ public partial class AppServiceCertificate : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.AppServiceCertificateOrder? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.AppServiceCertificate FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -187,6 +195,7 @@ public AppServiceCertificateDetails() { } public Azure.Provisioning.BicepValue Subject { get { throw null; } } public Azure.Provisioning.BicepValue ThumbprintString { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum AppServiceCertificateNotRenewableReason { @@ -199,13 +208,13 @@ public partial class AppServiceCertificateOrder : Azure.Provisioning.Primitives. public AppServiceCertificateOrder(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepList AppServiceCertificateNotRenewableReasons { get { throw null; } } public Azure.Provisioning.BicepDictionary Certificates { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Contact { get { throw null; } } + public Azure.Provisioning.AppService.CertificateOrderContact Contact { get { throw null; } } public Azure.Provisioning.BicepValue Csr { get { throw null; } set { } } public Azure.Provisioning.BicepValue DistinguishedName { get { throw null; } set { } } public Azure.Provisioning.BicepValue DomainVerificationToken { get { throw null; } } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Intermediate { get { throw null; } } + public Azure.Provisioning.AppService.AppServiceCertificateDetails Intermediate { get { throw null; } } public Azure.Provisioning.BicepValue IsAutoRenew { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsPrivateKeyExternal { get { throw null; } } public Azure.Provisioning.BicepValue KeySize { get { throw null; } set { } } @@ -216,13 +225,14 @@ public partial class AppServiceCertificateOrder : Azure.Provisioning.Primitives. public Azure.Provisioning.BicepValue NextAutoRenewTimeStamp { get { throw null; } } public Azure.Provisioning.BicepValue ProductType { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue Root { get { throw null; } } + public Azure.Provisioning.AppService.AppServiceCertificateDetails Root { get { throw null; } } public Azure.Provisioning.BicepValue SerialNumber { get { throw null; } } - public Azure.Provisioning.BicepValue SignedCertificate { get { throw null; } } + public Azure.Provisioning.AppService.AppServiceCertificateDetails SignedCertificate { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue ValidityInYears { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.AppServiceCertificateOrder FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -250,12 +260,14 @@ public AppServiceCertificateProperties() { } public Azure.Provisioning.BicepValue KeyVaultId { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVaultSecretName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class AppServiceCorsSettings : Azure.Provisioning.Primitives.ProvisionableConstruct { public AppServiceCorsSettings() { } public Azure.Provisioning.BicepList AllowedOrigins { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsCredentialsSupported { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum AppServiceDnsType { @@ -266,11 +278,11 @@ public partial class AppServiceDomain : Azure.Provisioning.Primitives.Provisiona { public AppServiceDomain(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue AuthCode { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Consent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ContactAdmin { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ContactBilling { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ContactRegistrant { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ContactTech { get { throw null; } set { } } + public Azure.Provisioning.AppService.DomainPurchaseConsent Consent { get { throw null; } set { } } + public Azure.Provisioning.AppService.RegistrationContactInfo ContactAdmin { get { throw null; } set { } } + public Azure.Provisioning.AppService.RegistrationContactInfo ContactBilling { get { throw null; } set { } } + public Azure.Provisioning.AppService.RegistrationContactInfo ContactRegistrant { get { throw null; } set { } } + public Azure.Provisioning.AppService.RegistrationContactInfo ContactTech { get { throw null; } set { } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue DnsType { get { throw null; } set { } } public Azure.Provisioning.BicepValue DnsZoneId { get { throw null; } set { } } @@ -288,9 +300,10 @@ public partial class AppServiceDomain : Azure.Provisioning.Primitives.Provisiona public Azure.Provisioning.BicepList NameServers { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue RegistrationStatus { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetDnsType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.AppServiceDomain FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -341,7 +354,7 @@ public partial class AppServiceEnvironment : Azure.Provisioning.Primitives.Provi { public AppServiceEnvironment(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepList ClusterSettings { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CustomDnsSuffixConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppService.CustomDnsSuffixConfigurationData CustomDnsSuffixConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue DedicatedHostCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue DnsSuffix { get { throw null; } set { } } public Azure.Provisioning.BicepValue FrontEndScaleFactor { get { throw null; } set { } } @@ -357,15 +370,16 @@ public partial class AppServiceEnvironment : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepValue MultiRoleCount { get { throw null; } } public Azure.Provisioning.BicepValue MultiSize { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue NetworkingConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppService.AseV3NetworkingConfigurationData NetworkingConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue UpgradeAvailability { get { throw null; } } public Azure.Provisioning.BicepValue UpgradePreference { get { throw null; } set { } } public Azure.Provisioning.BicepList UserWhitelistedIPRanges { get { throw null; } set { } } - public Azure.Provisioning.BicepValue VirtualNetwork { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppServiceVirtualNetworkProfile VirtualNetwork { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.AppServiceEnvironment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -429,6 +443,7 @@ public AppServiceHostName() { } public Azure.Provisioning.BicepValue HostNameType { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepList SiteNames { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum AppServiceHostNameType { @@ -443,8 +458,9 @@ public enum AppServiceHostType public partial class AppServiceHttpLogsConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { public AppServiceHttpLogsConfig() { } - public Azure.Provisioning.BicepValue AzureBlobStorage { get { throw null; } set { } } - public Azure.Provisioning.BicepValue FileSystem { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppServiceBlobStorageHttpLogsConfig AzureBlobStorage { get { throw null; } set { } } + public Azure.Provisioning.AppService.FileSystemHttpLogsConfig FileSystem { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum AppServiceIPFilterTag { @@ -466,20 +482,22 @@ public AppServiceIPSecurityRestriction() { } public Azure.Provisioning.BicepValue Tag { get { throw null; } set { } } public Azure.Provisioning.BicepValue VnetSubnetResourceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue VnetTrafficTag { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AppServiceNameValuePair : Azure.Provisioning.Primitives.ProvisionableConstruct { public AppServiceNameValuePair() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AppServicePlan : Azure.Provisioning.Primitives.ProvisionableResource { public AppServicePlan(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ExtendedLocation { get { throw null; } set { } } + public Azure.Provisioning.Resources.ExtendedAzureLocation ExtendedLocation { get { throw null; } set { } } public Azure.Provisioning.BicepValue FreeOfferExpireOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue GeoRegion { get { throw null; } } - public Azure.Provisioning.BicepValue HostingEnvironmentProfile { get { throw null; } set { } } + public Azure.Provisioning.AppService.HostingEnvironmentProfile HostingEnvironmentProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue IsElasticScaleEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsHyperV { get { throw null; } set { } } @@ -489,7 +507,7 @@ public partial class AppServicePlan : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue IsXenon { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsZoneRedundant { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } - public Azure.Provisioning.BicepValue KubeEnvironmentProfile { get { throw null; } set { } } + public Azure.Provisioning.AppService.KubeEnvironmentProfile KubeEnvironmentProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaximumElasticWorkerCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaximumNumberOfWorkers { get { throw null; } } @@ -498,15 +516,16 @@ public partial class AppServicePlan : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue NumberOfWorkers { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue ResourceGroup { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppServiceSkuDescription Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue SpotExpireOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } public Azure.Provisioning.BicepValue Subscription { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetWorkerCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetWorkerSizeId { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkerTierName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.AppServicePlan FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -554,9 +573,10 @@ public partial class AppServicePlanVirtualNetworkConnectionGateway : Azure.Provi public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue VnetName { get { throw null; } set { } } public Azure.Provisioning.BicepValue VpnPackageUri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.AppServicePlanVirtualNetworkConnectionGateway FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public enum AppServiceResourceType @@ -570,6 +590,7 @@ public AppServiceSkuCapability() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Reason { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AppServiceSkuCapacity : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -579,6 +600,7 @@ public AppServiceSkuCapacity() { } public Azure.Provisioning.BicepValue Maximum { get { throw null; } set { } } public Azure.Provisioning.BicepValue Minimum { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScaleType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AppServiceSkuDescription : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -589,8 +611,9 @@ public AppServiceSkuDescription() { } public Azure.Provisioning.BicepList Locations { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Size { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SkuCapacity { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppServiceSkuCapacity SkuCapacity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AppServiceSourceControl : Azure.Provisioning.Primitives.ProvisionableResource { @@ -600,9 +623,10 @@ public partial class AppServiceSourceControl : Azure.Provisioning.Primitives.Pro public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue RefreshToken { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Token { get { throw null; } set { } } public Azure.Provisioning.BicepValue TokenSecret { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.AppServiceSourceControl FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -644,6 +668,7 @@ public AppServiceStorageAccessInfo() { } public Azure.Provisioning.BicepValue ShareName { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } public Azure.Provisioning.BicepValue StorageType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum AppServiceStorageAccountState { @@ -679,6 +704,7 @@ public partial class AppServiceTableStorageApplicationLogsConfig : Azure.Provisi public AppServiceTableStorageApplicationLogsConfig() { } public Azure.Provisioning.BicepValue Level { get { throw null; } set { } } public Azure.Provisioning.BicepValue SasUriString { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum AppServiceTlsCipherSuite { @@ -729,6 +755,7 @@ public AppServiceVirtualNetworkProfile() { } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue ResourceType { get { throw null; } } public Azure.Provisioning.BicepValue Subnet { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AppServiceVirtualNetworkRoute : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -739,7 +766,8 @@ public AppServiceVirtualNetworkRoute() { } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue RouteType { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartAddress { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum AppServiceVirtualNetworkRouteType { @@ -760,6 +788,7 @@ public ArcConfiguration() { } public Azure.Provisioning.BicepValue ArtifactStorageNodeName { get { throw null; } set { } } public Azure.Provisioning.BicepValue FrontEndServiceKind { get { throw null; } set { } } public Azure.Provisioning.BicepValue KubeConfig { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ArtifactStorageType { @@ -780,8 +809,9 @@ public partial class AseV3NetworkingConfiguration : Azure.Provisioning.Primitive public Azure.Provisioning.BicepList LinuxOutboundIPAddresses { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.AppServiceEnvironment? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepList WindowsOutboundIPAddresses { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.AseV3NetworkingConfiguration FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -831,15 +861,17 @@ public AseV3NetworkingConfigurationData() { } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepList LinuxOutboundIPAddresses { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepList WindowsOutboundIPAddresses { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class AutoHealActions : Azure.Provisioning.Primitives.ProvisionableConstruct { public AutoHealActions() { } public Azure.Provisioning.BicepValue ActionType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CustomAction { get { throw null; } set { } } + public Azure.Provisioning.AppService.AutoHealCustomAction CustomAction { get { throw null; } set { } } public Azure.Provisioning.BicepValue MinProcessExecutionTime { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum AutoHealActionType { @@ -852,22 +884,25 @@ public partial class AutoHealCustomAction : Azure.Provisioning.Primitives.Provis public AutoHealCustomAction() { } public Azure.Provisioning.BicepValue Exe { get { throw null; } set { } } public Azure.Provisioning.BicepValue Parameters { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AutoHealRules : Azure.Provisioning.Primitives.ProvisionableConstruct { public AutoHealRules() { } - public Azure.Provisioning.BicepValue Actions { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Triggers { get { throw null; } set { } } + public Azure.Provisioning.AppService.AutoHealActions Actions { get { throw null; } set { } } + public Azure.Provisioning.AppService.AutoHealTriggers Triggers { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AutoHealTriggers : Azure.Provisioning.Primitives.ProvisionableConstruct { public AutoHealTriggers() { } public Azure.Provisioning.BicepValue PrivateBytesInKB { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Requests { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SlowRequests { get { throw null; } set { } } + public Azure.Provisioning.AppService.RequestsBasedTrigger Requests { get { throw null; } set { } } + public Azure.Provisioning.AppService.SlowRequestsBasedTrigger SlowRequests { get { throw null; } set { } } public Azure.Provisioning.BicepList SlowRequestsWithPath { get { throw null; } set { } } public Azure.Provisioning.BicepList StatusCodes { get { throw null; } set { } } public Azure.Provisioning.BicepList StatusCodesRange { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CertificateOrderContact : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -876,6 +911,7 @@ public CertificateOrderContact() { } public Azure.Provisioning.BicepValue NameFirst { get { throw null; } } public Azure.Provisioning.BicepValue NameLast { get { throw null; } } public Azure.Provisioning.BicepValue Phone { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum CertificateOrderStatus { @@ -915,6 +951,7 @@ public CloningInfo() { } public Azure.Provisioning.BicepValue SourceWebAppLocation { get { throw null; } set { } } public Azure.Provisioning.BicepValue TrafficManagerProfileId { get { throw null; } set { } } public Azure.Provisioning.BicepValue TrafficManagerProfileName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ComputeModeOption { @@ -946,6 +983,7 @@ public ConnStringInfo() { } public Azure.Provisioning.BicepValue ConnectionString { get { throw null; } set { } } public Azure.Provisioning.BicepValue ConnectionStringType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerAppsConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -956,6 +994,7 @@ public ContainerAppsConfiguration() { } public Azure.Provisioning.BicepValue DockerBridgeCidr { get { throw null; } set { } } public Azure.Provisioning.BicepValue PlatformReservedCidr { get { throw null; } set { } } public Azure.Provisioning.BicepValue PlatformReservedDnsIP { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CustomDnsSuffixConfiguration : Azure.Provisioning.Primitives.ProvisionableResource { @@ -969,7 +1008,8 @@ public partial class CustomDnsSuffixConfiguration : Azure.Provisioning.Primitive public Azure.Provisioning.AppService.AppServiceEnvironment? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningDetails { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.CustomDnsSuffixConfiguration FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1017,7 +1057,8 @@ public CustomDnsSuffixConfigurationData() { } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningDetails { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum CustomDnsSuffixProvisioningState { @@ -1055,7 +1096,8 @@ public partial class DomainOwnershipIdentifier : Azure.Provisioning.Primitives.P public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue OwnershipId { get { throw null; } set { } } public Azure.Provisioning.AppService.AppServiceDomain? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.DomainOwnershipIdentifier FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1084,6 +1126,7 @@ public DomainPurchaseConsent() { } public Azure.Provisioning.BicepValue AgreedBy { get { throw null; } set { } } public Azure.Provisioning.BicepValue AgreedOn { get { throw null; } set { } } public Azure.Provisioning.BicepList AgreementKeys { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EnterpriseGradeCdnStatus { @@ -1098,6 +1141,7 @@ public FileSystemHttpLogsConfig() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue RetentionInDays { get { throw null; } set { } } public Azure.Provisioning.BicepValue RetentionInMb { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum FrontEndServiceType { @@ -1109,25 +1153,29 @@ public partial class FunctionAppAlwaysReadyConfig : Azure.Provisioning.Primitive public FunctionAppAlwaysReadyConfig() { } public Azure.Provisioning.BicepValue InstanceCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class FunctionAppConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { public FunctionAppConfig() { } - public Azure.Provisioning.BicepValue DeploymentStorage { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Runtime { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ScaleAndConcurrency { get { throw null; } set { } } + public Azure.Provisioning.AppService.FunctionAppStorage DeploymentStorage { get { throw null; } set { } } + public Azure.Provisioning.AppService.FunctionAppRuntime Runtime { get { throw null; } set { } } + public Azure.Provisioning.AppService.FunctionAppScaleAndConcurrency ScaleAndConcurrency { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class FunctionAppResourceConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { public FunctionAppResourceConfig() { } public Azure.Provisioning.BicepValue Cpu { get { throw null; } set { } } public Azure.Provisioning.BicepValue Memory { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class FunctionAppRuntime : Azure.Provisioning.Primitives.ProvisionableConstruct { public FunctionAppRuntime() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Version { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum FunctionAppRuntimeName { @@ -1151,13 +1199,15 @@ public FunctionAppScaleAndConcurrency() { } public Azure.Provisioning.BicepValue HttpPerInstanceConcurrency { get { throw null; } set { } } public Azure.Provisioning.BicepValue InstanceMemoryMB { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaximumInstanceCount { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class FunctionAppStorage : Azure.Provisioning.Primitives.ProvisionableConstruct { public FunctionAppStorage() { } - public Azure.Provisioning.BicepValue Authentication { get { throw null; } set { } } + public Azure.Provisioning.AppService.FunctionAppStorageAuthentication Authentication { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum FunctionAppStorageAccountAuthenticationType { @@ -1171,6 +1221,7 @@ public FunctionAppStorageAuthentication() { } public Azure.Provisioning.BicepValue AuthenticationType { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountConnectionStringName { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserAssignedIdentityResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum FunctionAppStorageType { @@ -1182,14 +1233,16 @@ public partial class GitHubActionCodeConfiguration : Azure.Provisioning.Primitiv public GitHubActionCodeConfiguration() { } public Azure.Provisioning.BicepValue RuntimeStack { get { throw null; } set { } } public Azure.Provisioning.BicepValue RuntimeVersion { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class GitHubActionConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public GitHubActionConfiguration() { } - public Azure.Provisioning.BicepValue CodeConfiguration { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ContainerConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppService.GitHubActionCodeConfiguration CodeConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppService.GitHubActionContainerConfiguration ContainerConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue GenerateWorkflowFile { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsLinux { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class GitHubActionContainerConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1198,6 +1251,7 @@ public GitHubActionContainerConfiguration() { } public Azure.Provisioning.BicepValue Password { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServerUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue Username { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class HostingEnvironmentMultiRolePool : Azure.Provisioning.Primitives.ProvisionableResource { @@ -1208,11 +1262,12 @@ public partial class HostingEnvironmentMultiRolePool : Azure.Provisioning.Primit public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.AppServiceEnvironment? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.AppService.AppServiceSkuDescription Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue WorkerCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkerSize { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkerSizeId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.HostingEnvironmentMultiRolePool FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1257,9 +1312,10 @@ public partial class HostingEnvironmentPrivateEndpointConnection : Azure.Provisi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.AppServiceEnvironment? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } - public Azure.Provisioning.BicepValue PrivateLinkServiceConnectionState { get { throw null; } set { } } + public Azure.Provisioning.AppService.PrivateLinkConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.HostingEnvironmentPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1302,6 +1358,7 @@ public HostingEnvironmentProfile() { } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue ResourceType { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum HostingEnvironmentStatus { @@ -1319,11 +1376,12 @@ public partial class HostingEnvironmentWorkerPool : Azure.Provisioning.Primitive public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.AppServiceEnvironment? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.AppService.AppServiceSkuDescription Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue WorkerCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkerSize { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkerSizeId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.HostingEnvironmentWorkerPool FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1375,6 +1433,7 @@ public HostNameSslState() { } public Azure.Provisioning.BicepValue ThumbprintString { get { throw null; } set { } } public Azure.Provisioning.BicepValue ToUpdate { get { throw null; } set { } } public Azure.Provisioning.BicepValue VirtualIP { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class HttpRequestHandlerMapping : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1382,6 +1441,7 @@ public HttpRequestHandlerMapping() { } public Azure.Provisioning.BicepValue Arguments { get { throw null; } set { } } public Azure.Provisioning.BicepValue Extension { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScriptProcessor { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum KeyVaultSecretStatus { @@ -1401,13 +1461,13 @@ public partial class KubeEnvironment : Azure.Provisioning.Primitives.Provisionab { public KubeEnvironment(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue AksResourceId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue AppLogsConfiguration { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ArcConfiguration { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ContainerAppsConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppLogsConfiguration AppLogsConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppService.ArcConfiguration ArcConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppService.ContainerAppsConfiguration ContainerAppsConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue DefaultDomain { get { throw null; } } public Azure.Provisioning.BicepValue DeploymentErrors { get { throw null; } } public Azure.Provisioning.BicepValue EnvironmentType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ExtendedLocation { get { throw null; } set { } } + public Azure.Provisioning.Resources.ExtendedAzureLocation ExtendedLocation { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue IsInternalLoadBalancerEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } @@ -1415,8 +1475,9 @@ public partial class KubeEnvironment : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue StaticIP { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.KubeEnvironment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1429,6 +1490,7 @@ public KubeEnvironmentProfile() { } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue ResourceType { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum KubeEnvironmentProvisioningState { @@ -1456,19 +1518,21 @@ public partial class LogAnalyticsConfiguration : Azure.Provisioning.Primitives.P public LogAnalyticsConfiguration() { } public Azure.Provisioning.BicepValue CustomerId { get { throw null; } set { } } public Azure.Provisioning.BicepValue SharedKey { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class LogsSiteConfig : Azure.Provisioning.Primitives.ProvisionableResource { public LogsSiteConfig(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ApplicationLogs { get { throw null; } set { } } - public Azure.Provisioning.BicepValue HttpLogs { get { throw null; } set { } } + public Azure.Provisioning.AppService.ApplicationLogsConfig ApplicationLogs { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppServiceHttpLogsConfig HttpLogs { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue IsDetailedErrorMessagesEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsFailedRequestsTracingEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.LogsSiteConfig FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1508,15 +1572,16 @@ public static partial class ResourceVersions public partial class LogsSiteSlotConfig : Azure.Provisioning.Primitives.ProvisionableResource { public LogsSiteSlotConfig(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ApplicationLogs { get { throw null; } set { } } - public Azure.Provisioning.BicepValue HttpLogs { get { throw null; } set { } } + public Azure.Provisioning.AppService.ApplicationLogsConfig ApplicationLogs { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppServiceHttpLogsConfig HttpLogs { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue IsDetailedErrorMessagesEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsFailedRequestsTracingEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.LogsSiteSlotConfig FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1576,6 +1641,7 @@ public partial class PrivateAccessSubnet : Azure.Provisioning.Primitives.Provisi public PrivateAccessSubnet() { } public Azure.Provisioning.BicepValue Key { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PrivateAccessVirtualNetwork : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1584,6 +1650,7 @@ public PrivateAccessVirtualNetwork() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } public Azure.Provisioning.BicepList Subnets { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PrivateLinkConnectionState : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1591,6 +1658,7 @@ public PrivateLinkConnectionState() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ProvisioningState { @@ -1617,7 +1685,8 @@ public partial class PublishingUser : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue PublishingPasswordHashSalt { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublishingUserName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScmUri { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.PublishingUser FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1660,6 +1729,7 @@ public RampUpRule() { } public Azure.Provisioning.BicepValue MinReroutePercentage { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReroutePercentage { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum RedundancyMode { @@ -1678,11 +1748,12 @@ public RegistrationAddressInfo() { } public Azure.Provisioning.BicepValue Country { get { throw null; } set { } } public Azure.Provisioning.BicepValue PostalCode { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RegistrationContactInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public RegistrationContactInfo() { } - public Azure.Provisioning.BicepValue AddressMailing { get { throw null; } set { } } + public Azure.Provisioning.AppService.RegistrationAddressInfo AddressMailing { get { throw null; } set { } } public Azure.Provisioning.BicepValue Email { get { throw null; } set { } } public Azure.Provisioning.BicepValue Fax { get { throw null; } set { } } public Azure.Provisioning.BicepValue JobTitle { get { throw null; } set { } } @@ -1691,6 +1762,7 @@ public RegistrationContactInfo() { } public Azure.Provisioning.BicepValue NameMiddle { get { throw null; } set { } } public Azure.Provisioning.BicepValue Organization { get { throw null; } set { } } public Azure.Provisioning.BicepValue Phone { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RemotePrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1700,31 +1772,34 @@ public RemotePrivateEndpointConnection() { } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } - public Azure.Provisioning.BicepValue PrivateLinkServiceConnectionState { get { throw null; } set { } } + public Azure.Provisioning.AppService.PrivateLinkConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class RequestsBasedTrigger : Azure.Provisioning.Primitives.ProvisionableConstruct { public RequestsBasedTrigger() { } public Azure.Provisioning.BicepValue Count { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeInterval { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ResponseMessageEnvelopeRemotePrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableConstruct { public ResponseMessageEnvelopeRemotePrivateEndpointConnection() { } public Azure.Provisioning.BicepValue Error { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } - public Azure.Provisioning.BicepValue Plan { get { throw null; } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } } + public Azure.Provisioning.AppService.AppServiceArmPlan Plan { get { throw null; } } + public Azure.Provisioning.AppService.RemotePrivateEndpointConnection Properties { get { throw null; } } + public Azure.Provisioning.AppService.AppServiceSkuDescription Sku { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } } public Azure.Provisioning.BicepList Zones { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ScmSiteBasicPublishingCredentialsPolicy : Azure.Provisioning.Primitives.ProvisionableResource { @@ -1734,7 +1809,8 @@ public partial class ScmSiteBasicPublishingCredentialsPolicy : Azure.Provisionin public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.ScmSiteBasicPublishingCredentialsPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1779,7 +1855,8 @@ public partial class ScmSiteSlotBasicPublishingCredentialsPolicy : Azure.Provisi public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.ScmSiteSlotBasicPublishingCredentialsPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1843,11 +1920,11 @@ public SiteConfigProperties() { } public Azure.Provisioning.BicepValue ApiManagementConfigId { get { throw null; } set { } } public Azure.Provisioning.BicepValue AppCommandLine { get { throw null; } set { } } public Azure.Provisioning.BicepList AppSettings { get { throw null; } set { } } - public Azure.Provisioning.BicepValue AutoHealRules { get { throw null; } set { } } + public Azure.Provisioning.AppService.AutoHealRules AutoHealRules { get { throw null; } set { } } public Azure.Provisioning.BicepValue AutoSwapSlotName { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary AzureStorageAccounts { get { throw null; } set { } } public Azure.Provisioning.BicepList ConnectionStrings { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Cors { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppServiceCorsSettings Cors { get { throw null; } set { } } public Azure.Provisioning.BicepList DefaultDocuments { get { throw null; } set { } } public Azure.Provisioning.BicepValue DocumentRoot { get { throw null; } set { } } public Azure.Provisioning.BicepValue ElasticWebAppScaleLimit { get { throw null; } set { } } @@ -1873,11 +1950,11 @@ public SiteConfigProperties() { } public Azure.Provisioning.BicepValue JavaContainerVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue JavaVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVaultReferenceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Limits { get { throw null; } set { } } + public Azure.Provisioning.AppService.SiteLimits Limits { get { throw null; } set { } } public Azure.Provisioning.BicepValue LinuxFxVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue LoadBalancing { get { throw null; } set { } } public Azure.Provisioning.BicepValue LogsDirectorySizeLimit { get { throw null; } set { } } - public Azure.Provisioning.BicepValue MachineKey { get { throw null; } } + public Azure.Provisioning.AppService.SiteMachineKey MachineKey { get { throw null; } } public Azure.Provisioning.BicepValue ManagedPipelineMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue ManagedServiceIdentityId { get { throw null; } set { } } public Azure.Provisioning.BicepList Metadata { get { throw null; } set { } } @@ -1892,7 +1969,7 @@ public SiteConfigProperties() { } public Azure.Provisioning.BicepValue PreWarmedInstanceCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublishingUsername { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Push { get { throw null; } set { } } + public Azure.Provisioning.AppService.WebAppPushSettings Push { get { throw null; } set { } } public Azure.Provisioning.BicepValue PythonVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue RemoteDebuggingVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequestTracingExpirationOn { get { throw null; } set { } } @@ -1909,6 +1986,7 @@ public SiteConfigProperties() { } public Azure.Provisioning.BicepValue WebsiteTimeZone { get { throw null; } set { } } public Azure.Provisioning.BicepValue WindowsFxVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue XManagedServiceIdentityId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SiteContainer : Azure.Provisioning.Primitives.ProvisionableResource { @@ -1925,11 +2003,12 @@ public partial class SiteContainer : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PasswordSecret { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartUpCommand { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TargetPort { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserManagedIdentityClientId { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserName { get { throw null; } set { } } public Azure.Provisioning.BicepList VolumeMounts { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteContainer FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1980,6 +2059,7 @@ public SiteContainerVolumeMount() { } public Azure.Provisioning.BicepValue Data { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsReadOnly { get { throw null; } set { } } public Azure.Provisioning.BicepValue VolumeSubPath { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SiteDefaultAction { @@ -2001,7 +2081,8 @@ public partial class SiteDeployment : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteDeployment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2047,6 +2128,7 @@ public SiteDnsConfig() { } public Azure.Provisioning.BicepValue DnsRetryAttemptCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue DnsRetryAttemptTimeout { get { throw null; } set { } } public Azure.Provisioning.BicepList DnsServers { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SiteDomainOwnershipIdentifier : Azure.Provisioning.Primitives.ProvisionableResource { @@ -2055,8 +2137,9 @@ public partial class SiteDomainOwnershipIdentifier : Azure.Provisioning.Primitiv public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteDomainOwnershipIdentifier FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2112,7 +2195,8 @@ public partial class SiteExtension : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepValue SetParametersXmlFileUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue SkipAppData { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteExtension FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2172,9 +2256,10 @@ public partial class SiteFunction : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepValue ScriptHref { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScriptRootPathHref { get { throw null; } set { } } public Azure.Provisioning.BicepValue SecretsFileHref { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TestData { get { throw null; } set { } } public Azure.Provisioning.BicepValue TestDataHref { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteFunction FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2225,9 +2310,10 @@ public partial class SiteHostNameBinding : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue SiteName { get { throw null; } set { } } public Azure.Provisioning.BicepValue SslState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue ThumbprintString { get { throw null; } set { } } public Azure.Provisioning.BicepValue VirtualIP { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteHostNameBinding FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2271,7 +2357,8 @@ public partial class SiteHybridConnectionNamespaceRelay : Azure.Provisioning.Pri public Azure.Provisioning.BicepValue SendKeyValue { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServiceBusNamespace { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServiceBusSuffix { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteHybridConnectionNamespaceRelay FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public partial class SiteInstanceExtension : Azure.Provisioning.Primitives.ProvisionableResource @@ -2292,7 +2379,8 @@ public partial class SiteInstanceExtension : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepValue SetParametersXmlFileUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue SkipAppData { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteInstanceExtension FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public partial class SiteLimits : Azure.Provisioning.Primitives.ProvisionableConstruct @@ -2301,6 +2389,7 @@ public SiteLimits() { } public Azure.Provisioning.BicepValue MaxDiskSizeInMb { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxMemoryInMb { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxPercentageCpu { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SiteLoadBalancing { @@ -2318,6 +2407,7 @@ public SiteMachineKey() { } public Azure.Provisioning.BicepValue DecryptionKey { get { throw null; } } public Azure.Provisioning.BicepValue Validation { get { throw null; } } public Azure.Provisioning.BicepValue ValidationKey { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class SiteNetworkConfig : Azure.Provisioning.Primitives.ProvisionableResource { @@ -2328,7 +2418,8 @@ public partial class SiteNetworkConfig : Azure.Provisioning.Primitives.Provision public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue SubnetResourceId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteNetworkConfig FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2367,9 +2458,10 @@ public partial class SitePrivateEndpointConnection : Azure.Provisioning.Primitiv public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } - public Azure.Provisioning.BicepValue PrivateLinkServiceConnectionState { get { throw null; } set { } } + public Azure.Provisioning.AppService.PrivateLinkConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SitePrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -2417,8 +2509,9 @@ public partial class SitePublicCertificate : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicCertificateLocation { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue ThumbprintString { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SitePublicCertificate FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2470,7 +2563,8 @@ public partial class SiteSlotDeployment : Azure.Provisioning.Primitives.Provisio public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteSlotDeployment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2514,8 +2608,9 @@ public partial class SiteSlotDomainOwnershipIdentifier : Azure.Provisioning.Prim public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteSlotDomainOwnershipIdentifier FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2571,7 +2666,8 @@ public partial class SiteSlotExtension : Azure.Provisioning.Primitives.Provision public Azure.Provisioning.BicepValue SetParametersXmlFileUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue SkipAppData { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteSlotExtension FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2626,9 +2722,10 @@ public partial class SiteSlotFunction : Azure.Provisioning.Primitives.Provisiona public Azure.Provisioning.BicepValue ScriptHref { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScriptRootPathHref { get { throw null; } set { } } public Azure.Provisioning.BicepValue SecretsFileHref { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TestData { get { throw null; } set { } } public Azure.Provisioning.BicepValue TestDataHref { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteSlotFunction FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2679,9 +2776,10 @@ public partial class SiteSlotHostNameBinding : Azure.Provisioning.Primitives.Pro public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue SiteName { get { throw null; } set { } } public Azure.Provisioning.BicepValue SslState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue ThumbprintString { get { throw null; } set { } } public Azure.Provisioning.BicepValue VirtualIP { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteSlotHostNameBinding FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2725,7 +2823,8 @@ public partial class SiteSlotHybridConnectionNamespaceRelay : Azure.Provisioning public Azure.Provisioning.BicepValue SendKeyValue { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServiceBusNamespace { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServiceBusSuffix { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteSlotHybridConnectionNamespaceRelay FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public partial class SiteSlotInstanceExtension : Azure.Provisioning.Primitives.ProvisionableResource @@ -2746,7 +2845,8 @@ public partial class SiteSlotInstanceExtension : Azure.Provisioning.Primitives.P public Azure.Provisioning.BicepValue SetParametersXmlFileUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue SkipAppData { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteSlotInstanceExtension FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public partial class SiteSlotNetworkConfig : Azure.Provisioning.Primitives.ProvisionableResource @@ -2758,7 +2858,8 @@ public partial class SiteSlotNetworkConfig : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue SubnetResourceId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteSlotNetworkConfig FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2797,9 +2898,10 @@ public partial class SiteSlotPrivateEndpointConnection : Azure.Provisioning.Prim public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } - public Azure.Provisioning.BicepValue PrivateLinkServiceConnectionState { get { throw null; } set { } } + public Azure.Provisioning.AppService.PrivateLinkConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteSlotPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2851,11 +2953,12 @@ public partial class SiteSlotSiteContainer : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PasswordSecret { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartUpCommand { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TargetPort { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserManagedIdentityClientId { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserName { get { throw null; } set { } } public Azure.Provisioning.BicepList VolumeMounts { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteSlotSiteContainer FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2905,8 +3008,9 @@ public partial class SiteSlotVirtualNetworkConnection : Azure.Provisioning.Primi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList Routes { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue VnetResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteSlotVirtualNetworkConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2950,9 +3054,10 @@ public partial class SiteSlotVirtualNetworkConnectionGateway : Azure.Provisionin public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.SiteSlotVirtualNetworkConnection? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue VnetName { get { throw null; } set { } } public Azure.Provisioning.BicepValue VpnPackageUri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteSlotVirtualNetworkConnectionGateway FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3002,8 +3107,9 @@ public partial class SiteVirtualNetworkConnection : Azure.Provisioning.Primitive public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList Routes { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue VnetResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteVirtualNetworkConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3047,9 +3153,10 @@ public partial class SiteVirtualNetworkConnectionGateway : Azure.Provisioning.Pr public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.SiteVirtualNetworkConnection? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue VnetName { get { throw null; } set { } } public Azure.Provisioning.BicepValue VpnPackageUri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SiteVirtualNetworkConnectionGateway FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3096,7 +3203,8 @@ public partial class SlotConfigNames : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.SlotConfigNames FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3139,6 +3247,7 @@ public SlotSwapStatus() { } public Azure.Provisioning.BicepValue DestinationSlotName { get { throw null; } } public Azure.Provisioning.BicepValue SourceSlotName { get { throw null; } } public Azure.Provisioning.BicepValue TimestampUtc { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class SlowRequestsBasedTrigger : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -3147,6 +3256,7 @@ public SlowRequestsBasedTrigger() { } public Azure.Provisioning.BicepValue Path { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeInterval { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeTaken { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum StagingEnvironmentPolicy { @@ -3158,14 +3268,14 @@ public partial class StaticSite : Azure.Provisioning.Primitives.ProvisionableRes public StaticSite(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue AllowConfigFileUpdates { get { throw null; } set { } } public Azure.Provisioning.BicepValue Branch { get { throw null; } set { } } - public Azure.Provisioning.BicepValue BuildProperties { get { throw null; } set { } } + public Azure.Provisioning.AppService.StaticSiteBuildProperties BuildProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue ContentDistributionEndpoint { get { throw null; } } public Azure.Provisioning.BicepList CustomDomains { get { throw null; } } public Azure.Provisioning.BicepList DatabaseConnections { get { throw null; } } public Azure.Provisioning.BicepValue DefaultHostname { get { throw null; } } public Azure.Provisioning.BicepValue EnterpriseGradeCdnStatus { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVaultReferenceIdentity { get { throw null; } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepList LinkedBackends { get { throw null; } } @@ -3176,12 +3286,13 @@ public partial class StaticSite : Azure.Provisioning.Primitives.ProvisionableRes public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue RepositoryToken { get { throw null; } set { } } public Azure.Provisioning.BicepValue RepositoryUri { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppServiceSkuDescription Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue StagingEnvironmentPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TemplateProperties { get { throw null; } set { } } + public Azure.Provisioning.AppService.StaticSiteTemplate TemplateProperties { get { throw null; } set { } } public Azure.Provisioning.BicepList UserProvidedFunctionApps { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.StaticSite FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3218,7 +3329,8 @@ public partial class StaticSiteBasicAuthProperty : Azure.Provisioning.Primitives public Azure.Provisioning.BicepValue Password { get { throw null; } set { } } public Azure.Provisioning.BicepValue SecretState { get { throw null; } } public Azure.Provisioning.BicepValue SecretUri { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.StaticSiteBasicAuthProperty FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3249,7 +3361,8 @@ public partial class StaticSiteBuildDatabaseConnection : Azure.Provisioning.Prim public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Region { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.StaticSiteBuildDatabaseConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3279,7 +3392,8 @@ public partial class StaticSiteBuildLinkedBackend : Azure.Provisioning.Primitive public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue Region { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.StaticSiteBuildLinkedBackend FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3310,6 +3424,7 @@ public StaticSiteBuildProperties() { } public Azure.Provisioning.BicepValue GithubActionSecretNameOverride { get { throw null; } set { } } public Azure.Provisioning.BicepValue OutputLocation { get { throw null; } set { } } public Azure.Provisioning.BicepValue SkipGithubActionWorkflowGeneration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StaticSiteBuildUserProvidedFunctionApp : Azure.Provisioning.Primitives.ProvisionableResource { @@ -3320,7 +3435,8 @@ public partial class StaticSiteBuildUserProvidedFunctionApp : Azure.Provisioning public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.StaticSiteBuildUserProvidedFunctionApp FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3347,9 +3463,10 @@ public partial class StaticSiteCustomDomainOverview : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.StaticSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue ValidationMethod { get { throw null; } set { } } public Azure.Provisioning.BicepValue ValidationToken { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.StaticSiteCustomDomainOverview FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3381,7 +3498,8 @@ public partial class StaticSiteDatabaseConnection : Azure.Provisioning.Primitive public Azure.Provisioning.AppService.StaticSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Region { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.StaticSiteDatabaseConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3407,6 +3525,7 @@ public StaticSiteDatabaseConnectionConfigurationFileOverview() { } public Azure.Provisioning.BicepValue Contents { get { throw null; } } public Azure.Provisioning.BicepValue FileName { get { throw null; } } public Azure.Provisioning.BicepValue StaticSiteDatabaseConnectionConfigurationFileOverviewType { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class StaticSiteDatabaseConnectionOverview : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -3416,6 +3535,7 @@ public StaticSiteDatabaseConnectionOverview() { } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue Region { get { throw null; } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class StaticSiteLinkedBackend : Azure.Provisioning.Primitives.ProvisionableResource { @@ -3428,7 +3548,8 @@ public partial class StaticSiteLinkedBackend : Azure.Provisioning.Primitives.Pro public Azure.Provisioning.AppService.StaticSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue Region { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.StaticSiteLinkedBackend FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3455,6 +3576,7 @@ public StaticSiteLinkedBackendInfo() { } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue Region { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class StaticSitePrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { @@ -3465,9 +3587,10 @@ public partial class StaticSitePrivateEndpointConnection : Azure.Provisioning.Pr public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.StaticSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } - public Azure.Provisioning.BicepValue PrivateLinkServiceConnectionState { get { throw null; } set { } } + public Azure.Provisioning.AppService.PrivateLinkConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.StaticSitePrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3495,6 +3618,7 @@ public StaticSiteTemplate() { } public Azure.Provisioning.BicepValue Owner { get { throw null; } set { } } public Azure.Provisioning.BicepValue RepositoryName { get { throw null; } set { } } public Azure.Provisioning.BicepValue TemplateRepositoryUri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StaticSiteUserProvidedFunctionApp : Azure.Provisioning.Primitives.ProvisionableResource { @@ -3506,7 +3630,8 @@ public partial class StaticSiteUserProvidedFunctionApp : Azure.Provisioning.Prim public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.StaticSite? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.StaticSiteUserProvidedFunctionApp FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3531,7 +3656,8 @@ public StaticSiteUserProvidedFunctionAppData() { } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class StatusCodesBasedTrigger : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -3542,6 +3668,7 @@ public StatusCodesBasedTrigger() { } public Azure.Provisioning.BicepValue SubStatus { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeInterval { get { throw null; } set { } } public Azure.Provisioning.BicepValue Win32Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StatusCodesRangeBasedTrigger : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -3550,6 +3677,7 @@ public StatusCodesRangeBasedTrigger() { } public Azure.Provisioning.BicepValue Path { get { throw null; } set { } } public Azure.Provisioning.BicepValue StatusCodes { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeInterval { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class VirtualApplication : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -3558,18 +3686,21 @@ public VirtualApplication() { } public Azure.Provisioning.BicepValue PhysicalPath { get { throw null; } set { } } public Azure.Provisioning.BicepList VirtualDirectories { get { throw null; } set { } } public Azure.Provisioning.BicepValue VirtualPath { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class VirtualDirectory : Azure.Provisioning.Primitives.ProvisionableConstruct { public VirtualDirectory() { } public Azure.Provisioning.BicepValue PhysicalPath { get { throw null; } set { } } public Azure.Provisioning.BicepValue VirtualPath { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class WebAppEnvironmentVariable : Azure.Provisioning.Primitives.ProvisionableConstruct { public WebAppEnvironmentVariable() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum WebAppLogLevel { @@ -3587,9 +3718,10 @@ public WebAppPushSettings() { } public Azure.Provisioning.BicepValue IsPushEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TagsRequiringAuth { get { throw null; } set { } } public Azure.Provisioning.BicepValue TagWhitelistJson { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class WebSite : Azure.Provisioning.Primitives.ProvisionableResource { @@ -3598,21 +3730,21 @@ public partial class WebSite : Azure.Provisioning.Primitives.ProvisionableResour public Azure.Provisioning.BicepValue AvailabilityState { get { throw null; } } public Azure.Provisioning.BicepValue ClientCertExclusionPaths { get { throw null; } set { } } public Azure.Provisioning.BicepValue ClientCertMode { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CloningInfo { get { throw null; } set { } } + public Azure.Provisioning.AppService.CloningInfo CloningInfo { get { throw null; } set { } } public Azure.Provisioning.BicepValue ContainerSize { get { throw null; } set { } } public Azure.Provisioning.BicepValue CustomDomainVerificationId { get { throw null; } set { } } public Azure.Provisioning.BicepValue DailyMemoryTimeQuota { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DaprConfig { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppDaprConfig DaprConfig { get { throw null; } set { } } public Azure.Provisioning.BicepValue DefaultHostName { get { throw null; } } - public Azure.Provisioning.BicepValue DnsConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppService.SiteDnsConfig DnsConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepList EnabledHostNames { get { throw null; } } - public Azure.Provisioning.BicepValue ExtendedLocation { get { throw null; } set { } } - public Azure.Provisioning.BicepValue FunctionAppConfig { get { throw null; } set { } } - public Azure.Provisioning.BicepValue HostingEnvironmentProfile { get { throw null; } set { } } + public Azure.Provisioning.Resources.ExtendedAzureLocation ExtendedLocation { get { throw null; } set { } } + public Azure.Provisioning.AppService.FunctionAppConfig FunctionAppConfig { get { throw null; } set { } } + public Azure.Provisioning.AppService.HostingEnvironmentProfile HostingEnvironmentProfile { get { throw null; } set { } } public Azure.Provisioning.BicepList HostNames { get { throw null; } } public Azure.Provisioning.BicepList HostNameSslStates { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue InProgressOperationId { get { throw null; } } public Azure.Provisioning.BicepValue IsClientAffinityEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsClientCertEnabled { get { throw null; } set { } } @@ -3641,19 +3773,20 @@ public partial class WebSite : Azure.Provisioning.Primitives.ProvisionableResour public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue RedundancyMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue RepositorySiteName { get { throw null; } } - public Azure.Provisioning.BicepValue ResourceConfig { get { throw null; } set { } } + public Azure.Provisioning.AppService.FunctionAppResourceConfig ResourceConfig { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceGroup { get { throw null; } } - public Azure.Provisioning.BicepValue SiteConfig { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SlotSwapStatus { get { throw null; } } + public Azure.Provisioning.AppService.SiteConfigProperties SiteConfig { get { throw null; } set { } } + public Azure.Provisioning.AppService.SlotSwapStatus SlotSwapStatus { get { throw null; } } public Azure.Provisioning.BicepValue State { get { throw null; } } public Azure.Provisioning.BicepValue SuspendOn { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetSwapSlot { get { throw null; } } public Azure.Provisioning.BicepList TrafficManagerHostNames { get { throw null; } } public Azure.Provisioning.BicepValue UsageState { get { throw null; } } public Azure.Provisioning.BicepValue VirtualNetworkSubnetId { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkloadProfileName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSite FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -3707,11 +3840,11 @@ public partial class WebSiteConfig : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepValue ApiManagementConfigId { get { throw null; } set { } } public Azure.Provisioning.BicepValue AppCommandLine { get { throw null; } set { } } public Azure.Provisioning.BicepList AppSettings { get { throw null; } set { } } - public Azure.Provisioning.BicepValue AutoHealRules { get { throw null; } set { } } + public Azure.Provisioning.AppService.AutoHealRules AutoHealRules { get { throw null; } set { } } public Azure.Provisioning.BicepValue AutoSwapSlotName { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary AzureStorageAccounts { get { throw null; } set { } } public Azure.Provisioning.BicepList ConnectionStrings { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Cors { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppServiceCorsSettings Cors { get { throw null; } set { } } public Azure.Provisioning.BicepList DefaultDocuments { get { throw null; } set { } } public Azure.Provisioning.BicepValue DocumentRoot { get { throw null; } set { } } public Azure.Provisioning.BicepValue ElasticWebAppScaleLimit { get { throw null; } set { } } @@ -3739,11 +3872,11 @@ public partial class WebSiteConfig : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepValue JavaVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVaultReferenceIdentity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Limits { get { throw null; } set { } } + public Azure.Provisioning.AppService.SiteLimits Limits { get { throw null; } set { } } public Azure.Provisioning.BicepValue LinuxFxVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue LoadBalancing { get { throw null; } set { } } public Azure.Provisioning.BicepValue LogsDirectorySizeLimit { get { throw null; } set { } } - public Azure.Provisioning.BicepValue MachineKey { get { throw null; } } + public Azure.Provisioning.AppService.SiteMachineKey MachineKey { get { throw null; } } public Azure.Provisioning.BicepValue ManagedPipelineMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue ManagedServiceIdentityId { get { throw null; } set { } } public Azure.Provisioning.BicepList Metadata { get { throw null; } set { } } @@ -3760,7 +3893,7 @@ public partial class WebSiteConfig : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepValue PreWarmedInstanceCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublishingUsername { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Push { get { throw null; } set { } } + public Azure.Provisioning.AppService.WebAppPushSettings Push { get { throw null; } set { } } public Azure.Provisioning.BicepValue PythonVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue RemoteDebuggingVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequestTracingExpirationOn { get { throw null; } set { } } @@ -3768,7 +3901,7 @@ public partial class WebSiteConfig : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepValue ScmIPSecurityRestrictionsDefaultAction { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScmMinTlsVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScmType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TracingOptions { get { throw null; } set { } } public Azure.Provisioning.BicepValue Use32BitWorkerProcess { get { throw null; } set { } } public Azure.Provisioning.BicepValue UseManagedIdentityCreds { get { throw null; } set { } } @@ -3778,6 +3911,7 @@ public partial class WebSiteConfig : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepValue WebsiteTimeZone { get { throw null; } set { } } public Azure.Provisioning.BicepValue WindowsFxVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue XManagedServiceIdentityId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteConfig FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3839,9 +3973,10 @@ public partial class WebSiteExtension : Azure.Provisioning.Primitives.Provisiona public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublishedOn { get { throw null; } } public Azure.Provisioning.BicepValue Summary { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Title { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteExtension FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3886,7 +4021,8 @@ public partial class WebSiteFtpPublishingCredentialsPolicy : Azure.Provisioning. public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteFtpPublishingCredentialsPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3936,7 +4072,8 @@ public partial class WebSiteHybridConnection : Azure.Provisioning.Primitives.Pro public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Port { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceConnectionString { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteHybridConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -3985,9 +4122,10 @@ public partial class WebSitePremierAddon : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Product { get { throw null; } set { } } public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue Vendor { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSitePremierAddon FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -4023,8 +4161,9 @@ public partial class WebSitePrivateAccess : Azure.Provisioning.Primitives.Provis public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepList VirtualNetworks { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSitePrivateAccess FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -4068,21 +4207,21 @@ public partial class WebSiteSlot : Azure.Provisioning.Primitives.ProvisionableRe public Azure.Provisioning.BicepValue AvailabilityState { get { throw null; } } public Azure.Provisioning.BicepValue ClientCertExclusionPaths { get { throw null; } set { } } public Azure.Provisioning.BicepValue ClientCertMode { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CloningInfo { get { throw null; } set { } } + public Azure.Provisioning.AppService.CloningInfo CloningInfo { get { throw null; } set { } } public Azure.Provisioning.BicepValue ContainerSize { get { throw null; } set { } } public Azure.Provisioning.BicepValue CustomDomainVerificationId { get { throw null; } set { } } public Azure.Provisioning.BicepValue DailyMemoryTimeQuota { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DaprConfig { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppDaprConfig DaprConfig { get { throw null; } set { } } public Azure.Provisioning.BicepValue DefaultHostName { get { throw null; } } - public Azure.Provisioning.BicepValue DnsConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppService.SiteDnsConfig DnsConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepList EnabledHostNames { get { throw null; } } - public Azure.Provisioning.BicepValue ExtendedLocation { get { throw null; } set { } } - public Azure.Provisioning.BicepValue FunctionAppConfig { get { throw null; } set { } } - public Azure.Provisioning.BicepValue HostingEnvironmentProfile { get { throw null; } set { } } + public Azure.Provisioning.Resources.ExtendedAzureLocation ExtendedLocation { get { throw null; } set { } } + public Azure.Provisioning.AppService.FunctionAppConfig FunctionAppConfig { get { throw null; } set { } } + public Azure.Provisioning.AppService.HostingEnvironmentProfile HostingEnvironmentProfile { get { throw null; } set { } } public Azure.Provisioning.BicepList HostNames { get { throw null; } } public Azure.Provisioning.BicepList HostNameSslStates { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue InProgressOperationId { get { throw null; } } public Azure.Provisioning.BicepValue IsClientAffinityEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsClientCertEnabled { get { throw null; } set { } } @@ -4112,19 +4251,20 @@ public partial class WebSiteSlot : Azure.Provisioning.Primitives.ProvisionableRe public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue RedundancyMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue RepositorySiteName { get { throw null; } } - public Azure.Provisioning.BicepValue ResourceConfig { get { throw null; } set { } } + public Azure.Provisioning.AppService.FunctionAppResourceConfig ResourceConfig { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceGroup { get { throw null; } } - public Azure.Provisioning.BicepValue SiteConfig { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SlotSwapStatus { get { throw null; } } + public Azure.Provisioning.AppService.SiteConfigProperties SiteConfig { get { throw null; } set { } } + public Azure.Provisioning.AppService.SlotSwapStatus SlotSwapStatus { get { throw null; } } public Azure.Provisioning.BicepValue State { get { throw null; } } public Azure.Provisioning.BicepValue SuspendOn { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetSwapSlot { get { throw null; } } public Azure.Provisioning.BicepList TrafficManagerHostNames { get { throw null; } } public Azure.Provisioning.BicepValue UsageState { get { throw null; } } public Azure.Provisioning.BicepValue VirtualNetworkSubnetId { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkloadProfileName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteSlot FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -4172,11 +4312,11 @@ public partial class WebSiteSlotConfig : Azure.Provisioning.Primitives.Provision public Azure.Provisioning.BicepValue ApiManagementConfigId { get { throw null; } set { } } public Azure.Provisioning.BicepValue AppCommandLine { get { throw null; } set { } } public Azure.Provisioning.BicepList AppSettings { get { throw null; } set { } } - public Azure.Provisioning.BicepValue AutoHealRules { get { throw null; } set { } } + public Azure.Provisioning.AppService.AutoHealRules AutoHealRules { get { throw null; } set { } } public Azure.Provisioning.BicepValue AutoSwapSlotName { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary AzureStorageAccounts { get { throw null; } set { } } public Azure.Provisioning.BicepList ConnectionStrings { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Cors { get { throw null; } set { } } + public Azure.Provisioning.AppService.AppServiceCorsSettings Cors { get { throw null; } set { } } public Azure.Provisioning.BicepList DefaultDocuments { get { throw null; } set { } } public Azure.Provisioning.BicepValue DocumentRoot { get { throw null; } set { } } public Azure.Provisioning.BicepValue ElasticWebAppScaleLimit { get { throw null; } set { } } @@ -4204,11 +4344,11 @@ public partial class WebSiteSlotConfig : Azure.Provisioning.Primitives.Provision public Azure.Provisioning.BicepValue JavaVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVaultReferenceIdentity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Limits { get { throw null; } set { } } + public Azure.Provisioning.AppService.SiteLimits Limits { get { throw null; } set { } } public Azure.Provisioning.BicepValue LinuxFxVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue LoadBalancing { get { throw null; } set { } } public Azure.Provisioning.BicepValue LogsDirectorySizeLimit { get { throw null; } set { } } - public Azure.Provisioning.BicepValue MachineKey { get { throw null; } } + public Azure.Provisioning.AppService.SiteMachineKey MachineKey { get { throw null; } } public Azure.Provisioning.BicepValue ManagedPipelineMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue ManagedServiceIdentityId { get { throw null; } set { } } public Azure.Provisioning.BicepList Metadata { get { throw null; } set { } } @@ -4225,7 +4365,7 @@ public partial class WebSiteSlotConfig : Azure.Provisioning.Primitives.Provision public Azure.Provisioning.BicepValue PreWarmedInstanceCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublishingUsername { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Push { get { throw null; } set { } } + public Azure.Provisioning.AppService.WebAppPushSettings Push { get { throw null; } set { } } public Azure.Provisioning.BicepValue PythonVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue RemoteDebuggingVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequestTracingExpirationOn { get { throw null; } set { } } @@ -4233,7 +4373,7 @@ public partial class WebSiteSlotConfig : Azure.Provisioning.Primitives.Provision public Azure.Provisioning.BicepValue ScmIPSecurityRestrictionsDefaultAction { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScmMinTlsVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScmType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TracingOptions { get { throw null; } set { } } public Azure.Provisioning.BicepValue Use32BitWorkerProcess { get { throw null; } set { } } public Azure.Provisioning.BicepValue UseManagedIdentityCreds { get { throw null; } set { } } @@ -4243,6 +4383,7 @@ public partial class WebSiteSlotConfig : Azure.Provisioning.Primitives.Provision public Azure.Provisioning.BicepValue WebsiteTimeZone { get { throw null; } set { } } public Azure.Provisioning.BicepValue WindowsFxVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue XManagedServiceIdentityId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteSlotConfig FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -4304,9 +4445,10 @@ public partial class WebSiteSlotExtension : Azure.Provisioning.Primitives.Provis public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublishedOn { get { throw null; } } public Azure.Provisioning.BicepValue Summary { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Title { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteSlotExtension FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -4351,7 +4493,8 @@ public partial class WebSiteSlotFtpPublishingCredentialsPolicy : Azure.Provision public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteSlotFtpPublishingCredentialsPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -4401,7 +4544,8 @@ public partial class WebSiteSlotHybridConnection : Azure.Provisioning.Primitives public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Port { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceConnectionString { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteSlotHybridConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -4450,9 +4594,10 @@ public partial class WebSiteSlotPremierAddOn : Azure.Provisioning.Primitives.Pro public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Product { get { throw null; } set { } } public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue Vendor { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteSlotPremierAddOn FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -4497,8 +4642,9 @@ public partial class WebSiteSlotPrivateAccess : Azure.Provisioning.Primitives.Pr public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepList VirtualNetworks { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteSlotPrivateAccess FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -4544,8 +4690,9 @@ public partial class WebSiteSlotPublicCertificate : Azure.Provisioning.Primitive public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicCertificateLocation { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue ThumbprintString { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteSlotPublicCertificate FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -4586,7 +4733,7 @@ public partial class WebSiteSlotSourceControl : Azure.Provisioning.Primitives.Pr { public WebSiteSlotSourceControl(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Branch { get { throw null; } set { } } - public Azure.Provisioning.BicepValue GitHubActionConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppService.GitHubActionConfiguration GitHubActionConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue IsDeploymentRollbackEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsGitHubAction { get { throw null; } set { } } @@ -4596,7 +4743,8 @@ public partial class WebSiteSlotSourceControl : Azure.Provisioning.Primitives.Pr public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.WebSiteSlot? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue RepoUri { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteSlotSourceControl FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -4637,7 +4785,7 @@ public partial class WebSiteSourceControl : Azure.Provisioning.Primitives.Provis { public WebSiteSourceControl(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Branch { get { throw null; } set { } } - public Azure.Provisioning.BicepValue GitHubActionConfiguration { get { throw null; } set { } } + public Azure.Provisioning.AppService.GitHubActionConfiguration GitHubActionConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue IsDeploymentRollbackEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsGitHubAction { get { throw null; } set { } } @@ -4647,7 +4795,8 @@ public partial class WebSiteSourceControl : Azure.Provisioning.Primitives.Provis public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.AppService.WebSite? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue RepoUri { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.AppService.WebSiteSourceControl FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppCertificate.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppCertificate.cs index b22592c807a13..04eebe0ae734d 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppCertificate.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppCertificate.cs @@ -22,166 +22,259 @@ public partial class AppCertificate : ProvisionableResource /// /// Name of the certificate. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// CNAME of the certificate to be issued via free certificate. /// - public BicepValue CanonicalName { get => _canonicalName; set => _canonicalName.Assign(value); } - private readonly BicepValue _canonicalName; + public BicepValue CanonicalName + { + get { Initialize(); return _canonicalName!; } + set { Initialize(); _canonicalName!.Assign(value); } + } + private BicepValue? _canonicalName; /// /// Method of domain validation for free cert. /// - public BicepValue DomainValidationMethod { get => _domainValidationMethod; set => _domainValidationMethod.Assign(value); } - private readonly BicepValue _domainValidationMethod; + public BicepValue DomainValidationMethod + { + get { Initialize(); return _domainValidationMethod!; } + set { Initialize(); _domainValidationMethod!.Assign(value); } + } + private BicepValue? _domainValidationMethod; /// /// Host names the certificate applies to. /// - public BicepList HostNames { get => _hostNames; set => _hostNames.Assign(value); } - private readonly BicepList _hostNames; + public BicepList HostNames + { + get { Initialize(); return _hostNames!; } + set { Initialize(); _hostNames!.Assign(value); } + } + private BicepList? _hostNames; /// /// Key Vault Csm resource Id. /// - public BicepValue KeyVaultId { get => _keyVaultId; set => _keyVaultId.Assign(value); } - private readonly BicepValue _keyVaultId; + public BicepValue KeyVaultId + { + get { Initialize(); return _keyVaultId!; } + set { Initialize(); _keyVaultId!.Assign(value); } + } + private BicepValue? _keyVaultId; /// /// Key Vault secret name. /// - public BicepValue KeyVaultSecretName { get => _keyVaultSecretName; set => _keyVaultSecretName.Assign(value); } - private readonly BicepValue _keyVaultSecretName; + public BicepValue KeyVaultSecretName + { + get { Initialize(); return _keyVaultSecretName!; } + set { Initialize(); _keyVaultSecretName!.Assign(value); } + } + private BicepValue? _keyVaultSecretName; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Certificate password. /// - public BicepValue Password { get => _password; set => _password.Assign(value); } - private readonly BicepValue _password; + public BicepValue Password + { + get { Initialize(); return _password!; } + set { Initialize(); _password!.Assign(value); } + } + private BicepValue? _password; /// /// Pfx blob. /// - public BicepValue PfxBlob { get => _pfxBlob; set => _pfxBlob.Assign(value); } - private readonly BicepValue _pfxBlob; + public BicepValue PfxBlob + { + get { Initialize(); return _pfxBlob!; } + set { Initialize(); _pfxBlob!.Assign(value); } + } + private BicepValue? _pfxBlob; /// /// Resource ID of the associated App Service plan, formatted as: /// "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". /// - public BicepValue ServerFarmId { get => _serverFarmId; set => _serverFarmId.Assign(value); } - private readonly BicepValue _serverFarmId; + public BicepValue ServerFarmId + { + get { Initialize(); return _serverFarmId!; } + set { Initialize(); _serverFarmId!.Assign(value); } + } + private BicepValue? _serverFarmId; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Raw bytes of .cer file. /// - public BicepValue CerBlob { get => _cerBlob; } - private readonly BicepValue _cerBlob; + public BicepValue CerBlob + { + get { Initialize(); return _cerBlob!; } + } + private BicepValue? _cerBlob; /// /// Certificate expiration date. /// - public BicepValue ExpireOn { get => _expireOn; } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + } + private BicepValue? _expireOn; /// /// Friendly name of the certificate. /// - public BicepValue FriendlyName { get => _friendlyName; } - private readonly BicepValue _friendlyName; + public BicepValue FriendlyName + { + get { Initialize(); return _friendlyName!; } + } + private BicepValue? _friendlyName; /// /// Specification for the App Service Environment to use for the /// certificate. /// - public BicepValue HostingEnvironmentProfile { get => _hostingEnvironmentProfile; } - private readonly BicepValue _hostingEnvironmentProfile; + public HostingEnvironmentProfile HostingEnvironmentProfile + { + get { Initialize(); return _hostingEnvironmentProfile!; } + } + private HostingEnvironmentProfile? _hostingEnvironmentProfile; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Certificate issue Date. /// - public BicepValue IssueOn { get => _issueOn; } - private readonly BicepValue _issueOn; + public BicepValue IssueOn + { + get { Initialize(); return _issueOn!; } + } + private BicepValue? _issueOn; /// /// Certificate issuer. /// - public BicepValue Issuer { get => _issuer; } - private readonly BicepValue _issuer; + public BicepValue Issuer + { + get { Initialize(); return _issuer!; } + } + private BicepValue? _issuer; /// /// Is the certificate valid?. /// - public BicepValue IsValid { get => _isValid; } - private readonly BicepValue _isValid; + public BicepValue IsValid + { + get { Initialize(); return _isValid!; } + } + private BicepValue? _isValid; /// /// Status of the Key Vault secret. /// - public BicepValue KeyVaultSecretStatus { get => _keyVaultSecretStatus; } - private readonly BicepValue _keyVaultSecretStatus; + public BicepValue KeyVaultSecretStatus + { + get { Initialize(); return _keyVaultSecretStatus!; } + } + private BicepValue? _keyVaultSecretStatus; /// /// Public key hash. /// - public BicepValue PublicKeyHash { get => _publicKeyHash; } - private readonly BicepValue _publicKeyHash; + public BicepValue PublicKeyHash + { + get { Initialize(); return _publicKeyHash!; } + } + private BicepValue? _publicKeyHash; /// /// Self link. /// - public BicepValue SelfLink { get => _selfLink; } - private readonly BicepValue _selfLink; + public BicepValue SelfLink + { + get { Initialize(); return _selfLink!; } + } + private BicepValue? _selfLink; /// /// App name. /// - public BicepValue SiteName { get => _siteName; } - private readonly BicepValue _siteName; + public BicepValue SiteName + { + get { Initialize(); return _siteName!; } + } + private BicepValue? _siteName; /// /// Subject name of the certificate. /// - public BicepValue SubjectName { get => _subjectName; } - private readonly BicepValue _subjectName; + public BicepValue SubjectName + { + get { Initialize(); return _subjectName!; } + } + private BicepValue? _subjectName; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Certificate thumbprint. /// - public BicepValue ThumbprintString { get => _thumbprintString; } - private readonly BicepValue _thumbprintString; + public BicepValue ThumbprintString + { + get { Initialize(); return _thumbprintString!; } + } + private BicepValue? _thumbprintString; /// /// Creates a new AppCertificate. @@ -196,33 +289,40 @@ public partial class AppCertificate : ProvisionableResource public AppCertificate(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/certificates", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _canonicalName = BicepValue.DefineProperty(this, "CanonicalName", ["properties", "canonicalName"]); - _domainValidationMethod = BicepValue.DefineProperty(this, "DomainValidationMethod", ["properties", "domainValidationMethod"]); - _hostNames = BicepList.DefineProperty(this, "HostNames", ["properties", "hostNames"]); - _keyVaultId = BicepValue.DefineProperty(this, "KeyVaultId", ["properties", "keyVaultId"]); - _keyVaultSecretName = BicepValue.DefineProperty(this, "KeyVaultSecretName", ["properties", "keyVaultSecretName"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _password = BicepValue.DefineProperty(this, "Password", ["properties", "password"]); - _pfxBlob = BicepValue.DefineProperty(this, "PfxBlob", ["properties", "pfxBlob"]); - _serverFarmId = BicepValue.DefineProperty(this, "ServerFarmId", ["properties", "serverFarmId"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _cerBlob = BicepValue.DefineProperty(this, "CerBlob", ["properties", "cerBlob"], isOutput: true); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["properties", "expirationDate"], isOutput: true); - _friendlyName = BicepValue.DefineProperty(this, "FriendlyName", ["properties", "friendlyName"], isOutput: true); - _hostingEnvironmentProfile = BicepValue.DefineProperty(this, "HostingEnvironmentProfile", ["properties", "hostingEnvironmentProfile"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _issueOn = BicepValue.DefineProperty(this, "IssueOn", ["properties", "issueDate"], isOutput: true); - _issuer = BicepValue.DefineProperty(this, "Issuer", ["properties", "issuer"], isOutput: true); - _isValid = BicepValue.DefineProperty(this, "IsValid", ["properties", "valid"], isOutput: true); - _keyVaultSecretStatus = BicepValue.DefineProperty(this, "KeyVaultSecretStatus", ["properties", "keyVaultSecretStatus"], isOutput: true); - _publicKeyHash = BicepValue.DefineProperty(this, "PublicKeyHash", ["properties", "publicKeyHash"], isOutput: true); - _selfLink = BicepValue.DefineProperty(this, "SelfLink", ["properties", "selfLink"], isOutput: true); - _siteName = BicepValue.DefineProperty(this, "SiteName", ["properties", "siteName"], isOutput: true); - _subjectName = BicepValue.DefineProperty(this, "SubjectName", ["properties", "subjectName"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _thumbprintString = BicepValue.DefineProperty(this, "ThumbprintString", ["properties", "thumbprint"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AppCertificate. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _canonicalName = DefineProperty("CanonicalName", ["properties", "canonicalName"]); + _domainValidationMethod = DefineProperty("DomainValidationMethod", ["properties", "domainValidationMethod"]); + _hostNames = DefineListProperty("HostNames", ["properties", "hostNames"]); + _keyVaultId = DefineProperty("KeyVaultId", ["properties", "keyVaultId"]); + _keyVaultSecretName = DefineProperty("KeyVaultSecretName", ["properties", "keyVaultSecretName"]); + _kind = DefineProperty("Kind", ["kind"]); + _password = DefineProperty("Password", ["properties", "password"]); + _pfxBlob = DefineProperty("PfxBlob", ["properties", "pfxBlob"]); + _serverFarmId = DefineProperty("ServerFarmId", ["properties", "serverFarmId"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _cerBlob = DefineProperty("CerBlob", ["properties", "cerBlob"], isOutput: true); + _expireOn = DefineProperty("ExpireOn", ["properties", "expirationDate"], isOutput: true); + _friendlyName = DefineProperty("FriendlyName", ["properties", "friendlyName"], isOutput: true); + _hostingEnvironmentProfile = DefineModelProperty("HostingEnvironmentProfile", ["properties", "hostingEnvironmentProfile"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _issueOn = DefineProperty("IssueOn", ["properties", "issueDate"], isOutput: true); + _issuer = DefineProperty("Issuer", ["properties", "issuer"], isOutput: true); + _isValid = DefineProperty("IsValid", ["properties", "valid"], isOutput: true); + _keyVaultSecretStatus = DefineProperty("KeyVaultSecretStatus", ["properties", "keyVaultSecretStatus"], isOutput: true); + _publicKeyHash = DefineProperty("PublicKeyHash", ["properties", "publicKeyHash"], isOutput: true); + _selfLink = DefineProperty("SelfLink", ["properties", "selfLink"], isOutput: true); + _siteName = DefineProperty("SiteName", ["properties", "siteName"], isOutput: true); + _subjectName = DefineProperty("SubjectName", ["properties", "subjectName"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _thumbprintString = DefineProperty("ThumbprintString", ["properties", "thumbprint"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceCertificate.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceCertificate.cs index 1c7540e849ca8..7ea7684d2c5a9 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceCertificate.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceCertificate.cs @@ -21,62 +21,99 @@ public partial class AppServiceCertificate : ProvisionableResource /// /// Name of the certificate. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Key Vault resource Id. /// - public BicepValue KeyVaultId { get => _keyVaultId; set => _keyVaultId.Assign(value); } - private readonly BicepValue _keyVaultId; + public BicepValue KeyVaultId + { + get { Initialize(); return _keyVaultId!; } + set { Initialize(); _keyVaultId!.Assign(value); } + } + private BicepValue? _keyVaultId; /// /// Key Vault secret name. /// - public BicepValue KeyVaultSecretName { get => _keyVaultSecretName; set => _keyVaultSecretName.Assign(value); } - private readonly BicepValue _keyVaultSecretName; + public BicepValue KeyVaultSecretName + { + get { Initialize(); return _keyVaultSecretName!; } + set { Initialize(); _keyVaultSecretName!.Assign(value); } + } + private BicepValue? _keyVaultSecretName; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Status of the Key Vault secret. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent AppServiceCertificateOrder. /// - public AppServiceCertificateOrder? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public AppServiceCertificateOrder? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new AppServiceCertificate. @@ -91,16 +128,23 @@ public partial class AppServiceCertificate : ProvisionableResource public AppServiceCertificate(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.CertificateRegistration/certificateOrders/certificates", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _keyVaultId = BicepValue.DefineProperty(this, "KeyVaultId", ["properties", "keyVaultId"]); - _keyVaultSecretName = BicepValue.DefineProperty(this, "KeyVaultSecretName", ["properties", "keyVaultSecretName"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of AppServiceCertificate. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _keyVaultId = DefineProperty("KeyVaultId", ["properties", "keyVaultId"]); + _keyVaultSecretName = DefineProperty("KeyVaultSecretName", ["properties", "keyVaultSecretName"]); + _kind = DefineProperty("Kind", ["kind"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceCertificateOrder.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceCertificateOrder.cs index 8423ca21e749e..3f436ca752cfd 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceCertificateOrder.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceCertificateOrder.cs @@ -21,162 +21,251 @@ public partial class AppServiceCertificateOrder : ProvisionableResource /// /// Name of the certificate order. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// State of the Key Vault secret. /// - public BicepDictionary Certificates { get => _certificates; set => _certificates.Assign(value); } - private readonly BicepDictionary _certificates; + public BicepDictionary Certificates + { + get { Initialize(); return _certificates!; } + set { Initialize(); _certificates!.Assign(value); } + } + private BicepDictionary? _certificates; /// /// Last CSR that was created for this order. /// - public BicepValue Csr { get => _csr; set => _csr.Assign(value); } - private readonly BicepValue _csr; + public BicepValue Csr + { + get { Initialize(); return _csr!; } + set { Initialize(); _csr!.Assign(value); } + } + private BicepValue? _csr; /// /// Certificate distinguished name. /// - public BicepValue DistinguishedName { get => _distinguishedName; set => _distinguishedName.Assign(value); } - private readonly BicepValue _distinguishedName; + public BicepValue DistinguishedName + { + get { Initialize(); return _distinguishedName!; } + set { Initialize(); _distinguishedName!.Assign(value); } + } + private BicepValue? _distinguishedName; /// /// <code>true</code> if the certificate should be /// automatically renewed when it expires; otherwise, /// <code>false</code>. /// - public BicepValue IsAutoRenew { get => _isAutoRenew; set => _isAutoRenew.Assign(value); } - private readonly BicepValue _isAutoRenew; + public BicepValue IsAutoRenew + { + get { Initialize(); return _isAutoRenew!; } + set { Initialize(); _isAutoRenew!.Assign(value); } + } + private BicepValue? _isAutoRenew; /// /// Certificate key size. /// - public BicepValue KeySize { get => _keySize; set => _keySize.Assign(value); } - private readonly BicepValue _keySize; + public BicepValue KeySize + { + get { Initialize(); return _keySize!; } + set { Initialize(); _keySize!.Assign(value); } + } + private BicepValue? _keySize; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Certificate product type. /// - public BicepValue ProductType { get => _productType; set => _productType.Assign(value); } - private readonly BicepValue _productType; + public BicepValue ProductType + { + get { Initialize(); return _productType!; } + set { Initialize(); _productType!.Assign(value); } + } + private BicepValue? _productType; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Duration in years (must be 1). /// - public BicepValue ValidityInYears { get => _validityInYears; set => _validityInYears.Assign(value); } - private readonly BicepValue _validityInYears; + public BicepValue ValidityInYears + { + get { Initialize(); return _validityInYears!; } + set { Initialize(); _validityInYears!.Assign(value); } + } + private BicepValue? _validityInYears; /// /// Reasons why App Service Certificate is not renewable at the current /// moment. /// - public BicepList AppServiceCertificateNotRenewableReasons { get => _appServiceCertificateNotRenewableReasons; } - private readonly BicepList _appServiceCertificateNotRenewableReasons; + public BicepList AppServiceCertificateNotRenewableReasons + { + get { Initialize(); return _appServiceCertificateNotRenewableReasons!; } + } + private BicepList? _appServiceCertificateNotRenewableReasons; /// /// Contact info. /// - public BicepValue Contact { get => _contact; } - private readonly BicepValue _contact; + public CertificateOrderContact Contact + { + get { Initialize(); return _contact!; } + } + private CertificateOrderContact? _contact; /// /// Domain verification token. /// - public BicepValue DomainVerificationToken { get => _domainVerificationToken; } - private readonly BicepValue _domainVerificationToken; + public BicepValue DomainVerificationToken + { + get { Initialize(); return _domainVerificationToken!; } + } + private BicepValue? _domainVerificationToken; /// /// Certificate expiration time. /// - public BicepValue ExpireOn { get => _expireOn; } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + } + private BicepValue? _expireOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Intermediate certificate. /// - public BicepValue Intermediate { get => _intermediate; } - private readonly BicepValue _intermediate; + public AppServiceCertificateDetails Intermediate + { + get { Initialize(); return _intermediate!; } + } + private AppServiceCertificateDetails? _intermediate; /// /// <code>true</code> if private key is external; otherwise, /// <code>false</code>. /// - public BicepValue IsPrivateKeyExternal { get => _isPrivateKeyExternal; } - private readonly BicepValue _isPrivateKeyExternal; + public BicepValue IsPrivateKeyExternal + { + get { Initialize(); return _isPrivateKeyExternal!; } + } + private BicepValue? _isPrivateKeyExternal; /// /// Certificate last issuance time. /// - public BicepValue LastCertificateIssuedOn { get => _lastCertificateIssuedOn; } - private readonly BicepValue _lastCertificateIssuedOn; + public BicepValue LastCertificateIssuedOn + { + get { Initialize(); return _lastCertificateIssuedOn!; } + } + private BicepValue? _lastCertificateIssuedOn; /// /// Time stamp when the certificate would be auto renewed next. /// - public BicepValue NextAutoRenewTimeStamp { get => _nextAutoRenewTimeStamp; } - private readonly BicepValue _nextAutoRenewTimeStamp; + public BicepValue NextAutoRenewTimeStamp + { + get { Initialize(); return _nextAutoRenewTimeStamp!; } + } + private BicepValue? _nextAutoRenewTimeStamp; /// /// Status of certificate order. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Root certificate. /// - public BicepValue Root { get => _root; } - private readonly BicepValue _root; + public AppServiceCertificateDetails Root + { + get { Initialize(); return _root!; } + } + private AppServiceCertificateDetails? _root; /// /// Current serial number of the certificate. /// - public BicepValue SerialNumber { get => _serialNumber; } - private readonly BicepValue _serialNumber; + public BicepValue SerialNumber + { + get { Initialize(); return _serialNumber!; } + } + private BicepValue? _serialNumber; /// /// Signed certificate. /// - public BicepValue SignedCertificate { get => _signedCertificate; } - private readonly BicepValue _signedCertificate; + public AppServiceCertificateDetails SignedCertificate + { + get { Initialize(); return _signedCertificate!; } + } + private AppServiceCertificateDetails? _signedCertificate; /// /// Current order status. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new AppServiceCertificateOrder. @@ -191,32 +280,39 @@ public partial class AppServiceCertificateOrder : ProvisionableResource public AppServiceCertificateOrder(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.CertificateRegistration/certificateOrders", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _certificates = BicepDictionary.DefineProperty(this, "Certificates", ["properties", "certificates"]); - _csr = BicepValue.DefineProperty(this, "Csr", ["properties", "csr"]); - _distinguishedName = BicepValue.DefineProperty(this, "DistinguishedName", ["properties", "distinguishedName"]); - _isAutoRenew = BicepValue.DefineProperty(this, "IsAutoRenew", ["properties", "autoRenew"]); - _keySize = BicepValue.DefineProperty(this, "KeySize", ["properties", "keySize"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _productType = BicepValue.DefineProperty(this, "ProductType", ["properties", "productType"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _validityInYears = BicepValue.DefineProperty(this, "ValidityInYears", ["properties", "validityInYears"]); - _appServiceCertificateNotRenewableReasons = BicepList.DefineProperty(this, "AppServiceCertificateNotRenewableReasons", ["properties", "appServiceCertificateNotRenewableReasons"], isOutput: true); - _contact = BicepValue.DefineProperty(this, "Contact", ["properties", "contact"], isOutput: true); - _domainVerificationToken = BicepValue.DefineProperty(this, "DomainVerificationToken", ["properties", "domainVerificationToken"], isOutput: true); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["properties", "expirationTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _intermediate = BicepValue.DefineProperty(this, "Intermediate", ["properties", "intermediate"], isOutput: true); - _isPrivateKeyExternal = BicepValue.DefineProperty(this, "IsPrivateKeyExternal", ["properties", "isPrivateKeyExternal"], isOutput: true); - _lastCertificateIssuedOn = BicepValue.DefineProperty(this, "LastCertificateIssuedOn", ["properties", "lastCertificateIssuanceTime"], isOutput: true); - _nextAutoRenewTimeStamp = BicepValue.DefineProperty(this, "NextAutoRenewTimeStamp", ["properties", "nextAutoRenewalTimeStamp"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _root = BicepValue.DefineProperty(this, "Root", ["properties", "root"], isOutput: true); - _serialNumber = BicepValue.DefineProperty(this, "SerialNumber", ["properties", "serialNumber"], isOutput: true); - _signedCertificate = BicepValue.DefineProperty(this, "SignedCertificate", ["properties", "signedCertificate"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AppServiceCertificateOrder. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _certificates = DefineDictionaryProperty("Certificates", ["properties", "certificates"]); + _csr = DefineProperty("Csr", ["properties", "csr"]); + _distinguishedName = DefineProperty("DistinguishedName", ["properties", "distinguishedName"]); + _isAutoRenew = DefineProperty("IsAutoRenew", ["properties", "autoRenew"]); + _keySize = DefineProperty("KeySize", ["properties", "keySize"]); + _kind = DefineProperty("Kind", ["kind"]); + _productType = DefineProperty("ProductType", ["properties", "productType"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _validityInYears = DefineProperty("ValidityInYears", ["properties", "validityInYears"]); + _appServiceCertificateNotRenewableReasons = DefineListProperty("AppServiceCertificateNotRenewableReasons", ["properties", "appServiceCertificateNotRenewableReasons"], isOutput: true); + _contact = DefineModelProperty("Contact", ["properties", "contact"], isOutput: true); + _domainVerificationToken = DefineProperty("DomainVerificationToken", ["properties", "domainVerificationToken"], isOutput: true); + _expireOn = DefineProperty("ExpireOn", ["properties", "expirationTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _intermediate = DefineModelProperty("Intermediate", ["properties", "intermediate"], isOutput: true); + _isPrivateKeyExternal = DefineProperty("IsPrivateKeyExternal", ["properties", "isPrivateKeyExternal"], isOutput: true); + _lastCertificateIssuedOn = DefineProperty("LastCertificateIssuedOn", ["properties", "lastCertificateIssuanceTime"], isOutput: true); + _nextAutoRenewTimeStamp = DefineProperty("NextAutoRenewTimeStamp", ["properties", "nextAutoRenewalTimeStamp"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _root = DefineModelProperty("Root", ["properties", "root"], isOutput: true); + _serialNumber = DefineProperty("SerialNumber", ["properties", "serialNumber"], isOutput: true); + _signedCertificate = DefineModelProperty("SignedCertificate", ["properties", "signedCertificate"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceDomain.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceDomain.cs index 3d42d7a2c9226..e3b636a1dc597 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceDomain.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceDomain.cs @@ -21,118 +21,190 @@ public partial class AppServiceDomain : ProvisionableResource /// /// Name of the domain. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Gets or sets the auth code. /// - public BicepValue AuthCode { get => _authCode; set => _authCode.Assign(value); } - private readonly BicepValue _authCode; + public BicepValue AuthCode + { + get { Initialize(); return _authCode!; } + set { Initialize(); _authCode!.Assign(value); } + } + private BicepValue? _authCode; /// /// Legal agreement consent. /// - public BicepValue Consent { get => _consent; set => _consent.Assign(value); } - private readonly BicepValue _consent; + public DomainPurchaseConsent Consent + { + get { Initialize(); return _consent!; } + set { Initialize(); AssignOrReplace(ref _consent, value); } + } + private DomainPurchaseConsent? _consent; /// /// Administrative contact. /// - public BicepValue ContactAdmin { get => _contactAdmin; set => _contactAdmin.Assign(value); } - private readonly BicepValue _contactAdmin; + public RegistrationContactInfo ContactAdmin + { + get { Initialize(); return _contactAdmin!; } + set { Initialize(); AssignOrReplace(ref _contactAdmin, value); } + } + private RegistrationContactInfo? _contactAdmin; /// /// Billing contact. /// - public BicepValue ContactBilling { get => _contactBilling; set => _contactBilling.Assign(value); } - private readonly BicepValue _contactBilling; + public RegistrationContactInfo ContactBilling + { + get { Initialize(); return _contactBilling!; } + set { Initialize(); AssignOrReplace(ref _contactBilling, value); } + } + private RegistrationContactInfo? _contactBilling; /// /// Registrant contact. /// - public BicepValue ContactRegistrant { get => _contactRegistrant; set => _contactRegistrant.Assign(value); } - private readonly BicepValue _contactRegistrant; + public RegistrationContactInfo ContactRegistrant + { + get { Initialize(); return _contactRegistrant!; } + set { Initialize(); AssignOrReplace(ref _contactRegistrant, value); } + } + private RegistrationContactInfo? _contactRegistrant; /// /// Technical contact. /// - public BicepValue ContactTech { get => _contactTech; set => _contactTech.Assign(value); } - private readonly BicepValue _contactTech; + public RegistrationContactInfo ContactTech + { + get { Initialize(); return _contactTech!; } + set { Initialize(); AssignOrReplace(ref _contactTech, value); } + } + private RegistrationContactInfo? _contactTech; /// /// Current DNS type. /// - public BicepValue DnsType { get => _dnsType; set => _dnsType.Assign(value); } - private readonly BicepValue _dnsType; + public BicepValue DnsType + { + get { Initialize(); return _dnsType!; } + set { Initialize(); _dnsType!.Assign(value); } + } + private BicepValue? _dnsType; /// /// Azure DNS Zone to use. /// - public BicepValue DnsZoneId { get => _dnsZoneId; set => _dnsZoneId.Assign(value); } - private readonly BicepValue _dnsZoneId; + public BicepValue DnsZoneId + { + get { Initialize(); return _dnsZoneId!; } + set { Initialize(); _dnsZoneId!.Assign(value); } + } + private BicepValue? _dnsZoneId; /// /// <code>true</code> if the domain should be automatically /// renewed; otherwise, <code>false</code>. /// - public BicepValue IsAutoRenew { get => _isAutoRenew; set => _isAutoRenew.Assign(value); } - private readonly BicepValue _isAutoRenew; + public BicepValue IsAutoRenew + { + get { Initialize(); return _isAutoRenew!; } + set { Initialize(); _isAutoRenew!.Assign(value); } + } + private BicepValue? _isAutoRenew; /// /// <code>true</code> if domain privacy is enabled for this /// domain; otherwise, <code>false</code>. /// - public BicepValue IsDomainPrivacyEnabled { get => _isDomainPrivacyEnabled; set => _isDomainPrivacyEnabled.Assign(value); } - private readonly BicepValue _isDomainPrivacyEnabled; + public BicepValue IsDomainPrivacyEnabled + { + get { Initialize(); return _isDomainPrivacyEnabled!; } + set { Initialize(); _isDomainPrivacyEnabled!.Assign(value); } + } + private BicepValue? _isDomainPrivacyEnabled; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Target DNS type (would be used for migration). /// - public BicepValue TargetDnsType { get => _targetDnsType; set => _targetDnsType.Assign(value); } - private readonly BicepValue _targetDnsType; + public BicepValue TargetDnsType + { + get { Initialize(); return _targetDnsType!; } + set { Initialize(); _targetDnsType!.Assign(value); } + } + private BicepValue? _targetDnsType; /// /// Domain creation timestamp. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Reasons why domain is not renewable. /// - public BicepList DomainNotRenewableReasons { get => _domainNotRenewableReasons; } - private readonly BicepList _domainNotRenewableReasons; + public BicepList DomainNotRenewableReasons + { + get { Initialize(); return _domainNotRenewableReasons!; } + } + private BicepList? _domainNotRenewableReasons; /// /// Domain expiration timestamp. /// - public BicepValue ExpireOn { get => _expireOn; } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + } + private BicepValue? _expireOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// <code>true</code> if Azure can assign this domain to App @@ -141,44 +213,65 @@ public partial class AppServiceDomain : ProvisionableResource /// active and it is hosted on name servers Azure has /// programmatic access to. /// - public BicepValue IsDnsRecordManagementReady { get => _isDnsRecordManagementReady; } - private readonly BicepValue _isDnsRecordManagementReady; + public BicepValue IsDnsRecordManagementReady + { + get { Initialize(); return _isDnsRecordManagementReady!; } + } + private BicepValue? _isDnsRecordManagementReady; /// /// Timestamp when the domain was renewed last time. /// - public BicepValue LastRenewedOn { get => _lastRenewedOn; } - private readonly BicepValue _lastRenewedOn; + public BicepValue LastRenewedOn + { + get { Initialize(); return _lastRenewedOn!; } + } + private BicepValue? _lastRenewedOn; /// /// All hostnames derived from the domain and assigned to Azure resources. /// - public BicepList ManagedHostNames { get => _managedHostNames; } - private readonly BicepList _managedHostNames; + public BicepList ManagedHostNames + { + get { Initialize(); return _managedHostNames!; } + } + private BicepList? _managedHostNames; /// /// Name servers. /// - public BicepList NameServers { get => _nameServers; } - private readonly BicepList _nameServers; + public BicepList NameServers + { + get { Initialize(); return _nameServers!; } + } + private BicepList? _nameServers; /// /// Domain provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Domain registration status. /// - public BicepValue RegistrationStatus { get => _registrationStatus; } - private readonly BicepValue _registrationStatus; + public BicepValue RegistrationStatus + { + get { Initialize(); return _registrationStatus!; } + } + private BicepValue? _registrationStatus; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new AppServiceDomain. @@ -193,32 +286,39 @@ public partial class AppServiceDomain : ProvisionableResource public AppServiceDomain(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DomainRegistration/domains", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _authCode = BicepValue.DefineProperty(this, "AuthCode", ["properties", "authCode"]); - _consent = BicepValue.DefineProperty(this, "Consent", ["properties", "consent"]); - _contactAdmin = BicepValue.DefineProperty(this, "ContactAdmin", ["properties", "contactAdmin"]); - _contactBilling = BicepValue.DefineProperty(this, "ContactBilling", ["properties", "contactBilling"]); - _contactRegistrant = BicepValue.DefineProperty(this, "ContactRegistrant", ["properties", "contactRegistrant"]); - _contactTech = BicepValue.DefineProperty(this, "ContactTech", ["properties", "contactTech"]); - _dnsType = BicepValue.DefineProperty(this, "DnsType", ["properties", "dnsType"]); - _dnsZoneId = BicepValue.DefineProperty(this, "DnsZoneId", ["properties", "dnsZoneId"]); - _isAutoRenew = BicepValue.DefineProperty(this, "IsAutoRenew", ["properties", "autoRenew"]); - _isDomainPrivacyEnabled = BicepValue.DefineProperty(this, "IsDomainPrivacyEnabled", ["properties", "privacy"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _targetDnsType = BicepValue.DefineProperty(this, "TargetDnsType", ["properties", "targetDnsType"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdTime"], isOutput: true); - _domainNotRenewableReasons = BicepList.DefineProperty(this, "DomainNotRenewableReasons", ["properties", "domainNotRenewableReasons"], isOutput: true); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["properties", "expirationTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isDnsRecordManagementReady = BicepValue.DefineProperty(this, "IsDnsRecordManagementReady", ["properties", "readyForDnsRecordManagement"], isOutput: true); - _lastRenewedOn = BicepValue.DefineProperty(this, "LastRenewedOn", ["properties", "lastRenewedTime"], isOutput: true); - _managedHostNames = BicepList.DefineProperty(this, "ManagedHostNames", ["properties", "managedHostNames"], isOutput: true); - _nameServers = BicepList.DefineProperty(this, "NameServers", ["properties", "nameServers"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _registrationStatus = BicepValue.DefineProperty(this, "RegistrationStatus", ["properties", "registrationStatus"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AppServiceDomain. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _authCode = DefineProperty("AuthCode", ["properties", "authCode"]); + _consent = DefineModelProperty("Consent", ["properties", "consent"]); + _contactAdmin = DefineModelProperty("ContactAdmin", ["properties", "contactAdmin"]); + _contactBilling = DefineModelProperty("ContactBilling", ["properties", "contactBilling"]); + _contactRegistrant = DefineModelProperty("ContactRegistrant", ["properties", "contactRegistrant"]); + _contactTech = DefineModelProperty("ContactTech", ["properties", "contactTech"]); + _dnsType = DefineProperty("DnsType", ["properties", "dnsType"]); + _dnsZoneId = DefineProperty("DnsZoneId", ["properties", "dnsZoneId"]); + _isAutoRenew = DefineProperty("IsAutoRenew", ["properties", "autoRenew"]); + _isDomainPrivacyEnabled = DefineProperty("IsDomainPrivacyEnabled", ["properties", "privacy"]); + _kind = DefineProperty("Kind", ["kind"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _targetDnsType = DefineProperty("TargetDnsType", ["properties", "targetDnsType"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdTime"], isOutput: true); + _domainNotRenewableReasons = DefineListProperty("DomainNotRenewableReasons", ["properties", "domainNotRenewableReasons"], isOutput: true); + _expireOn = DefineProperty("ExpireOn", ["properties", "expirationTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isDnsRecordManagementReady = DefineProperty("IsDnsRecordManagementReady", ["properties", "readyForDnsRecordManagement"], isOutput: true); + _lastRenewedOn = DefineProperty("LastRenewedOn", ["properties", "lastRenewedTime"], isOutput: true); + _managedHostNames = DefineListProperty("ManagedHostNames", ["properties", "managedHostNames"], isOutput: true); + _nameServers = DefineListProperty("NameServers", ["properties", "nameServers"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _registrationStatus = DefineProperty("RegistrationStatus", ["properties", "registrationStatus"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceEnvironment.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceEnvironment.cs index b51fb9b3ff0f9..21fb9359a1242 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceEnvironment.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceEnvironment.cs @@ -22,118 +22,192 @@ public partial class AppServiceEnvironment : ProvisionableResource /// /// Name of the App Service Environment. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Custom settings for changing the behavior of the App Service /// Environment. /// - public BicepList ClusterSettings { get => _clusterSettings; set => _clusterSettings.Assign(value); } - private readonly BicepList _clusterSettings; + public BicepList ClusterSettings + { + get { Initialize(); return _clusterSettings!; } + set { Initialize(); _clusterSettings!.Assign(value); } + } + private BicepList? _clusterSettings; /// /// Full view of the custom domain suffix configuration for ASEv3. /// - public BicepValue CustomDnsSuffixConfiguration { get => _customDnsSuffixConfiguration; set => _customDnsSuffixConfiguration.Assign(value); } - private readonly BicepValue _customDnsSuffixConfiguration; + public CustomDnsSuffixConfigurationData CustomDnsSuffixConfiguration + { + get { Initialize(); return _customDnsSuffixConfiguration!; } + set { Initialize(); AssignOrReplace(ref _customDnsSuffixConfiguration, value); } + } + private CustomDnsSuffixConfigurationData? _customDnsSuffixConfiguration; /// /// Dedicated Host Count. /// - public BicepValue DedicatedHostCount { get => _dedicatedHostCount; set => _dedicatedHostCount.Assign(value); } - private readonly BicepValue _dedicatedHostCount; + public BicepValue DedicatedHostCount + { + get { Initialize(); return _dedicatedHostCount!; } + set { Initialize(); _dedicatedHostCount!.Assign(value); } + } + private BicepValue? _dedicatedHostCount; /// /// DNS suffix of the App Service Environment. /// - public BicepValue DnsSuffix { get => _dnsSuffix; set => _dnsSuffix.Assign(value); } - private readonly BicepValue _dnsSuffix; + public BicepValue DnsSuffix + { + get { Initialize(); return _dnsSuffix!; } + set { Initialize(); _dnsSuffix!.Assign(value); } + } + private BicepValue? _dnsSuffix; /// /// Scale factor for front-ends. /// - public BicepValue FrontEndScaleFactor { get => _frontEndScaleFactor; set => _frontEndScaleFactor.Assign(value); } - private readonly BicepValue _frontEndScaleFactor; + public BicepValue FrontEndScaleFactor + { + get { Initialize(); return _frontEndScaleFactor!; } + set { Initialize(); _frontEndScaleFactor!.Assign(value); } + } + private BicepValue? _frontEndScaleFactor; /// /// Specifies which endpoints to serve internally in the Virtual Network /// for the App Service Environment. /// - public BicepValue InternalLoadBalancingMode { get => _internalLoadBalancingMode; set => _internalLoadBalancingMode.Assign(value); } - private readonly BicepValue _internalLoadBalancingMode; + public BicepValue InternalLoadBalancingMode + { + get { Initialize(); return _internalLoadBalancingMode!; } + set { Initialize(); _internalLoadBalancingMode!.Assign(value); } + } + private BicepValue? _internalLoadBalancingMode; /// /// Number of IP SSL addresses reserved for the App Service Environment. /// - public BicepValue IPSslAddressCount { get => _iPSslAddressCount; set => _iPSslAddressCount.Assign(value); } - private readonly BicepValue _iPSslAddressCount; + public BicepValue IPSslAddressCount + { + get { Initialize(); return _iPSslAddressCount!; } + set { Initialize(); _iPSslAddressCount!.Assign(value); } + } + private BicepValue? _iPSslAddressCount; /// /// Whether or not this App Service Environment is zone-redundant. /// - public BicepValue IsZoneRedundant { get => _isZoneRedundant; set => _isZoneRedundant.Assign(value); } - private readonly BicepValue _isZoneRedundant; + public BicepValue IsZoneRedundant + { + get { Initialize(); return _isZoneRedundant!; } + set { Initialize(); _isZoneRedundant!.Assign(value); } + } + private BicepValue? _isZoneRedundant; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Front-end VM size, e.g. "Medium", "Large". /// - public BicepValue MultiSize { get => _multiSize; set => _multiSize.Assign(value); } - private readonly BicepValue _multiSize; + public BicepValue MultiSize + { + get { Initialize(); return _multiSize!; } + set { Initialize(); _multiSize!.Assign(value); } + } + private BicepValue? _multiSize; /// /// Full view of networking configuration for an ASE. /// - public BicepValue NetworkingConfiguration { get => _networkingConfiguration; set => _networkingConfiguration.Assign(value); } - private readonly BicepValue _networkingConfiguration; + public AseV3NetworkingConfigurationData NetworkingConfiguration + { + get { Initialize(); return _networkingConfiguration!; } + set { Initialize(); AssignOrReplace(ref _networkingConfiguration, value); } + } + private AseV3NetworkingConfigurationData? _networkingConfiguration; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Upgrade Preference. /// - public BicepValue UpgradePreference { get => _upgradePreference; set => _upgradePreference.Assign(value); } - private readonly BicepValue _upgradePreference; + public BicepValue UpgradePreference + { + get { Initialize(); return _upgradePreference!; } + set { Initialize(); _upgradePreference!.Assign(value); } + } + private BicepValue? _upgradePreference; /// /// User added ip ranges to whitelist on ASE db. /// - public BicepList UserWhitelistedIPRanges { get => _userWhitelistedIPRanges; set => _userWhitelistedIPRanges.Assign(value); } - private readonly BicepList _userWhitelistedIPRanges; + public BicepList UserWhitelistedIPRanges + { + get { Initialize(); return _userWhitelistedIPRanges!; } + set { Initialize(); _userWhitelistedIPRanges!.Assign(value); } + } + private BicepList? _userWhitelistedIPRanges; /// /// Description of the Virtual Network. /// - public BicepValue VirtualNetwork { get => _virtualNetwork; set => _virtualNetwork.Assign(value); } - private readonly BicepValue _virtualNetwork; + public AppServiceVirtualNetworkProfile VirtualNetwork + { + get { Initialize(); return _virtualNetwork!; } + set { Initialize(); AssignOrReplace(ref _virtualNetwork, value); } + } + private AppServiceVirtualNetworkProfile? _virtualNetwork; /// /// Flag that displays whether an ASE has linux workers or not. /// - public BicepValue HasLinuxWorkers { get => _hasLinuxWorkers; } - private readonly BicepValue _hasLinuxWorkers; + public BicepValue HasLinuxWorkers + { + get { Initialize(); return _hasLinuxWorkers!; } + } + private BicepValue? _hasLinuxWorkers; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// <code>true</code> if the App Service Environment is @@ -142,44 +216,65 @@ public partial class AppServiceEnvironment : ProvisionableResource /// available (most likely because NSG blocked the incoming /// traffic). /// - public BicepValue IsSuspended { get => _isSuspended; } - private readonly BicepValue _isSuspended; + public BicepValue IsSuspended + { + get { Initialize(); return _isSuspended!; } + } + private BicepValue? _isSuspended; /// /// Maximum number of VMs in the App Service Environment. /// - public BicepValue MaximumNumberOfMachines { get => _maximumNumberOfMachines; } - private readonly BicepValue _maximumNumberOfMachines; + public BicepValue MaximumNumberOfMachines + { + get { Initialize(); return _maximumNumberOfMachines!; } + } + private BicepValue? _maximumNumberOfMachines; /// /// Number of front-end instances. /// - public BicepValue MultiRoleCount { get => _multiRoleCount; } - private readonly BicepValue _multiRoleCount; + public BicepValue MultiRoleCount + { + get { Initialize(); return _multiRoleCount!; } + } + private BicepValue? _multiRoleCount; /// /// Provisioning state of the App Service Environment. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Current status of the App Service Environment. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Whether an upgrade is available for this App Service Environment. /// - public BicepValue UpgradeAvailability { get => _upgradeAvailability; } - private readonly BicepValue _upgradeAvailability; + public BicepValue UpgradeAvailability + { + get { Initialize(); return _upgradeAvailability!; } + } + private BicepValue? _upgradeAvailability; /// /// Creates a new AppServiceEnvironment. @@ -194,32 +289,39 @@ public partial class AppServiceEnvironment : ProvisionableResource public AppServiceEnvironment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/hostingEnvironments", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _clusterSettings = BicepList.DefineProperty(this, "ClusterSettings", ["properties", "clusterSettings"]); - _customDnsSuffixConfiguration = BicepValue.DefineProperty(this, "CustomDnsSuffixConfiguration", ["properties", "customDnsSuffixConfiguration"]); - _dedicatedHostCount = BicepValue.DefineProperty(this, "DedicatedHostCount", ["properties", "dedicatedHostCount"]); - _dnsSuffix = BicepValue.DefineProperty(this, "DnsSuffix", ["properties", "dnsSuffix"]); - _frontEndScaleFactor = BicepValue.DefineProperty(this, "FrontEndScaleFactor", ["properties", "frontEndScaleFactor"]); - _internalLoadBalancingMode = BicepValue.DefineProperty(this, "InternalLoadBalancingMode", ["properties", "internalLoadBalancingMode"]); - _iPSslAddressCount = BicepValue.DefineProperty(this, "IPSslAddressCount", ["properties", "ipsslAddressCount"]); - _isZoneRedundant = BicepValue.DefineProperty(this, "IsZoneRedundant", ["properties", "zoneRedundant"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _multiSize = BicepValue.DefineProperty(this, "MultiSize", ["properties", "multiSize"]); - _networkingConfiguration = BicepValue.DefineProperty(this, "NetworkingConfiguration", ["properties", "networkingConfiguration"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _upgradePreference = BicepValue.DefineProperty(this, "UpgradePreference", ["properties", "upgradePreference"]); - _userWhitelistedIPRanges = BicepList.DefineProperty(this, "UserWhitelistedIPRanges", ["properties", "userWhitelistedIpRanges"]); - _virtualNetwork = BicepValue.DefineProperty(this, "VirtualNetwork", ["properties", "virtualNetwork"]); - _hasLinuxWorkers = BicepValue.DefineProperty(this, "HasLinuxWorkers", ["properties", "hasLinuxWorkers"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isSuspended = BicepValue.DefineProperty(this, "IsSuspended", ["properties", "suspended"], isOutput: true); - _maximumNumberOfMachines = BicepValue.DefineProperty(this, "MaximumNumberOfMachines", ["properties", "maximumNumberOfMachines"], isOutput: true); - _multiRoleCount = BicepValue.DefineProperty(this, "MultiRoleCount", ["properties", "multiRoleCount"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _upgradeAvailability = BicepValue.DefineProperty(this, "UpgradeAvailability", ["properties", "upgradeAvailability"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AppServiceEnvironment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _clusterSettings = DefineListProperty("ClusterSettings", ["properties", "clusterSettings"]); + _customDnsSuffixConfiguration = DefineModelProperty("CustomDnsSuffixConfiguration", ["properties", "customDnsSuffixConfiguration"]); + _dedicatedHostCount = DefineProperty("DedicatedHostCount", ["properties", "dedicatedHostCount"]); + _dnsSuffix = DefineProperty("DnsSuffix", ["properties", "dnsSuffix"]); + _frontEndScaleFactor = DefineProperty("FrontEndScaleFactor", ["properties", "frontEndScaleFactor"]); + _internalLoadBalancingMode = DefineProperty("InternalLoadBalancingMode", ["properties", "internalLoadBalancingMode"]); + _iPSslAddressCount = DefineProperty("IPSslAddressCount", ["properties", "ipsslAddressCount"]); + _isZoneRedundant = DefineProperty("IsZoneRedundant", ["properties", "zoneRedundant"]); + _kind = DefineProperty("Kind", ["kind"]); + _multiSize = DefineProperty("MultiSize", ["properties", "multiSize"]); + _networkingConfiguration = DefineModelProperty("NetworkingConfiguration", ["properties", "networkingConfiguration"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _upgradePreference = DefineProperty("UpgradePreference", ["properties", "upgradePreference"]); + _userWhitelistedIPRanges = DefineListProperty("UserWhitelistedIPRanges", ["properties", "userWhitelistedIpRanges"]); + _virtualNetwork = DefineModelProperty("VirtualNetwork", ["properties", "virtualNetwork"]); + _hasLinuxWorkers = DefineProperty("HasLinuxWorkers", ["properties", "hasLinuxWorkers"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isSuspended = DefineProperty("IsSuspended", ["properties", "suspended"], isOutput: true); + _maximumNumberOfMachines = DefineProperty("MaximumNumberOfMachines", ["properties", "maximumNumberOfMachines"], isOutput: true); + _multiRoleCount = DefineProperty("MultiRoleCount", ["properties", "multiRoleCount"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _upgradeAvailability = DefineProperty("UpgradeAvailability", ["properties", "upgradeAvailability"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServicePlan.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServicePlan.cs index c3a8cf2cf9d11..5ad47f4a5d985 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServicePlan.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServicePlan.cs @@ -22,47 +22,75 @@ public partial class AppServicePlan : ProvisionableResource /// /// Name of the App Service plan. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Extended Location. /// - public BicepValue ExtendedLocation { get => _extendedLocation; set => _extendedLocation.Assign(value); } - private readonly BicepValue _extendedLocation; + public ExtendedAzureLocation ExtendedLocation + { + get { Initialize(); return _extendedLocation!; } + set { Initialize(); AssignOrReplace(ref _extendedLocation, value); } + } + private ExtendedAzureLocation? _extendedLocation; /// /// The time when the server farm free offer expires. /// - public BicepValue FreeOfferExpireOn { get => _freeOfferExpireOn; set => _freeOfferExpireOn.Assign(value); } - private readonly BicepValue _freeOfferExpireOn; + public BicepValue FreeOfferExpireOn + { + get { Initialize(); return _freeOfferExpireOn!; } + set { Initialize(); _freeOfferExpireOn!.Assign(value); } + } + private BicepValue? _freeOfferExpireOn; /// /// Specification for the App Service Environment to use for the App /// Service plan. /// - public BicepValue HostingEnvironmentProfile { get => _hostingEnvironmentProfile; set => _hostingEnvironmentProfile.Assign(value); } - private readonly BicepValue _hostingEnvironmentProfile; + public HostingEnvironmentProfile HostingEnvironmentProfile + { + get { Initialize(); return _hostingEnvironmentProfile!; } + set { Initialize(); AssignOrReplace(ref _hostingEnvironmentProfile, value); } + } + private HostingEnvironmentProfile? _hostingEnvironmentProfile; /// /// ServerFarm supports ElasticScale. Apps in this plan will scale as if /// the ServerFarm was ElasticPremium sku. /// - public BicepValue IsElasticScaleEnabled { get => _isElasticScaleEnabled; set => _isElasticScaleEnabled.Assign(value); } - private readonly BicepValue _isElasticScaleEnabled; + public BicepValue IsElasticScaleEnabled + { + get { Initialize(); return _isElasticScaleEnabled!; } + set { Initialize(); _isElasticScaleEnabled!.Assign(value); } + } + private BicepValue? _isElasticScaleEnabled; /// /// If Hyper-V container app service plan <code>true</code>, /// <code>false</code> otherwise. /// - public BicepValue IsHyperV { get => _isHyperV; set => _isHyperV.Assign(value); } - private readonly BicepValue _isHyperV; + public BicepValue IsHyperV + { + get { Initialize(); return _isHyperV!; } + set { Initialize(); _isHyperV!.Assign(value); } + } + private BicepValue? _isHyperV; /// /// If <code>true</code>, apps assigned to this App Service @@ -70,30 +98,46 @@ public partial class AppServicePlan : ProvisionableResource /// <code>false</code>, apps assigned to this App Service plan /// will scale to all instances of the plan. /// - public BicepValue IsPerSiteScaling { get => _isPerSiteScaling; set => _isPerSiteScaling.Assign(value); } - private readonly BicepValue _isPerSiteScaling; + public BicepValue IsPerSiteScaling + { + get { Initialize(); return _isPerSiteScaling!; } + set { Initialize(); _isPerSiteScaling!.Assign(value); } + } + private BicepValue? _isPerSiteScaling; /// /// If Linux app service plan <code>true</code>, /// <code>false</code> otherwise. /// - public BicepValue IsReserved { get => _isReserved; set => _isReserved.Assign(value); } - private readonly BicepValue _isReserved; + public BicepValue IsReserved + { + get { Initialize(); return _isReserved!; } + set { Initialize(); _isReserved!.Assign(value); } + } + private BicepValue? _isReserved; /// /// If <code>true</code>, this App Service Plan owns spot /// instances. /// - public BicepValue IsSpot { get => _isSpot; set => _isSpot.Assign(value); } - private readonly BicepValue _isSpot; + public BicepValue IsSpot + { + get { Initialize(); return _isSpot!; } + set { Initialize(); _isSpot!.Assign(value); } + } + private BicepValue? _isSpot; /// /// Obsolete: If Hyper-V container app service plan /// <code>true</code>, <code>false</code> /// otherwise. /// - public BicepValue IsXenon { get => _isXenon; set => _isXenon.Assign(value); } - private readonly BicepValue _isXenon; + public BicepValue IsXenon + { + get { Initialize(); return _isXenon!; } + set { Initialize(); _isXenon!.Assign(value); } + } + private BicepValue? _isXenon; /// /// If <code>true</code>, this App Service Plan will perform @@ -101,126 +145,196 @@ public partial class AppServicePlan : ProvisionableResource /// <code>false</code>, this App Service Plan will not perform /// availability zone balancing. /// - public BicepValue IsZoneRedundant { get => _isZoneRedundant; set => _isZoneRedundant.Assign(value); } - private readonly BicepValue _isZoneRedundant; + public BicepValue IsZoneRedundant + { + get { Initialize(); return _isZoneRedundant!; } + set { Initialize(); _isZoneRedundant!.Assign(value); } + } + private BicepValue? _isZoneRedundant; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Specification for the Kubernetes Environment to use for the App Service /// plan. /// - public BicepValue KubeEnvironmentProfile { get => _kubeEnvironmentProfile; set => _kubeEnvironmentProfile.Assign(value); } - private readonly BicepValue _kubeEnvironmentProfile; + public KubeEnvironmentProfile KubeEnvironmentProfile + { + get { Initialize(); return _kubeEnvironmentProfile!; } + set { Initialize(); AssignOrReplace(ref _kubeEnvironmentProfile, value); } + } + private KubeEnvironmentProfile? _kubeEnvironmentProfile; /// /// Maximum number of total workers allowed for this ElasticScaleEnabled /// App Service Plan. /// - public BicepValue MaximumElasticWorkerCount { get => _maximumElasticWorkerCount; set => _maximumElasticWorkerCount.Assign(value); } - private readonly BicepValue _maximumElasticWorkerCount; + public BicepValue MaximumElasticWorkerCount + { + get { Initialize(); return _maximumElasticWorkerCount!; } + set { Initialize(); _maximumElasticWorkerCount!.Assign(value); } + } + private BicepValue? _maximumElasticWorkerCount; /// /// Description of a SKU for a scalable resource. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public AppServiceSkuDescription Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private AppServiceSkuDescription? _sku; /// /// The time when the server farm expires. Valid only if it is a spot /// server farm. /// - public BicepValue SpotExpireOn { get => _spotExpireOn; set => _spotExpireOn.Assign(value); } - private readonly BicepValue _spotExpireOn; + public BicepValue SpotExpireOn + { + get { Initialize(); return _spotExpireOn!; } + set { Initialize(); _spotExpireOn!.Assign(value); } + } + private BicepValue? _spotExpireOn; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Scaling worker count. /// - public BicepValue TargetWorkerCount { get => _targetWorkerCount; set => _targetWorkerCount.Assign(value); } - private readonly BicepValue _targetWorkerCount; + public BicepValue TargetWorkerCount + { + get { Initialize(); return _targetWorkerCount!; } + set { Initialize(); _targetWorkerCount!.Assign(value); } + } + private BicepValue? _targetWorkerCount; /// /// Scaling worker size ID. /// - public BicepValue TargetWorkerSizeId { get => _targetWorkerSizeId; set => _targetWorkerSizeId.Assign(value); } - private readonly BicepValue _targetWorkerSizeId; + public BicepValue TargetWorkerSizeId + { + get { Initialize(); return _targetWorkerSizeId!; } + set { Initialize(); _targetWorkerSizeId!.Assign(value); } + } + private BicepValue? _targetWorkerSizeId; /// /// Target worker tier assigned to the App Service plan. /// - public BicepValue WorkerTierName { get => _workerTierName; set => _workerTierName.Assign(value); } - private readonly BicepValue _workerTierName; + public BicepValue WorkerTierName + { + get { Initialize(); return _workerTierName!; } + set { Initialize(); _workerTierName!.Assign(value); } + } + private BicepValue? _workerTierName; /// /// Geographical location for the App Service plan. /// - public BicepValue GeoRegion { get => _geoRegion; } - private readonly BicepValue _geoRegion; + public BicepValue GeoRegion + { + get { Initialize(); return _geoRegion!; } + } + private BicepValue? _geoRegion; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Maximum number of instances that can be assigned to this App Service /// plan. /// - public BicepValue MaximumNumberOfWorkers { get => _maximumNumberOfWorkers; } - private readonly BicepValue _maximumNumberOfWorkers; + public BicepValue MaximumNumberOfWorkers + { + get { Initialize(); return _maximumNumberOfWorkers!; } + } + private BicepValue? _maximumNumberOfWorkers; /// /// Number of apps assigned to this App Service plan. /// - public BicepValue NumberOfSites { get => _numberOfSites; } - private readonly BicepValue _numberOfSites; + public BicepValue NumberOfSites + { + get { Initialize(); return _numberOfSites!; } + } + private BicepValue? _numberOfSites; /// /// The number of instances that are assigned to this App Service plan. /// - public BicepValue NumberOfWorkers { get => _numberOfWorkers; } - private readonly BicepValue _numberOfWorkers; + public BicepValue NumberOfWorkers + { + get { Initialize(); return _numberOfWorkers!; } + } + private BicepValue? _numberOfWorkers; /// /// Provisioning state of the App Service Plan. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Resource group of the App Service plan. /// - public BicepValue ResourceGroup { get => _resourceGroup; } - private readonly BicepValue _resourceGroup; + public BicepValue ResourceGroup + { + get { Initialize(); return _resourceGroup!; } + } + private BicepValue? _resourceGroup; /// /// App Service plan status. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// App Service plan subscription. /// - public BicepValue Subscription { get => _subscription; } - private readonly BicepValue _subscription; + public BicepValue Subscription + { + get { Initialize(); return _subscription!; } + } + private BicepValue? _subscription; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new AppServicePlan. @@ -235,37 +349,44 @@ public partial class AppServicePlan : ProvisionableResource public AppServicePlan(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/serverfarms", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _extendedLocation = BicepValue.DefineProperty(this, "ExtendedLocation", ["extendedLocation"]); - _freeOfferExpireOn = BicepValue.DefineProperty(this, "FreeOfferExpireOn", ["properties", "freeOfferExpirationTime"]); - _hostingEnvironmentProfile = BicepValue.DefineProperty(this, "HostingEnvironmentProfile", ["properties", "hostingEnvironmentProfile"]); - _isElasticScaleEnabled = BicepValue.DefineProperty(this, "IsElasticScaleEnabled", ["properties", "elasticScaleEnabled"]); - _isHyperV = BicepValue.DefineProperty(this, "IsHyperV", ["properties", "hyperV"]); - _isPerSiteScaling = BicepValue.DefineProperty(this, "IsPerSiteScaling", ["properties", "perSiteScaling"]); - _isReserved = BicepValue.DefineProperty(this, "IsReserved", ["properties", "reserved"]); - _isSpot = BicepValue.DefineProperty(this, "IsSpot", ["properties", "isSpot"]); - _isXenon = BicepValue.DefineProperty(this, "IsXenon", ["properties", "isXenon"]); - _isZoneRedundant = BicepValue.DefineProperty(this, "IsZoneRedundant", ["properties", "zoneRedundant"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _kubeEnvironmentProfile = BicepValue.DefineProperty(this, "KubeEnvironmentProfile", ["properties", "kubeEnvironmentProfile"]); - _maximumElasticWorkerCount = BicepValue.DefineProperty(this, "MaximumElasticWorkerCount", ["properties", "maximumElasticWorkerCount"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _spotExpireOn = BicepValue.DefineProperty(this, "SpotExpireOn", ["properties", "spotExpirationTime"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _targetWorkerCount = BicepValue.DefineProperty(this, "TargetWorkerCount", ["properties", "targetWorkerCount"]); - _targetWorkerSizeId = BicepValue.DefineProperty(this, "TargetWorkerSizeId", ["properties", "targetWorkerSizeId"]); - _workerTierName = BicepValue.DefineProperty(this, "WorkerTierName", ["properties", "workerTierName"]); - _geoRegion = BicepValue.DefineProperty(this, "GeoRegion", ["properties", "geoRegion"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _maximumNumberOfWorkers = BicepValue.DefineProperty(this, "MaximumNumberOfWorkers", ["properties", "maximumNumberOfWorkers"], isOutput: true); - _numberOfSites = BicepValue.DefineProperty(this, "NumberOfSites", ["properties", "numberOfSites"], isOutput: true); - _numberOfWorkers = BicepValue.DefineProperty(this, "NumberOfWorkers", ["properties", "numberOfWorkers"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _resourceGroup = BicepValue.DefineProperty(this, "ResourceGroup", ["properties", "resourceGroup"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _subscription = BicepValue.DefineProperty(this, "Subscription", ["properties", "subscription"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AppServicePlan. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _extendedLocation = DefineModelProperty("ExtendedLocation", ["extendedLocation"]); + _freeOfferExpireOn = DefineProperty("FreeOfferExpireOn", ["properties", "freeOfferExpirationTime"]); + _hostingEnvironmentProfile = DefineModelProperty("HostingEnvironmentProfile", ["properties", "hostingEnvironmentProfile"]); + _isElasticScaleEnabled = DefineProperty("IsElasticScaleEnabled", ["properties", "elasticScaleEnabled"]); + _isHyperV = DefineProperty("IsHyperV", ["properties", "hyperV"]); + _isPerSiteScaling = DefineProperty("IsPerSiteScaling", ["properties", "perSiteScaling"]); + _isReserved = DefineProperty("IsReserved", ["properties", "reserved"]); + _isSpot = DefineProperty("IsSpot", ["properties", "isSpot"]); + _isXenon = DefineProperty("IsXenon", ["properties", "isXenon"]); + _isZoneRedundant = DefineProperty("IsZoneRedundant", ["properties", "zoneRedundant"]); + _kind = DefineProperty("Kind", ["kind"]); + _kubeEnvironmentProfile = DefineModelProperty("KubeEnvironmentProfile", ["properties", "kubeEnvironmentProfile"]); + _maximumElasticWorkerCount = DefineProperty("MaximumElasticWorkerCount", ["properties", "maximumElasticWorkerCount"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _spotExpireOn = DefineProperty("SpotExpireOn", ["properties", "spotExpirationTime"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _targetWorkerCount = DefineProperty("TargetWorkerCount", ["properties", "targetWorkerCount"]); + _targetWorkerSizeId = DefineProperty("TargetWorkerSizeId", ["properties", "targetWorkerSizeId"]); + _workerTierName = DefineProperty("WorkerTierName", ["properties", "workerTierName"]); + _geoRegion = DefineProperty("GeoRegion", ["properties", "geoRegion"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _maximumNumberOfWorkers = DefineProperty("MaximumNumberOfWorkers", ["properties", "maximumNumberOfWorkers"], isOutput: true); + _numberOfSites = DefineProperty("NumberOfSites", ["properties", "numberOfSites"], isOutput: true); + _numberOfWorkers = DefineProperty("NumberOfWorkers", ["properties", "numberOfWorkers"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _resourceGroup = DefineProperty("ResourceGroup", ["properties", "resourceGroup"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _subscription = DefineProperty("Subscription", ["properties", "subscription"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGateway.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGateway.cs index 449cbac9bd53e..0244042b84dfb 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGateway.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGateway.cs @@ -20,38 +20,60 @@ public partial class AppServicePlanVirtualNetworkConnectionGateway : Provisionab /// /// Name of the gateway. Only the 'primary' gateway is supported. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The Virtual Network name. /// - public BicepValue VnetName { get => _vnetName; set => _vnetName.Assign(value); } - private readonly BicepValue _vnetName; + public BicepValue VnetName + { + get { Initialize(); return _vnetName!; } + set { Initialize(); _vnetName!.Assign(value); } + } + private BicepValue? _vnetName; /// /// The URI where the VPN package can be downloaded. /// - public BicepValue VpnPackageUri { get => _vpnPackageUri; set => _vpnPackageUri.Assign(value); } - private readonly BicepValue _vpnPackageUri; + public BicepValue VpnPackageUri + { + get { Initialize(); return _vpnPackageUri!; } + set { Initialize(); _vpnPackageUri!.Assign(value); } + } + private BicepValue? _vpnPackageUri; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new AppServicePlanVirtualNetworkConnectionGateway. @@ -67,12 +89,20 @@ public partial class AppServicePlanVirtualNetworkConnectionGateway : Provisionab public AppServicePlanVirtualNetworkConnectionGateway(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/serverfarms/virtualNetworkConnections/gateways", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _vnetName = BicepValue.DefineProperty(this, "VnetName", ["properties", "vnetName"]); - _vpnPackageUri = BicepValue.DefineProperty(this, "VpnPackageUri", ["properties", "vpnPackageUri"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// AppServicePlanVirtualNetworkConnectionGateway. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"]); + _vnetName = DefineProperty("VnetName", ["properties", "vnetName"]); + _vpnPackageUri = DefineProperty("VpnPackageUri", ["properties", "vpnPackageUri"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceSourceControl.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceSourceControl.cs index bce0b99e8b6f1..b17c3dc053e2f 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceSourceControl.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AppServiceSourceControl.cs @@ -20,50 +20,79 @@ public partial class AppServiceSourceControl : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// OAuth token expiration. /// - public BicepValue ExpireOn { get => _expireOn; set => _expireOn.Assign(value); } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + set { Initialize(); _expireOn!.Assign(value); } + } + private BicepValue? _expireOn; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// OAuth refresh token. /// - public BicepValue RefreshToken { get => _refreshToken; set => _refreshToken.Assign(value); } - private readonly BicepValue _refreshToken; + public BicepValue RefreshToken + { + get { Initialize(); return _refreshToken!; } + set { Initialize(); _refreshToken!.Assign(value); } + } + private BicepValue? _refreshToken; /// /// OAuth access token. /// - public BicepValue Token { get => _token; set => _token.Assign(value); } - private readonly BicepValue _token; + public BicepValue Token + { + get { Initialize(); return _token!; } + set { Initialize(); _token!.Assign(value); } + } + private BicepValue? _token; /// /// OAuth access token secret. /// - public BicepValue TokenSecret { get => _tokenSecret; set => _tokenSecret.Assign(value); } - private readonly BicepValue _tokenSecret; + public BicepValue TokenSecret + { + get { Initialize(); return _tokenSecret!; } + set { Initialize(); _tokenSecret!.Assign(value); } + } + private BicepValue? _tokenSecret; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new AppServiceSourceControl. @@ -78,14 +107,21 @@ public partial class AppServiceSourceControl : ProvisionableResource public AppServiceSourceControl(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sourcecontrols", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["properties", "expirationTime"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _refreshToken = BicepValue.DefineProperty(this, "RefreshToken", ["properties", "refreshToken"]); - _token = BicepValue.DefineProperty(this, "Token", ["properties", "token"]); - _tokenSecret = BicepValue.DefineProperty(this, "TokenSecret", ["properties", "tokenSecret"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AppServiceSourceControl. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _expireOn = DefineProperty("ExpireOn", ["properties", "expirationTime"]); + _kind = DefineProperty("Kind", ["kind"]); + _refreshToken = DefineProperty("RefreshToken", ["properties", "refreshToken"]); + _token = DefineProperty("Token", ["properties", "token"]); + _tokenSecret = DefineProperty("TokenSecret", ["properties", "tokenSecret"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AseV3NetworkingConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AseV3NetworkingConfiguration.cs index d885ccaca6e7e..6b51454cde40a 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AseV3NetworkingConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/AseV3NetworkingConfiguration.cs @@ -22,81 +22,126 @@ public partial class AseV3NetworkingConfiguration : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Property to enable and disable new private endpoint connection creation /// on ASE. /// - public BicepValue AllowNewPrivateEndpointConnections { get => _allowNewPrivateEndpointConnections; set => _allowNewPrivateEndpointConnections.Assign(value); } - private readonly BicepValue _allowNewPrivateEndpointConnections; + public BicepValue AllowNewPrivateEndpointConnections + { + get { Initialize(); return _allowNewPrivateEndpointConnections!; } + set { Initialize(); _allowNewPrivateEndpointConnections!.Assign(value); } + } + private BicepValue? _allowNewPrivateEndpointConnections; /// /// Customer provided Inbound IP Address. Only able to be set on Ase create. /// - public BicepValue InboundIPAddressOverride { get => _inboundIPAddressOverride; set => _inboundIPAddressOverride.Assign(value); } - private readonly BicepValue _inboundIPAddressOverride; + public BicepValue InboundIPAddressOverride + { + get { Initialize(); return _inboundIPAddressOverride!; } + set { Initialize(); _inboundIPAddressOverride!.Assign(value); } + } + private BicepValue? _inboundIPAddressOverride; /// /// Property to enable and disable FTP on ASEV3. /// - public BicepValue IsFtpEnabled { get => _isFtpEnabled; set => _isFtpEnabled.Assign(value); } - private readonly BicepValue _isFtpEnabled; + public BicepValue IsFtpEnabled + { + get { Initialize(); return _isFtpEnabled!; } + set { Initialize(); _isFtpEnabled!.Assign(value); } + } + private BicepValue? _isFtpEnabled; /// /// Property to enable and disable Remote Debug on ASEV3. /// - public BicepValue IsRemoteDebugEnabled { get => _isRemoteDebugEnabled; set => _isRemoteDebugEnabled.Assign(value); } - private readonly BicepValue _isRemoteDebugEnabled; + public BicepValue IsRemoteDebugEnabled + { + get { Initialize(); return _isRemoteDebugEnabled!; } + set { Initialize(); _isRemoteDebugEnabled!.Assign(value); } + } + private BicepValue? _isRemoteDebugEnabled; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the external inbound ip addresses. /// - public BicepList ExternalInboundIPAddresses { get => _externalInboundIPAddresses; } - private readonly BicepList _externalInboundIPAddresses; + public BicepList ExternalInboundIPAddresses + { + get { Initialize(); return _externalInboundIPAddresses!; } + } + private BicepList? _externalInboundIPAddresses; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the internal inbound ip addresses. /// - public BicepList InternalInboundIPAddresses { get => _internalInboundIPAddresses; } - private readonly BicepList _internalInboundIPAddresses; + public BicepList InternalInboundIPAddresses + { + get { Initialize(); return _internalInboundIPAddresses!; } + } + private BicepList? _internalInboundIPAddresses; /// /// Gets the linux outbound ip addresses. /// - public BicepList LinuxOutboundIPAddresses { get => _linuxOutboundIPAddresses; } - private readonly BicepList _linuxOutboundIPAddresses; + public BicepList LinuxOutboundIPAddresses + { + get { Initialize(); return _linuxOutboundIPAddresses!; } + } + private BicepList? _linuxOutboundIPAddresses; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets the windows outbound ip addresses. /// - public BicepList WindowsOutboundIPAddresses { get => _windowsOutboundIPAddresses; } - private readonly BicepList _windowsOutboundIPAddresses; + public BicepList WindowsOutboundIPAddresses + { + get { Initialize(); return _windowsOutboundIPAddresses!; } + } + private BicepList? _windowsOutboundIPAddresses; /// /// Gets or sets a reference to the parent AppServiceEnvironment. /// - public AppServiceEnvironment? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public AppServiceEnvironment? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new AseV3NetworkingConfiguration. @@ -111,19 +156,26 @@ public partial class AseV3NetworkingConfiguration : ProvisionableResource public AseV3NetworkingConfiguration(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/hostingEnvironments/configurations", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _allowNewPrivateEndpointConnections = BicepValue.DefineProperty(this, "AllowNewPrivateEndpointConnections", ["properties", "allowNewPrivateEndpointConnections"]); - _inboundIPAddressOverride = BicepValue.DefineProperty(this, "InboundIPAddressOverride", ["properties", "inboundIpAddressOverride"]); - _isFtpEnabled = BicepValue.DefineProperty(this, "IsFtpEnabled", ["properties", "ftpEnabled"]); - _isRemoteDebugEnabled = BicepValue.DefineProperty(this, "IsRemoteDebugEnabled", ["properties", "remoteDebugEnabled"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _externalInboundIPAddresses = BicepList.DefineProperty(this, "ExternalInboundIPAddresses", ["properties", "externalInboundIpAddresses"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _internalInboundIPAddresses = BicepList.DefineProperty(this, "InternalInboundIPAddresses", ["properties", "internalInboundIpAddresses"], isOutput: true); - _linuxOutboundIPAddresses = BicepList.DefineProperty(this, "LinuxOutboundIPAddresses", ["properties", "linuxOutboundIpAddresses"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _windowsOutboundIPAddresses = BicepList.DefineProperty(this, "WindowsOutboundIPAddresses", ["properties", "windowsOutboundIpAddresses"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of AseV3NetworkingConfiguration. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _allowNewPrivateEndpointConnections = DefineProperty("AllowNewPrivateEndpointConnections", ["properties", "allowNewPrivateEndpointConnections"]); + _inboundIPAddressOverride = DefineProperty("InboundIPAddressOverride", ["properties", "inboundIpAddressOverride"]); + _isFtpEnabled = DefineProperty("IsFtpEnabled", ["properties", "ftpEnabled"]); + _isRemoteDebugEnabled = DefineProperty("IsRemoteDebugEnabled", ["properties", "remoteDebugEnabled"]); + _kind = DefineProperty("Kind", ["kind"]); + _externalInboundIPAddresses = DefineListProperty("ExternalInboundIPAddresses", ["properties", "externalInboundIpAddresses"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _internalInboundIPAddresses = DefineListProperty("InternalInboundIPAddresses", ["properties", "internalInboundIpAddresses"], isOutput: true); + _linuxOutboundIPAddresses = DefineListProperty("LinuxOutboundIPAddresses", ["properties", "linuxOutboundIpAddresses"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _windowsOutboundIPAddresses = DefineListProperty("WindowsOutboundIPAddresses", ["properties", "windowsOutboundIpAddresses"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/CustomDnsSuffixConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/CustomDnsSuffixConfiguration.cs index cbe800022b7a1..f96eb75c522b2 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/CustomDnsSuffixConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/CustomDnsSuffixConfiguration.cs @@ -20,67 +20,102 @@ public partial class CustomDnsSuffixConfiguration : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The URL referencing the Azure Key Vault certificate secret that should /// be used as the default SSL/TLS certificate for sites with the custom /// domain suffix. /// - public BicepValue CertificateUri { get => _certificateUri; set => _certificateUri.Assign(value); } - private readonly BicepValue _certificateUri; + public BicepValue CertificateUri + { + get { Initialize(); return _certificateUri!; } + set { Initialize(); _certificateUri!.Assign(value); } + } + private BicepValue? _certificateUri; /// /// The default custom domain suffix to use for all sites deployed on the /// ASE. /// - public BicepValue DnsSuffix { get => _dnsSuffix; set => _dnsSuffix.Assign(value); } - private readonly BicepValue _dnsSuffix; + public BicepValue DnsSuffix + { + get { Initialize(); return _dnsSuffix!; } + set { Initialize(); _dnsSuffix!.Assign(value); } + } + private BicepValue? _dnsSuffix; /// /// The user-assigned identity to use for resolving the key vault /// certificate reference. If not specified, the system-assigned ASE /// identity will be used if available. /// - public BicepValue KeyVaultReferenceIdentity { get => _keyVaultReferenceIdentity; set => _keyVaultReferenceIdentity.Assign(value); } - private readonly BicepValue _keyVaultReferenceIdentity; + public BicepValue KeyVaultReferenceIdentity + { + get { Initialize(); return _keyVaultReferenceIdentity!; } + set { Initialize(); _keyVaultReferenceIdentity!.Assign(value); } + } + private BicepValue? _keyVaultReferenceIdentity; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the provisioning details. /// - public BicepValue ProvisioningDetails { get => _provisioningDetails; } - private readonly BicepValue _provisioningDetails; + public BicepValue ProvisioningDetails + { + get { Initialize(); return _provisioningDetails!; } + } + private BicepValue? _provisioningDetails; /// /// Gets the provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent AppServiceEnvironment. /// - public AppServiceEnvironment? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public AppServiceEnvironment? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CustomDnsSuffixConfiguration. @@ -95,16 +130,23 @@ public partial class CustomDnsSuffixConfiguration : ProvisionableResource public CustomDnsSuffixConfiguration(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/hostingEnvironments/configurations", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _certificateUri = BicepValue.DefineProperty(this, "CertificateUri", ["properties", "certificateUrl"]); - _dnsSuffix = BicepValue.DefineProperty(this, "DnsSuffix", ["properties", "dnsSuffix"]); - _keyVaultReferenceIdentity = BicepValue.DefineProperty(this, "KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningDetails = BicepValue.DefineProperty(this, "ProvisioningDetails", ["properties", "provisioningDetails"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CustomDnsSuffixConfiguration. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _certificateUri = DefineProperty("CertificateUri", ["properties", "certificateUrl"]); + _dnsSuffix = DefineProperty("DnsSuffix", ["properties", "dnsSuffix"]); + _keyVaultReferenceIdentity = DefineProperty("KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"]); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningDetails = DefineProperty("ProvisioningDetails", ["properties", "provisioningDetails"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/DomainOwnershipIdentifier.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/DomainOwnershipIdentifier.cs index ea5d9ce429545..eaafd3a592aea 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/DomainOwnershipIdentifier.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/DomainOwnershipIdentifier.cs @@ -20,38 +20,60 @@ public partial class DomainOwnershipIdentifier : ProvisionableResource /// /// Name of identifier. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Ownership Id. /// - public BicepValue OwnershipId { get => _ownershipId; set => _ownershipId.Assign(value); } - private readonly BicepValue _ownershipId; + public BicepValue OwnershipId + { + get { Initialize(); return _ownershipId!; } + set { Initialize(); _ownershipId!.Assign(value); } + } + private BicepValue? _ownershipId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent AppServiceDomain. /// - public AppServiceDomain? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public AppServiceDomain? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new DomainOwnershipIdentifier. @@ -66,12 +88,19 @@ public partial class DomainOwnershipIdentifier : ProvisionableResource public DomainOwnershipIdentifier(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DomainRegistration/domains/domainOwnershipIdentifiers", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _ownershipId = BicepValue.DefineProperty(this, "OwnershipId", ["properties", "ownershipId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of DomainOwnershipIdentifier. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"]); + _ownershipId = DefineProperty("OwnershipId", ["properties", "ownershipId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/HostingEnvironmentMultiRolePool.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/HostingEnvironmentMultiRolePool.cs index e6217db675ae2..80889cb7d9107 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/HostingEnvironmentMultiRolePool.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/HostingEnvironmentMultiRolePool.cs @@ -21,68 +21,108 @@ public partial class HostingEnvironmentMultiRolePool : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Shared or dedicated app hosting. /// - public BicepValue ComputeMode { get => _computeMode; set => _computeMode.Assign(value); } - private readonly BicepValue _computeMode; + public BicepValue ComputeMode + { + get { Initialize(); return _computeMode!; } + set { Initialize(); _computeMode!.Assign(value); } + } + private BicepValue? _computeMode; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Description of a SKU for a scalable resource. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public AppServiceSkuDescription Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private AppServiceSkuDescription? _sku; /// /// Number of instances in the worker pool. /// - public BicepValue WorkerCount { get => _workerCount; set => _workerCount.Assign(value); } - private readonly BicepValue _workerCount; + public BicepValue WorkerCount + { + get { Initialize(); return _workerCount!; } + set { Initialize(); _workerCount!.Assign(value); } + } + private BicepValue? _workerCount; /// /// VM size of the worker pool instances. /// - public BicepValue WorkerSize { get => _workerSize; set => _workerSize.Assign(value); } - private readonly BicepValue _workerSize; + public BicepValue WorkerSize + { + get { Initialize(); return _workerSize!; } + set { Initialize(); _workerSize!.Assign(value); } + } + private BicepValue? _workerSize; /// /// Worker size ID for referencing this worker pool. /// - public BicepValue WorkerSizeId { get => _workerSizeId; set => _workerSizeId.Assign(value); } - private readonly BicepValue _workerSizeId; + public BicepValue WorkerSizeId + { + get { Initialize(); return _workerSizeId!; } + set { Initialize(); _workerSizeId!.Assign(value); } + } + private BicepValue? _workerSizeId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Names of all instances in the worker pool (read only). /// - public BicepList InstanceNames { get => _instanceNames; } - private readonly BicepList _instanceNames; + public BicepList InstanceNames + { + get { Initialize(); return _instanceNames!; } + } + private BicepList? _instanceNames; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent AppServiceEnvironment. /// - public AppServiceEnvironment? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public AppServiceEnvironment? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new HostingEnvironmentMultiRolePool. @@ -97,17 +137,25 @@ public partial class HostingEnvironmentMultiRolePool : ProvisionableResource public HostingEnvironmentMultiRolePool(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/hostingEnvironments/multiRolePools", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _computeMode = BicepValue.DefineProperty(this, "ComputeMode", ["properties", "computeMode"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _workerCount = BicepValue.DefineProperty(this, "WorkerCount", ["properties", "workerCount"]); - _workerSize = BicepValue.DefineProperty(this, "WorkerSize", ["properties", "workerSize"]); - _workerSizeId = BicepValue.DefineProperty(this, "WorkerSizeId", ["properties", "workerSizeId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _instanceNames = BicepList.DefineProperty(this, "InstanceNames", ["properties", "instanceNames"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// HostingEnvironmentMultiRolePool. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _computeMode = DefineProperty("ComputeMode", ["properties", "computeMode"]); + _kind = DefineProperty("Kind", ["kind"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _workerCount = DefineProperty("WorkerCount", ["properties", "workerCount"]); + _workerSize = DefineProperty("WorkerSize", ["properties", "workerSize"]); + _workerSizeId = DefineProperty("WorkerSizeId", ["properties", "workerSizeId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _instanceNames = DefineListProperty("InstanceNames", ["properties", "instanceNames"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnection.cs index 8b331a5f31b44..0edac19c5d92c 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnection.cs @@ -22,56 +22,88 @@ public partial class HostingEnvironmentPrivateEndpointConnection : Provisionable /// /// The System.String to use. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Private IPAddresses mapped to the remote private endpoint. /// - public BicepList IPAddresses { get => _iPAddresses; set => _iPAddresses.Assign(value); } - private readonly BicepList _iPAddresses; + public BicepList IPAddresses + { + get { Initialize(); return _iPAddresses!; } + set { Initialize(); _iPAddresses!.Assign(value); } + } + private BicepList? _iPAddresses; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The state of a private link connection. /// - public BicepValue PrivateLinkServiceConnectionState { get => _privateLinkServiceConnectionState; set => _privateLinkServiceConnectionState.Assign(value); } - private readonly BicepValue _privateLinkServiceConnectionState; + public PrivateLinkConnectionState PrivateLinkServiceConnectionState + { + get { Initialize(); return _privateLinkServiceConnectionState!; } + set { Initialize(); AssignOrReplace(ref _privateLinkServiceConnectionState, value); } + } + private PrivateLinkConnectionState? _privateLinkServiceConnectionState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// Gets the provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent AppServiceEnvironment. /// - public AppServiceEnvironment? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public AppServiceEnvironment? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new HostingEnvironmentPrivateEndpointConnection. @@ -87,15 +119,23 @@ public partial class HostingEnvironmentPrivateEndpointConnection : Provisionable public HostingEnvironmentPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/hostingEnvironments/privateEndpointConnections", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _iPAddresses = BicepList.DefineProperty(this, "IPAddresses", ["properties", "ipAddresses"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _privateLinkServiceConnectionState = BicepValue.DefineProperty(this, "PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// HostingEnvironmentPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _iPAddresses = DefineListProperty("IPAddresses", ["properties", "ipAddresses"]); + _kind = DefineProperty("Kind", ["kind"]); + _privateLinkServiceConnectionState = DefineModelProperty("PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/HostingEnvironmentWorkerPool.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/HostingEnvironmentWorkerPool.cs index d2206500f7f1c..43ef034af47b0 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/HostingEnvironmentWorkerPool.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/HostingEnvironmentWorkerPool.cs @@ -21,68 +21,109 @@ public partial class HostingEnvironmentWorkerPool : ProvisionableResource /// /// Name of the worker pool. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Shared or dedicated app hosting. /// - public BicepValue ComputeMode { get => _computeMode; set => _computeMode.Assign(value); } - private readonly BicepValue _computeMode; + public BicepValue ComputeMode + { + get { Initialize(); return _computeMode!; } + set { Initialize(); _computeMode!.Assign(value); } + } + private BicepValue? _computeMode; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Description of a SKU for a scalable resource. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public AppServiceSkuDescription Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private AppServiceSkuDescription? _sku; /// /// Number of instances in the worker pool. /// - public BicepValue WorkerCount { get => _workerCount; set => _workerCount.Assign(value); } - private readonly BicepValue _workerCount; + public BicepValue WorkerCount + { + get { Initialize(); return _workerCount!; } + set { Initialize(); _workerCount!.Assign(value); } + } + private BicepValue? _workerCount; /// /// VM size of the worker pool instances. /// - public BicepValue WorkerSize { get => _workerSize; set => _workerSize.Assign(value); } - private readonly BicepValue _workerSize; + public BicepValue WorkerSize + { + get { Initialize(); return _workerSize!; } + set { Initialize(); _workerSize!.Assign(value); } + } + private BicepValue? _workerSize; /// /// Worker size ID for referencing this worker pool. /// - public BicepValue WorkerSizeId { get => _workerSizeId; set => _workerSizeId.Assign(value); } - private readonly BicepValue _workerSizeId; + public BicepValue WorkerSizeId + { + get { Initialize(); return _workerSizeId!; } + set { Initialize(); _workerSizeId!.Assign(value); } + } + private BicepValue? _workerSizeId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Names of all instances in the worker pool (read only). /// - public BicepList InstanceNames { get => _instanceNames; } - private readonly BicepList _instanceNames; + public BicepList InstanceNames + { + get { Initialize(); return _instanceNames!; } + } + private BicepList? _instanceNames; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent AppServiceEnvironment. /// - public AppServiceEnvironment? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public AppServiceEnvironment? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new HostingEnvironmentWorkerPool. @@ -97,17 +138,24 @@ public partial class HostingEnvironmentWorkerPool : ProvisionableResource public HostingEnvironmentWorkerPool(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/hostingEnvironments/workerPools", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _computeMode = BicepValue.DefineProperty(this, "ComputeMode", ["properties", "computeMode"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _workerCount = BicepValue.DefineProperty(this, "WorkerCount", ["properties", "workerCount"]); - _workerSize = BicepValue.DefineProperty(this, "WorkerSize", ["properties", "workerSize"]); - _workerSizeId = BicepValue.DefineProperty(this, "WorkerSizeId", ["properties", "workerSizeId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _instanceNames = BicepList.DefineProperty(this, "InstanceNames", ["properties", "instanceNames"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of HostingEnvironmentWorkerPool. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _computeMode = DefineProperty("ComputeMode", ["properties", "computeMode"]); + _kind = DefineProperty("Kind", ["kind"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _workerCount = DefineProperty("WorkerCount", ["properties", "workerCount"]); + _workerSize = DefineProperty("WorkerSize", ["properties", "workerSize"]); + _workerSizeId = DefineProperty("WorkerSizeId", ["properties", "workerSizeId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _instanceNames = DefineListProperty("InstanceNames", ["properties", "instanceNames"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/KubeEnvironment.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/KubeEnvironment.cs index b068cf2052fff..05387d5231bc9 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/KubeEnvironment.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/KubeEnvironment.cs @@ -21,110 +21,173 @@ public partial class KubeEnvironment : ProvisionableResource /// /// Name of the Kubernetes Environment. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Gets or sets the aks resource id. /// - public BicepValue AksResourceId { get => _aksResourceId; set => _aksResourceId.Assign(value); } - private readonly BicepValue _aksResourceId; + public BicepValue AksResourceId + { + get { Initialize(); return _aksResourceId!; } + set { Initialize(); _aksResourceId!.Assign(value); } + } + private BicepValue? _aksResourceId; /// /// Cluster configuration which enables the log daemon to export /// app logs to a destination. Currently only /// "log-analytics" is supported /// - public BicepValue AppLogsConfiguration { get => _appLogsConfiguration; set => _appLogsConfiguration.Assign(value); } - private readonly BicepValue _appLogsConfiguration; + public AppLogsConfiguration AppLogsConfiguration + { + get { Initialize(); return _appLogsConfiguration!; } + set { Initialize(); AssignOrReplace(ref _appLogsConfiguration, value); } + } + private AppLogsConfiguration? _appLogsConfiguration; /// /// Cluster configuration which determines the ARC cluster /// components types. Eg: Choosing between BuildService kind, /// FrontEnd Service ArtifactsStorageType etc. /// - public BicepValue ArcConfiguration { get => _arcConfiguration; set => _arcConfiguration.Assign(value); } - private readonly BicepValue _arcConfiguration; + public ArcConfiguration ArcConfiguration + { + get { Initialize(); return _arcConfiguration!; } + set { Initialize(); AssignOrReplace(ref _arcConfiguration, value); } + } + private ArcConfiguration? _arcConfiguration; /// /// Cluster configuration for Container Apps Environments to configure Dapr /// Instrumentation Key and VNET Configuration. /// - public BicepValue ContainerAppsConfiguration { get => _containerAppsConfiguration; set => _containerAppsConfiguration.Assign(value); } - private readonly BicepValue _containerAppsConfiguration; + public ContainerAppsConfiguration ContainerAppsConfiguration + { + get { Initialize(); return _containerAppsConfiguration!; } + set { Initialize(); AssignOrReplace(ref _containerAppsConfiguration, value); } + } + private ContainerAppsConfiguration? _containerAppsConfiguration; /// /// Type of Kubernetes Environment. Only supported for Container App /// Environments with value as Managed. /// - public BicepValue EnvironmentType { get => _environmentType; set => _environmentType.Assign(value); } - private readonly BicepValue _environmentType; + public BicepValue EnvironmentType + { + get { Initialize(); return _environmentType!; } + set { Initialize(); _environmentType!.Assign(value); } + } + private BicepValue? _environmentType; /// /// Extended Location. /// - public BicepValue ExtendedLocation { get => _extendedLocation; set => _extendedLocation.Assign(value); } - private readonly BicepValue _extendedLocation; + public ExtendedAzureLocation ExtendedLocation + { + get { Initialize(); return _extendedLocation!; } + set { Initialize(); AssignOrReplace(ref _extendedLocation, value); } + } + private ExtendedAzureLocation? _extendedLocation; /// /// Only visible within Vnet/Subnet. /// - public BicepValue IsInternalLoadBalancerEnabled { get => _isInternalLoadBalancerEnabled; set => _isInternalLoadBalancerEnabled.Assign(value); } - private readonly BicepValue _isInternalLoadBalancerEnabled; + public BicepValue IsInternalLoadBalancerEnabled + { + get { Initialize(); return _isInternalLoadBalancerEnabled!; } + set { Initialize(); _isInternalLoadBalancerEnabled!.Assign(value); } + } + private BicepValue? _isInternalLoadBalancerEnabled; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Static IP of the KubeEnvironment. /// - public BicepValue StaticIP { get => _staticIP; set => _staticIP.Assign(value); } - private readonly BicepValue _staticIP; + public BicepValue StaticIP + { + get { Initialize(); return _staticIP!; } + set { Initialize(); _staticIP!.Assign(value); } + } + private BicepValue? _staticIP; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Default Domain Name for the cluster. /// - public BicepValue DefaultDomain { get => _defaultDomain; } - private readonly BicepValue _defaultDomain; + public BicepValue DefaultDomain + { + get { Initialize(); return _defaultDomain!; } + } + private BicepValue? _defaultDomain; /// /// Any errors that occurred during deployment or deployment validation. /// - public BicepValue DeploymentErrors { get => _deploymentErrors; } - private readonly BicepValue _deploymentErrors; + public BicepValue DeploymentErrors + { + get { Initialize(); return _deploymentErrors!; } + } + private BicepValue? _deploymentErrors; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the Kubernetes Environment. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new KubeEnvironment. @@ -139,23 +202,30 @@ public partial class KubeEnvironment : ProvisionableResource public KubeEnvironment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/kubeEnvironments", resourceVersion ?? "2021-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _aksResourceId = BicepValue.DefineProperty(this, "AksResourceId", ["properties", "aksResourceID"]); - _appLogsConfiguration = BicepValue.DefineProperty(this, "AppLogsConfiguration", ["properties", "appLogsConfiguration"]); - _arcConfiguration = BicepValue.DefineProperty(this, "ArcConfiguration", ["properties", "arcConfiguration"]); - _containerAppsConfiguration = BicepValue.DefineProperty(this, "ContainerAppsConfiguration", ["properties", "containerAppsConfiguration"]); - _environmentType = BicepValue.DefineProperty(this, "EnvironmentType", ["properties", "environmentType"]); - _extendedLocation = BicepValue.DefineProperty(this, "ExtendedLocation", ["extendedLocation"]); - _isInternalLoadBalancerEnabled = BicepValue.DefineProperty(this, "IsInternalLoadBalancerEnabled", ["properties", "internalLoadBalancerEnabled"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _staticIP = BicepValue.DefineProperty(this, "StaticIP", ["properties", "staticIp"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _defaultDomain = BicepValue.DefineProperty(this, "DefaultDomain", ["properties", "defaultDomain"], isOutput: true); - _deploymentErrors = BicepValue.DefineProperty(this, "DeploymentErrors", ["properties", "deploymentErrors"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of KubeEnvironment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _aksResourceId = DefineProperty("AksResourceId", ["properties", "aksResourceID"]); + _appLogsConfiguration = DefineModelProperty("AppLogsConfiguration", ["properties", "appLogsConfiguration"]); + _arcConfiguration = DefineModelProperty("ArcConfiguration", ["properties", "arcConfiguration"]); + _containerAppsConfiguration = DefineModelProperty("ContainerAppsConfiguration", ["properties", "containerAppsConfiguration"]); + _environmentType = DefineProperty("EnvironmentType", ["properties", "environmentType"]); + _extendedLocation = DefineModelProperty("ExtendedLocation", ["extendedLocation"]); + _isInternalLoadBalancerEnabled = DefineProperty("IsInternalLoadBalancerEnabled", ["properties", "internalLoadBalancerEnabled"]); + _kind = DefineProperty("Kind", ["kind"]); + _staticIP = DefineProperty("StaticIP", ["properties", "staticIp"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _defaultDomain = DefineProperty("DefaultDomain", ["properties", "defaultDomain"], isOutput: true); + _deploymentErrors = DefineProperty("DeploymentErrors", ["properties", "deploymentErrors"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/LogsSiteConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/LogsSiteConfig.cs index e8d93e17bdfda..0650767f8c1d4 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/LogsSiteConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/LogsSiteConfig.cs @@ -20,58 +20,91 @@ public partial class LogsSiteConfig : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Application logs configuration. /// - public BicepValue ApplicationLogs { get => _applicationLogs; set => _applicationLogs.Assign(value); } - private readonly BicepValue _applicationLogs; + public ApplicationLogsConfig ApplicationLogs + { + get { Initialize(); return _applicationLogs!; } + set { Initialize(); AssignOrReplace(ref _applicationLogs, value); } + } + private ApplicationLogsConfig? _applicationLogs; /// /// HTTP logs configuration. /// - public BicepValue HttpLogs { get => _httpLogs; set => _httpLogs.Assign(value); } - private readonly BicepValue _httpLogs; + public AppServiceHttpLogsConfig HttpLogs + { + get { Initialize(); return _httpLogs!; } + set { Initialize(); AssignOrReplace(ref _httpLogs, value); } + } + private AppServiceHttpLogsConfig? _httpLogs; /// /// True if configuration is enabled, false if it is disabled and null if /// configuration is not set. /// - public BicepValue IsDetailedErrorMessagesEnabled { get => _isDetailedErrorMessagesEnabled; set => _isDetailedErrorMessagesEnabled.Assign(value); } - private readonly BicepValue _isDetailedErrorMessagesEnabled; + public BicepValue IsDetailedErrorMessagesEnabled + { + get { Initialize(); return _isDetailedErrorMessagesEnabled!; } + set { Initialize(); _isDetailedErrorMessagesEnabled!.Assign(value); } + } + private BicepValue? _isDetailedErrorMessagesEnabled; /// /// True if configuration is enabled, false if it is disabled and null if /// configuration is not set. /// - public BicepValue IsFailedRequestsTracingEnabled { get => _isFailedRequestsTracingEnabled; set => _isFailedRequestsTracingEnabled.Assign(value); } - private readonly BicepValue _isFailedRequestsTracingEnabled; + public BicepValue IsFailedRequestsTracingEnabled + { + get { Initialize(); return _isFailedRequestsTracingEnabled!; } + set { Initialize(); _isFailedRequestsTracingEnabled!.Assign(value); } + } + private BicepValue? _isFailedRequestsTracingEnabled; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new LogsSiteConfig. @@ -86,15 +119,22 @@ public partial class LogsSiteConfig : ProvisionableResource public LogsSiteConfig(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/config", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _applicationLogs = BicepValue.DefineProperty(this, "ApplicationLogs", ["properties", "applicationLogs"]); - _httpLogs = BicepValue.DefineProperty(this, "HttpLogs", ["properties", "httpLogs"]); - _isDetailedErrorMessagesEnabled = BicepValue.DefineProperty(this, "IsDetailedErrorMessagesEnabled", ["properties", "detailedErrorMessages", "enabled"]); - _isFailedRequestsTracingEnabled = BicepValue.DefineProperty(this, "IsFailedRequestsTracingEnabled", ["properties", "failedRequestsTracing", "enabled"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of LogsSiteConfig. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _applicationLogs = DefineModelProperty("ApplicationLogs", ["properties", "applicationLogs"]); + _httpLogs = DefineModelProperty("HttpLogs", ["properties", "httpLogs"]); + _isDetailedErrorMessagesEnabled = DefineProperty("IsDetailedErrorMessagesEnabled", ["properties", "detailedErrorMessages", "enabled"]); + _isFailedRequestsTracingEnabled = DefineProperty("IsFailedRequestsTracingEnabled", ["properties", "failedRequestsTracing", "enabled"]); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/LogsSiteSlotConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/LogsSiteSlotConfig.cs index 69adc3ead4a41..85cbee0f9c2a0 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/LogsSiteSlotConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/LogsSiteSlotConfig.cs @@ -20,58 +20,91 @@ public partial class LogsSiteSlotConfig : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Application logs configuration. /// - public BicepValue ApplicationLogs { get => _applicationLogs; set => _applicationLogs.Assign(value); } - private readonly BicepValue _applicationLogs; + public ApplicationLogsConfig ApplicationLogs + { + get { Initialize(); return _applicationLogs!; } + set { Initialize(); AssignOrReplace(ref _applicationLogs, value); } + } + private ApplicationLogsConfig? _applicationLogs; /// /// HTTP logs configuration. /// - public BicepValue HttpLogs { get => _httpLogs; set => _httpLogs.Assign(value); } - private readonly BicepValue _httpLogs; + public AppServiceHttpLogsConfig HttpLogs + { + get { Initialize(); return _httpLogs!; } + set { Initialize(); AssignOrReplace(ref _httpLogs, value); } + } + private AppServiceHttpLogsConfig? _httpLogs; /// /// True if configuration is enabled, false if it is disabled and null if /// configuration is not set. /// - public BicepValue IsDetailedErrorMessagesEnabled { get => _isDetailedErrorMessagesEnabled; set => _isDetailedErrorMessagesEnabled.Assign(value); } - private readonly BicepValue _isDetailedErrorMessagesEnabled; + public BicepValue IsDetailedErrorMessagesEnabled + { + get { Initialize(); return _isDetailedErrorMessagesEnabled!; } + set { Initialize(); _isDetailedErrorMessagesEnabled!.Assign(value); } + } + private BicepValue? _isDetailedErrorMessagesEnabled; /// /// True if configuration is enabled, false if it is disabled and null if /// configuration is not set. /// - public BicepValue IsFailedRequestsTracingEnabled { get => _isFailedRequestsTracingEnabled; set => _isFailedRequestsTracingEnabled.Assign(value); } - private readonly BicepValue _isFailedRequestsTracingEnabled; + public BicepValue IsFailedRequestsTracingEnabled + { + get { Initialize(); return _isFailedRequestsTracingEnabled!; } + set { Initialize(); _isFailedRequestsTracingEnabled!.Assign(value); } + } + private BicepValue? _isFailedRequestsTracingEnabled; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new LogsSiteSlotConfig. @@ -86,15 +119,22 @@ public partial class LogsSiteSlotConfig : ProvisionableResource public LogsSiteSlotConfig(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/config", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _applicationLogs = BicepValue.DefineProperty(this, "ApplicationLogs", ["properties", "applicationLogs"]); - _httpLogs = BicepValue.DefineProperty(this, "HttpLogs", ["properties", "httpLogs"]); - _isDetailedErrorMessagesEnabled = BicepValue.DefineProperty(this, "IsDetailedErrorMessagesEnabled", ["properties", "detailedErrorMessages", "enabled"]); - _isFailedRequestsTracingEnabled = BicepValue.DefineProperty(this, "IsFailedRequestsTracingEnabled", ["properties", "failedRequestsTracing", "enabled"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of LogsSiteSlotConfig. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _applicationLogs = DefineModelProperty("ApplicationLogs", ["properties", "applicationLogs"]); + _httpLogs = DefineModelProperty("HttpLogs", ["properties", "httpLogs"]); + _isDetailedErrorMessagesEnabled = DefineProperty("IsDetailedErrorMessagesEnabled", ["properties", "detailedErrorMessages", "enabled"]); + _isFailedRequestsTracingEnabled = DefineProperty("IsFailedRequestsTracingEnabled", ["properties", "failedRequestsTracing", "enabled"]); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppDaprConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppDaprConfig.cs index 7ccd606d46790..d8e39a1df486a 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppDaprConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppDaprConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,59 +18,95 @@ public partial class AppDaprConfig : ProvisionableConstruct /// /// Boolean indicating if the Dapr side car is enabled. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Dapr application identifier. /// - public BicepValue AppId { get => _appId; set => _appId.Assign(value); } - private readonly BicepValue _appId; + public BicepValue AppId + { + get { Initialize(); return _appId!; } + set { Initialize(); _appId!.Assign(value); } + } + private BicepValue? _appId; /// /// Tells Dapr which port your application is listening on. /// - public BicepValue AppPort { get => _appPort; set => _appPort.Assign(value); } - private readonly BicepValue _appPort; + public BicepValue AppPort + { + get { Initialize(); return _appPort!; } + set { Initialize(); _appPort!.Assign(value); } + } + private BicepValue? _appPort; /// /// Dapr max size of http header read buffer in KB to handle when sending /// multi-KB headers. Default is 65KB. /// - public BicepValue HttpReadBufferSize { get => _httpReadBufferSize; set => _httpReadBufferSize.Assign(value); } - private readonly BicepValue _httpReadBufferSize; + public BicepValue HttpReadBufferSize + { + get { Initialize(); return _httpReadBufferSize!; } + set { Initialize(); _httpReadBufferSize!.Assign(value); } + } + private BicepValue? _httpReadBufferSize; /// /// Increasing max size of request body http servers parameter in MB to /// handle uploading of big files. Default is 4 MB. /// - public BicepValue HttpMaxRequestSize { get => _httpMaxRequestSize; set => _httpMaxRequestSize.Assign(value); } - private readonly BicepValue _httpMaxRequestSize; + public BicepValue HttpMaxRequestSize + { + get { Initialize(); return _httpMaxRequestSize!; } + set { Initialize(); _httpMaxRequestSize!.Assign(value); } + } + private BicepValue? _httpMaxRequestSize; /// /// Sets the log level for the Dapr sidecar. Allowed values are debug, /// info, warn, error. Default is info. /// - public BicepValue LogLevel { get => _logLevel; set => _logLevel.Assign(value); } - private readonly BicepValue _logLevel; + public BicepValue LogLevel + { + get { Initialize(); return _logLevel!; } + set { Initialize(); _logLevel!.Assign(value); } + } + private BicepValue? _logLevel; /// /// Enables API logging for the Dapr sidecar. /// - public BicepValue IsApiLoggingEnabled { get => _isApiLoggingEnabled; set => _isApiLoggingEnabled.Assign(value); } - private readonly BicepValue _isApiLoggingEnabled; + public BicepValue IsApiLoggingEnabled + { + get { Initialize(); return _isApiLoggingEnabled!; } + set { Initialize(); _isApiLoggingEnabled!.Assign(value); } + } + private BicepValue? _isApiLoggingEnabled; /// /// Creates a new AppDaprConfig. /// public AppDaprConfig() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _appId = BicepValue.DefineProperty(this, "AppId", ["appId"]); - _appPort = BicepValue.DefineProperty(this, "AppPort", ["appPort"]); - _httpReadBufferSize = BicepValue.DefineProperty(this, "HttpReadBufferSize", ["httpReadBufferSize"]); - _httpMaxRequestSize = BicepValue.DefineProperty(this, "HttpMaxRequestSize", ["httpMaxRequestSize"]); - _logLevel = BicepValue.DefineProperty(this, "LogLevel", ["logLevel"]); - _isApiLoggingEnabled = BicepValue.DefineProperty(this, "IsApiLoggingEnabled", ["enableApiLogging"]); + } + + /// + /// Define all the provisionable properties of AppDaprConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _appId = DefineProperty("AppId", ["appId"]); + _appPort = DefineProperty("AppPort", ["appPort"]); + _httpReadBufferSize = DefineProperty("HttpReadBufferSize", ["httpReadBufferSize"]); + _httpMaxRequestSize = DefineProperty("HttpMaxRequestSize", ["httpMaxRequestSize"]); + _logLevel = DefineProperty("LogLevel", ["logLevel"]); + _isApiLoggingEnabled = DefineProperty("IsApiLoggingEnabled", ["enableApiLogging"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppLogsConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppLogsConfiguration.cs index 29dfb4626d65f..cd77cf944cefd 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppLogsConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppLogsConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class AppLogsConfiguration : ProvisionableConstruct /// /// Gets or sets the destination. /// - public BicepValue Destination { get => _destination; set => _destination.Assign(value); } - private readonly BicepValue _destination; + public BicepValue Destination + { + get { Initialize(); return _destination!; } + set { Initialize(); _destination!.Assign(value); } + } + private BicepValue? _destination; /// /// Gets or sets the log analytics configuration. /// - public BicepValue LogAnalyticsConfiguration { get => _logAnalyticsConfiguration; set => _logAnalyticsConfiguration.Assign(value); } - private readonly BicepValue _logAnalyticsConfiguration; + public LogAnalyticsConfiguration LogAnalyticsConfiguration + { + get { Initialize(); return _logAnalyticsConfiguration!; } + set { Initialize(); AssignOrReplace(ref _logAnalyticsConfiguration, value); } + } + private LogAnalyticsConfiguration? _logAnalyticsConfiguration; /// /// Creates a new AppLogsConfiguration. /// public AppLogsConfiguration() { - _destination = BicepValue.DefineProperty(this, "Destination", ["destination"]); - _logAnalyticsConfiguration = BicepValue.DefineProperty(this, "LogAnalyticsConfiguration", ["logAnalyticsConfiguration"]); + } + + /// + /// Define all the provisionable properties of AppLogsConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _destination = DefineProperty("Destination", ["destination"]); + _logAnalyticsConfiguration = DefineModelProperty("LogAnalyticsConfiguration", ["logAnalyticsConfiguration"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceArmPlan.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceArmPlan.cs index 5699e3da32efd..9a25185eb11f1 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceArmPlan.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceArmPlan.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,65 @@ public partial class AppServiceArmPlan : ProvisionableConstruct /// /// The name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The publisher. /// - public BicepValue Publisher { get => _publisher; } - private readonly BicepValue _publisher; + public BicepValue Publisher + { + get { Initialize(); return _publisher!; } + } + private BicepValue? _publisher; /// /// The product. /// - public BicepValue Product { get => _product; } - private readonly BicepValue _product; + public BicepValue Product + { + get { Initialize(); return _product!; } + } + private BicepValue? _product; /// /// The promotion code. /// - public BicepValue PromotionCode { get => _promotionCode; } - private readonly BicepValue _promotionCode; + public BicepValue PromotionCode + { + get { Initialize(); return _promotionCode!; } + } + private BicepValue? _promotionCode; /// /// Version of product. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// Creates a new AppServiceArmPlan. /// public AppServiceArmPlan() { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _publisher = BicepValue.DefineProperty(this, "Publisher", ["publisher"], isOutput: true); - _product = BicepValue.DefineProperty(this, "Product", ["product"], isOutput: true); - _promotionCode = BicepValue.DefineProperty(this, "PromotionCode", ["promotionCode"], isOutput: true); - _version = BicepValue.DefineProperty(this, "Version", ["version"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AppServiceArmPlan. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isOutput: true); + _publisher = DefineProperty("Publisher", ["publisher"], isOutput: true); + _product = DefineProperty("Product", ["product"], isOutput: true); + _promotionCode = DefineProperty("PromotionCode", ["promotionCode"], isOutput: true); + _version = DefineProperty("Version", ["version"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceBlobStorageApplicationLogsConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceBlobStorageApplicationLogsConfig.cs index e0410cdc9fcf4..f4f62a3611d28 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceBlobStorageApplicationLogsConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceBlobStorageApplicationLogsConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,30 +18,51 @@ public partial class AppServiceBlobStorageApplicationLogsConfig : ProvisionableC /// /// Log level. /// - public BicepValue Level { get => _level; set => _level.Assign(value); } - private readonly BicepValue _level; + public BicepValue Level + { + get { Initialize(); return _level!; } + set { Initialize(); _level!.Assign(value); } + } + private BicepValue? _level; /// /// SAS url to a azure blob container with read/write/list/delete /// permissions. /// - public BicepValue SasUri { get => _sasUri; set => _sasUri.Assign(value); } - private readonly BicepValue _sasUri; + public BicepValue SasUri + { + get { Initialize(); return _sasUri!; } + set { Initialize(); _sasUri!.Assign(value); } + } + private BicepValue? _sasUri; /// /// Retention in days. Remove blobs older than X days. /// 0 or lower means no retention. /// - public BicepValue RetentionInDays { get => _retentionInDays; set => _retentionInDays.Assign(value); } - private readonly BicepValue _retentionInDays; + public BicepValue RetentionInDays + { + get { Initialize(); return _retentionInDays!; } + set { Initialize(); _retentionInDays!.Assign(value); } + } + private BicepValue? _retentionInDays; /// /// Creates a new AppServiceBlobStorageApplicationLogsConfig. /// public AppServiceBlobStorageApplicationLogsConfig() { - _level = BicepValue.DefineProperty(this, "Level", ["level"]); - _sasUri = BicepValue.DefineProperty(this, "SasUri", ["sasUrl"]); - _retentionInDays = BicepValue.DefineProperty(this, "RetentionInDays", ["retentionInDays"]); + } + + /// + /// Define all the provisionable properties of + /// AppServiceBlobStorageApplicationLogsConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _level = DefineProperty("Level", ["level"]); + _sasUri = DefineProperty("SasUri", ["sasUrl"]); + _retentionInDays = DefineProperty("RetentionInDays", ["retentionInDays"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceBlobStorageHttpLogsConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceBlobStorageHttpLogsConfig.cs index 6d12f46c40e70..db2b43b964ae4 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceBlobStorageHttpLogsConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceBlobStorageHttpLogsConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,51 @@ public partial class AppServiceBlobStorageHttpLogsConfig : ProvisionableConstruc /// SAS url to a azure blob container with read/write/list/delete /// permissions. /// - public BicepValue SasUri { get => _sasUri; set => _sasUri.Assign(value); } - private readonly BicepValue _sasUri; + public BicepValue SasUri + { + get { Initialize(); return _sasUri!; } + set { Initialize(); _sasUri!.Assign(value); } + } + private BicepValue? _sasUri; /// /// Retention in days. Remove blobs older than X days. /// 0 or lower means no retention. /// - public BicepValue RetentionInDays { get => _retentionInDays; set => _retentionInDays.Assign(value); } - private readonly BicepValue _retentionInDays; + public BicepValue RetentionInDays + { + get { Initialize(); return _retentionInDays!; } + set { Initialize(); _retentionInDays!.Assign(value); } + } + private BicepValue? _retentionInDays; /// /// True if configuration is enabled, false if it is disabled and null if /// configuration is not set. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Creates a new AppServiceBlobStorageHttpLogsConfig. /// public AppServiceBlobStorageHttpLogsConfig() { - _sasUri = BicepValue.DefineProperty(this, "SasUri", ["sasUrl"]); - _retentionInDays = BicepValue.DefineProperty(this, "RetentionInDays", ["retentionInDays"]); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); + } + + /// + /// Define all the provisionable properties of + /// AppServiceBlobStorageHttpLogsConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _sasUri = DefineProperty("SasUri", ["sasUrl"]); + _retentionInDays = DefineProperty("RetentionInDays", ["retentionInDays"]); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceCertificateDetails.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceCertificateDetails.cs index 3ba1789549cb4..5c516fd6fd439 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceCertificateDetails.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceCertificateDetails.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,70 +18,105 @@ public partial class AppServiceCertificateDetails : ProvisionableConstruct /// /// Certificate Version. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// Certificate Serial Number. /// - public BicepValue SerialNumber { get => _serialNumber; } - private readonly BicepValue _serialNumber; + public BicepValue SerialNumber + { + get { Initialize(); return _serialNumber!; } + } + private BicepValue? _serialNumber; /// /// Certificate Thumbprint. /// - public BicepValue ThumbprintString { get => _thumbprintString; } - private readonly BicepValue _thumbprintString; + public BicepValue ThumbprintString + { + get { Initialize(); return _thumbprintString!; } + } + private BicepValue? _thumbprintString; /// /// Certificate Subject. /// - public BicepValue Subject { get => _subject; } - private readonly BicepValue _subject; + public BicepValue Subject + { + get { Initialize(); return _subject!; } + } + private BicepValue? _subject; /// /// Date Certificate is valid from. /// - public BicepValue NotBefore { get => _notBefore; } - private readonly BicepValue _notBefore; + public BicepValue NotBefore + { + get { Initialize(); return _notBefore!; } + } + private BicepValue? _notBefore; /// /// Date Certificate is valid to. /// - public BicepValue NotAfter { get => _notAfter; } - private readonly BicepValue _notAfter; + public BicepValue NotAfter + { + get { Initialize(); return _notAfter!; } + } + private BicepValue? _notAfter; /// /// Certificate Signature algorithm. /// - public BicepValue SignatureAlgorithm { get => _signatureAlgorithm; } - private readonly BicepValue _signatureAlgorithm; + public BicepValue SignatureAlgorithm + { + get { Initialize(); return _signatureAlgorithm!; } + } + private BicepValue? _signatureAlgorithm; /// /// Certificate Issuer. /// - public BicepValue Issuer { get => _issuer; } - private readonly BicepValue _issuer; + public BicepValue Issuer + { + get { Initialize(); return _issuer!; } + } + private BicepValue? _issuer; /// /// Raw certificate data. /// - public BicepValue RawData { get => _rawData; } - private readonly BicepValue _rawData; + public BicepValue RawData + { + get { Initialize(); return _rawData!; } + } + private BicepValue? _rawData; /// /// Creates a new AppServiceCertificateDetails. /// public AppServiceCertificateDetails() { - _version = BicepValue.DefineProperty(this, "Version", ["version"], isOutput: true); - _serialNumber = BicepValue.DefineProperty(this, "SerialNumber", ["serialNumber"], isOutput: true); - _thumbprintString = BicepValue.DefineProperty(this, "ThumbprintString", ["thumbprint"], isOutput: true); - _subject = BicepValue.DefineProperty(this, "Subject", ["subject"], isOutput: true); - _notBefore = BicepValue.DefineProperty(this, "NotBefore", ["notBefore"], isOutput: true); - _notAfter = BicepValue.DefineProperty(this, "NotAfter", ["notAfter"], isOutput: true); - _signatureAlgorithm = BicepValue.DefineProperty(this, "SignatureAlgorithm", ["signatureAlgorithm"], isOutput: true); - _issuer = BicepValue.DefineProperty(this, "Issuer", ["issuer"], isOutput: true); - _rawData = BicepValue.DefineProperty(this, "RawData", ["rawData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AppServiceCertificateDetails. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _version = DefineProperty("Version", ["version"], isOutput: true); + _serialNumber = DefineProperty("SerialNumber", ["serialNumber"], isOutput: true); + _thumbprintString = DefineProperty("ThumbprintString", ["thumbprint"], isOutput: true); + _subject = DefineProperty("Subject", ["subject"], isOutput: true); + _notBefore = DefineProperty("NotBefore", ["notBefore"], isOutput: true); + _notAfter = DefineProperty("NotAfter", ["notAfter"], isOutput: true); + _signatureAlgorithm = DefineProperty("SignatureAlgorithm", ["signatureAlgorithm"], isOutput: true); + _issuer = DefineProperty("Issuer", ["issuer"], isOutput: true); + _rawData = DefineProperty("RawData", ["rawData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceCertificateProperties.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceCertificateProperties.cs index 66ae2e95f3bd8..c5e107306cd54 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceCertificateProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceCertificateProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,48 @@ public partial class AppServiceCertificateProperties : ProvisionableConstruct /// /// Key Vault resource Id. /// - public BicepValue KeyVaultId { get => _keyVaultId; set => _keyVaultId.Assign(value); } - private readonly BicepValue _keyVaultId; + public BicepValue KeyVaultId + { + get { Initialize(); return _keyVaultId!; } + set { Initialize(); _keyVaultId!.Assign(value); } + } + private BicepValue? _keyVaultId; /// /// Key Vault secret name. /// - public BicepValue KeyVaultSecretName { get => _keyVaultSecretName; set => _keyVaultSecretName.Assign(value); } - private readonly BicepValue _keyVaultSecretName; + public BicepValue KeyVaultSecretName + { + get { Initialize(); return _keyVaultSecretName!; } + set { Initialize(); _keyVaultSecretName!.Assign(value); } + } + private BicepValue? _keyVaultSecretName; /// /// Status of the Key Vault secret. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Creates a new AppServiceCertificateProperties. /// public AppServiceCertificateProperties() { - _keyVaultId = BicepValue.DefineProperty(this, "KeyVaultId", ["keyVaultId"]); - _keyVaultSecretName = BicepValue.DefineProperty(this, "KeyVaultSecretName", ["keyVaultSecretName"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// AppServiceCertificateProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyVaultId = DefineProperty("KeyVaultId", ["keyVaultId"]); + _keyVaultSecretName = DefineProperty("KeyVaultSecretName", ["keyVaultSecretName"]); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceCorsSettings.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceCorsSettings.cs index 0f29abf85d506..bf9ee29eb973a 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceCorsSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceCorsSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,23 +21,39 @@ public partial class AppServiceCorsSettings : ProvisionableConstruct /// cross-origin calls (for example: /// http://example.com:12345). Use "*" to allow all. /// - public BicepList AllowedOrigins { get => _allowedOrigins; set => _allowedOrigins.Assign(value); } - private readonly BicepList _allowedOrigins; + public BicepList AllowedOrigins + { + get { Initialize(); return _allowedOrigins!; } + set { Initialize(); _allowedOrigins!.Assign(value); } + } + private BicepList? _allowedOrigins; /// /// Gets or sets whether CORS requests with credentials are allowed. See /// https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials /// for more details. /// - public BicepValue IsCredentialsSupported { get => _isCredentialsSupported; set => _isCredentialsSupported.Assign(value); } - private readonly BicepValue _isCredentialsSupported; + public BicepValue IsCredentialsSupported + { + get { Initialize(); return _isCredentialsSupported!; } + set { Initialize(); _isCredentialsSupported!.Assign(value); } + } + private BicepValue? _isCredentialsSupported; /// /// Creates a new AppServiceCorsSettings. /// public AppServiceCorsSettings() { - _allowedOrigins = BicepList.DefineProperty(this, "AllowedOrigins", ["allowedOrigins"]); - _isCredentialsSupported = BicepValue.DefineProperty(this, "IsCredentialsSupported", ["supportCredentials"]); + } + + /// + /// Define all the provisionable properties of AppServiceCorsSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _allowedOrigins = DefineListProperty("AllowedOrigins", ["allowedOrigins"]); + _isCredentialsSupported = DefineProperty("IsCredentialsSupported", ["supportCredentials"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceHostName.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceHostName.cs index 71339e76734f5..b6631a433f3f6 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceHostName.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceHostName.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,52 +19,78 @@ public partial class AppServiceHostName : ProvisionableConstruct /// /// Name of the hostname. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// List of apps the hostname is assigned to. This list will have more than /// one app only if the hostname is pointing to a Traffic Manager. /// - public BicepList SiteNames { get => _siteNames; } - private readonly BicepList _siteNames; + public BicepList SiteNames + { + get { Initialize(); return _siteNames!; } + } + private BicepList? _siteNames; /// /// Name of the Azure resource the hostname is assigned to. If it is /// assigned to a Traffic Manager then it will be the Traffic Manager name /// otherwise it will be the app name. /// - public BicepValue AzureResourceName { get => _azureResourceName; } - private readonly BicepValue _azureResourceName; + public BicepValue AzureResourceName + { + get { Initialize(); return _azureResourceName!; } + } + private BicepValue? _azureResourceName; /// /// Type of the Azure resource the hostname is assigned to. /// - public BicepValue AzureResourceType { get => _azureResourceType; } - private readonly BicepValue _azureResourceType; + public BicepValue AzureResourceType + { + get { Initialize(); return _azureResourceType!; } + } + private BicepValue? _azureResourceType; /// /// Type of the DNS record. /// - public BicepValue CustomHostNameDnsRecordType { get => _customHostNameDnsRecordType; } - private readonly BicepValue _customHostNameDnsRecordType; + public BicepValue CustomHostNameDnsRecordType + { + get { Initialize(); return _customHostNameDnsRecordType!; } + } + private BicepValue? _customHostNameDnsRecordType; /// /// Type of the hostname. /// - public BicepValue HostNameType { get => _hostNameType; } - private readonly BicepValue _hostNameType; + public BicepValue HostNameType + { + get { Initialize(); return _hostNameType!; } + } + private BicepValue? _hostNameType; /// /// Creates a new AppServiceHostName. /// public AppServiceHostName() { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _siteNames = BicepList.DefineProperty(this, "SiteNames", ["siteNames"], isOutput: true); - _azureResourceName = BicepValue.DefineProperty(this, "AzureResourceName", ["azureResourceName"], isOutput: true); - _azureResourceType = BicepValue.DefineProperty(this, "AzureResourceType", ["azureResourceType"], isOutput: true); - _customHostNameDnsRecordType = BicepValue.DefineProperty(this, "CustomHostNameDnsRecordType", ["customHostNameDnsRecordType"], isOutput: true); - _hostNameType = BicepValue.DefineProperty(this, "HostNameType", ["hostNameType"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AppServiceHostName. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isOutput: true); + _siteNames = DefineListProperty("SiteNames", ["siteNames"], isOutput: true); + _azureResourceName = DefineProperty("AzureResourceName", ["azureResourceName"], isOutput: true); + _azureResourceType = DefineProperty("AzureResourceType", ["azureResourceType"], isOutput: true); + _customHostNameDnsRecordType = DefineProperty("CustomHostNameDnsRecordType", ["customHostNameDnsRecordType"], isOutput: true); + _hostNameType = DefineProperty("HostNameType", ["hostNameType"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceHttpLogsConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceHttpLogsConfig.cs index d2bed907d7432..14f6b40ac2cd2 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceHttpLogsConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceHttpLogsConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class AppServiceHttpLogsConfig : ProvisionableConstruct /// /// Http logs to file system configuration. /// - public BicepValue FileSystem { get => _fileSystem; set => _fileSystem.Assign(value); } - private readonly BicepValue _fileSystem; + public FileSystemHttpLogsConfig FileSystem + { + get { Initialize(); return _fileSystem!; } + set { Initialize(); AssignOrReplace(ref _fileSystem, value); } + } + private FileSystemHttpLogsConfig? _fileSystem; /// /// Http logs to azure blob storage configuration. /// - public BicepValue AzureBlobStorage { get => _azureBlobStorage; set => _azureBlobStorage.Assign(value); } - private readonly BicepValue _azureBlobStorage; + public AppServiceBlobStorageHttpLogsConfig AzureBlobStorage + { + get { Initialize(); return _azureBlobStorage!; } + set { Initialize(); AssignOrReplace(ref _azureBlobStorage, value); } + } + private AppServiceBlobStorageHttpLogsConfig? _azureBlobStorage; /// /// Creates a new AppServiceHttpLogsConfig. /// public AppServiceHttpLogsConfig() { - _fileSystem = BicepValue.DefineProperty(this, "FileSystem", ["fileSystem"]); - _azureBlobStorage = BicepValue.DefineProperty(this, "AzureBlobStorage", ["azureBlobStorage"]); + } + + /// + /// Define all the provisionable properties of AppServiceHttpLogsConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _fileSystem = DefineModelProperty("FileSystem", ["fileSystem"]); + _azureBlobStorage = DefineModelProperty("AzureBlobStorage", ["azureBlobStorage"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.cs index 59106be19ee99..f17d494a74ac7 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -21,63 +23,103 @@ public partial class AppServiceIPSecurityRestriction : ProvisionableConstruct /// CIDR notation such as ipv4/mask (leading bit match). For /// CIDR, SubnetMask property must not be specified. /// - public BicepValue IPAddressOrCidr { get => _iPAddressOrCidr; set => _iPAddressOrCidr.Assign(value); } - private readonly BicepValue _iPAddressOrCidr; + public BicepValue IPAddressOrCidr + { + get { Initialize(); return _iPAddressOrCidr!; } + set { Initialize(); _iPAddressOrCidr!.Assign(value); } + } + private BicepValue? _iPAddressOrCidr; /// /// Subnet mask for the range of IP addresses the restriction is valid for. /// - public BicepValue SubnetMask { get => _subnetMask; set => _subnetMask.Assign(value); } - private readonly BicepValue _subnetMask; + public BicepValue SubnetMask + { + get { Initialize(); return _subnetMask!; } + set { Initialize(); _subnetMask!.Assign(value); } + } + private BicepValue? _subnetMask; /// /// Virtual network resource id. /// - public BicepValue VnetSubnetResourceId { get => _vnetSubnetResourceId; set => _vnetSubnetResourceId.Assign(value); } - private readonly BicepValue _vnetSubnetResourceId; + public BicepValue VnetSubnetResourceId + { + get { Initialize(); return _vnetSubnetResourceId!; } + set { Initialize(); _vnetSubnetResourceId!.Assign(value); } + } + private BicepValue? _vnetSubnetResourceId; /// /// (internal) Vnet traffic tag. /// - public BicepValue VnetTrafficTag { get => _vnetTrafficTag; set => _vnetTrafficTag.Assign(value); } - private readonly BicepValue _vnetTrafficTag; + public BicepValue VnetTrafficTag + { + get { Initialize(); return _vnetTrafficTag!; } + set { Initialize(); _vnetTrafficTag!.Assign(value); } + } + private BicepValue? _vnetTrafficTag; /// /// (internal) Subnet traffic tag. /// - public BicepValue SubnetTrafficTag { get => _subnetTrafficTag; set => _subnetTrafficTag.Assign(value); } - private readonly BicepValue _subnetTrafficTag; + public BicepValue SubnetTrafficTag + { + get { Initialize(); return _subnetTrafficTag!; } + set { Initialize(); _subnetTrafficTag!.Assign(value); } + } + private BicepValue? _subnetTrafficTag; /// /// Allow or Deny access for this IP range. /// - public BicepValue Action { get => _action; set => _action.Assign(value); } - private readonly BicepValue _action; + public BicepValue Action + { + get { Initialize(); return _action!; } + set { Initialize(); _action!.Assign(value); } + } + private BicepValue? _action; /// /// Defines what this IP filter will be used for. This is to support IP /// filtering on proxies. /// - public BicepValue Tag { get => _tag; set => _tag.Assign(value); } - private readonly BicepValue _tag; + public BicepValue Tag + { + get { Initialize(); return _tag!; } + set { Initialize(); _tag!.Assign(value); } + } + private BicepValue? _tag; /// /// Priority of IP restriction rule. /// - public BicepValue Priority { get => _priority; set => _priority.Assign(value); } - private readonly BicepValue _priority; + public BicepValue Priority + { + get { Initialize(); return _priority!; } + set { Initialize(); _priority!.Assign(value); } + } + private BicepValue? _priority; /// /// IP restriction rule name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// IP restriction rule description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// IP restriction rule headers. X-Forwarded-Host @@ -99,24 +141,37 @@ public partial class AppServiceIPSecurityRestriction : ProvisionableConstruct /// X-Azure-FDID and X-FD-HealthProbe. /// The matching logic is exact match. /// - public BicepDictionary> Headers { get => _headers; set => _headers.Assign(value); } - private readonly BicepDictionary> _headers; + public BicepDictionary> Headers + { + get { Initialize(); return _headers!; } + set { Initialize(); _headers!.Assign(value); } + } + private BicepDictionary>? _headers; /// /// Creates a new AppServiceIPSecurityRestriction. /// public AppServiceIPSecurityRestriction() { - _iPAddressOrCidr = BicepValue.DefineProperty(this, "IPAddressOrCidr", ["ipAddress"]); - _subnetMask = BicepValue.DefineProperty(this, "SubnetMask", ["subnetMask"]); - _vnetSubnetResourceId = BicepValue.DefineProperty(this, "VnetSubnetResourceId", ["vnetSubnetResourceId"]); - _vnetTrafficTag = BicepValue.DefineProperty(this, "VnetTrafficTag", ["vnetTrafficTag"]); - _subnetTrafficTag = BicepValue.DefineProperty(this, "SubnetTrafficTag", ["subnetTrafficTag"]); - _action = BicepValue.DefineProperty(this, "Action", ["action"]); - _tag = BicepValue.DefineProperty(this, "Tag", ["tag"]); - _priority = BicepValue.DefineProperty(this, "Priority", ["priority"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _headers = BicepDictionary>.DefineProperty(this, "Headers", ["headers"]); + } + + /// + /// Define all the provisionable properties of + /// AppServiceIPSecurityRestriction. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _iPAddressOrCidr = DefineProperty("IPAddressOrCidr", ["ipAddress"]); + _subnetMask = DefineProperty("SubnetMask", ["subnetMask"]); + _vnetSubnetResourceId = DefineProperty("VnetSubnetResourceId", ["vnetSubnetResourceId"]); + _vnetTrafficTag = DefineProperty("VnetTrafficTag", ["vnetTrafficTag"]); + _subnetTrafficTag = DefineProperty("SubnetTrafficTag", ["subnetTrafficTag"]); + _action = DefineProperty("Action", ["action"]); + _tag = DefineProperty("Tag", ["tag"]); + _priority = DefineProperty("Priority", ["priority"]); + _name = DefineProperty("Name", ["name"]); + _description = DefineProperty("Description", ["description"]); + _headers = DefineDictionaryProperty>("Headers", ["headers"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceNameValuePair.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceNameValuePair.cs index f02b194d51635..1264ffe6bd040 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceNameValuePair.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceNameValuePair.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class AppServiceNameValuePair : ProvisionableConstruct /// /// Pair name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Pair value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new AppServiceNameValuePair. /// public AppServiceNameValuePair() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of AppServiceNameValuePair. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceSkuCapability.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceSkuCapability.cs index a6a9dd480dc14..b74096afe9ae0 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceSkuCapability.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceSkuCapability.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class AppServiceSkuCapability : ProvisionableConstruct /// /// Name of the SKU capability. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Value of the SKU capability. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Reason of the SKU capability. /// - public BicepValue Reason { get => _reason; set => _reason.Assign(value); } - private readonly BicepValue _reason; + public BicepValue Reason + { + get { Initialize(); return _reason!; } + set { Initialize(); _reason!.Assign(value); } + } + private BicepValue? _reason; /// /// Creates a new AppServiceSkuCapability. /// public AppServiceSkuCapability() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _reason = BicepValue.DefineProperty(this, "Reason", ["reason"]); + } + + /// + /// Define all the provisionable properties of AppServiceSkuCapability. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _value = DefineProperty("Value", ["value"]); + _reason = DefineProperty("Reason", ["reason"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceSkuCapacity.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceSkuCapacity.cs index 72336c70f7b4f..66dcc81b72174 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceSkuCapacity.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceSkuCapacity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,70 @@ public partial class AppServiceSkuCapacity : ProvisionableConstruct /// /// Minimum number of workers for this App Service plan SKU. /// - public BicepValue Minimum { get => _minimum; set => _minimum.Assign(value); } - private readonly BicepValue _minimum; + public BicepValue Minimum + { + get { Initialize(); return _minimum!; } + set { Initialize(); _minimum!.Assign(value); } + } + private BicepValue? _minimum; /// /// Maximum number of workers for this App Service plan SKU. /// - public BicepValue Maximum { get => _maximum; set => _maximum.Assign(value); } - private readonly BicepValue _maximum; + public BicepValue Maximum + { + get { Initialize(); return _maximum!; } + set { Initialize(); _maximum!.Assign(value); } + } + private BicepValue? _maximum; /// /// Maximum number of Elastic workers for this App Service plan SKU. /// - public BicepValue ElasticMaximum { get => _elasticMaximum; set => _elasticMaximum.Assign(value); } - private readonly BicepValue _elasticMaximum; + public BicepValue ElasticMaximum + { + get { Initialize(); return _elasticMaximum!; } + set { Initialize(); _elasticMaximum!.Assign(value); } + } + private BicepValue? _elasticMaximum; /// /// Default number of workers for this App Service plan SKU. /// - public BicepValue Default { get => _default; set => _default.Assign(value); } - private readonly BicepValue _default; + public BicepValue Default + { + get { Initialize(); return _default!; } + set { Initialize(); _default!.Assign(value); } + } + private BicepValue? _default; /// /// Available scale configurations for an App Service plan. /// - public BicepValue ScaleType { get => _scaleType; set => _scaleType.Assign(value); } - private readonly BicepValue _scaleType; + public BicepValue ScaleType + { + get { Initialize(); return _scaleType!; } + set { Initialize(); _scaleType!.Assign(value); } + } + private BicepValue? _scaleType; /// /// Creates a new AppServiceSkuCapacity. /// public AppServiceSkuCapacity() { - _minimum = BicepValue.DefineProperty(this, "Minimum", ["minimum"]); - _maximum = BicepValue.DefineProperty(this, "Maximum", ["maximum"]); - _elasticMaximum = BicepValue.DefineProperty(this, "ElasticMaximum", ["elasticMaximum"]); - _default = BicepValue.DefineProperty(this, "Default", ["default"]); - _scaleType = BicepValue.DefineProperty(this, "ScaleType", ["scaleType"]); + } + + /// + /// Define all the provisionable properties of AppServiceSkuCapacity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _minimum = DefineProperty("Minimum", ["minimum"]); + _maximum = DefineProperty("Maximum", ["maximum"]); + _elasticMaximum = DefineProperty("ElasticMaximum", ["elasticMaximum"]); + _default = DefineProperty("Default", ["default"]); + _scaleType = DefineProperty("ScaleType", ["scaleType"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceSkuDescription.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceSkuDescription.cs index f13463926b368..b8002f2142a61 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceSkuDescription.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceSkuDescription.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,63 +20,103 @@ public partial class AppServiceSkuDescription : ProvisionableConstruct /// /// Name of the resource SKU. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Service tier of the resource SKU. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// Size specifier of the resource SKU. /// - public BicepValue Size { get => _size; set => _size.Assign(value); } - private readonly BicepValue _size; + public BicepValue Size + { + get { Initialize(); return _size!; } + set { Initialize(); _size!.Assign(value); } + } + private BicepValue? _size; /// /// Family code of the resource SKU. /// - public BicepValue Family { get => _family; set => _family.Assign(value); } - private readonly BicepValue _family; + public BicepValue Family + { + get { Initialize(); return _family!; } + set { Initialize(); _family!.Assign(value); } + } + private BicepValue? _family; /// /// Current number of instances assigned to the resource. /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// Min, max, and default scale values of the SKU. /// - public BicepValue SkuCapacity { get => _skuCapacity; set => _skuCapacity.Assign(value); } - private readonly BicepValue _skuCapacity; + public AppServiceSkuCapacity SkuCapacity + { + get { Initialize(); return _skuCapacity!; } + set { Initialize(); AssignOrReplace(ref _skuCapacity, value); } + } + private AppServiceSkuCapacity? _skuCapacity; /// /// Locations of the SKU. /// - public BicepList Locations { get => _locations; set => _locations.Assign(value); } - private readonly BicepList _locations; + public BicepList Locations + { + get { Initialize(); return _locations!; } + set { Initialize(); _locations!.Assign(value); } + } + private BicepList? _locations; /// /// Capabilities of the SKU, e.g., is traffic manager enabled?. /// - public BicepList Capabilities { get => _capabilities; set => _capabilities.Assign(value); } - private readonly BicepList _capabilities; + public BicepList Capabilities + { + get { Initialize(); return _capabilities!; } + set { Initialize(); _capabilities!.Assign(value); } + } + private BicepList? _capabilities; /// /// Creates a new AppServiceSkuDescription. /// public AppServiceSkuDescription() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); - _size = BicepValue.DefineProperty(this, "Size", ["size"]); - _family = BicepValue.DefineProperty(this, "Family", ["family"]); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); - _skuCapacity = BicepValue.DefineProperty(this, "SkuCapacity", ["skuCapacity"]); - _locations = BicepList.DefineProperty(this, "Locations", ["locations"]); - _capabilities = BicepList.DefineProperty(this, "Capabilities", ["capabilities"]); + } + + /// + /// Define all the provisionable properties of AppServiceSkuDescription. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"]); + _size = DefineProperty("Size", ["size"]); + _family = DefineProperty("Family", ["family"]); + _capacity = DefineProperty("Capacity", ["capacity"]); + _skuCapacity = DefineModelProperty("SkuCapacity", ["skuCapacity"]); + _locations = DefineListProperty("Locations", ["locations"]); + _capabilities = DefineListProperty("Capabilities", ["capabilities"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceStorageAccessInfo.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceStorageAccessInfo.cs index 08161bb92ad07..0cc49c7d0d55f 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceStorageAccessInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceStorageAccessInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,56 +18,91 @@ public partial class AppServiceStorageAccessInfo : ProvisionableConstruct /// /// Type of storage. /// - public BicepValue StorageType { get => _storageType; set => _storageType.Assign(value); } - private readonly BicepValue _storageType; + public BicepValue StorageType + { + get { Initialize(); return _storageType!; } + set { Initialize(); _storageType!.Assign(value); } + } + private BicepValue? _storageType; /// /// Name of the storage account. /// - public BicepValue AccountName { get => _accountName; set => _accountName.Assign(value); } - private readonly BicepValue _accountName; + public BicepValue AccountName + { + get { Initialize(); return _accountName!; } + set { Initialize(); _accountName!.Assign(value); } + } + private BicepValue? _accountName; /// /// Name of the file share (container name, for Blob storage). /// - public BicepValue ShareName { get => _shareName; set => _shareName.Assign(value); } - private readonly BicepValue _shareName; + public BicepValue ShareName + { + get { Initialize(); return _shareName!; } + set { Initialize(); _shareName!.Assign(value); } + } + private BicepValue? _shareName; /// /// Access key for the storage account. /// - public BicepValue AccessKey { get => _accessKey; set => _accessKey.Assign(value); } - private readonly BicepValue _accessKey; + public BicepValue AccessKey + { + get { Initialize(); return _accessKey!; } + set { Initialize(); _accessKey!.Assign(value); } + } + private BicepValue? _accessKey; /// /// Path to mount the storage within the site's runtime environment. /// - public BicepValue MountPath { get => _mountPath; set => _mountPath.Assign(value); } - private readonly BicepValue _mountPath; + public BicepValue MountPath + { + get { Initialize(); return _mountPath!; } + set { Initialize(); _mountPath!.Assign(value); } + } + private BicepValue? _mountPath; /// /// State of the storage account. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Mounting protocol to use for the storage account. /// - public BicepValue Protocol { get => _protocol; set => _protocol.Assign(value); } - private readonly BicepValue _protocol; + public BicepValue Protocol + { + get { Initialize(); return _protocol!; } + set { Initialize(); _protocol!.Assign(value); } + } + private BicepValue? _protocol; /// /// Creates a new AppServiceStorageAccessInfo. /// public AppServiceStorageAccessInfo() { - _storageType = BicepValue.DefineProperty(this, "StorageType", ["type"]); - _accountName = BicepValue.DefineProperty(this, "AccountName", ["accountName"]); - _shareName = BicepValue.DefineProperty(this, "ShareName", ["shareName"]); - _accessKey = BicepValue.DefineProperty(this, "AccessKey", ["accessKey"]); - _mountPath = BicepValue.DefineProperty(this, "MountPath", ["mountPath"]); - _state = BicepValue.DefineProperty(this, "State", ["state"], isOutput: true); - _protocol = BicepValue.DefineProperty(this, "Protocol", ["protocol"]); + } + + /// + /// Define all the provisionable properties of AppServiceStorageAccessInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _storageType = DefineProperty("StorageType", ["type"]); + _accountName = DefineProperty("AccountName", ["accountName"]); + _shareName = DefineProperty("ShareName", ["shareName"]); + _accessKey = DefineProperty("AccessKey", ["accessKey"]); + _mountPath = DefineProperty("MountPath", ["mountPath"]); + _state = DefineProperty("State", ["state"], isOutput: true); + _protocol = DefineProperty("Protocol", ["protocol"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceTableStorageApplicationLogsConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceTableStorageApplicationLogsConfig.cs index cefc5369343cf..a9d4f2ce69341 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceTableStorageApplicationLogsConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceTableStorageApplicationLogsConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class AppServiceTableStorageApplicationLogsConfig : Provisionable /// /// Log level. /// - public BicepValue Level { get => _level; set => _level.Assign(value); } - private readonly BicepValue _level; + public BicepValue Level + { + get { Initialize(); return _level!; } + set { Initialize(); _level!.Assign(value); } + } + private BicepValue? _level; /// /// SAS URL to an Azure table with add/query/delete permissions. /// - public BicepValue SasUriString { get => _sasUriString; set => _sasUriString.Assign(value); } - private readonly BicepValue _sasUriString; + public BicepValue SasUriString + { + get { Initialize(); return _sasUriString!; } + set { Initialize(); _sasUriString!.Assign(value); } + } + private BicepValue? _sasUriString; /// /// Creates a new AppServiceTableStorageApplicationLogsConfig. /// public AppServiceTableStorageApplicationLogsConfig() { - _level = BicepValue.DefineProperty(this, "Level", ["level"]); - _sasUriString = BicepValue.DefineProperty(this, "SasUriString", ["sasUrl"]); + } + + /// + /// Define all the provisionable properties of + /// AppServiceTableStorageApplicationLogsConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _level = DefineProperty("Level", ["level"]); + _sasUriString = DefineProperty("SasUriString", ["sasUrl"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceVirtualNetworkProfile.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceVirtualNetworkProfile.cs index 4d22058f81429..9e841813b7c3d 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceVirtualNetworkProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceVirtualNetworkProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,58 @@ public partial class AppServiceVirtualNetworkProfile : ProvisionableConstruct /// /// Resource id of the Virtual Network. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// Name of the Virtual Network (read-only). /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Resource type of the Virtual Network (read-only). /// - public BicepValue ResourceType { get => _resourceType; } - private readonly BicepValue _resourceType; + public BicepValue ResourceType + { + get { Initialize(); return _resourceType!; } + } + private BicepValue? _resourceType; /// /// Subnet within the Virtual Network. /// - public BicepValue Subnet { get => _subnet; set => _subnet.Assign(value); } - private readonly BicepValue _subnet; + public BicepValue Subnet + { + get { Initialize(); return _subnet!; } + set { Initialize(); _subnet!.Assign(value); } + } + private BicepValue? _subnet; /// /// Creates a new AppServiceVirtualNetworkProfile. /// public AppServiceVirtualNetworkProfile() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _resourceType = BicepValue.DefineProperty(this, "ResourceType", ["type"], isOutput: true); - _subnet = BicepValue.DefineProperty(this, "Subnet", ["subnet"]); + } + + /// + /// Define all the provisionable properties of + /// AppServiceVirtualNetworkProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _name = DefineProperty("Name", ["name"], isOutput: true); + _resourceType = DefineProperty("ResourceType", ["type"], isOutput: true); + _subnet = DefineProperty("Subnet", ["subnet"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceVirtualNetworkRoute.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceVirtualNetworkRoute.cs index 29c7cc7e279cd..f5dc5cc4255c8 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceVirtualNetworkRoute.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AppServiceVirtualNetworkRoute.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -20,15 +22,23 @@ public partial class AppServiceVirtualNetworkRoute : ProvisionableConstruct /// The starting address for this route. This may also include a CIDR /// notation, in which case the end address must not be specified. /// - public BicepValue StartAddress { get => _startAddress; set => _startAddress.Assign(value); } - private readonly BicepValue _startAddress; + public BicepValue StartAddress + { + get { Initialize(); return _startAddress!; } + set { Initialize(); _startAddress!.Assign(value); } + } + private BicepValue? _startAddress; /// /// The ending address for this route. If the start address is specified in /// CIDR notation, this must be omitted. /// - public BicepValue EndAddress { get => _endAddress; set => _endAddress.Assign(value); } - private readonly BicepValue _endAddress; + public BicepValue EndAddress + { + get { Initialize(); return _endAddress!; } + set { Initialize(); _endAddress!.Assign(value); } + } + private BicepValue? _endAddress; /// /// The type of route this is: DEFAULT - By default, every app @@ -38,44 +48,70 @@ public partial class AppServiceVirtualNetworkRoute : ProvisionableConstruct /// These values will be used for syncing an /// app's routes with those from a Virtual Network. /// - public BicepValue RouteType { get => _routeType; set => _routeType.Assign(value); } - private readonly BicepValue _routeType; + public BicepValue RouteType + { + get { Initialize(); return _routeType!; } + set { Initialize(); _routeType!.Assign(value); } + } + private BicepValue? _routeType; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new AppServiceVirtualNetworkRoute. /// public AppServiceVirtualNetworkRoute() { - _startAddress = BicepValue.DefineProperty(this, "StartAddress", ["properties", "startAddress"]); - _endAddress = BicepValue.DefineProperty(this, "EndAddress", ["properties", "endAddress"]); - _routeType = BicepValue.DefineProperty(this, "RouteType", ["properties", "routeType"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// AppServiceVirtualNetworkRoute. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _startAddress = DefineProperty("StartAddress", ["properties", "startAddress"]); + _endAddress = DefineProperty("EndAddress", ["properties", "endAddress"]); + _routeType = DefineProperty("RouteType", ["properties", "routeType"]); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ApplicationLogsConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ApplicationLogsConfig.cs index b7f15a7babc27..e934327d044e0 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ApplicationLogsConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ApplicationLogsConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class ApplicationLogsConfig : ProvisionableConstruct /// /// Log level. /// - public BicepValue FileSystemLevel { get => _fileSystemLevel; set => _fileSystemLevel.Assign(value); } - private readonly BicepValue _fileSystemLevel; + public BicepValue FileSystemLevel + { + get { Initialize(); return _fileSystemLevel!; } + set { Initialize(); _fileSystemLevel!.Assign(value); } + } + private BicepValue? _fileSystemLevel; /// /// Application logs to azure table storage configuration. /// - public BicepValue AzureTableStorage { get => _azureTableStorage; set => _azureTableStorage.Assign(value); } - private readonly BicepValue _azureTableStorage; + public AppServiceTableStorageApplicationLogsConfig AzureTableStorage + { + get { Initialize(); return _azureTableStorage!; } + set { Initialize(); AssignOrReplace(ref _azureTableStorage, value); } + } + private AppServiceTableStorageApplicationLogsConfig? _azureTableStorage; /// /// Application logs to blob storage configuration. /// - public BicepValue AzureBlobStorage { get => _azureBlobStorage; set => _azureBlobStorage.Assign(value); } - private readonly BicepValue _azureBlobStorage; + public AppServiceBlobStorageApplicationLogsConfig AzureBlobStorage + { + get { Initialize(); return _azureBlobStorage!; } + set { Initialize(); AssignOrReplace(ref _azureBlobStorage, value); } + } + private AppServiceBlobStorageApplicationLogsConfig? _azureBlobStorage; /// /// Creates a new ApplicationLogsConfig. /// public ApplicationLogsConfig() { - _fileSystemLevel = BicepValue.DefineProperty(this, "FileSystemLevel", ["fileSystem", "level"]); - _azureTableStorage = BicepValue.DefineProperty(this, "AzureTableStorage", ["azureTableStorage"]); - _azureBlobStorage = BicepValue.DefineProperty(this, "AzureBlobStorage", ["azureBlobStorage"]); + } + + /// + /// Define all the provisionable properties of ApplicationLogsConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _fileSystemLevel = DefineProperty("FileSystemLevel", ["fileSystem", "level"]); + _azureTableStorage = DefineModelProperty("AzureTableStorage", ["azureTableStorage"]); + _azureBlobStorage = DefineModelProperty("AzureBlobStorage", ["azureBlobStorage"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ArcConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ArcConfiguration.cs index 5906553f75b02..4f615895feac2 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ArcConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ArcConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,56 +18,92 @@ public partial class ArcConfiguration : ProvisionableConstruct /// /// Gets or sets the artifacts storage type. /// - public BicepValue ArtifactsStorageType { get => _artifactsStorageType; set => _artifactsStorageType.Assign(value); } - private readonly BicepValue _artifactsStorageType; + public BicepValue ArtifactsStorageType + { + get { Initialize(); return _artifactsStorageType!; } + set { Initialize(); _artifactsStorageType!.Assign(value); } + } + private BicepValue? _artifactsStorageType; /// /// Gets or sets the artifact storage class name. /// - public BicepValue ArtifactStorageClassName { get => _artifactStorageClassName; set => _artifactStorageClassName.Assign(value); } - private readonly BicepValue _artifactStorageClassName; + public BicepValue ArtifactStorageClassName + { + get { Initialize(); return _artifactStorageClassName!; } + set { Initialize(); _artifactStorageClassName!.Assign(value); } + } + private BicepValue? _artifactStorageClassName; /// /// Gets or sets the artifact storage mount path. /// - public BicepValue ArtifactStorageMountPath { get => _artifactStorageMountPath; set => _artifactStorageMountPath.Assign(value); } - private readonly BicepValue _artifactStorageMountPath; + public BicepValue ArtifactStorageMountPath + { + get { Initialize(); return _artifactStorageMountPath!; } + set { Initialize(); _artifactStorageMountPath!.Assign(value); } + } + private BicepValue? _artifactStorageMountPath; /// /// Gets or sets the artifact storage node name. /// - public BicepValue ArtifactStorageNodeName { get => _artifactStorageNodeName; set => _artifactStorageNodeName.Assign(value); } - private readonly BicepValue _artifactStorageNodeName; + public BicepValue ArtifactStorageNodeName + { + get { Initialize(); return _artifactStorageNodeName!; } + set { Initialize(); _artifactStorageNodeName!.Assign(value); } + } + private BicepValue? _artifactStorageNodeName; /// /// Gets or sets the artifact storage access mode. /// - public BicepValue ArtifactStorageAccessMode { get => _artifactStorageAccessMode; set => _artifactStorageAccessMode.Assign(value); } - private readonly BicepValue _artifactStorageAccessMode; + public BicepValue ArtifactStorageAccessMode + { + get { Initialize(); return _artifactStorageAccessMode!; } + set { Initialize(); _artifactStorageAccessMode!.Assign(value); } + } + private BicepValue? _artifactStorageAccessMode; /// /// Gets or sets the front end service kind. /// - public BicepValue FrontEndServiceKind { get => _frontEndServiceKind; set => _frontEndServiceKind.Assign(value); } - private readonly BicepValue _frontEndServiceKind; + public BicepValue FrontEndServiceKind + { + get { Initialize(); return _frontEndServiceKind!; } + set { Initialize(); _frontEndServiceKind!.Assign(value); } + } + private BicepValue? _frontEndServiceKind; /// /// Gets or sets the kube config. /// - public BicepValue KubeConfig { get => _kubeConfig; set => _kubeConfig.Assign(value); } - private readonly BicepValue _kubeConfig; + public BicepValue KubeConfig + { + get { Initialize(); return _kubeConfig!; } + set { Initialize(); _kubeConfig!.Assign(value); } + } + private BicepValue? _kubeConfig; /// /// Creates a new ArcConfiguration. /// public ArcConfiguration() { - _artifactsStorageType = BicepValue.DefineProperty(this, "ArtifactsStorageType", ["artifactsStorageType"]); - _artifactStorageClassName = BicepValue.DefineProperty(this, "ArtifactStorageClassName", ["artifactStorageClassName"]); - _artifactStorageMountPath = BicepValue.DefineProperty(this, "ArtifactStorageMountPath", ["artifactStorageMountPath"]); - _artifactStorageNodeName = BicepValue.DefineProperty(this, "ArtifactStorageNodeName", ["artifactStorageNodeName"]); - _artifactStorageAccessMode = BicepValue.DefineProperty(this, "ArtifactStorageAccessMode", ["artifactStorageAccessMode"]); - _frontEndServiceKind = BicepValue.DefineProperty(this, "FrontEndServiceKind", ["frontEndServiceConfiguration", "kind"]); - _kubeConfig = BicepValue.DefineProperty(this, "KubeConfig", ["kubeConfig"]); + } + + /// + /// Define all the provisionable properties of ArcConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _artifactsStorageType = DefineProperty("ArtifactsStorageType", ["artifactsStorageType"]); + _artifactStorageClassName = DefineProperty("ArtifactStorageClassName", ["artifactStorageClassName"]); + _artifactStorageMountPath = DefineProperty("ArtifactStorageMountPath", ["artifactStorageMountPath"]); + _artifactStorageNodeName = DefineProperty("ArtifactStorageNodeName", ["artifactStorageNodeName"]); + _artifactStorageAccessMode = DefineProperty("ArtifactStorageAccessMode", ["artifactStorageAccessMode"]); + _frontEndServiceKind = DefineProperty("FrontEndServiceKind", ["frontEndServiceConfiguration", "kind"]); + _kubeConfig = DefineProperty("KubeConfig", ["kubeConfig"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AseV3NetworkingConfigurationData.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AseV3NetworkingConfigurationData.cs index 6b0c376988d16..873fba5c8efea 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AseV3NetworkingConfigurationData.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AseV3NetworkingConfigurationData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -21,92 +23,142 @@ public partial class AseV3NetworkingConfigurationData : ProvisionableConstruct /// /// Gets the windows outbound ip addresses. /// - public BicepList WindowsOutboundIPAddresses { get => _windowsOutboundIPAddresses; } - private readonly BicepList _windowsOutboundIPAddresses; + public BicepList WindowsOutboundIPAddresses + { + get { Initialize(); return _windowsOutboundIPAddresses!; } + } + private BicepList? _windowsOutboundIPAddresses; /// /// Gets the linux outbound ip addresses. /// - public BicepList LinuxOutboundIPAddresses { get => _linuxOutboundIPAddresses; } - private readonly BicepList _linuxOutboundIPAddresses; + public BicepList LinuxOutboundIPAddresses + { + get { Initialize(); return _linuxOutboundIPAddresses!; } + } + private BicepList? _linuxOutboundIPAddresses; /// /// Gets the external inbound ip addresses. /// - public BicepList ExternalInboundIPAddresses { get => _externalInboundIPAddresses; } - private readonly BicepList _externalInboundIPAddresses; + public BicepList ExternalInboundIPAddresses + { + get { Initialize(); return _externalInboundIPAddresses!; } + } + private BicepList? _externalInboundIPAddresses; /// /// Gets the internal inbound ip addresses. /// - public BicepList InternalInboundIPAddresses { get => _internalInboundIPAddresses; } - private readonly BicepList _internalInboundIPAddresses; + public BicepList InternalInboundIPAddresses + { + get { Initialize(); return _internalInboundIPAddresses!; } + } + private BicepList? _internalInboundIPAddresses; /// /// Property to enable and disable new private endpoint connection creation /// on ASE. /// - public BicepValue AllowNewPrivateEndpointConnections { get => _allowNewPrivateEndpointConnections; set => _allowNewPrivateEndpointConnections.Assign(value); } - private readonly BicepValue _allowNewPrivateEndpointConnections; + public BicepValue AllowNewPrivateEndpointConnections + { + get { Initialize(); return _allowNewPrivateEndpointConnections!; } + set { Initialize(); _allowNewPrivateEndpointConnections!.Assign(value); } + } + private BicepValue? _allowNewPrivateEndpointConnections; /// /// Property to enable and disable FTP on ASEV3. /// - public BicepValue IsFtpEnabled { get => _isFtpEnabled; set => _isFtpEnabled.Assign(value); } - private readonly BicepValue _isFtpEnabled; + public BicepValue IsFtpEnabled + { + get { Initialize(); return _isFtpEnabled!; } + set { Initialize(); _isFtpEnabled!.Assign(value); } + } + private BicepValue? _isFtpEnabled; /// /// Property to enable and disable Remote Debug on ASEV3. /// - public BicepValue IsRemoteDebugEnabled { get => _isRemoteDebugEnabled; set => _isRemoteDebugEnabled.Assign(value); } - private readonly BicepValue _isRemoteDebugEnabled; + public BicepValue IsRemoteDebugEnabled + { + get { Initialize(); return _isRemoteDebugEnabled!; } + set { Initialize(); _isRemoteDebugEnabled!.Assign(value); } + } + private BicepValue? _isRemoteDebugEnabled; /// /// Customer provided Inbound IP Address. Only able to be set on Ase create. /// - public BicepValue InboundIPAddressOverride { get => _inboundIPAddressOverride; set => _inboundIPAddressOverride.Assign(value); } - private readonly BicepValue _inboundIPAddressOverride; + public BicepValue InboundIPAddressOverride + { + get { Initialize(); return _inboundIPAddressOverride!; } + set { Initialize(); _inboundIPAddressOverride!.Assign(value); } + } + private BicepValue? _inboundIPAddressOverride; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new AseV3NetworkingConfigurationData. /// public AseV3NetworkingConfigurationData() { - _windowsOutboundIPAddresses = BicepList.DefineProperty(this, "WindowsOutboundIPAddresses", ["properties", "windowsOutboundIpAddresses"], isOutput: true); - _linuxOutboundIPAddresses = BicepList.DefineProperty(this, "LinuxOutboundIPAddresses", ["properties", "linuxOutboundIpAddresses"], isOutput: true); - _externalInboundIPAddresses = BicepList.DefineProperty(this, "ExternalInboundIPAddresses", ["properties", "externalInboundIpAddresses"], isOutput: true); - _internalInboundIPAddresses = BicepList.DefineProperty(this, "InternalInboundIPAddresses", ["properties", "internalInboundIpAddresses"], isOutput: true); - _allowNewPrivateEndpointConnections = BicepValue.DefineProperty(this, "AllowNewPrivateEndpointConnections", ["properties", "allowNewPrivateEndpointConnections"]); - _isFtpEnabled = BicepValue.DefineProperty(this, "IsFtpEnabled", ["properties", "ftpEnabled"]); - _isRemoteDebugEnabled = BicepValue.DefineProperty(this, "IsRemoteDebugEnabled", ["properties", "remoteDebugEnabled"]); - _inboundIPAddressOverride = BicepValue.DefineProperty(this, "InboundIPAddressOverride", ["properties", "inboundIpAddressOverride"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// AseV3NetworkingConfigurationData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _windowsOutboundIPAddresses = DefineListProperty("WindowsOutboundIPAddresses", ["properties", "windowsOutboundIpAddresses"], isOutput: true); + _linuxOutboundIPAddresses = DefineListProperty("LinuxOutboundIPAddresses", ["properties", "linuxOutboundIpAddresses"], isOutput: true); + _externalInboundIPAddresses = DefineListProperty("ExternalInboundIPAddresses", ["properties", "externalInboundIpAddresses"], isOutput: true); + _internalInboundIPAddresses = DefineListProperty("InternalInboundIPAddresses", ["properties", "internalInboundIpAddresses"], isOutput: true); + _allowNewPrivateEndpointConnections = DefineProperty("AllowNewPrivateEndpointConnections", ["properties", "allowNewPrivateEndpointConnections"]); + _isFtpEnabled = DefineProperty("IsFtpEnabled", ["properties", "ftpEnabled"]); + _isRemoteDebugEnabled = DefineProperty("IsRemoteDebugEnabled", ["properties", "remoteDebugEnabled"]); + _inboundIPAddressOverride = DefineProperty("InboundIPAddressOverride", ["properties", "inboundIpAddressOverride"]); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealActions.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealActions.cs index fc8e6e88f0391..71f82dd74de8f 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealActions.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealActions.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,49 @@ public partial class AutoHealActions : ProvisionableConstruct /// /// Predefined action to be taken. /// - public BicepValue ActionType { get => _actionType; set => _actionType.Assign(value); } - private readonly BicepValue _actionType; + public BicepValue ActionType + { + get { Initialize(); return _actionType!; } + set { Initialize(); _actionType!.Assign(value); } + } + private BicepValue? _actionType; /// /// Custom action to be taken. /// - public BicepValue CustomAction { get => _customAction; set => _customAction.Assign(value); } - private readonly BicepValue _customAction; + public AutoHealCustomAction CustomAction + { + get { Initialize(); return _customAction!; } + set { Initialize(); AssignOrReplace(ref _customAction, value); } + } + private AutoHealCustomAction? _customAction; /// /// Minimum time the process must execute before taking the /// action /// - public BicepValue MinProcessExecutionTime { get => _minProcessExecutionTime; set => _minProcessExecutionTime.Assign(value); } - private readonly BicepValue _minProcessExecutionTime; + public BicepValue MinProcessExecutionTime + { + get { Initialize(); return _minProcessExecutionTime!; } + set { Initialize(); _minProcessExecutionTime!.Assign(value); } + } + private BicepValue? _minProcessExecutionTime; /// /// Creates a new AutoHealActions. /// public AutoHealActions() { - _actionType = BicepValue.DefineProperty(this, "ActionType", ["actionType"]); - _customAction = BicepValue.DefineProperty(this, "CustomAction", ["customAction"]); - _minProcessExecutionTime = BicepValue.DefineProperty(this, "MinProcessExecutionTime", ["minProcessExecutionTime"]); + } + + /// + /// Define all the provisionable properties of AutoHealActions. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _actionType = DefineProperty("ActionType", ["actionType"]); + _customAction = DefineModelProperty("CustomAction", ["customAction"]); + _minProcessExecutionTime = DefineProperty("MinProcessExecutionTime", ["minProcessExecutionTime"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealCustomAction.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealCustomAction.cs index f77e1aaecc5b4..c1e4b7cc3f84e 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealCustomAction.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealCustomAction.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class AutoHealCustomAction : ProvisionableConstruct /// /// Executable to be run. /// - public BicepValue Exe { get => _exe; set => _exe.Assign(value); } - private readonly BicepValue _exe; + public BicepValue Exe + { + get { Initialize(); return _exe!; } + set { Initialize(); _exe!.Assign(value); } + } + private BicepValue? _exe; /// /// Parameters for the executable. /// - public BicepValue Parameters { get => _parameters; set => _parameters.Assign(value); } - private readonly BicepValue _parameters; + public BicepValue Parameters + { + get { Initialize(); return _parameters!; } + set { Initialize(); _parameters!.Assign(value); } + } + private BicepValue? _parameters; /// /// Creates a new AutoHealCustomAction. /// public AutoHealCustomAction() { - _exe = BicepValue.DefineProperty(this, "Exe", ["exe"]); - _parameters = BicepValue.DefineProperty(this, "Parameters", ["parameters"]); + } + + /// + /// Define all the provisionable properties of AutoHealCustomAction. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _exe = DefineProperty("Exe", ["exe"]); + _parameters = DefineProperty("Parameters", ["parameters"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealRules.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealRules.cs index ed76346a4befa..8f0d12735d4cb 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealRules.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealRules.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class AutoHealRules : ProvisionableConstruct /// /// Conditions that describe when to execute the auto-heal actions. /// - public BicepValue Triggers { get => _triggers; set => _triggers.Assign(value); } - private readonly BicepValue _triggers; + public AutoHealTriggers Triggers + { + get { Initialize(); return _triggers!; } + set { Initialize(); AssignOrReplace(ref _triggers, value); } + } + private AutoHealTriggers? _triggers; /// /// Actions to be executed when a rule is triggered. /// - public BicepValue Actions { get => _actions; set => _actions.Assign(value); } - private readonly BicepValue _actions; + public AutoHealActions Actions + { + get { Initialize(); return _actions!; } + set { Initialize(); AssignOrReplace(ref _actions, value); } + } + private AutoHealActions? _actions; /// /// Creates a new AutoHealRules. /// public AutoHealRules() { - _triggers = BicepValue.DefineProperty(this, "Triggers", ["triggers"]); - _actions = BicepValue.DefineProperty(this, "Actions", ["actions"]); + } + + /// + /// Define all the provisionable properties of AutoHealRules. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _triggers = DefineModelProperty("Triggers", ["triggers"]); + _actions = DefineModelProperty("Actions", ["actions"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealTriggers.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealTriggers.cs index ba72cef70fef7..1c156e1a1c643 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealTriggers.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/AutoHealTriggers.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,49 +19,81 @@ public partial class AutoHealTriggers : ProvisionableConstruct /// /// A rule based on total requests. /// - public BicepValue Requests { get => _requests; set => _requests.Assign(value); } - private readonly BicepValue _requests; + public RequestsBasedTrigger Requests + { + get { Initialize(); return _requests!; } + set { Initialize(); AssignOrReplace(ref _requests, value); } + } + private RequestsBasedTrigger? _requests; /// /// A rule based on private bytes. /// - public BicepValue PrivateBytesInKB { get => _privateBytesInKB; set => _privateBytesInKB.Assign(value); } - private readonly BicepValue _privateBytesInKB; + public BicepValue PrivateBytesInKB + { + get { Initialize(); return _privateBytesInKB!; } + set { Initialize(); _privateBytesInKB!.Assign(value); } + } + private BicepValue? _privateBytesInKB; /// /// A rule based on status codes. /// - public BicepList StatusCodes { get => _statusCodes; set => _statusCodes.Assign(value); } - private readonly BicepList _statusCodes; + public BicepList StatusCodes + { + get { Initialize(); return _statusCodes!; } + set { Initialize(); _statusCodes!.Assign(value); } + } + private BicepList? _statusCodes; /// /// A rule based on request execution time. /// - public BicepValue SlowRequests { get => _slowRequests; set => _slowRequests.Assign(value); } - private readonly BicepValue _slowRequests; + public SlowRequestsBasedTrigger SlowRequests + { + get { Initialize(); return _slowRequests!; } + set { Initialize(); AssignOrReplace(ref _slowRequests, value); } + } + private SlowRequestsBasedTrigger? _slowRequests; /// /// A rule based on multiple Slow Requests Rule with path. /// - public BicepList SlowRequestsWithPath { get => _slowRequestsWithPath; set => _slowRequestsWithPath.Assign(value); } - private readonly BicepList _slowRequestsWithPath; + public BicepList SlowRequestsWithPath + { + get { Initialize(); return _slowRequestsWithPath!; } + set { Initialize(); _slowRequestsWithPath!.Assign(value); } + } + private BicepList? _slowRequestsWithPath; /// /// A rule based on status codes ranges. /// - public BicepList StatusCodesRange { get => _statusCodesRange; set => _statusCodesRange.Assign(value); } - private readonly BicepList _statusCodesRange; + public BicepList StatusCodesRange + { + get { Initialize(); return _statusCodesRange!; } + set { Initialize(); _statusCodesRange!.Assign(value); } + } + private BicepList? _statusCodesRange; /// /// Creates a new AutoHealTriggers. /// public AutoHealTriggers() { - _requests = BicepValue.DefineProperty(this, "Requests", ["requests"]); - _privateBytesInKB = BicepValue.DefineProperty(this, "PrivateBytesInKB", ["privateBytesInKB"]); - _statusCodes = BicepList.DefineProperty(this, "StatusCodes", ["statusCodes"]); - _slowRequests = BicepValue.DefineProperty(this, "SlowRequests", ["slowRequests"]); - _slowRequestsWithPath = BicepList.DefineProperty(this, "SlowRequestsWithPath", ["slowRequestsWithPath"]); - _statusCodesRange = BicepList.DefineProperty(this, "StatusCodesRange", ["statusCodesRange"]); + } + + /// + /// Define all the provisionable properties of AutoHealTriggers. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _requests = DefineModelProperty("Requests", ["requests"]); + _privateBytesInKB = DefineProperty("PrivateBytesInKB", ["privateBytesInKB"]); + _statusCodes = DefineListProperty("StatusCodes", ["statusCodes"]); + _slowRequests = DefineModelProperty("SlowRequests", ["slowRequests"]); + _slowRequestsWithPath = DefineListProperty("SlowRequestsWithPath", ["slowRequestsWithPath"]); + _statusCodesRange = DefineListProperty("StatusCodesRange", ["statusCodesRange"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/CertificateOrderContact.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/CertificateOrderContact.cs index 07fe60569980e..fce7879caba5b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/CertificateOrderContact.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/CertificateOrderContact.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,55 @@ public partial class CertificateOrderContact : ProvisionableConstruct /// /// Gets the email. /// - public BicepValue Email { get => _email; } - private readonly BicepValue _email; + public BicepValue Email + { + get { Initialize(); return _email!; } + } + private BicepValue? _email; /// /// Gets the name first. /// - public BicepValue NameFirst { get => _nameFirst; } - private readonly BicepValue _nameFirst; + public BicepValue NameFirst + { + get { Initialize(); return _nameFirst!; } + } + private BicepValue? _nameFirst; /// /// Gets the name last. /// - public BicepValue NameLast { get => _nameLast; } - private readonly BicepValue _nameLast; + public BicepValue NameLast + { + get { Initialize(); return _nameLast!; } + } + private BicepValue? _nameLast; /// /// Gets the phone. /// - public BicepValue Phone { get => _phone; } - private readonly BicepValue _phone; + public BicepValue Phone + { + get { Initialize(); return _phone!; } + } + private BicepValue? _phone; /// /// Creates a new CertificateOrderContact. /// public CertificateOrderContact() { - _email = BicepValue.DefineProperty(this, "Email", ["email"], isOutput: true); - _nameFirst = BicepValue.DefineProperty(this, "NameFirst", ["nameFirst"], isOutput: true); - _nameLast = BicepValue.DefineProperty(this, "NameLast", ["nameLast"], isOutput: true); - _phone = BicepValue.DefineProperty(this, "Phone", ["phone"], isOutput: true); + } + + /// + /// Define all the provisionable properties of CertificateOrderContact. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _email = DefineProperty("Email", ["email"], isOutput: true); + _nameFirst = DefineProperty("NameFirst", ["nameFirst"], isOutput: true); + _nameLast = DefineProperty("NameLast", ["nameLast"], isOutput: true); + _phone = DefineProperty("Phone", ["phone"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/CloningInfo.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/CloningInfo.cs index d6737db53e03e..d82bdf80a6d2f 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/CloningInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/CloningInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -19,29 +21,45 @@ public partial class CloningInfo : ProvisionableConstruct /// Correlation ID of cloning operation. This ID ties multiple cloning /// operations together to use the same snapshot. /// - public BicepValue CorrelationId { get => _correlationId; set => _correlationId.Assign(value); } - private readonly BicepValue _correlationId; + public BicepValue CorrelationId + { + get { Initialize(); return _correlationId!; } + set { Initialize(); _correlationId!.Assign(value); } + } + private BicepValue? _correlationId; /// /// <code>true</code> to overwrite destination app; otherwise, /// <code>false</code>. /// - public BicepValue CanOverwrite { get => _canOverwrite; set => _canOverwrite.Assign(value); } - private readonly BicepValue _canOverwrite; + public BicepValue CanOverwrite + { + get { Initialize(); return _canOverwrite!; } + set { Initialize(); _canOverwrite!.Assign(value); } + } + private BicepValue? _canOverwrite; /// /// <code>true</code> to clone custom hostnames from source /// app; otherwise, <code>false</code>. /// - public BicepValue CloneCustomHostNames { get => _cloneCustomHostNames; set => _cloneCustomHostNames.Assign(value); } - private readonly BicepValue _cloneCustomHostNames; + public BicepValue CloneCustomHostNames + { + get { Initialize(); return _cloneCustomHostNames!; } + set { Initialize(); _cloneCustomHostNames!.Assign(value); } + } + private BicepValue? _cloneCustomHostNames; /// /// <code>true</code> to clone source control from source app; /// otherwise, <code>false</code>. /// - public BicepValue CloneSourceControl { get => _cloneSourceControl; set => _cloneSourceControl.Assign(value); } - private readonly BicepValue _cloneSourceControl; + public BicepValue CloneSourceControl + { + get { Initialize(); return _cloneSourceControl!; } + set { Initialize(); _cloneSourceControl!.Assign(value); } + } + private BicepValue? _cloneSourceControl; /// /// ARM resource ID of the source app. App resource ID is of the form @@ -50,66 +68,102 @@ public partial class CloningInfo : ProvisionableConstruct /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} /// for other slots. /// - public BicepValue SourceWebAppId { get => _sourceWebAppId; set => _sourceWebAppId.Assign(value); } - private readonly BicepValue _sourceWebAppId; + public BicepValue SourceWebAppId + { + get { Initialize(); return _sourceWebAppId!; } + set { Initialize(); _sourceWebAppId!.Assign(value); } + } + private BicepValue? _sourceWebAppId; /// /// Location of source app ex: West US or North Europe. /// - public BicepValue SourceWebAppLocation { get => _sourceWebAppLocation; set => _sourceWebAppLocation.Assign(value); } - private readonly BicepValue _sourceWebAppLocation; + public BicepValue SourceWebAppLocation + { + get { Initialize(); return _sourceWebAppLocation!; } + set { Initialize(); _sourceWebAppLocation!.Assign(value); } + } + private BicepValue? _sourceWebAppLocation; /// /// App Service Environment. /// - public BicepValue HostingEnvironment { get => _hostingEnvironment; set => _hostingEnvironment.Assign(value); } - private readonly BicepValue _hostingEnvironment; + public BicepValue HostingEnvironment + { + get { Initialize(); return _hostingEnvironment!; } + set { Initialize(); _hostingEnvironment!.Assign(value); } + } + private BicepValue? _hostingEnvironment; /// /// Application setting overrides for cloned app. If specified, these /// settings override the settings cloned from source app. /// Otherwise, application settings from source app are retained. /// - public BicepDictionary AppSettingsOverrides { get => _appSettingsOverrides; set => _appSettingsOverrides.Assign(value); } - private readonly BicepDictionary _appSettingsOverrides; + public BicepDictionary AppSettingsOverrides + { + get { Initialize(); return _appSettingsOverrides!; } + set { Initialize(); _appSettingsOverrides!.Assign(value); } + } + private BicepDictionary? _appSettingsOverrides; /// /// <code>true</code> to configure load balancing for source /// and destination app. /// - public BicepValue ConfigureLoadBalancing { get => _configureLoadBalancing; set => _configureLoadBalancing.Assign(value); } - private readonly BicepValue _configureLoadBalancing; + public BicepValue ConfigureLoadBalancing + { + get { Initialize(); return _configureLoadBalancing!; } + set { Initialize(); _configureLoadBalancing!.Assign(value); } + } + private BicepValue? _configureLoadBalancing; /// /// ARM resource ID of the Traffic Manager profile to use, if it exists. /// Traffic Manager resource ID is of the form /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. /// - public BicepValue TrafficManagerProfileId { get => _trafficManagerProfileId; set => _trafficManagerProfileId.Assign(value); } - private readonly BicepValue _trafficManagerProfileId; + public BicepValue TrafficManagerProfileId + { + get { Initialize(); return _trafficManagerProfileId!; } + set { Initialize(); _trafficManagerProfileId!.Assign(value); } + } + private BicepValue? _trafficManagerProfileId; /// /// Name of Traffic Manager profile to create. This is only needed if /// Traffic Manager profile does not already exist. /// - public BicepValue TrafficManagerProfileName { get => _trafficManagerProfileName; set => _trafficManagerProfileName.Assign(value); } - private readonly BicepValue _trafficManagerProfileName; + public BicepValue TrafficManagerProfileName + { + get { Initialize(); return _trafficManagerProfileName!; } + set { Initialize(); _trafficManagerProfileName!.Assign(value); } + } + private BicepValue? _trafficManagerProfileName; /// /// Creates a new CloningInfo. /// public CloningInfo() { - _correlationId = BicepValue.DefineProperty(this, "CorrelationId", ["correlationId"]); - _canOverwrite = BicepValue.DefineProperty(this, "CanOverwrite", ["overwrite"]); - _cloneCustomHostNames = BicepValue.DefineProperty(this, "CloneCustomHostNames", ["cloneCustomHostNames"]); - _cloneSourceControl = BicepValue.DefineProperty(this, "CloneSourceControl", ["cloneSourceControl"]); - _sourceWebAppId = BicepValue.DefineProperty(this, "SourceWebAppId", ["sourceWebAppId"]); - _sourceWebAppLocation = BicepValue.DefineProperty(this, "SourceWebAppLocation", ["sourceWebAppLocation"]); - _hostingEnvironment = BicepValue.DefineProperty(this, "HostingEnvironment", ["hostingEnvironment"]); - _appSettingsOverrides = BicepDictionary.DefineProperty(this, "AppSettingsOverrides", ["appSettingsOverrides"]); - _configureLoadBalancing = BicepValue.DefineProperty(this, "ConfigureLoadBalancing", ["configureLoadBalancing"]); - _trafficManagerProfileId = BicepValue.DefineProperty(this, "TrafficManagerProfileId", ["trafficManagerProfileId"]); - _trafficManagerProfileName = BicepValue.DefineProperty(this, "TrafficManagerProfileName", ["trafficManagerProfileName"]); + } + + /// + /// Define all the provisionable properties of CloningInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _correlationId = DefineProperty("CorrelationId", ["correlationId"]); + _canOverwrite = DefineProperty("CanOverwrite", ["overwrite"]); + _cloneCustomHostNames = DefineProperty("CloneCustomHostNames", ["cloneCustomHostNames"]); + _cloneSourceControl = DefineProperty("CloneSourceControl", ["cloneSourceControl"]); + _sourceWebAppId = DefineProperty("SourceWebAppId", ["sourceWebAppId"]); + _sourceWebAppLocation = DefineProperty("SourceWebAppLocation", ["sourceWebAppLocation"]); + _hostingEnvironment = DefineProperty("HostingEnvironment", ["hostingEnvironment"]); + _appSettingsOverrides = DefineDictionaryProperty("AppSettingsOverrides", ["appSettingsOverrides"]); + _configureLoadBalancing = DefineProperty("ConfigureLoadBalancing", ["configureLoadBalancing"]); + _trafficManagerProfileId = DefineProperty("TrafficManagerProfileId", ["trafficManagerProfileId"]); + _trafficManagerProfileName = DefineProperty("TrafficManagerProfileName", ["trafficManagerProfileName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ConnStringInfo.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ConnStringInfo.cs index ee3a74160938a..0f01cb6772978 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ConnStringInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ConnStringInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class ConnStringInfo : ProvisionableConstruct /// /// Name of connection string. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Connection string value. /// - public BicepValue ConnectionString { get => _connectionString; set => _connectionString.Assign(value); } - private readonly BicepValue _connectionString; + public BicepValue ConnectionString + { + get { Initialize(); return _connectionString!; } + set { Initialize(); _connectionString!.Assign(value); } + } + private BicepValue? _connectionString; /// /// Type of database. /// - public BicepValue ConnectionStringType { get => _connectionStringType; set => _connectionStringType.Assign(value); } - private readonly BicepValue _connectionStringType; + public BicepValue ConnectionStringType + { + get { Initialize(); return _connectionStringType!; } + set { Initialize(); _connectionStringType!.Assign(value); } + } + private BicepValue? _connectionStringType; /// /// Creates a new ConnStringInfo. /// public ConnStringInfo() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _connectionString = BicepValue.DefineProperty(this, "ConnectionString", ["connectionString"]); - _connectionStringType = BicepValue.DefineProperty(this, "ConnectionStringType", ["type"]); + } + + /// + /// Define all the provisionable properties of ConnStringInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _connectionString = DefineProperty("ConnectionString", ["connectionString"]); + _connectionStringType = DefineProperty("ConnectionStringType", ["type"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ContainerAppsConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ContainerAppsConfiguration.cs index 99b85d9e5b44a..38d64a60c453d 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ContainerAppsConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ContainerAppsConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,23 +19,35 @@ public partial class ContainerAppsConfiguration : ProvisionableConstruct /// Azure Monitor instrumentation key used by Dapr to export Service to /// Service communication telemetry. /// - public BicepValue DaprAIInstrumentationKey { get => _daprAIInstrumentationKey; set => _daprAIInstrumentationKey.Assign(value); } - private readonly BicepValue _daprAIInstrumentationKey; + public BicepValue DaprAIInstrumentationKey + { + get { Initialize(); return _daprAIInstrumentationKey!; } + set { Initialize(); _daprAIInstrumentationKey!.Assign(value); } + } + private BicepValue? _daprAIInstrumentationKey; /// /// IP range in CIDR notation that can be reserved for environment /// infrastructure IP addresses. It must not overlap with any other Subnet /// IP ranges. /// - public BicepValue PlatformReservedCidr { get => _platformReservedCidr; set => _platformReservedCidr.Assign(value); } - private readonly BicepValue _platformReservedCidr; + public BicepValue PlatformReservedCidr + { + get { Initialize(); return _platformReservedCidr!; } + set { Initialize(); _platformReservedCidr!.Assign(value); } + } + private BicepValue? _platformReservedCidr; /// /// An IP address from the IP range defined by platformReservedCidr that /// will be reserved for the internal DNS server. /// - public BicepValue PlatformReservedDnsIP { get => _platformReservedDnsIP; set => _platformReservedDnsIP.Assign(value); } - private readonly BicepValue _platformReservedDnsIP; + public BicepValue PlatformReservedDnsIP + { + get { Initialize(); return _platformReservedDnsIP!; } + set { Initialize(); _platformReservedDnsIP!.Assign(value); } + } + private BicepValue? _platformReservedDnsIP; /// /// Resource ID of a subnet for control plane infrastructure components. @@ -41,8 +55,12 @@ public partial class ContainerAppsConfiguration : ProvisionableConstruct /// appSubnetResourceId. Must not overlap with the IP range defined in /// platformReservedCidr, if defined. /// - public BicepValue ControlPlaneSubnetResourceId { get => _controlPlaneSubnetResourceId; set => _controlPlaneSubnetResourceId.Assign(value); } - private readonly BicepValue _controlPlaneSubnetResourceId; + public BicepValue ControlPlaneSubnetResourceId + { + get { Initialize(); return _controlPlaneSubnetResourceId!; } + set { Initialize(); _controlPlaneSubnetResourceId!.Assign(value); } + } + private BicepValue? _controlPlaneSubnetResourceId; /// /// Resource ID of a subnet for control plane infrastructure components. @@ -50,27 +68,43 @@ public partial class ContainerAppsConfiguration : ProvisionableConstruct /// appSubnetResourceId. Must not overlap with the IP range defined in /// platformReservedCidr, if defined. /// - public BicepValue AppSubnetResourceId { get => _appSubnetResourceId; set => _appSubnetResourceId.Assign(value); } - private readonly BicepValue _appSubnetResourceId; + public BicepValue AppSubnetResourceId + { + get { Initialize(); return _appSubnetResourceId!; } + set { Initialize(); _appSubnetResourceId!.Assign(value); } + } + private BicepValue? _appSubnetResourceId; /// /// CIDR notation IP range assigned to the Docker bridge network. It must /// not overlap with any Subnet IP ranges or the IP range defined in /// platformReservedCidr, if defined. /// - public BicepValue DockerBridgeCidr { get => _dockerBridgeCidr; set => _dockerBridgeCidr.Assign(value); } - private readonly BicepValue _dockerBridgeCidr; + public BicepValue DockerBridgeCidr + { + get { Initialize(); return _dockerBridgeCidr!; } + set { Initialize(); _dockerBridgeCidr!.Assign(value); } + } + private BicepValue? _dockerBridgeCidr; /// /// Creates a new ContainerAppsConfiguration. /// public ContainerAppsConfiguration() { - _daprAIInstrumentationKey = BicepValue.DefineProperty(this, "DaprAIInstrumentationKey", ["daprAIInstrumentationKey"]); - _platformReservedCidr = BicepValue.DefineProperty(this, "PlatformReservedCidr", ["platformReservedCidr"]); - _platformReservedDnsIP = BicepValue.DefineProperty(this, "PlatformReservedDnsIP", ["platformReservedDnsIP"]); - _controlPlaneSubnetResourceId = BicepValue.DefineProperty(this, "ControlPlaneSubnetResourceId", ["controlPlaneSubnetResourceId"]); - _appSubnetResourceId = BicepValue.DefineProperty(this, "AppSubnetResourceId", ["appSubnetResourceId"]); - _dockerBridgeCidr = BicepValue.DefineProperty(this, "DockerBridgeCidr", ["dockerBridgeCidr"]); + } + + /// + /// Define all the provisionable properties of ContainerAppsConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _daprAIInstrumentationKey = DefineProperty("DaprAIInstrumentationKey", ["daprAIInstrumentationKey"]); + _platformReservedCidr = DefineProperty("PlatformReservedCidr", ["platformReservedCidr"]); + _platformReservedDnsIP = DefineProperty("PlatformReservedDnsIP", ["platformReservedDnsIP"]); + _controlPlaneSubnetResourceId = DefineProperty("ControlPlaneSubnetResourceId", ["controlPlaneSubnetResourceId"]); + _appSubnetResourceId = DefineProperty("AppSubnetResourceId", ["appSubnetResourceId"]); + _dockerBridgeCidr = DefineProperty("DockerBridgeCidr", ["dockerBridgeCidr"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/CustomDnsSuffixConfigurationData.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/CustomDnsSuffixConfigurationData.cs index 32dae73cbe4f1..2fb34ffbc802b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/CustomDnsSuffixConfigurationData.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/CustomDnsSuffixConfigurationData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -19,75 +21,115 @@ public partial class CustomDnsSuffixConfigurationData : ProvisionableConstruct /// /// Gets the provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the provisioning details. /// - public BicepValue ProvisioningDetails { get => _provisioningDetails; } - private readonly BicepValue _provisioningDetails; + public BicepValue ProvisioningDetails + { + get { Initialize(); return _provisioningDetails!; } + } + private BicepValue? _provisioningDetails; /// /// The default custom domain suffix to use for all sites deployed on the /// ASE. /// - public BicepValue DnsSuffix { get => _dnsSuffix; set => _dnsSuffix.Assign(value); } - private readonly BicepValue _dnsSuffix; + public BicepValue DnsSuffix + { + get { Initialize(); return _dnsSuffix!; } + set { Initialize(); _dnsSuffix!.Assign(value); } + } + private BicepValue? _dnsSuffix; /// /// The URL referencing the Azure Key Vault certificate secret that should /// be used as the default SSL/TLS certificate for sites with the custom /// domain suffix. /// - public BicepValue CertificateUri { get => _certificateUri; set => _certificateUri.Assign(value); } - private readonly BicepValue _certificateUri; + public BicepValue CertificateUri + { + get { Initialize(); return _certificateUri!; } + set { Initialize(); _certificateUri!.Assign(value); } + } + private BicepValue? _certificateUri; /// /// The user-assigned identity to use for resolving the key vault /// certificate reference. If not specified, the system-assigned ASE /// identity will be used if available. /// - public BicepValue KeyVaultReferenceIdentity { get => _keyVaultReferenceIdentity; set => _keyVaultReferenceIdentity.Assign(value); } - private readonly BicepValue _keyVaultReferenceIdentity; + public BicepValue KeyVaultReferenceIdentity + { + get { Initialize(); return _keyVaultReferenceIdentity!; } + set { Initialize(); _keyVaultReferenceIdentity!.Assign(value); } + } + private BicepValue? _keyVaultReferenceIdentity; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new CustomDnsSuffixConfigurationData. /// public CustomDnsSuffixConfigurationData() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _provisioningDetails = BicepValue.DefineProperty(this, "ProvisioningDetails", ["properties", "provisioningDetails"], isOutput: true); - _dnsSuffix = BicepValue.DefineProperty(this, "DnsSuffix", ["properties", "dnsSuffix"]); - _certificateUri = BicepValue.DefineProperty(this, "CertificateUri", ["properties", "certificateUrl"]); - _keyVaultReferenceIdentity = BicepValue.DefineProperty(this, "KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CustomDnsSuffixConfigurationData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _provisioningDetails = DefineProperty("ProvisioningDetails", ["properties", "provisioningDetails"], isOutput: true); + _dnsSuffix = DefineProperty("DnsSuffix", ["properties", "dnsSuffix"]); + _certificateUri = DefineProperty("CertificateUri", ["properties", "certificateUrl"]); + _keyVaultReferenceIdentity = DefineProperty("KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"]); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/DomainPurchaseConsent.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/DomainPurchaseConsent.cs index 5b4516e702b0e..23a03276efebf 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/DomainPurchaseConsent.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/DomainPurchaseConsent.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -20,28 +22,48 @@ public partial class DomainPurchaseConsent : ProvisionableConstruct /// using ListLegalAgreements API under /// <code>TopLevelDomain</code> resource. /// - public BicepList AgreementKeys { get => _agreementKeys; set => _agreementKeys.Assign(value); } - private readonly BicepList _agreementKeys; + public BicepList AgreementKeys + { + get { Initialize(); return _agreementKeys!; } + set { Initialize(); _agreementKeys!.Assign(value); } + } + private BicepList? _agreementKeys; /// /// Client IP address. /// - public BicepValue AgreedBy { get => _agreedBy; set => _agreedBy.Assign(value); } - private readonly BicepValue _agreedBy; + public BicepValue AgreedBy + { + get { Initialize(); return _agreedBy!; } + set { Initialize(); _agreedBy!.Assign(value); } + } + private BicepValue? _agreedBy; /// /// Timestamp when the agreements were accepted. /// - public BicepValue AgreedOn { get => _agreedOn; set => _agreedOn.Assign(value); } - private readonly BicepValue _agreedOn; + public BicepValue AgreedOn + { + get { Initialize(); return _agreedOn!; } + set { Initialize(); _agreedOn!.Assign(value); } + } + private BicepValue? _agreedOn; /// /// Creates a new DomainPurchaseConsent. /// public DomainPurchaseConsent() { - _agreementKeys = BicepList.DefineProperty(this, "AgreementKeys", ["agreementKeys"]); - _agreedBy = BicepValue.DefineProperty(this, "AgreedBy", ["agreedBy"]); - _agreedOn = BicepValue.DefineProperty(this, "AgreedOn", ["agreedAt"]); + } + + /// + /// Define all the provisionable properties of DomainPurchaseConsent. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _agreementKeys = DefineListProperty("AgreementKeys", ["agreementKeys"]); + _agreedBy = DefineProperty("AgreedBy", ["agreedBy"]); + _agreedOn = DefineProperty("AgreedOn", ["agreedAt"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FileSystemHttpLogsConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FileSystemHttpLogsConfig.cs index 26ae674ea5aea..65295ef5b797c 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FileSystemHttpLogsConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FileSystemHttpLogsConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,30 +20,50 @@ public partial class FileSystemHttpLogsConfig : ProvisionableConstruct /// reached old log files will be removed to make space for new ones. /// Value can range between 25 and 100. /// - public BicepValue RetentionInMb { get => _retentionInMb; set => _retentionInMb.Assign(value); } - private readonly BicepValue _retentionInMb; + public BicepValue RetentionInMb + { + get { Initialize(); return _retentionInMb!; } + set { Initialize(); _retentionInMb!.Assign(value); } + } + private BicepValue? _retentionInMb; /// /// Retention in days. Remove files older than X days. /// 0 or lower means no retention. /// - public BicepValue RetentionInDays { get => _retentionInDays; set => _retentionInDays.Assign(value); } - private readonly BicepValue _retentionInDays; + public BicepValue RetentionInDays + { + get { Initialize(); return _retentionInDays!; } + set { Initialize(); _retentionInDays!.Assign(value); } + } + private BicepValue? _retentionInDays; /// /// True if configuration is enabled, false if it is disabled and null if /// configuration is not set. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Creates a new FileSystemHttpLogsConfig. /// public FileSystemHttpLogsConfig() { - _retentionInMb = BicepValue.DefineProperty(this, "RetentionInMb", ["retentionInMb"]); - _retentionInDays = BicepValue.DefineProperty(this, "RetentionInDays", ["retentionInDays"]); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); + } + + /// + /// Define all the provisionable properties of FileSystemHttpLogsConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _retentionInMb = DefineProperty("RetentionInMb", ["retentionInMb"]); + _retentionInDays = DefineProperty("RetentionInDays", ["retentionInDays"]); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppAlwaysReadyConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppAlwaysReadyConfig.cs index 7c815e7fb3bf3..3ea28999b74ea 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppAlwaysReadyConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppAlwaysReadyConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,23 +20,39 @@ public partial class FunctionAppAlwaysReadyConfig : ProvisionableConstruct /// Either a function group or a function name is required. For additional /// information see https://aka.ms/flexconsumption/alwaysready. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Sets the number of 'Always Ready' instances for a given /// function group or a specific function. For additional information see /// https://aka.ms/flexconsumption/alwaysready. /// - public BicepValue InstanceCount { get => _instanceCount; set => _instanceCount.Assign(value); } - private readonly BicepValue _instanceCount; + public BicepValue InstanceCount + { + get { Initialize(); return _instanceCount!; } + set { Initialize(); _instanceCount!.Assign(value); } + } + private BicepValue? _instanceCount; /// /// Creates a new FunctionAppAlwaysReadyConfig. /// public FunctionAppAlwaysReadyConfig() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _instanceCount = BicepValue.DefineProperty(this, "InstanceCount", ["instanceCount"]); + } + + /// + /// Define all the provisionable properties of FunctionAppAlwaysReadyConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _instanceCount = DefineProperty("InstanceCount", ["instanceCount"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppConfig.cs index e3850191e0d55..7290cd2aaee8f 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,48 @@ public partial class FunctionAppConfig : ProvisionableConstruct /// /// Storage for deployed package used by the function app. /// - public BicepValue DeploymentStorage { get => _deploymentStorage; set => _deploymentStorage.Assign(value); } - private readonly BicepValue _deploymentStorage; + public FunctionAppStorage DeploymentStorage + { + get { Initialize(); return _deploymentStorage!; } + set { Initialize(); AssignOrReplace(ref _deploymentStorage, value); } + } + private FunctionAppStorage? _deploymentStorage; /// /// Function app runtime settings. /// - public BicepValue Runtime { get => _runtime; set => _runtime.Assign(value); } - private readonly BicepValue _runtime; + public FunctionAppRuntime Runtime + { + get { Initialize(); return _runtime!; } + set { Initialize(); AssignOrReplace(ref _runtime, value); } + } + private FunctionAppRuntime? _runtime; /// /// Function app scale and concurrency settings. /// - public BicepValue ScaleAndConcurrency { get => _scaleAndConcurrency; set => _scaleAndConcurrency.Assign(value); } - private readonly BicepValue _scaleAndConcurrency; + public FunctionAppScaleAndConcurrency ScaleAndConcurrency + { + get { Initialize(); return _scaleAndConcurrency!; } + set { Initialize(); AssignOrReplace(ref _scaleAndConcurrency, value); } + } + private FunctionAppScaleAndConcurrency? _scaleAndConcurrency; /// /// Creates a new FunctionAppConfig. /// public FunctionAppConfig() { - _deploymentStorage = BicepValue.DefineProperty(this, "DeploymentStorage", ["deployment", "storage"]); - _runtime = BicepValue.DefineProperty(this, "Runtime", ["runtime"]); - _scaleAndConcurrency = BicepValue.DefineProperty(this, "ScaleAndConcurrency", ["scaleAndConcurrency"]); + } + + /// + /// Define all the provisionable properties of FunctionAppConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _deploymentStorage = DefineModelProperty("DeploymentStorage", ["deployment", "storage"]); + _runtime = DefineModelProperty("Runtime", ["runtime"]); + _scaleAndConcurrency = DefineModelProperty("ScaleAndConcurrency", ["scaleAndConcurrency"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppResourceConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppResourceConfig.cs index dc89345a731ee..fd828eb5d3da2 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppResourceConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppResourceConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class FunctionAppResourceConfig : ProvisionableConstruct /// /// Required CPU in cores, e.g. 0.5. /// - public BicepValue Cpu { get => _cpu; set => _cpu.Assign(value); } - private readonly BicepValue _cpu; + public BicepValue Cpu + { + get { Initialize(); return _cpu!; } + set { Initialize(); _cpu!.Assign(value); } + } + private BicepValue? _cpu; /// /// Required memory, e.g. "1Gi". /// - public BicepValue Memory { get => _memory; set => _memory.Assign(value); } - private readonly BicepValue _memory; + public BicepValue Memory + { + get { Initialize(); return _memory!; } + set { Initialize(); _memory!.Assign(value); } + } + private BicepValue? _memory; /// /// Creates a new FunctionAppResourceConfig. /// public FunctionAppResourceConfig() { - _cpu = BicepValue.DefineProperty(this, "Cpu", ["cpu"]); - _memory = BicepValue.DefineProperty(this, "Memory", ["memory"]); + } + + /// + /// Define all the provisionable properties of FunctionAppResourceConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _cpu = DefineProperty("Cpu", ["cpu"]); + _memory = DefineProperty("Memory", ["memory"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppRuntime.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppRuntime.cs index 267aad318b072..d597c2e363f76 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppRuntime.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppRuntime.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class FunctionAppRuntime : ProvisionableConstruct /// Function app runtime name. Available options: dotnet-isolated, node, /// java, powershell, python, custom. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Function app runtime version. Example: 8 (for dotnet-isolated). /// - public BicepValue Version { get => _version; set => _version.Assign(value); } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + set { Initialize(); _version!.Assign(value); } + } + private BicepValue? _version; /// /// Creates a new FunctionAppRuntime. /// public FunctionAppRuntime() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _version = BicepValue.DefineProperty(this, "Version", ["version"]); + } + + /// + /// Define all the provisionable properties of FunctionAppRuntime. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _version = DefineProperty("Version", ["version"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppScaleAndConcurrency.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppScaleAndConcurrency.cs index 7b1913d5fae45..bd9b831c6b0e6 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppScaleAndConcurrency.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppScaleAndConcurrency.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,36 +19,61 @@ public partial class FunctionAppScaleAndConcurrency : ProvisionableConstruct /// /// 'Always Ready' configuration for the function app. /// - public BicepList AlwaysReady { get => _alwaysReady; set => _alwaysReady.Assign(value); } - private readonly BicepList _alwaysReady; + public BicepList AlwaysReady + { + get { Initialize(); return _alwaysReady!; } + set { Initialize(); _alwaysReady!.Assign(value); } + } + private BicepList? _alwaysReady; /// /// The maximum number of instances for the function app. /// - public BicepValue MaximumInstanceCount { get => _maximumInstanceCount; set => _maximumInstanceCount.Assign(value); } - private readonly BicepValue _maximumInstanceCount; + public BicepValue MaximumInstanceCount + { + get { Initialize(); return _maximumInstanceCount!; } + set { Initialize(); _maximumInstanceCount!.Assign(value); } + } + private BicepValue? _maximumInstanceCount; /// /// Set the amount of memory allocated to each instance of the function app /// in MB. CPU and network bandwidth are allocated proportionally. /// - public BicepValue InstanceMemoryMB { get => _instanceMemoryMB; set => _instanceMemoryMB.Assign(value); } - private readonly BicepValue _instanceMemoryMB; + public BicepValue InstanceMemoryMB + { + get { Initialize(); return _instanceMemoryMB!; } + set { Initialize(); _instanceMemoryMB!.Assign(value); } + } + private BicepValue? _instanceMemoryMB; /// /// The maximum number of concurrent HTTP trigger invocations per instance. /// - public BicepValue HttpPerInstanceConcurrency { get => _httpPerInstanceConcurrency; set => _httpPerInstanceConcurrency.Assign(value); } - private readonly BicepValue _httpPerInstanceConcurrency; + public BicepValue HttpPerInstanceConcurrency + { + get { Initialize(); return _httpPerInstanceConcurrency!; } + set { Initialize(); _httpPerInstanceConcurrency!.Assign(value); } + } + private BicepValue? _httpPerInstanceConcurrency; /// /// Creates a new FunctionAppScaleAndConcurrency. /// public FunctionAppScaleAndConcurrency() { - _alwaysReady = BicepList.DefineProperty(this, "AlwaysReady", ["alwaysReady"]); - _maximumInstanceCount = BicepValue.DefineProperty(this, "MaximumInstanceCount", ["maximumInstanceCount"]); - _instanceMemoryMB = BicepValue.DefineProperty(this, "InstanceMemoryMB", ["instanceMemoryMB"]); - _httpPerInstanceConcurrency = BicepValue.DefineProperty(this, "HttpPerInstanceConcurrency", ["triggers", "http", "perInstanceConcurrency"]); + } + + /// + /// Define all the provisionable properties of + /// FunctionAppScaleAndConcurrency. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _alwaysReady = DefineListProperty("AlwaysReady", ["alwaysReady"]); + _maximumInstanceCount = DefineProperty("MaximumInstanceCount", ["maximumInstanceCount"]); + _instanceMemoryMB = DefineProperty("InstanceMemoryMB", ["instanceMemoryMB"]); + _httpPerInstanceConcurrency = DefineProperty("HttpPerInstanceConcurrency", ["triggers", "http", "perInstanceConcurrency"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppStorage.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppStorage.cs index 41b48af40e76a..cdc9e4491fcdc 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppStorage.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppStorage.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,30 +18,50 @@ public partial class FunctionAppStorage : ProvisionableConstruct /// /// Property to select Azure Storage type. Available options: blobContainer. /// - public BicepValue StorageType { get => _storageType; set => _storageType.Assign(value); } - private readonly BicepValue _storageType; + public BicepValue StorageType + { + get { Initialize(); return _storageType!; } + set { Initialize(); _storageType!.Assign(value); } + } + private BicepValue? _storageType; /// /// Property to set the URL for the selected Azure Storage type. Example: /// For blobContainer, the value could be /// https://<storageAccountName>.blob.core.windows.net/<containerName>. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Authentication method to access the storage account for deployment. /// - public BicepValue Authentication { get => _authentication; set => _authentication.Assign(value); } - private readonly BicepValue _authentication; + public FunctionAppStorageAuthentication Authentication + { + get { Initialize(); return _authentication!; } + set { Initialize(); AssignOrReplace(ref _authentication, value); } + } + private FunctionAppStorageAuthentication? _authentication; /// /// Creates a new FunctionAppStorage. /// public FunctionAppStorage() { - _storageType = BicepValue.DefineProperty(this, "StorageType", ["type"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _authentication = BicepValue.DefineProperty(this, "Authentication", ["authentication"]); + } + + /// + /// Define all the provisionable properties of FunctionAppStorage. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _storageType = DefineProperty("StorageType", ["type"]); + _value = DefineProperty("Value", ["value"]); + _authentication = DefineModelProperty("Authentication", ["authentication"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppStorageAuthentication.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppStorageAuthentication.cs index a5133972afd5f..57cb635bef777 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppStorageAuthentication.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/FunctionAppStorageAuthentication.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,32 +20,53 @@ public partial class FunctionAppStorageAuthentication : ProvisionableConstruct /// account. Available options: SystemAssignedIdentity, /// UserAssignedIdentity, StorageAccountConnectionString. /// - public BicepValue AuthenticationType { get => _authenticationType; set => _authenticationType.Assign(value); } - private readonly BicepValue _authenticationType; + public BicepValue AuthenticationType + { + get { Initialize(); return _authenticationType!; } + set { Initialize(); _authenticationType!.Assign(value); } + } + private BicepValue? _authenticationType; /// /// Use this property for UserAssignedIdentity. Set the resource ID of the /// identity. Do not set a value for this property when using other /// authentication type. /// - public BicepValue UserAssignedIdentityResourceId { get => _userAssignedIdentityResourceId; set => _userAssignedIdentityResourceId.Assign(value); } - private readonly BicepValue _userAssignedIdentityResourceId; + public BicepValue UserAssignedIdentityResourceId + { + get { Initialize(); return _userAssignedIdentityResourceId!; } + set { Initialize(); _userAssignedIdentityResourceId!.Assign(value); } + } + private BicepValue? _userAssignedIdentityResourceId; /// /// Use this property for StorageAccountConnectionString. Set the name of /// the app setting that has the storage account connection string. Do not /// set a value for this property when using other authentication type. /// - public BicepValue StorageAccountConnectionStringName { get => _storageAccountConnectionStringName; set => _storageAccountConnectionStringName.Assign(value); } - private readonly BicepValue _storageAccountConnectionStringName; + public BicepValue StorageAccountConnectionStringName + { + get { Initialize(); return _storageAccountConnectionStringName!; } + set { Initialize(); _storageAccountConnectionStringName!.Assign(value); } + } + private BicepValue? _storageAccountConnectionStringName; /// /// Creates a new FunctionAppStorageAuthentication. /// public FunctionAppStorageAuthentication() { - _authenticationType = BicepValue.DefineProperty(this, "AuthenticationType", ["type"]); - _userAssignedIdentityResourceId = BicepValue.DefineProperty(this, "UserAssignedIdentityResourceId", ["userAssignedIdentityResourceId"]); - _storageAccountConnectionStringName = BicepValue.DefineProperty(this, "StorageAccountConnectionStringName", ["storageAccountConnectionStringName"]); + } + + /// + /// Define all the provisionable properties of + /// FunctionAppStorageAuthentication. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _authenticationType = DefineProperty("AuthenticationType", ["type"]); + _userAssignedIdentityResourceId = DefineProperty("UserAssignedIdentityResourceId", ["userAssignedIdentityResourceId"]); + _storageAccountConnectionStringName = DefineProperty("StorageAccountConnectionStringName", ["storageAccountConnectionStringName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/GitHubActionCodeConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/GitHubActionCodeConfiguration.cs index aea80962d07c6..d521198f78fa3 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/GitHubActionCodeConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/GitHubActionCodeConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,22 +19,39 @@ public partial class GitHubActionCodeConfiguration : ProvisionableConstruct /// Runtime stack is used to determine the workflow file content for code /// base apps. /// - public BicepValue RuntimeStack { get => _runtimeStack; set => _runtimeStack.Assign(value); } - private readonly BicepValue _runtimeStack; + public BicepValue RuntimeStack + { + get { Initialize(); return _runtimeStack!; } + set { Initialize(); _runtimeStack!.Assign(value); } + } + private BicepValue? _runtimeStack; /// /// Runtime version is used to determine what build version to set in the /// workflow file. /// - public BicepValue RuntimeVersion { get => _runtimeVersion; set => _runtimeVersion.Assign(value); } - private readonly BicepValue _runtimeVersion; + public BicepValue RuntimeVersion + { + get { Initialize(); return _runtimeVersion!; } + set { Initialize(); _runtimeVersion!.Assign(value); } + } + private BicepValue? _runtimeVersion; /// /// Creates a new GitHubActionCodeConfiguration. /// public GitHubActionCodeConfiguration() { - _runtimeStack = BicepValue.DefineProperty(this, "RuntimeStack", ["runtimeStack"]); - _runtimeVersion = BicepValue.DefineProperty(this, "RuntimeVersion", ["runtimeVersion"]); + } + + /// + /// Define all the provisionable properties of + /// GitHubActionCodeConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _runtimeStack = DefineProperty("RuntimeStack", ["runtimeStack"]); + _runtimeVersion = DefineProperty("RuntimeVersion", ["runtimeVersion"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/GitHubActionConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/GitHubActionConfiguration.cs index 6101374befa7a..354c926a69eb4 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/GitHubActionConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/GitHubActionConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,36 +18,60 @@ public partial class GitHubActionConfiguration : ProvisionableConstruct /// /// GitHub Action code configuration. /// - public BicepValue CodeConfiguration { get => _codeConfiguration; set => _codeConfiguration.Assign(value); } - private readonly BicepValue _codeConfiguration; + public GitHubActionCodeConfiguration CodeConfiguration + { + get { Initialize(); return _codeConfiguration!; } + set { Initialize(); AssignOrReplace(ref _codeConfiguration, value); } + } + private GitHubActionCodeConfiguration? _codeConfiguration; /// /// GitHub Action container configuration. /// - public BicepValue ContainerConfiguration { get => _containerConfiguration; set => _containerConfiguration.Assign(value); } - private readonly BicepValue _containerConfiguration; + public GitHubActionContainerConfiguration ContainerConfiguration + { + get { Initialize(); return _containerConfiguration!; } + set { Initialize(); AssignOrReplace(ref _containerConfiguration, value); } + } + private GitHubActionContainerConfiguration? _containerConfiguration; /// /// This will help determine the workflow configuration to select. /// - public BicepValue IsLinux { get => _isLinux; set => _isLinux.Assign(value); } - private readonly BicepValue _isLinux; + public BicepValue IsLinux + { + get { Initialize(); return _isLinux!; } + set { Initialize(); _isLinux!.Assign(value); } + } + private BicepValue? _isLinux; /// /// Workflow option to determine whether the workflow file should be /// generated and written to the repository. /// - public BicepValue GenerateWorkflowFile { get => _generateWorkflowFile; set => _generateWorkflowFile.Assign(value); } - private readonly BicepValue _generateWorkflowFile; + public BicepValue GenerateWorkflowFile + { + get { Initialize(); return _generateWorkflowFile!; } + set { Initialize(); _generateWorkflowFile!.Assign(value); } + } + private BicepValue? _generateWorkflowFile; /// /// Creates a new GitHubActionConfiguration. /// public GitHubActionConfiguration() { - _codeConfiguration = BicepValue.DefineProperty(this, "CodeConfiguration", ["codeConfiguration"]); - _containerConfiguration = BicepValue.DefineProperty(this, "ContainerConfiguration", ["containerConfiguration"]); - _isLinux = BicepValue.DefineProperty(this, "IsLinux", ["isLinux"]); - _generateWorkflowFile = BicepValue.DefineProperty(this, "GenerateWorkflowFile", ["generateWorkflowFile"]); + } + + /// + /// Define all the provisionable properties of GitHubActionConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _codeConfiguration = DefineModelProperty("CodeConfiguration", ["codeConfiguration"]); + _containerConfiguration = DefineModelProperty("ContainerConfiguration", ["containerConfiguration"]); + _isLinux = DefineProperty("IsLinux", ["isLinux"]); + _generateWorkflowFile = DefineProperty("GenerateWorkflowFile", ["generateWorkflowFile"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/GitHubActionContainerConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/GitHubActionContainerConfiguration.cs index cea8f6993319e..5945e42628159 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/GitHubActionContainerConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/GitHubActionContainerConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,60 @@ public partial class GitHubActionContainerConfiguration : ProvisionableConstruct /// The server URL for the container registry where the build will be /// hosted. /// - public BicepValue ServerUri { get => _serverUri; set => _serverUri.Assign(value); } - private readonly BicepValue _serverUri; + public BicepValue ServerUri + { + get { Initialize(); return _serverUri!; } + set { Initialize(); _serverUri!.Assign(value); } + } + private BicepValue? _serverUri; /// /// The image name for the build. /// - public BicepValue ImageName { get => _imageName; set => _imageName.Assign(value); } - private readonly BicepValue _imageName; + public BicepValue ImageName + { + get { Initialize(); return _imageName!; } + set { Initialize(); _imageName!.Assign(value); } + } + private BicepValue? _imageName; /// /// The username used to upload the image to the container registry. /// - public BicepValue Username { get => _username; set => _username.Assign(value); } - private readonly BicepValue _username; + public BicepValue Username + { + get { Initialize(); return _username!; } + set { Initialize(); _username!.Assign(value); } + } + private BicepValue? _username; /// /// The password used to upload the image to the container registry. /// - public BicepValue Password { get => _password; set => _password.Assign(value); } - private readonly BicepValue _password; + public BicepValue Password + { + get { Initialize(); return _password!; } + set { Initialize(); _password!.Assign(value); } + } + private BicepValue? _password; /// /// Creates a new GitHubActionContainerConfiguration. /// public GitHubActionContainerConfiguration() { - _serverUri = BicepValue.DefineProperty(this, "ServerUri", ["serverUrl"]); - _imageName = BicepValue.DefineProperty(this, "ImageName", ["imageName"]); - _username = BicepValue.DefineProperty(this, "Username", ["username"]); - _password = BicepValue.DefineProperty(this, "Password", ["password"]); + } + + /// + /// Define all the provisionable properties of + /// GitHubActionContainerConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _serverUri = DefineProperty("ServerUri", ["serverUrl"]); + _imageName = DefineProperty("ImageName", ["imageName"]); + _username = DefineProperty("Username", ["username"]); + _password = DefineProperty("Password", ["password"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/HostNameSslState.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/HostNameSslState.cs index 986c585fa2047..dd8d59cb2b34c 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/HostNameSslState.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/HostNameSslState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,49 +18,81 @@ public partial class HostNameSslState : ProvisionableConstruct /// /// Hostname. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// SSL type. /// - public BicepValue SslState { get => _sslState; set => _sslState.Assign(value); } - private readonly BicepValue _sslState; + public BicepValue SslState + { + get { Initialize(); return _sslState!; } + set { Initialize(); _sslState!.Assign(value); } + } + private BicepValue? _sslState; /// /// Virtual IP address assigned to the hostname if IP based SSL is enabled. /// - public BicepValue VirtualIP { get => _virtualIP; set => _virtualIP.Assign(value); } - private readonly BicepValue _virtualIP; + public BicepValue VirtualIP + { + get { Initialize(); return _virtualIP!; } + set { Initialize(); _virtualIP!.Assign(value); } + } + private BicepValue? _virtualIP; /// /// SSL certificate thumbprint. /// - public BicepValue ThumbprintString { get => _thumbprintString; set => _thumbprintString.Assign(value); } - private readonly BicepValue _thumbprintString; + public BicepValue ThumbprintString + { + get { Initialize(); return _thumbprintString!; } + set { Initialize(); _thumbprintString!.Assign(value); } + } + private BicepValue? _thumbprintString; /// /// Set to <code>true</code> to update existing hostname. /// - public BicepValue ToUpdate { get => _toUpdate; set => _toUpdate.Assign(value); } - private readonly BicepValue _toUpdate; + public BicepValue ToUpdate + { + get { Initialize(); return _toUpdate!; } + set { Initialize(); _toUpdate!.Assign(value); } + } + private BicepValue? _toUpdate; /// /// Indicates whether the hostname is a standard or repository hostname. /// - public BicepValue HostType { get => _hostType; set => _hostType.Assign(value); } - private readonly BicepValue _hostType; + public BicepValue HostType + { + get { Initialize(); return _hostType!; } + set { Initialize(); _hostType!.Assign(value); } + } + private BicepValue? _hostType; /// /// Creates a new HostNameSslState. /// public HostNameSslState() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _sslState = BicepValue.DefineProperty(this, "SslState", ["sslState"]); - _virtualIP = BicepValue.DefineProperty(this, "VirtualIP", ["virtualIP"]); - _thumbprintString = BicepValue.DefineProperty(this, "ThumbprintString", ["thumbprint"]); - _toUpdate = BicepValue.DefineProperty(this, "ToUpdate", ["toUpdate"]); - _hostType = BicepValue.DefineProperty(this, "HostType", ["hostType"]); + } + + /// + /// Define all the provisionable properties of HostNameSslState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _sslState = DefineProperty("SslState", ["sslState"]); + _virtualIP = DefineProperty("VirtualIP", ["virtualIP"]); + _thumbprintString = DefineProperty("ThumbprintString", ["thumbprint"]); + _toUpdate = DefineProperty("ToUpdate", ["toUpdate"]); + _hostType = DefineProperty("HostType", ["hostType"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/HostingEnvironmentProfile.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/HostingEnvironmentProfile.cs index a0e5e4f0fb45f..6b88b79124098 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/HostingEnvironmentProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/HostingEnvironmentProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,46 @@ public partial class HostingEnvironmentProfile : ProvisionableConstruct /// /// Resource ID of the App Service Environment. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// Name of the App Service Environment. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Resource type of the App Service Environment. /// - public BicepValue ResourceType { get => _resourceType; } - private readonly BicepValue _resourceType; + public BicepValue ResourceType + { + get { Initialize(); return _resourceType!; } + } + private BicepValue? _resourceType; /// /// Creates a new HostingEnvironmentProfile. /// public HostingEnvironmentProfile() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _resourceType = BicepValue.DefineProperty(this, "ResourceType", ["type"], isOutput: true); + } + + /// + /// Define all the provisionable properties of HostingEnvironmentProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _name = DefineProperty("Name", ["name"], isOutput: true); + _resourceType = DefineProperty("ResourceType", ["type"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/HttpRequestHandlerMapping.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/HttpRequestHandlerMapping.cs index c5687c5972906..0805ecd3d3c9c 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/HttpRequestHandlerMapping.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/HttpRequestHandlerMapping.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -20,28 +22,48 @@ public partial class HttpRequestHandlerMapping : ProvisionableConstruct /// Requests with this extension will be handled using the specified /// FastCGI application. /// - public BicepValue Extension { get => _extension; set => _extension.Assign(value); } - private readonly BicepValue _extension; + public BicepValue Extension + { + get { Initialize(); return _extension!; } + set { Initialize(); _extension!.Assign(value); } + } + private BicepValue? _extension; /// /// The absolute path to the FastCGI application. /// - public BicepValue ScriptProcessor { get => _scriptProcessor; set => _scriptProcessor.Assign(value); } - private readonly BicepValue _scriptProcessor; + public BicepValue ScriptProcessor + { + get { Initialize(); return _scriptProcessor!; } + set { Initialize(); _scriptProcessor!.Assign(value); } + } + private BicepValue? _scriptProcessor; /// /// Command-line arguments to be passed to the script processor. /// - public BicepValue Arguments { get => _arguments; set => _arguments.Assign(value); } - private readonly BicepValue _arguments; + public BicepValue Arguments + { + get { Initialize(); return _arguments!; } + set { Initialize(); _arguments!.Assign(value); } + } + private BicepValue? _arguments; /// /// Creates a new HttpRequestHandlerMapping. /// public HttpRequestHandlerMapping() { - _extension = BicepValue.DefineProperty(this, "Extension", ["extension"]); - _scriptProcessor = BicepValue.DefineProperty(this, "ScriptProcessor", ["scriptProcessor"]); - _arguments = BicepValue.DefineProperty(this, "Arguments", ["arguments"]); + } + + /// + /// Define all the provisionable properties of HttpRequestHandlerMapping. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _extension = DefineProperty("Extension", ["extension"]); + _scriptProcessor = DefineProperty("ScriptProcessor", ["scriptProcessor"]); + _arguments = DefineProperty("Arguments", ["arguments"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/KubeEnvironmentProfile.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/KubeEnvironmentProfile.cs index ab82a12f9806e..73f0ba35dea79 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/KubeEnvironmentProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/KubeEnvironmentProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,46 @@ public partial class KubeEnvironmentProfile : ProvisionableConstruct /// /// Resource ID of the Kubernetes Environment. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// Name of the Kubernetes Environment. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Resource type of the Kubernetes Environment. /// - public BicepValue ResourceType { get => _resourceType; } - private readonly BicepValue _resourceType; + public BicepValue ResourceType + { + get { Initialize(); return _resourceType!; } + } + private BicepValue? _resourceType; /// /// Creates a new KubeEnvironmentProfile. /// public KubeEnvironmentProfile() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _resourceType = BicepValue.DefineProperty(this, "ResourceType", ["type"], isOutput: true); + } + + /// + /// Define all the provisionable properties of KubeEnvironmentProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _name = DefineProperty("Name", ["name"], isOutput: true); + _resourceType = DefineProperty("ResourceType", ["type"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/LogAnalyticsConfiguration.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/LogAnalyticsConfiguration.cs index b73b04ff631ea..55ae88ac8b81a 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/LogAnalyticsConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/LogAnalyticsConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class LogAnalyticsConfiguration : ProvisionableConstruct /// /// Gets or sets the customer id. /// - public BicepValue CustomerId { get => _customerId; set => _customerId.Assign(value); } - private readonly BicepValue _customerId; + public BicepValue CustomerId + { + get { Initialize(); return _customerId!; } + set { Initialize(); _customerId!.Assign(value); } + } + private BicepValue? _customerId; /// /// Gets or sets the shared key. /// - public BicepValue SharedKey { get => _sharedKey; set => _sharedKey.Assign(value); } - private readonly BicepValue _sharedKey; + public BicepValue SharedKey + { + get { Initialize(); return _sharedKey!; } + set { Initialize(); _sharedKey!.Assign(value); } + } + private BicepValue? _sharedKey; /// /// Creates a new LogAnalyticsConfiguration. /// public LogAnalyticsConfiguration() { - _customerId = BicepValue.DefineProperty(this, "CustomerId", ["customerId"]); - _sharedKey = BicepValue.DefineProperty(this, "SharedKey", ["sharedKey"]); + } + + /// + /// Define all the provisionable properties of LogAnalyticsConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _customerId = DefineProperty("CustomerId", ["customerId"]); + _sharedKey = DefineProperty("SharedKey", ["sharedKey"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/PrivateAccessSubnet.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/PrivateAccessSubnet.cs index d8b331518d578..89cfa279486d3 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/PrivateAccessSubnet.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/PrivateAccessSubnet.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class PrivateAccessSubnet : ProvisionableConstruct /// /// The name of the subnet. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The key (ID) of the subnet. /// - public BicepValue Key { get => _key; set => _key.Assign(value); } - private readonly BicepValue _key; + public BicepValue Key + { + get { Initialize(); return _key!; } + set { Initialize(); _key!.Assign(value); } + } + private BicepValue? _key; /// /// Creates a new PrivateAccessSubnet. /// public PrivateAccessSubnet() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _key = BicepValue.DefineProperty(this, "Key", ["key"]); + } + + /// + /// Define all the provisionable properties of PrivateAccessSubnet. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _key = DefineProperty("Key", ["key"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/PrivateAccessVirtualNetwork.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/PrivateAccessVirtualNetwork.cs index 69b285bd7863e..66993e043b3b1 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/PrivateAccessVirtualNetwork.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/PrivateAccessVirtualNetwork.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,37 +20,61 @@ public partial class PrivateAccessVirtualNetwork : ProvisionableConstruct /// /// The name of the Virtual Network. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The key (ID) of the Virtual Network. /// - public BicepValue Key { get => _key; set => _key.Assign(value); } - private readonly BicepValue _key; + public BicepValue Key + { + get { Initialize(); return _key!; } + set { Initialize(); _key!.Assign(value); } + } + private BicepValue? _key; /// /// The ARM uri of the Virtual Network. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// A List of subnets that access is allowed to on this Virtual Network. An /// empty array (but not null) is interpreted to mean that all subnets are /// allowed within this Virtual Network. /// - public BicepList Subnets { get => _subnets; set => _subnets.Assign(value); } - private readonly BicepList _subnets; + public BicepList Subnets + { + get { Initialize(); return _subnets!; } + set { Initialize(); _subnets!.Assign(value); } + } + private BicepList? _subnets; /// /// Creates a new PrivateAccessVirtualNetwork. /// public PrivateAccessVirtualNetwork() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _key = BicepValue.DefineProperty(this, "Key", ["key"]); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["resourceId"]); - _subnets = BicepList.DefineProperty(this, "Subnets", ["subnets"]); + } + + /// + /// Define all the provisionable properties of PrivateAccessVirtualNetwork. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _key = DefineProperty("Key", ["key"]); + _resourceId = DefineProperty("ResourceId", ["resourceId"]); + _subnets = DefineListProperty("Subnets", ["subnets"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/PrivateLinkConnectionState.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/PrivateLinkConnectionState.cs index c97be992db8b9..b7e2d116cfbad 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/PrivateLinkConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/PrivateLinkConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class PrivateLinkConnectionState : ProvisionableConstruct /// /// Status of a private link connection. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Description of a private link connection. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// ActionsRequired for a private link connection. /// - public BicepValue ActionsRequired { get => _actionsRequired; set => _actionsRequired.Assign(value); } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + set { Initialize(); _actionsRequired!.Assign(value); } + } + private BicepValue? _actionsRequired; /// /// Creates a new PrivateLinkConnectionState. /// public PrivateLinkConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"]); + } + + /// + /// Define all the provisionable properties of PrivateLinkConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RampUpRule.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RampUpRule.cs index c248d56adf968..80c4f25a02c68 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RampUpRule.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RampUpRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,15 +20,23 @@ public partial class RampUpRule : ProvisionableConstruct /// Hostname of a slot to which the traffic will be redirected if decided /// to. E.g. myapp-stage.azurewebsites.net. /// - public BicepValue ActionHostName { get => _actionHostName; set => _actionHostName.Assign(value); } - private readonly BicepValue _actionHostName; + public BicepValue ActionHostName + { + get { Initialize(); return _actionHostName!; } + set { Initialize(); _actionHostName!.Assign(value); } + } + private BicepValue? _actionHostName; /// /// Percentage of the traffic which will be redirected to /// <code>ActionHostName</code>. /// - public BicepValue ReroutePercentage { get => _reroutePercentage; set => _reroutePercentage.Assign(value); } - private readonly BicepValue _reroutePercentage; + public BicepValue ReroutePercentage + { + get { Initialize(); return _reroutePercentage!; } + set { Initialize(); _reroutePercentage!.Assign(value); } + } + private BicepValue? _reroutePercentage; /// /// In auto ramp up scenario this is the step to add/remove from @@ -39,26 +49,42 @@ public partial class RampUpRule : ProvisionableConstruct /// which URL can be specified in /// <code>ChangeDecisionCallbackUrl</code>. /// - public BicepValue ChangeStep { get => _changeStep; set => _changeStep.Assign(value); } - private readonly BicepValue _changeStep; + public BicepValue ChangeStep + { + get { Initialize(); return _changeStep!; } + set { Initialize(); _changeStep!.Assign(value); } + } + private BicepValue? _changeStep; /// /// Specifies interval in minutes to reevaluate ReroutePercentage. /// - public BicepValue ChangeIntervalInMinutes { get => _changeIntervalInMinutes; set => _changeIntervalInMinutes.Assign(value); } - private readonly BicepValue _changeIntervalInMinutes; + public BicepValue ChangeIntervalInMinutes + { + get { Initialize(); return _changeIntervalInMinutes!; } + set { Initialize(); _changeIntervalInMinutes!.Assign(value); } + } + private BicepValue? _changeIntervalInMinutes; /// /// Specifies lower boundary above which ReroutePercentage will stay. /// - public BicepValue MinReroutePercentage { get => _minReroutePercentage; set => _minReroutePercentage.Assign(value); } - private readonly BicepValue _minReroutePercentage; + public BicepValue MinReroutePercentage + { + get { Initialize(); return _minReroutePercentage!; } + set { Initialize(); _minReroutePercentage!.Assign(value); } + } + private BicepValue? _minReroutePercentage; /// /// Specifies upper boundary below which ReroutePercentage will stay. /// - public BicepValue MaxReroutePercentage { get => _maxReroutePercentage; set => _maxReroutePercentage.Assign(value); } - private readonly BicepValue _maxReroutePercentage; + public BicepValue MaxReroutePercentage + { + get { Initialize(); return _maxReroutePercentage!; } + set { Initialize(); _maxReroutePercentage!.Assign(value); } + } + private BicepValue? _maxReroutePercentage; /// /// Custom decision algorithm can be provided in TiPCallback site extension @@ -66,28 +92,44 @@ public partial class RampUpRule : ProvisionableConstruct /// scaffold and contracts. /// https://www.siteextensions.net/packages/TiPCallback/ /// - public BicepValue ChangeDecisionCallbackUri { get => _changeDecisionCallbackUri; set => _changeDecisionCallbackUri.Assign(value); } - private readonly BicepValue _changeDecisionCallbackUri; + public BicepValue ChangeDecisionCallbackUri + { + get { Initialize(); return _changeDecisionCallbackUri!; } + set { Initialize(); _changeDecisionCallbackUri!.Assign(value); } + } + private BicepValue? _changeDecisionCallbackUri; /// /// Name of the routing rule. The recommended name would be to point to the /// slot which will receive the traffic in the experiment. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new RampUpRule. /// public RampUpRule() { - _actionHostName = BicepValue.DefineProperty(this, "ActionHostName", ["actionHostName"]); - _reroutePercentage = BicepValue.DefineProperty(this, "ReroutePercentage", ["reroutePercentage"]); - _changeStep = BicepValue.DefineProperty(this, "ChangeStep", ["changeStep"]); - _changeIntervalInMinutes = BicepValue.DefineProperty(this, "ChangeIntervalInMinutes", ["changeIntervalInMinutes"]); - _minReroutePercentage = BicepValue.DefineProperty(this, "MinReroutePercentage", ["minReroutePercentage"]); - _maxReroutePercentage = BicepValue.DefineProperty(this, "MaxReroutePercentage", ["maxReroutePercentage"]); - _changeDecisionCallbackUri = BicepValue.DefineProperty(this, "ChangeDecisionCallbackUri", ["changeDecisionCallbackUrl"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of RampUpRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _actionHostName = DefineProperty("ActionHostName", ["actionHostName"]); + _reroutePercentage = DefineProperty("ReroutePercentage", ["reroutePercentage"]); + _changeStep = DefineProperty("ChangeStep", ["changeStep"]); + _changeIntervalInMinutes = DefineProperty("ChangeIntervalInMinutes", ["changeIntervalInMinutes"]); + _minReroutePercentage = DefineProperty("MinReroutePercentage", ["minReroutePercentage"]); + _maxReroutePercentage = DefineProperty("MaxReroutePercentage", ["maxReroutePercentage"]); + _changeDecisionCallbackUri = DefineProperty("ChangeDecisionCallbackUri", ["changeDecisionCallbackUrl"]); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RegistrationAddressInfo.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RegistrationAddressInfo.cs index b22458307e377..5e965231e8b70 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RegistrationAddressInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RegistrationAddressInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,49 +18,81 @@ public partial class RegistrationAddressInfo : ProvisionableConstruct /// /// First line of an Address. /// - public BicepValue Address1 { get => _address1; set => _address1.Assign(value); } - private readonly BicepValue _address1; + public BicepValue Address1 + { + get { Initialize(); return _address1!; } + set { Initialize(); _address1!.Assign(value); } + } + private BicepValue? _address1; /// /// The second line of the Address. Optional. /// - public BicepValue Address2 { get => _address2; set => _address2.Assign(value); } - private readonly BicepValue _address2; + public BicepValue Address2 + { + get { Initialize(); return _address2!; } + set { Initialize(); _address2!.Assign(value); } + } + private BicepValue? _address2; /// /// The city for the address. /// - public BicepValue City { get => _city; set => _city.Assign(value); } - private readonly BicepValue _city; + public BicepValue City + { + get { Initialize(); return _city!; } + set { Initialize(); _city!.Assign(value); } + } + private BicepValue? _city; /// /// The country for the address. /// - public BicepValue Country { get => _country; set => _country.Assign(value); } - private readonly BicepValue _country; + public BicepValue Country + { + get { Initialize(); return _country!; } + set { Initialize(); _country!.Assign(value); } + } + private BicepValue? _country; /// /// The postal code for the address. /// - public BicepValue PostalCode { get => _postalCode; set => _postalCode.Assign(value); } - private readonly BicepValue _postalCode; + public BicepValue PostalCode + { + get { Initialize(); return _postalCode!; } + set { Initialize(); _postalCode!.Assign(value); } + } + private BicepValue? _postalCode; /// /// The state or province for the address. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Creates a new RegistrationAddressInfo. /// public RegistrationAddressInfo() { - _address1 = BicepValue.DefineProperty(this, "Address1", ["address1"]); - _address2 = BicepValue.DefineProperty(this, "Address2", ["address2"]); - _city = BicepValue.DefineProperty(this, "City", ["city"]); - _country = BicepValue.DefineProperty(this, "Country", ["country"]); - _postalCode = BicepValue.DefineProperty(this, "PostalCode", ["postalCode"]); - _state = BicepValue.DefineProperty(this, "State", ["state"]); + } + + /// + /// Define all the provisionable properties of RegistrationAddressInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _address1 = DefineProperty("Address1", ["address1"]); + _address2 = DefineProperty("Address2", ["address2"]); + _city = DefineProperty("City", ["city"]); + _country = DefineProperty("Country", ["country"]); + _postalCode = DefineProperty("PostalCode", ["postalCode"]); + _state = DefineProperty("State", ["state"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RegistrationContactInfo.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RegistrationContactInfo.cs index a068173f9a20d..871691f2902e3 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RegistrationContactInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RegistrationContactInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,70 +21,114 @@ public partial class RegistrationContactInfo : ProvisionableConstruct /// /// Mailing address. /// - public BicepValue AddressMailing { get => _addressMailing; set => _addressMailing.Assign(value); } - private readonly BicepValue _addressMailing; + public RegistrationAddressInfo AddressMailing + { + get { Initialize(); return _addressMailing!; } + set { Initialize(); AssignOrReplace(ref _addressMailing, value); } + } + private RegistrationAddressInfo? _addressMailing; /// /// Email address. /// - public BicepValue Email { get => _email; set => _email.Assign(value); } - private readonly BicepValue _email; + public BicepValue Email + { + get { Initialize(); return _email!; } + set { Initialize(); _email!.Assign(value); } + } + private BicepValue? _email; /// /// Fax number. /// - public BicepValue Fax { get => _fax; set => _fax.Assign(value); } - private readonly BicepValue _fax; + public BicepValue Fax + { + get { Initialize(); return _fax!; } + set { Initialize(); _fax!.Assign(value); } + } + private BicepValue? _fax; /// /// Job title. /// - public BicepValue JobTitle { get => _jobTitle; set => _jobTitle.Assign(value); } - private readonly BicepValue _jobTitle; + public BicepValue JobTitle + { + get { Initialize(); return _jobTitle!; } + set { Initialize(); _jobTitle!.Assign(value); } + } + private BicepValue? _jobTitle; /// /// First name. /// - public BicepValue NameFirst { get => _nameFirst; set => _nameFirst.Assign(value); } - private readonly BicepValue _nameFirst; + public BicepValue NameFirst + { + get { Initialize(); return _nameFirst!; } + set { Initialize(); _nameFirst!.Assign(value); } + } + private BicepValue? _nameFirst; /// /// Last name. /// - public BicepValue NameLast { get => _nameLast; set => _nameLast.Assign(value); } - private readonly BicepValue _nameLast; + public BicepValue NameLast + { + get { Initialize(); return _nameLast!; } + set { Initialize(); _nameLast!.Assign(value); } + } + private BicepValue? _nameLast; /// /// Middle name. /// - public BicepValue NameMiddle { get => _nameMiddle; set => _nameMiddle.Assign(value); } - private readonly BicepValue _nameMiddle; + public BicepValue NameMiddle + { + get { Initialize(); return _nameMiddle!; } + set { Initialize(); _nameMiddle!.Assign(value); } + } + private BicepValue? _nameMiddle; /// /// Organization contact belongs to. /// - public BicepValue Organization { get => _organization; set => _organization.Assign(value); } - private readonly BicepValue _organization; + public BicepValue Organization + { + get { Initialize(); return _organization!; } + set { Initialize(); _organization!.Assign(value); } + } + private BicepValue? _organization; /// /// Phone number. /// - public BicepValue Phone { get => _phone; set => _phone.Assign(value); } - private readonly BicepValue _phone; + public BicepValue Phone + { + get { Initialize(); return _phone!; } + set { Initialize(); _phone!.Assign(value); } + } + private BicepValue? _phone; /// /// Creates a new RegistrationContactInfo. /// public RegistrationContactInfo() { - _addressMailing = BicepValue.DefineProperty(this, "AddressMailing", ["addressMailing"]); - _email = BicepValue.DefineProperty(this, "Email", ["email"]); - _fax = BicepValue.DefineProperty(this, "Fax", ["fax"]); - _jobTitle = BicepValue.DefineProperty(this, "JobTitle", ["jobTitle"]); - _nameFirst = BicepValue.DefineProperty(this, "NameFirst", ["nameFirst"]); - _nameLast = BicepValue.DefineProperty(this, "NameLast", ["nameLast"]); - _nameMiddle = BicepValue.DefineProperty(this, "NameMiddle", ["nameMiddle"]); - _organization = BicepValue.DefineProperty(this, "Organization", ["organization"]); - _phone = BicepValue.DefineProperty(this, "Phone", ["phone"]); + } + + /// + /// Define all the provisionable properties of RegistrationContactInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _addressMailing = DefineModelProperty("AddressMailing", ["addressMailing"]); + _email = DefineProperty("Email", ["email"]); + _fax = DefineProperty("Fax", ["fax"]); + _jobTitle = DefineProperty("JobTitle", ["jobTitle"]); + _nameFirst = DefineProperty("NameFirst", ["nameFirst"]); + _nameLast = DefineProperty("NameLast", ["nameLast"]); + _nameMiddle = DefineProperty("NameMiddle", ["nameMiddle"]); + _organization = DefineProperty("Organization", ["organization"]); + _phone = DefineProperty("Phone", ["phone"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RemotePrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RemotePrivateEndpointConnection.cs index 5550afc258d14..e34fee3e00def 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RemotePrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RemotePrivateEndpointConnection.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -20,63 +22,99 @@ public partial class RemotePrivateEndpointConnection : ProvisionableConstruct /// /// Gets the provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// The state of a private link connection. /// - public BicepValue PrivateLinkServiceConnectionState { get => _privateLinkServiceConnectionState; set => _privateLinkServiceConnectionState.Assign(value); } - private readonly BicepValue _privateLinkServiceConnectionState; + public PrivateLinkConnectionState PrivateLinkServiceConnectionState + { + get { Initialize(); return _privateLinkServiceConnectionState!; } + set { Initialize(); AssignOrReplace(ref _privateLinkServiceConnectionState, value); } + } + private PrivateLinkConnectionState? _privateLinkServiceConnectionState; /// /// Private IPAddresses mapped to the remote private endpoint. /// - public BicepList IPAddresses { get => _iPAddresses; set => _iPAddresses.Assign(value); } - private readonly BicepList _iPAddresses; + public BicepList IPAddresses + { + get { Initialize(); return _iPAddresses!; } + set { Initialize(); _iPAddresses!.Assign(value); } + } + private BicepList? _iPAddresses; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new RemotePrivateEndpointConnection. /// public RemotePrivateEndpointConnection() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _privateLinkServiceConnectionState = BicepValue.DefineProperty(this, "PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _iPAddresses = BicepList.DefineProperty(this, "IPAddresses", ["properties", "ipAddresses"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// RemotePrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _privateLinkServiceConnectionState = DefineModelProperty("PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _iPAddresses = DefineListProperty("IPAddresses", ["properties", "ipAddresses"]); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RequestsBasedTrigger.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RequestsBasedTrigger.cs index 8abab04f20af9..0961d08486ddd 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RequestsBasedTrigger.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/RequestsBasedTrigger.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class RequestsBasedTrigger : ProvisionableConstruct /// /// Request Count. /// - public BicepValue Count { get => _count; set => _count.Assign(value); } - private readonly BicepValue _count; + public BicepValue Count + { + get { Initialize(); return _count!; } + set { Initialize(); _count!.Assign(value); } + } + private BicepValue? _count; /// /// Time interval. /// - public BicepValue TimeInterval { get => _timeInterval; set => _timeInterval.Assign(value); } - private readonly BicepValue _timeInterval; + public BicepValue TimeInterval + { + get { Initialize(); return _timeInterval!; } + set { Initialize(); _timeInterval!.Assign(value); } + } + private BicepValue? _timeInterval; /// /// Creates a new RequestsBasedTrigger. /// public RequestsBasedTrigger() { - _count = BicepValue.DefineProperty(this, "Count", ["count"]); - _timeInterval = BicepValue.DefineProperty(this, "TimeInterval", ["timeInterval"]); + } + + /// + /// Define all the provisionable properties of RequestsBasedTrigger. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _count = DefineProperty("Count", ["count"]); + _timeInterval = DefineProperty("TimeInterval", ["timeInterval"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.cs index 800583138cb4e..e87bf069d9f10 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Core; using Azure.Provisioning; @@ -22,92 +24,137 @@ public partial class ResponseMessageEnvelopeRemotePrivateEndpointConnection : Pr /// /// Azure-AsyncOperation Error info. /// - public BicepValue Error { get => _error; } - private readonly BicepValue _error; + public BicepValue Error + { + get { Initialize(); return _error!; } + } + private BicepValue? _error; /// /// Geographical region resource belongs to e.g. SouthCentralUS, /// SouthEastAsia. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Tags associated with resource. /// - public BicepDictionary Tags { get => _tags; } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + } + private BicepDictionary? _tags; /// /// Azure resource manager plan. /// - public BicepValue Plan { get => _plan; } - private readonly BicepValue _plan; + public AppServiceArmPlan Plan + { + get { Initialize(); return _plan!; } + } + private AppServiceArmPlan? _plan; /// /// Resource specific properties. /// - public BicepValue Properties { get => _properties; } - private readonly BicepValue _properties; + public RemotePrivateEndpointConnection Properties + { + get { Initialize(); return _properties!; } + } + private RemotePrivateEndpointConnection? _properties; /// /// SKU description of the resource. /// - public BicepValue Sku { get => _sku; } - private readonly BicepValue _sku; + public AppServiceSkuDescription Sku + { + get { Initialize(); return _sku!; } + } + private AppServiceSkuDescription? _sku; /// /// Azure-AsyncOperation Status info. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// MSI resource. /// - public BicepValue Identity { get => _identity; } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + } + private ManagedServiceIdentity? _identity; /// /// Logical Availability Zones the service is hosted in. /// - public BicepList Zones { get => _zones; } - private readonly BicepList _zones; + public BicepList Zones + { + get { Initialize(); return _zones!; } + } + private BicepList? _zones; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ResponseMessageEnvelopeRemotePrivateEndpointConnection. /// public ResponseMessageEnvelopeRemotePrivateEndpointConnection() { - _error = BicepValue.DefineProperty(this, "Error", ["error"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"], isOutput: true); - _plan = BicepValue.DefineProperty(this, "Plan", ["plan"], isOutput: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"], isOutput: true); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["status"], isOutput: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"], isOutput: true); - _zones = BicepList.DefineProperty(this, "Zones", ["zones"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ResponseMessageEnvelopeRemotePrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _error = DefineProperty("Error", ["error"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _tags = DefineDictionaryProperty("Tags", ["tags"], isOutput: true); + _plan = DefineModelProperty("Plan", ["plan"], isOutput: true); + _properties = DefineModelProperty("Properties", ["properties"], isOutput: true); + _sku = DefineModelProperty("Sku", ["sku"], isOutput: true); + _status = DefineProperty("Status", ["status"], isOutput: true); + _identity = DefineModelProperty("Identity", ["identity"], isOutput: true); + _zones = DefineListProperty("Zones", ["zones"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteConfigProperties.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteConfigProperties.cs index 76dafd08f3cae..b399a21fc4fca 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteConfigProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteConfigProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -19,424 +21,691 @@ public partial class SiteConfigProperties : ProvisionableConstruct /// /// Number of workers. /// - public BicepValue NumberOfWorkers { get => _numberOfWorkers; set => _numberOfWorkers.Assign(value); } - private readonly BicepValue _numberOfWorkers; + public BicepValue NumberOfWorkers + { + get { Initialize(); return _numberOfWorkers!; } + set { Initialize(); _numberOfWorkers!.Assign(value); } + } + private BicepValue? _numberOfWorkers; /// /// Default documents. /// - public BicepList DefaultDocuments { get => _defaultDocuments; set => _defaultDocuments.Assign(value); } - private readonly BicepList _defaultDocuments; + public BicepList DefaultDocuments + { + get { Initialize(); return _defaultDocuments!; } + set { Initialize(); _defaultDocuments!.Assign(value); } + } + private BicepList? _defaultDocuments; /// /// .NET Framework version. /// - public BicepValue NetFrameworkVersion { get => _netFrameworkVersion; set => _netFrameworkVersion.Assign(value); } - private readonly BicepValue _netFrameworkVersion; + public BicepValue NetFrameworkVersion + { + get { Initialize(); return _netFrameworkVersion!; } + set { Initialize(); _netFrameworkVersion!.Assign(value); } + } + private BicepValue? _netFrameworkVersion; /// /// Version of PHP. /// - public BicepValue PhpVersion { get => _phpVersion; set => _phpVersion.Assign(value); } - private readonly BicepValue _phpVersion; + public BicepValue PhpVersion + { + get { Initialize(); return _phpVersion!; } + set { Initialize(); _phpVersion!.Assign(value); } + } + private BicepValue? _phpVersion; /// /// Version of Python. /// - public BicepValue PythonVersion { get => _pythonVersion; set => _pythonVersion.Assign(value); } - private readonly BicepValue _pythonVersion; + public BicepValue PythonVersion + { + get { Initialize(); return _pythonVersion!; } + set { Initialize(); _pythonVersion!.Assign(value); } + } + private BicepValue? _pythonVersion; /// /// Version of Node.js. /// - public BicepValue NodeVersion { get => _nodeVersion; set => _nodeVersion.Assign(value); } - private readonly BicepValue _nodeVersion; + public BicepValue NodeVersion + { + get { Initialize(); return _nodeVersion!; } + set { Initialize(); _nodeVersion!.Assign(value); } + } + private BicepValue? _nodeVersion; /// /// Version of PowerShell. /// - public BicepValue PowerShellVersion { get => _powerShellVersion; set => _powerShellVersion.Assign(value); } - private readonly BicepValue _powerShellVersion; + public BicepValue PowerShellVersion + { + get { Initialize(); return _powerShellVersion!; } + set { Initialize(); _powerShellVersion!.Assign(value); } + } + private BicepValue? _powerShellVersion; /// /// Linux App Framework and version. /// - public BicepValue LinuxFxVersion { get => _linuxFxVersion; set => _linuxFxVersion.Assign(value); } - private readonly BicepValue _linuxFxVersion; + public BicepValue LinuxFxVersion + { + get { Initialize(); return _linuxFxVersion!; } + set { Initialize(); _linuxFxVersion!.Assign(value); } + } + private BicepValue? _linuxFxVersion; /// /// Xenon App Framework and version. /// - public BicepValue WindowsFxVersion { get => _windowsFxVersion; set => _windowsFxVersion.Assign(value); } - private readonly BicepValue _windowsFxVersion; + public BicepValue WindowsFxVersion + { + get { Initialize(); return _windowsFxVersion!; } + set { Initialize(); _windowsFxVersion!.Assign(value); } + } + private BicepValue? _windowsFxVersion; /// /// <code>true</code> if request tracing is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsRequestTracingEnabled { get => _isRequestTracingEnabled; set => _isRequestTracingEnabled.Assign(value); } - private readonly BicepValue _isRequestTracingEnabled; + public BicepValue IsRequestTracingEnabled + { + get { Initialize(); return _isRequestTracingEnabled!; } + set { Initialize(); _isRequestTracingEnabled!.Assign(value); } + } + private BicepValue? _isRequestTracingEnabled; /// /// Request tracing expiration time. /// - public BicepValue RequestTracingExpirationOn { get => _requestTracingExpirationOn; set => _requestTracingExpirationOn.Assign(value); } - private readonly BicepValue _requestTracingExpirationOn; + public BicepValue RequestTracingExpirationOn + { + get { Initialize(); return _requestTracingExpirationOn!; } + set { Initialize(); _requestTracingExpirationOn!.Assign(value); } + } + private BicepValue? _requestTracingExpirationOn; /// /// <code>true</code> if remote debugging is enabled; /// otherwise, <code>false</code>. /// - public BicepValue IsRemoteDebuggingEnabled { get => _isRemoteDebuggingEnabled; set => _isRemoteDebuggingEnabled.Assign(value); } - private readonly BicepValue _isRemoteDebuggingEnabled; + public BicepValue IsRemoteDebuggingEnabled + { + get { Initialize(); return _isRemoteDebuggingEnabled!; } + set { Initialize(); _isRemoteDebuggingEnabled!.Assign(value); } + } + private BicepValue? _isRemoteDebuggingEnabled; /// /// Remote debugging version. /// - public BicepValue RemoteDebuggingVersion { get => _remoteDebuggingVersion; set => _remoteDebuggingVersion.Assign(value); } - private readonly BicepValue _remoteDebuggingVersion; + public BicepValue RemoteDebuggingVersion + { + get { Initialize(); return _remoteDebuggingVersion!; } + set { Initialize(); _remoteDebuggingVersion!.Assign(value); } + } + private BicepValue? _remoteDebuggingVersion; /// /// <code>true</code> if HTTP logging is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsHttpLoggingEnabled { get => _isHttpLoggingEnabled; set => _isHttpLoggingEnabled.Assign(value); } - private readonly BicepValue _isHttpLoggingEnabled; + public BicepValue IsHttpLoggingEnabled + { + get { Initialize(); return _isHttpLoggingEnabled!; } + set { Initialize(); _isHttpLoggingEnabled!.Assign(value); } + } + private BicepValue? _isHttpLoggingEnabled; /// /// Flag to use Managed Identity Creds for ACR pull. /// - public BicepValue UseManagedIdentityCreds { get => _useManagedIdentityCreds; set => _useManagedIdentityCreds.Assign(value); } - private readonly BicepValue _useManagedIdentityCreds; + public BicepValue UseManagedIdentityCreds + { + get { Initialize(); return _useManagedIdentityCreds!; } + set { Initialize(); _useManagedIdentityCreds!.Assign(value); } + } + private BicepValue? _useManagedIdentityCreds; /// /// If using user managed identity, the user managed identity ClientId. /// - public BicepValue AcrUserManagedIdentityId { get => _acrUserManagedIdentityId; set => _acrUserManagedIdentityId.Assign(value); } - private readonly BicepValue _acrUserManagedIdentityId; + public BicepValue AcrUserManagedIdentityId + { + get { Initialize(); return _acrUserManagedIdentityId!; } + set { Initialize(); _acrUserManagedIdentityId!.Assign(value); } + } + private BicepValue? _acrUserManagedIdentityId; /// /// HTTP logs directory size limit. /// - public BicepValue LogsDirectorySizeLimit { get => _logsDirectorySizeLimit; set => _logsDirectorySizeLimit.Assign(value); } - private readonly BicepValue _logsDirectorySizeLimit; + public BicepValue LogsDirectorySizeLimit + { + get { Initialize(); return _logsDirectorySizeLimit!; } + set { Initialize(); _logsDirectorySizeLimit!.Assign(value); } + } + private BicepValue? _logsDirectorySizeLimit; /// /// <code>true</code> if detailed error logging is enabled; /// otherwise, <code>false</code>. /// - public BicepValue IsDetailedErrorLoggingEnabled { get => _isDetailedErrorLoggingEnabled; set => _isDetailedErrorLoggingEnabled.Assign(value); } - private readonly BicepValue _isDetailedErrorLoggingEnabled; + public BicepValue IsDetailedErrorLoggingEnabled + { + get { Initialize(); return _isDetailedErrorLoggingEnabled!; } + set { Initialize(); _isDetailedErrorLoggingEnabled!.Assign(value); } + } + private BicepValue? _isDetailedErrorLoggingEnabled; /// /// Publishing user name. /// - public BicepValue PublishingUsername { get => _publishingUsername; set => _publishingUsername.Assign(value); } - private readonly BicepValue _publishingUsername; + public BicepValue PublishingUsername + { + get { Initialize(); return _publishingUsername!; } + set { Initialize(); _publishingUsername!.Assign(value); } + } + private BicepValue? _publishingUsername; /// /// Application settings. /// - public BicepList AppSettings { get => _appSettings; set => _appSettings.Assign(value); } - private readonly BicepList _appSettings; + public BicepList AppSettings + { + get { Initialize(); return _appSettings!; } + set { Initialize(); _appSettings!.Assign(value); } + } + private BicepList? _appSettings; /// /// Application metadata. This property cannot be retrieved, since it may /// contain secrets. /// - public BicepList Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepList _metadata; + public BicepList Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepList? _metadata; /// /// Connection strings. /// - public BicepList ConnectionStrings { get => _connectionStrings; set => _connectionStrings.Assign(value); } - private readonly BicepList _connectionStrings; + public BicepList ConnectionStrings + { + get { Initialize(); return _connectionStrings!; } + set { Initialize(); _connectionStrings!.Assign(value); } + } + private BicepList? _connectionStrings; /// /// Site MachineKey. /// - public BicepValue MachineKey { get => _machineKey; } - private readonly BicepValue _machineKey; + public SiteMachineKey MachineKey + { + get { Initialize(); return _machineKey!; } + } + private SiteMachineKey? _machineKey; /// /// Handler mappings. /// - public BicepList HandlerMappings { get => _handlerMappings; set => _handlerMappings.Assign(value); } - private readonly BicepList _handlerMappings; + public BicepList HandlerMappings + { + get { Initialize(); return _handlerMappings!; } + set { Initialize(); _handlerMappings!.Assign(value); } + } + private BicepList? _handlerMappings; /// /// Document root. /// - public BicepValue DocumentRoot { get => _documentRoot; set => _documentRoot.Assign(value); } - private readonly BicepValue _documentRoot; + public BicepValue DocumentRoot + { + get { Initialize(); return _documentRoot!; } + set { Initialize(); _documentRoot!.Assign(value); } + } + private BicepValue? _documentRoot; /// /// SCM type. /// - public BicepValue ScmType { get => _scmType; set => _scmType.Assign(value); } - private readonly BicepValue _scmType; + public BicepValue ScmType + { + get { Initialize(); return _scmType!; } + set { Initialize(); _scmType!.Assign(value); } + } + private BicepValue? _scmType; /// /// <code>true</code> to use 32-bit worker process; otherwise, /// <code>false</code>. /// - public BicepValue Use32BitWorkerProcess { get => _use32BitWorkerProcess; set => _use32BitWorkerProcess.Assign(value); } - private readonly BicepValue _use32BitWorkerProcess; + public BicepValue Use32BitWorkerProcess + { + get { Initialize(); return _use32BitWorkerProcess!; } + set { Initialize(); _use32BitWorkerProcess!.Assign(value); } + } + private BicepValue? _use32BitWorkerProcess; /// /// <code>true</code> if WebSocket is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsWebSocketsEnabled { get => _isWebSocketsEnabled; set => _isWebSocketsEnabled.Assign(value); } - private readonly BicepValue _isWebSocketsEnabled; + public BicepValue IsWebSocketsEnabled + { + get { Initialize(); return _isWebSocketsEnabled!; } + set { Initialize(); _isWebSocketsEnabled!.Assign(value); } + } + private BicepValue? _isWebSocketsEnabled; /// /// <code>true</code> if Always On is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsAlwaysOn { get => _isAlwaysOn; set => _isAlwaysOn.Assign(value); } - private readonly BicepValue _isAlwaysOn; + public BicepValue IsAlwaysOn + { + get { Initialize(); return _isAlwaysOn!; } + set { Initialize(); _isAlwaysOn!.Assign(value); } + } + private BicepValue? _isAlwaysOn; /// /// Java version. /// - public BicepValue JavaVersion { get => _javaVersion; set => _javaVersion.Assign(value); } - private readonly BicepValue _javaVersion; + public BicepValue JavaVersion + { + get { Initialize(); return _javaVersion!; } + set { Initialize(); _javaVersion!.Assign(value); } + } + private BicepValue? _javaVersion; /// /// Java container. /// - public BicepValue JavaContainer { get => _javaContainer; set => _javaContainer.Assign(value); } - private readonly BicepValue _javaContainer; + public BicepValue JavaContainer + { + get { Initialize(); return _javaContainer!; } + set { Initialize(); _javaContainer!.Assign(value); } + } + private BicepValue? _javaContainer; /// /// Java container version. /// - public BicepValue JavaContainerVersion { get => _javaContainerVersion; set => _javaContainerVersion.Assign(value); } - private readonly BicepValue _javaContainerVersion; + public BicepValue JavaContainerVersion + { + get { Initialize(); return _javaContainerVersion!; } + set { Initialize(); _javaContainerVersion!.Assign(value); } + } + private BicepValue? _javaContainerVersion; /// /// App command line to launch. /// - public BicepValue AppCommandLine { get => _appCommandLine; set => _appCommandLine.Assign(value); } - private readonly BicepValue _appCommandLine; + public BicepValue AppCommandLine + { + get { Initialize(); return _appCommandLine!; } + set { Initialize(); _appCommandLine!.Assign(value); } + } + private BicepValue? _appCommandLine; /// /// Managed pipeline mode. /// - public BicepValue ManagedPipelineMode { get => _managedPipelineMode; set => _managedPipelineMode.Assign(value); } - private readonly BicepValue _managedPipelineMode; + public BicepValue ManagedPipelineMode + { + get { Initialize(); return _managedPipelineMode!; } + set { Initialize(); _managedPipelineMode!.Assign(value); } + } + private BicepValue? _managedPipelineMode; /// /// Virtual applications. /// - public BicepList VirtualApplications { get => _virtualApplications; set => _virtualApplications.Assign(value); } - private readonly BicepList _virtualApplications; + public BicepList VirtualApplications + { + get { Initialize(); return _virtualApplications!; } + set { Initialize(); _virtualApplications!.Assign(value); } + } + private BicepList? _virtualApplications; /// /// Site load balancing. /// - public BicepValue LoadBalancing { get => _loadBalancing; set => _loadBalancing.Assign(value); } - private readonly BicepValue _loadBalancing; + public BicepValue LoadBalancing + { + get { Initialize(); return _loadBalancing!; } + set { Initialize(); _loadBalancing!.Assign(value); } + } + private BicepValue? _loadBalancing; /// /// List of ramp-up rules. /// - public BicepList ExperimentsRampUpRules { get => _experimentsRampUpRules; set => _experimentsRampUpRules.Assign(value); } - private readonly BicepList _experimentsRampUpRules; + public BicepList ExperimentsRampUpRules + { + get { Initialize(); return _experimentsRampUpRules!; } + set { Initialize(); _experimentsRampUpRules!.Assign(value); } + } + private BicepList? _experimentsRampUpRules; /// /// Site limits. /// - public BicepValue Limits { get => _limits; set => _limits.Assign(value); } - private readonly BicepValue _limits; + public SiteLimits Limits + { + get { Initialize(); return _limits!; } + set { Initialize(); AssignOrReplace(ref _limits, value); } + } + private SiteLimits? _limits; /// /// <code>true</code> if Auto Heal is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsAutoHealEnabled { get => _isAutoHealEnabled; set => _isAutoHealEnabled.Assign(value); } - private readonly BicepValue _isAutoHealEnabled; + public BicepValue IsAutoHealEnabled + { + get { Initialize(); return _isAutoHealEnabled!; } + set { Initialize(); _isAutoHealEnabled!.Assign(value); } + } + private BicepValue? _isAutoHealEnabled; /// /// Auto Heal rules. /// - public BicepValue AutoHealRules { get => _autoHealRules; set => _autoHealRules.Assign(value); } - private readonly BicepValue _autoHealRules; + public AutoHealRules AutoHealRules + { + get { Initialize(); return _autoHealRules!; } + set { Initialize(); AssignOrReplace(ref _autoHealRules, value); } + } + private AutoHealRules? _autoHealRules; /// /// Tracing options. /// - public BicepValue TracingOptions { get => _tracingOptions; set => _tracingOptions.Assign(value); } - private readonly BicepValue _tracingOptions; + public BicepValue TracingOptions + { + get { Initialize(); return _tracingOptions!; } + set { Initialize(); _tracingOptions!.Assign(value); } + } + private BicepValue? _tracingOptions; /// /// Virtual Network name. /// - public BicepValue VnetName { get => _vnetName; set => _vnetName.Assign(value); } - private readonly BicepValue _vnetName; + public BicepValue VnetName + { + get { Initialize(); return _vnetName!; } + set { Initialize(); _vnetName!.Assign(value); } + } + private BicepValue? _vnetName; /// /// Virtual Network Route All enabled. This causes all outbound traffic to /// have Virtual Network Security Groups and User Defined Routes applied. /// - public BicepValue IsVnetRouteAllEnabled { get => _isVnetRouteAllEnabled; set => _isVnetRouteAllEnabled.Assign(value); } - private readonly BicepValue _isVnetRouteAllEnabled; + public BicepValue IsVnetRouteAllEnabled + { + get { Initialize(); return _isVnetRouteAllEnabled!; } + set { Initialize(); _isVnetRouteAllEnabled!.Assign(value); } + } + private BicepValue? _isVnetRouteAllEnabled; /// /// The number of private ports assigned to this app. These will be /// assigned dynamically on runtime. /// - public BicepValue VnetPrivatePortsCount { get => _vnetPrivatePortsCount; set => _vnetPrivatePortsCount.Assign(value); } - private readonly BicepValue _vnetPrivatePortsCount; + public BicepValue VnetPrivatePortsCount + { + get { Initialize(); return _vnetPrivatePortsCount!; } + set { Initialize(); _vnetPrivatePortsCount!.Assign(value); } + } + private BicepValue? _vnetPrivatePortsCount; /// /// Cross-Origin Resource Sharing (CORS) settings. /// - public BicepValue Cors { get => _cors; set => _cors.Assign(value); } - private readonly BicepValue _cors; + public AppServiceCorsSettings Cors + { + get { Initialize(); return _cors!; } + set { Initialize(); AssignOrReplace(ref _cors, value); } + } + private AppServiceCorsSettings? _cors; /// /// Push endpoint settings. /// - public BicepValue Push { get => _push; set => _push.Assign(value); } - private readonly BicepValue _push; + public WebAppPushSettings Push + { + get { Initialize(); return _push!; } + set { Initialize(); AssignOrReplace(ref _push, value); } + } + private WebAppPushSettings? _push; /// /// The URL of the API definition. /// - public BicepValue ApiDefinitionUri { get => _apiDefinitionUri; set => _apiDefinitionUri.Assign(value); } - private readonly BicepValue _apiDefinitionUri; + public BicepValue ApiDefinitionUri + { + get { Initialize(); return _apiDefinitionUri!; } + set { Initialize(); _apiDefinitionUri!.Assign(value); } + } + private BicepValue? _apiDefinitionUri; /// /// APIM-Api Identifier. /// - public BicepValue ApiManagementConfigId { get => _apiManagementConfigId; set => _apiManagementConfigId.Assign(value); } - private readonly BicepValue _apiManagementConfigId; + public BicepValue ApiManagementConfigId + { + get { Initialize(); return _apiManagementConfigId!; } + set { Initialize(); _apiManagementConfigId!.Assign(value); } + } + private BicepValue? _apiManagementConfigId; /// /// Auto-swap slot name. /// - public BicepValue AutoSwapSlotName { get => _autoSwapSlotName; set => _autoSwapSlotName.Assign(value); } - private readonly BicepValue _autoSwapSlotName; + public BicepValue AutoSwapSlotName + { + get { Initialize(); return _autoSwapSlotName!; } + set { Initialize(); _autoSwapSlotName!.Assign(value); } + } + private BicepValue? _autoSwapSlotName; /// /// <code>true</code> to enable local MySQL; otherwise, /// <code>false</code>. /// - public BicepValue IsLocalMySqlEnabled { get => _isLocalMySqlEnabled; set => _isLocalMySqlEnabled.Assign(value); } - private readonly BicepValue _isLocalMySqlEnabled; + public BicepValue IsLocalMySqlEnabled + { + get { Initialize(); return _isLocalMySqlEnabled!; } + set { Initialize(); _isLocalMySqlEnabled!.Assign(value); } + } + private BicepValue? _isLocalMySqlEnabled; /// /// Managed Service Identity Id. /// - public BicepValue ManagedServiceIdentityId { get => _managedServiceIdentityId; set => _managedServiceIdentityId.Assign(value); } - private readonly BicepValue _managedServiceIdentityId; + public BicepValue ManagedServiceIdentityId + { + get { Initialize(); return _managedServiceIdentityId!; } + set { Initialize(); _managedServiceIdentityId!.Assign(value); } + } + private BicepValue? _managedServiceIdentityId; /// /// Explicit Managed Service Identity Id. /// - public BicepValue XManagedServiceIdentityId { get => _xManagedServiceIdentityId; set => _xManagedServiceIdentityId.Assign(value); } - private readonly BicepValue _xManagedServiceIdentityId; + public BicepValue XManagedServiceIdentityId + { + get { Initialize(); return _xManagedServiceIdentityId!; } + set { Initialize(); _xManagedServiceIdentityId!.Assign(value); } + } + private BicepValue? _xManagedServiceIdentityId; /// /// Identity to use for Key Vault Reference authentication. /// - public BicepValue KeyVaultReferenceIdentity { get => _keyVaultReferenceIdentity; set => _keyVaultReferenceIdentity.Assign(value); } - private readonly BicepValue _keyVaultReferenceIdentity; + public BicepValue KeyVaultReferenceIdentity + { + get { Initialize(); return _keyVaultReferenceIdentity!; } + set { Initialize(); _keyVaultReferenceIdentity!.Assign(value); } + } + private BicepValue? _keyVaultReferenceIdentity; /// /// IP security restrictions for main. /// - public BicepList IPSecurityRestrictions { get => _iPSecurityRestrictions; set => _iPSecurityRestrictions.Assign(value); } - private readonly BicepList _iPSecurityRestrictions; + public BicepList IPSecurityRestrictions + { + get { Initialize(); return _iPSecurityRestrictions!; } + set { Initialize(); _iPSecurityRestrictions!.Assign(value); } + } + private BicepList? _iPSecurityRestrictions; /// /// Default action for main access restriction if no rules are matched. /// - public BicepValue IPSecurityRestrictionsDefaultAction { get => _iPSecurityRestrictionsDefaultAction; set => _iPSecurityRestrictionsDefaultAction.Assign(value); } - private readonly BicepValue _iPSecurityRestrictionsDefaultAction; + public BicepValue IPSecurityRestrictionsDefaultAction + { + get { Initialize(); return _iPSecurityRestrictionsDefaultAction!; } + set { Initialize(); _iPSecurityRestrictionsDefaultAction!.Assign(value); } + } + private BicepValue? _iPSecurityRestrictionsDefaultAction; /// /// IP security restrictions for scm. /// - public BicepList ScmIPSecurityRestrictions { get => _scmIPSecurityRestrictions; set => _scmIPSecurityRestrictions.Assign(value); } - private readonly BicepList _scmIPSecurityRestrictions; + public BicepList ScmIPSecurityRestrictions + { + get { Initialize(); return _scmIPSecurityRestrictions!; } + set { Initialize(); _scmIPSecurityRestrictions!.Assign(value); } + } + private BicepList? _scmIPSecurityRestrictions; /// /// Default action for scm access restriction if no rules are matched. /// - public BicepValue ScmIPSecurityRestrictionsDefaultAction { get => _scmIPSecurityRestrictionsDefaultAction; set => _scmIPSecurityRestrictionsDefaultAction.Assign(value); } - private readonly BicepValue _scmIPSecurityRestrictionsDefaultAction; + public BicepValue ScmIPSecurityRestrictionsDefaultAction + { + get { Initialize(); return _scmIPSecurityRestrictionsDefaultAction!; } + set { Initialize(); _scmIPSecurityRestrictionsDefaultAction!.Assign(value); } + } + private BicepValue? _scmIPSecurityRestrictionsDefaultAction; /// /// IP security restrictions for scm to use main. /// - public BicepValue AllowIPSecurityRestrictionsForScmToUseMain { get => _allowIPSecurityRestrictionsForScmToUseMain; set => _allowIPSecurityRestrictionsForScmToUseMain.Assign(value); } - private readonly BicepValue _allowIPSecurityRestrictionsForScmToUseMain; + public BicepValue AllowIPSecurityRestrictionsForScmToUseMain + { + get { Initialize(); return _allowIPSecurityRestrictionsForScmToUseMain!; } + set { Initialize(); _allowIPSecurityRestrictionsForScmToUseMain!.Assign(value); } + } + private BicepValue? _allowIPSecurityRestrictionsForScmToUseMain; /// /// Http20Enabled: configures a web site to allow clients to connect over /// http2.0. /// - public BicepValue IsHttp20Enabled { get => _isHttp20Enabled; set => _isHttp20Enabled.Assign(value); } - private readonly BicepValue _isHttp20Enabled; + public BicepValue IsHttp20Enabled + { + get { Initialize(); return _isHttp20Enabled!; } + set { Initialize(); _isHttp20Enabled!.Assign(value); } + } + private BicepValue? _isHttp20Enabled; /// /// MinTlsVersion: configures the minimum version of TLS required for SSL /// requests. /// - public BicepValue MinTlsVersion { get => _minTlsVersion; set => _minTlsVersion.Assign(value); } - private readonly BicepValue _minTlsVersion; + public BicepValue MinTlsVersion + { + get { Initialize(); return _minTlsVersion!; } + set { Initialize(); _minTlsVersion!.Assign(value); } + } + private BicepValue? _minTlsVersion; /// /// The minimum strength TLS cipher suite allowed for an application. /// - public BicepValue MinTlsCipherSuite { get => _minTlsCipherSuite; set => _minTlsCipherSuite.Assign(value); } - private readonly BicepValue _minTlsCipherSuite; + public BicepValue MinTlsCipherSuite + { + get { Initialize(); return _minTlsCipherSuite!; } + set { Initialize(); _minTlsCipherSuite!.Assign(value); } + } + private BicepValue? _minTlsCipherSuite; /// /// ScmMinTlsVersion: configures the minimum version of TLS required for /// SSL requests for SCM site. /// - public BicepValue ScmMinTlsVersion { get => _scmMinTlsVersion; set => _scmMinTlsVersion.Assign(value); } - private readonly BicepValue _scmMinTlsVersion; + public BicepValue ScmMinTlsVersion + { + get { Initialize(); return _scmMinTlsVersion!; } + set { Initialize(); _scmMinTlsVersion!.Assign(value); } + } + private BicepValue? _scmMinTlsVersion; /// /// State of FTP / FTPS service. /// - public BicepValue FtpsState { get => _ftpsState; set => _ftpsState.Assign(value); } - private readonly BicepValue _ftpsState; + public BicepValue FtpsState + { + get { Initialize(); return _ftpsState!; } + set { Initialize(); _ftpsState!.Assign(value); } + } + private BicepValue? _ftpsState; /// /// Number of preWarmed instances. This setting only applies to /// the Consumption and Elastic Plans /// - public BicepValue PreWarmedInstanceCount { get => _preWarmedInstanceCount; set => _preWarmedInstanceCount.Assign(value); } - private readonly BicepValue _preWarmedInstanceCount; + public BicepValue PreWarmedInstanceCount + { + get { Initialize(); return _preWarmedInstanceCount!; } + set { Initialize(); _preWarmedInstanceCount!.Assign(value); } + } + private BicepValue? _preWarmedInstanceCount; /// /// Maximum number of workers that a site can scale out to. /// This setting only applies to the Consumption and Elastic /// Premium Plans /// - public BicepValue FunctionAppScaleLimit { get => _functionAppScaleLimit; set => _functionAppScaleLimit.Assign(value); } - private readonly BicepValue _functionAppScaleLimit; + public BicepValue FunctionAppScaleLimit + { + get { Initialize(); return _functionAppScaleLimit!; } + set { Initialize(); _functionAppScaleLimit!.Assign(value); } + } + private BicepValue? _functionAppScaleLimit; /// /// Maximum number of workers that a site can scale out to. /// This setting only applies to apps in plans where /// ElasticScaleEnabled is <code>true</code> /// - public BicepValue ElasticWebAppScaleLimit { get => _elasticWebAppScaleLimit; set => _elasticWebAppScaleLimit.Assign(value); } - private readonly BicepValue _elasticWebAppScaleLimit; + public BicepValue ElasticWebAppScaleLimit + { + get { Initialize(); return _elasticWebAppScaleLimit!; } + set { Initialize(); _elasticWebAppScaleLimit!.Assign(value); } + } + private BicepValue? _elasticWebAppScaleLimit; /// /// Health check path. /// - public BicepValue HealthCheckPath { get => _healthCheckPath; set => _healthCheckPath.Assign(value); } - private readonly BicepValue _healthCheckPath; + public BicepValue HealthCheckPath + { + get { Initialize(); return _healthCheckPath!; } + set { Initialize(); _healthCheckPath!.Assign(value); } + } + private BicepValue? _healthCheckPath; /// /// Gets or sets a value indicating whether functions runtime scale @@ -444,8 +713,12 @@ public partial class SiteConfigProperties : ProvisionableConstruct /// will not monitor event sources directly, but will instead call to the /// runtime to get scale status. /// - public BicepValue IsFunctionsRuntimeScaleMonitoringEnabled { get => _isFunctionsRuntimeScaleMonitoringEnabled; set => _isFunctionsRuntimeScaleMonitoringEnabled.Assign(value); } - private readonly BicepValue _isFunctionsRuntimeScaleMonitoringEnabled; + public BicepValue IsFunctionsRuntimeScaleMonitoringEnabled + { + get { Initialize(); return _isFunctionsRuntimeScaleMonitoringEnabled!; } + set { Initialize(); _isFunctionsRuntimeScaleMonitoringEnabled!.Assign(value); } + } + private BicepValue? _isFunctionsRuntimeScaleMonitoringEnabled; /// /// Sets the time zone a site uses for generating timestamps. Compatible @@ -457,104 +730,128 @@ public partial class SiteConfigProperties : ProvisionableConstruct /// HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time /// Zones. /// - public BicepValue WebsiteTimeZone { get => _websiteTimeZone; set => _websiteTimeZone.Assign(value); } - private readonly BicepValue _websiteTimeZone; + public BicepValue WebsiteTimeZone + { + get { Initialize(); return _websiteTimeZone!; } + set { Initialize(); _websiteTimeZone!.Assign(value); } + } + private BicepValue? _websiteTimeZone; /// /// Number of minimum instance count for a site This setting /// only applies to the Elastic Plans /// - public BicepValue MinimumElasticInstanceCount { get => _minimumElasticInstanceCount; set => _minimumElasticInstanceCount.Assign(value); } - private readonly BicepValue _minimumElasticInstanceCount; + public BicepValue MinimumElasticInstanceCount + { + get { Initialize(); return _minimumElasticInstanceCount!; } + set { Initialize(); _minimumElasticInstanceCount!.Assign(value); } + } + private BicepValue? _minimumElasticInstanceCount; /// /// List of Azure Storage Accounts. /// - public BicepDictionary AzureStorageAccounts { get => _azureStorageAccounts; set => _azureStorageAccounts.Assign(value); } - private readonly BicepDictionary _azureStorageAccounts; + public BicepDictionary AzureStorageAccounts + { + get { Initialize(); return _azureStorageAccounts!; } + set { Initialize(); _azureStorageAccounts!.Assign(value); } + } + private BicepDictionary? _azureStorageAccounts; /// /// Property to allow or block all public traffic. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Creates a new SiteConfigProperties. /// public SiteConfigProperties() { - _numberOfWorkers = BicepValue.DefineProperty(this, "NumberOfWorkers", ["numberOfWorkers"]); - _defaultDocuments = BicepList.DefineProperty(this, "DefaultDocuments", ["defaultDocuments"]); - _netFrameworkVersion = BicepValue.DefineProperty(this, "NetFrameworkVersion", ["netFrameworkVersion"]); - _phpVersion = BicepValue.DefineProperty(this, "PhpVersion", ["phpVersion"]); - _pythonVersion = BicepValue.DefineProperty(this, "PythonVersion", ["pythonVersion"]); - _nodeVersion = BicepValue.DefineProperty(this, "NodeVersion", ["nodeVersion"]); - _powerShellVersion = BicepValue.DefineProperty(this, "PowerShellVersion", ["powerShellVersion"]); - _linuxFxVersion = BicepValue.DefineProperty(this, "LinuxFxVersion", ["linuxFxVersion"]); - _windowsFxVersion = BicepValue.DefineProperty(this, "WindowsFxVersion", ["windowsFxVersion"]); - _isRequestTracingEnabled = BicepValue.DefineProperty(this, "IsRequestTracingEnabled", ["requestTracingEnabled"]); - _requestTracingExpirationOn = BicepValue.DefineProperty(this, "RequestTracingExpirationOn", ["requestTracingExpirationTime"]); - _isRemoteDebuggingEnabled = BicepValue.DefineProperty(this, "IsRemoteDebuggingEnabled", ["remoteDebuggingEnabled"]); - _remoteDebuggingVersion = BicepValue.DefineProperty(this, "RemoteDebuggingVersion", ["remoteDebuggingVersion"]); - _isHttpLoggingEnabled = BicepValue.DefineProperty(this, "IsHttpLoggingEnabled", ["httpLoggingEnabled"]); - _useManagedIdentityCreds = BicepValue.DefineProperty(this, "UseManagedIdentityCreds", ["acrUseManagedIdentityCreds"]); - _acrUserManagedIdentityId = BicepValue.DefineProperty(this, "AcrUserManagedIdentityId", ["acrUserManagedIdentityID"]); - _logsDirectorySizeLimit = BicepValue.DefineProperty(this, "LogsDirectorySizeLimit", ["logsDirectorySizeLimit"]); - _isDetailedErrorLoggingEnabled = BicepValue.DefineProperty(this, "IsDetailedErrorLoggingEnabled", ["detailedErrorLoggingEnabled"]); - _publishingUsername = BicepValue.DefineProperty(this, "PublishingUsername", ["publishingUsername"]); - _appSettings = BicepList.DefineProperty(this, "AppSettings", ["appSettings"]); - _metadata = BicepList.DefineProperty(this, "Metadata", ["metadata"]); - _connectionStrings = BicepList.DefineProperty(this, "ConnectionStrings", ["connectionStrings"]); - _machineKey = BicepValue.DefineProperty(this, "MachineKey", ["machineKey"], isOutput: true); - _handlerMappings = BicepList.DefineProperty(this, "HandlerMappings", ["handlerMappings"]); - _documentRoot = BicepValue.DefineProperty(this, "DocumentRoot", ["documentRoot"]); - _scmType = BicepValue.DefineProperty(this, "ScmType", ["scmType"]); - _use32BitWorkerProcess = BicepValue.DefineProperty(this, "Use32BitWorkerProcess", ["use32BitWorkerProcess"]); - _isWebSocketsEnabled = BicepValue.DefineProperty(this, "IsWebSocketsEnabled", ["webSocketsEnabled"]); - _isAlwaysOn = BicepValue.DefineProperty(this, "IsAlwaysOn", ["alwaysOn"]); - _javaVersion = BicepValue.DefineProperty(this, "JavaVersion", ["javaVersion"]); - _javaContainer = BicepValue.DefineProperty(this, "JavaContainer", ["javaContainer"]); - _javaContainerVersion = BicepValue.DefineProperty(this, "JavaContainerVersion", ["javaContainerVersion"]); - _appCommandLine = BicepValue.DefineProperty(this, "AppCommandLine", ["appCommandLine"]); - _managedPipelineMode = BicepValue.DefineProperty(this, "ManagedPipelineMode", ["managedPipelineMode"]); - _virtualApplications = BicepList.DefineProperty(this, "VirtualApplications", ["virtualApplications"]); - _loadBalancing = BicepValue.DefineProperty(this, "LoadBalancing", ["loadBalancing"]); - _experimentsRampUpRules = BicepList.DefineProperty(this, "ExperimentsRampUpRules", ["experiments", "rampUpRules"]); - _limits = BicepValue.DefineProperty(this, "Limits", ["limits"]); - _isAutoHealEnabled = BicepValue.DefineProperty(this, "IsAutoHealEnabled", ["autoHealEnabled"]); - _autoHealRules = BicepValue.DefineProperty(this, "AutoHealRules", ["autoHealRules"]); - _tracingOptions = BicepValue.DefineProperty(this, "TracingOptions", ["tracingOptions"]); - _vnetName = BicepValue.DefineProperty(this, "VnetName", ["vnetName"]); - _isVnetRouteAllEnabled = BicepValue.DefineProperty(this, "IsVnetRouteAllEnabled", ["vnetRouteAllEnabled"]); - _vnetPrivatePortsCount = BicepValue.DefineProperty(this, "VnetPrivatePortsCount", ["vnetPrivatePortsCount"]); - _cors = BicepValue.DefineProperty(this, "Cors", ["cors"]); - _push = BicepValue.DefineProperty(this, "Push", ["push"]); - _apiDefinitionUri = BicepValue.DefineProperty(this, "ApiDefinitionUri", ["apiDefinition", "url"]); - _apiManagementConfigId = BicepValue.DefineProperty(this, "ApiManagementConfigId", ["apiManagementConfig", "id"]); - _autoSwapSlotName = BicepValue.DefineProperty(this, "AutoSwapSlotName", ["autoSwapSlotName"]); - _isLocalMySqlEnabled = BicepValue.DefineProperty(this, "IsLocalMySqlEnabled", ["localMySqlEnabled"]); - _managedServiceIdentityId = BicepValue.DefineProperty(this, "ManagedServiceIdentityId", ["managedServiceIdentityId"]); - _xManagedServiceIdentityId = BicepValue.DefineProperty(this, "XManagedServiceIdentityId", ["xManagedServiceIdentityId"]); - _keyVaultReferenceIdentity = BicepValue.DefineProperty(this, "KeyVaultReferenceIdentity", ["keyVaultReferenceIdentity"]); - _iPSecurityRestrictions = BicepList.DefineProperty(this, "IPSecurityRestrictions", ["ipSecurityRestrictions"]); - _iPSecurityRestrictionsDefaultAction = BicepValue.DefineProperty(this, "IPSecurityRestrictionsDefaultAction", ["ipSecurityRestrictionsDefaultAction"]); - _scmIPSecurityRestrictions = BicepList.DefineProperty(this, "ScmIPSecurityRestrictions", ["scmIpSecurityRestrictions"]); - _scmIPSecurityRestrictionsDefaultAction = BicepValue.DefineProperty(this, "ScmIPSecurityRestrictionsDefaultAction", ["scmIpSecurityRestrictionsDefaultAction"]); - _allowIPSecurityRestrictionsForScmToUseMain = BicepValue.DefineProperty(this, "AllowIPSecurityRestrictionsForScmToUseMain", ["scmIpSecurityRestrictionsUseMain"]); - _isHttp20Enabled = BicepValue.DefineProperty(this, "IsHttp20Enabled", ["http20Enabled"]); - _minTlsVersion = BicepValue.DefineProperty(this, "MinTlsVersion", ["minTlsVersion"]); - _minTlsCipherSuite = BicepValue.DefineProperty(this, "MinTlsCipherSuite", ["minTlsCipherSuite"]); - _scmMinTlsVersion = BicepValue.DefineProperty(this, "ScmMinTlsVersion", ["scmMinTlsVersion"]); - _ftpsState = BicepValue.DefineProperty(this, "FtpsState", ["ftpsState"]); - _preWarmedInstanceCount = BicepValue.DefineProperty(this, "PreWarmedInstanceCount", ["preWarmedInstanceCount"]); - _functionAppScaleLimit = BicepValue.DefineProperty(this, "FunctionAppScaleLimit", ["functionAppScaleLimit"]); - _elasticWebAppScaleLimit = BicepValue.DefineProperty(this, "ElasticWebAppScaleLimit", ["elasticWebAppScaleLimit"]); - _healthCheckPath = BicepValue.DefineProperty(this, "HealthCheckPath", ["healthCheckPath"]); - _isFunctionsRuntimeScaleMonitoringEnabled = BicepValue.DefineProperty(this, "IsFunctionsRuntimeScaleMonitoringEnabled", ["functionsRuntimeScaleMonitoringEnabled"]); - _websiteTimeZone = BicepValue.DefineProperty(this, "WebsiteTimeZone", ["websiteTimeZone"]); - _minimumElasticInstanceCount = BicepValue.DefineProperty(this, "MinimumElasticInstanceCount", ["minimumElasticInstanceCount"]); - _azureStorageAccounts = BicepDictionary.DefineProperty(this, "AzureStorageAccounts", ["azureStorageAccounts"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["publicNetworkAccess"]); + } + + /// + /// Define all the provisionable properties of SiteConfigProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _numberOfWorkers = DefineProperty("NumberOfWorkers", ["numberOfWorkers"]); + _defaultDocuments = DefineListProperty("DefaultDocuments", ["defaultDocuments"]); + _netFrameworkVersion = DefineProperty("NetFrameworkVersion", ["netFrameworkVersion"]); + _phpVersion = DefineProperty("PhpVersion", ["phpVersion"]); + _pythonVersion = DefineProperty("PythonVersion", ["pythonVersion"]); + _nodeVersion = DefineProperty("NodeVersion", ["nodeVersion"]); + _powerShellVersion = DefineProperty("PowerShellVersion", ["powerShellVersion"]); + _linuxFxVersion = DefineProperty("LinuxFxVersion", ["linuxFxVersion"]); + _windowsFxVersion = DefineProperty("WindowsFxVersion", ["windowsFxVersion"]); + _isRequestTracingEnabled = DefineProperty("IsRequestTracingEnabled", ["requestTracingEnabled"]); + _requestTracingExpirationOn = DefineProperty("RequestTracingExpirationOn", ["requestTracingExpirationTime"]); + _isRemoteDebuggingEnabled = DefineProperty("IsRemoteDebuggingEnabled", ["remoteDebuggingEnabled"]); + _remoteDebuggingVersion = DefineProperty("RemoteDebuggingVersion", ["remoteDebuggingVersion"]); + _isHttpLoggingEnabled = DefineProperty("IsHttpLoggingEnabled", ["httpLoggingEnabled"]); + _useManagedIdentityCreds = DefineProperty("UseManagedIdentityCreds", ["acrUseManagedIdentityCreds"]); + _acrUserManagedIdentityId = DefineProperty("AcrUserManagedIdentityId", ["acrUserManagedIdentityID"]); + _logsDirectorySizeLimit = DefineProperty("LogsDirectorySizeLimit", ["logsDirectorySizeLimit"]); + _isDetailedErrorLoggingEnabled = DefineProperty("IsDetailedErrorLoggingEnabled", ["detailedErrorLoggingEnabled"]); + _publishingUsername = DefineProperty("PublishingUsername", ["publishingUsername"]); + _appSettings = DefineListProperty("AppSettings", ["appSettings"]); + _metadata = DefineListProperty("Metadata", ["metadata"]); + _connectionStrings = DefineListProperty("ConnectionStrings", ["connectionStrings"]); + _machineKey = DefineModelProperty("MachineKey", ["machineKey"], isOutput: true); + _handlerMappings = DefineListProperty("HandlerMappings", ["handlerMappings"]); + _documentRoot = DefineProperty("DocumentRoot", ["documentRoot"]); + _scmType = DefineProperty("ScmType", ["scmType"]); + _use32BitWorkerProcess = DefineProperty("Use32BitWorkerProcess", ["use32BitWorkerProcess"]); + _isWebSocketsEnabled = DefineProperty("IsWebSocketsEnabled", ["webSocketsEnabled"]); + _isAlwaysOn = DefineProperty("IsAlwaysOn", ["alwaysOn"]); + _javaVersion = DefineProperty("JavaVersion", ["javaVersion"]); + _javaContainer = DefineProperty("JavaContainer", ["javaContainer"]); + _javaContainerVersion = DefineProperty("JavaContainerVersion", ["javaContainerVersion"]); + _appCommandLine = DefineProperty("AppCommandLine", ["appCommandLine"]); + _managedPipelineMode = DefineProperty("ManagedPipelineMode", ["managedPipelineMode"]); + _virtualApplications = DefineListProperty("VirtualApplications", ["virtualApplications"]); + _loadBalancing = DefineProperty("LoadBalancing", ["loadBalancing"]); + _experimentsRampUpRules = DefineListProperty("ExperimentsRampUpRules", ["experiments", "rampUpRules"]); + _limits = DefineModelProperty("Limits", ["limits"]); + _isAutoHealEnabled = DefineProperty("IsAutoHealEnabled", ["autoHealEnabled"]); + _autoHealRules = DefineModelProperty("AutoHealRules", ["autoHealRules"]); + _tracingOptions = DefineProperty("TracingOptions", ["tracingOptions"]); + _vnetName = DefineProperty("VnetName", ["vnetName"]); + _isVnetRouteAllEnabled = DefineProperty("IsVnetRouteAllEnabled", ["vnetRouteAllEnabled"]); + _vnetPrivatePortsCount = DefineProperty("VnetPrivatePortsCount", ["vnetPrivatePortsCount"]); + _cors = DefineModelProperty("Cors", ["cors"]); + _push = DefineModelProperty("Push", ["push"]); + _apiDefinitionUri = DefineProperty("ApiDefinitionUri", ["apiDefinition", "url"]); + _apiManagementConfigId = DefineProperty("ApiManagementConfigId", ["apiManagementConfig", "id"]); + _autoSwapSlotName = DefineProperty("AutoSwapSlotName", ["autoSwapSlotName"]); + _isLocalMySqlEnabled = DefineProperty("IsLocalMySqlEnabled", ["localMySqlEnabled"]); + _managedServiceIdentityId = DefineProperty("ManagedServiceIdentityId", ["managedServiceIdentityId"]); + _xManagedServiceIdentityId = DefineProperty("XManagedServiceIdentityId", ["xManagedServiceIdentityId"]); + _keyVaultReferenceIdentity = DefineProperty("KeyVaultReferenceIdentity", ["keyVaultReferenceIdentity"]); + _iPSecurityRestrictions = DefineListProperty("IPSecurityRestrictions", ["ipSecurityRestrictions"]); + _iPSecurityRestrictionsDefaultAction = DefineProperty("IPSecurityRestrictionsDefaultAction", ["ipSecurityRestrictionsDefaultAction"]); + _scmIPSecurityRestrictions = DefineListProperty("ScmIPSecurityRestrictions", ["scmIpSecurityRestrictions"]); + _scmIPSecurityRestrictionsDefaultAction = DefineProperty("ScmIPSecurityRestrictionsDefaultAction", ["scmIpSecurityRestrictionsDefaultAction"]); + _allowIPSecurityRestrictionsForScmToUseMain = DefineProperty("AllowIPSecurityRestrictionsForScmToUseMain", ["scmIpSecurityRestrictionsUseMain"]); + _isHttp20Enabled = DefineProperty("IsHttp20Enabled", ["http20Enabled"]); + _minTlsVersion = DefineProperty("MinTlsVersion", ["minTlsVersion"]); + _minTlsCipherSuite = DefineProperty("MinTlsCipherSuite", ["minTlsCipherSuite"]); + _scmMinTlsVersion = DefineProperty("ScmMinTlsVersion", ["scmMinTlsVersion"]); + _ftpsState = DefineProperty("FtpsState", ["ftpsState"]); + _preWarmedInstanceCount = DefineProperty("PreWarmedInstanceCount", ["preWarmedInstanceCount"]); + _functionAppScaleLimit = DefineProperty("FunctionAppScaleLimit", ["functionAppScaleLimit"]); + _elasticWebAppScaleLimit = DefineProperty("ElasticWebAppScaleLimit", ["elasticWebAppScaleLimit"]); + _healthCheckPath = DefineProperty("HealthCheckPath", ["healthCheckPath"]); + _isFunctionsRuntimeScaleMonitoringEnabled = DefineProperty("IsFunctionsRuntimeScaleMonitoringEnabled", ["functionsRuntimeScaleMonitoringEnabled"]); + _websiteTimeZone = DefineProperty("WebsiteTimeZone", ["websiteTimeZone"]); + _minimumElasticInstanceCount = DefineProperty("MinimumElasticInstanceCount", ["minimumElasticInstanceCount"]); + _azureStorageAccounts = DefineDictionaryProperty("AzureStorageAccounts", ["azureStorageAccounts"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["publicNetworkAccess"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteContainerVolumeMount.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteContainerVolumeMount.cs index e15248bfd9c87..3190f2ee99889 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteContainerVolumeMount.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteContainerVolumeMount.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class SiteContainerVolumeMount : ProvisionableConstruct /// /// Sub path in the volume where volume is mounted from. /// - public BicepValue VolumeSubPath { get => _volumeSubPath; set => _volumeSubPath.Assign(value); } - private readonly BicepValue _volumeSubPath; + public BicepValue VolumeSubPath + { + get { Initialize(); return _volumeSubPath!; } + set { Initialize(); _volumeSubPath!.Assign(value); } + } + private BicepValue? _volumeSubPath; /// /// Target path on the container where volume is mounted on. /// - public BicepValue ContainerMountPath { get => _containerMountPath; set => _containerMountPath.Assign(value); } - private readonly BicepValue _containerMountPath; + public BicepValue ContainerMountPath + { + get { Initialize(); return _containerMountPath!; } + set { Initialize(); _containerMountPath!.Assign(value); } + } + private BicepValue? _containerMountPath; /// /// Config Data to be mounted on the volume. /// - public BicepValue Data { get => _data; set => _data.Assign(value); } - private readonly BicepValue _data; + public BicepValue Data + { + get { Initialize(); return _data!; } + set { Initialize(); _data!.Assign(value); } + } + private BicepValue? _data; /// /// Boolean to specify if the mount is read only on the container. /// - public BicepValue IsReadOnly { get => _isReadOnly; set => _isReadOnly.Assign(value); } - private readonly BicepValue _isReadOnly; + public BicepValue IsReadOnly + { + get { Initialize(); return _isReadOnly!; } + set { Initialize(); _isReadOnly!.Assign(value); } + } + private BicepValue? _isReadOnly; /// /// Creates a new SiteContainerVolumeMount. /// public SiteContainerVolumeMount() { - _volumeSubPath = BicepValue.DefineProperty(this, "VolumeSubPath", ["volumeSubPath"]); - _containerMountPath = BicepValue.DefineProperty(this, "ContainerMountPath", ["containerMountPath"]); - _data = BicepValue.DefineProperty(this, "Data", ["data"]); - _isReadOnly = BicepValue.DefineProperty(this, "IsReadOnly", ["readOnly"]); + } + + /// + /// Define all the provisionable properties of SiteContainerVolumeMount. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _volumeSubPath = DefineProperty("VolumeSubPath", ["volumeSubPath"]); + _containerMountPath = DefineProperty("ContainerMountPath", ["containerMountPath"]); + _data = DefineProperty("Data", ["data"]); + _isReadOnly = DefineProperty("IsReadOnly", ["readOnly"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteDnsConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteDnsConfig.cs index 115328d110a4d..0ee63110c1448 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteDnsConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteDnsConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,54 +20,85 @@ public partial class SiteDnsConfig : ProvisionableConstruct /// List of custom DNS servers to be used by an app for lookups. Maximum 5 /// dns servers can be set. /// - public BicepList DnsServers { get => _dnsServers; set => _dnsServers.Assign(value); } - private readonly BicepList _dnsServers; + public BicepList DnsServers + { + get { Initialize(); return _dnsServers!; } + set { Initialize(); _dnsServers!.Assign(value); } + } + private BicepList? _dnsServers; /// /// Alternate DNS server to be used by apps. This property replicates the /// WEBSITE_DNS_ALT_SERVER app setting. /// - public BicepValue DnsAltServer { get => _dnsAltServer; set => _dnsAltServer.Assign(value); } - private readonly BicepValue _dnsAltServer; + public BicepValue DnsAltServer + { + get { Initialize(); return _dnsAltServer!; } + set { Initialize(); _dnsAltServer!.Assign(value); } + } + private BicepValue? _dnsAltServer; /// /// Timeout for a single dns lookup in seconds. Allowed range: 1-30. /// Default is 3. /// - public BicepValue DnsRetryAttemptTimeout { get => _dnsRetryAttemptTimeout; set => _dnsRetryAttemptTimeout.Assign(value); } - private readonly BicepValue _dnsRetryAttemptTimeout; + public BicepValue DnsRetryAttemptTimeout + { + get { Initialize(); return _dnsRetryAttemptTimeout!; } + set { Initialize(); _dnsRetryAttemptTimeout!.Assign(value); } + } + private BicepValue? _dnsRetryAttemptTimeout; /// /// Total number of retries for dns lookup. Allowed range: 1-5. Default is /// 3. /// - public BicepValue DnsRetryAttemptCount { get => _dnsRetryAttemptCount; set => _dnsRetryAttemptCount.Assign(value); } - private readonly BicepValue _dnsRetryAttemptCount; + public BicepValue DnsRetryAttemptCount + { + get { Initialize(); return _dnsRetryAttemptCount!; } + set { Initialize(); _dnsRetryAttemptCount!.Assign(value); } + } + private BicepValue? _dnsRetryAttemptCount; /// /// Custom time for DNS to be cached in seconds. Allowed range: 0-60. /// Default is 30 seconds. 0 means caching disabled. /// - public BicepValue DnsMaxCacheTimeout { get => _dnsMaxCacheTimeout; set => _dnsMaxCacheTimeout.Assign(value); } - private readonly BicepValue _dnsMaxCacheTimeout; + public BicepValue DnsMaxCacheTimeout + { + get { Initialize(); return _dnsMaxCacheTimeout!; } + set { Initialize(); _dnsMaxCacheTimeout!.Assign(value); } + } + private BicepValue? _dnsMaxCacheTimeout; /// /// Indicates that sites using Virtual network custom DNS servers are still /// sorting the list of DNS servers. Read-Only. /// - public BicepValue DnsLegacySortOrder { get => _dnsLegacySortOrder; } - private readonly BicepValue _dnsLegacySortOrder; + public BicepValue DnsLegacySortOrder + { + get { Initialize(); return _dnsLegacySortOrder!; } + } + private BicepValue? _dnsLegacySortOrder; /// /// Creates a new SiteDnsConfig. /// public SiteDnsConfig() { - _dnsServers = BicepList.DefineProperty(this, "DnsServers", ["dnsServers"]); - _dnsAltServer = BicepValue.DefineProperty(this, "DnsAltServer", ["dnsAltServer"]); - _dnsRetryAttemptTimeout = BicepValue.DefineProperty(this, "DnsRetryAttemptTimeout", ["dnsRetryAttemptTimeout"]); - _dnsRetryAttemptCount = BicepValue.DefineProperty(this, "DnsRetryAttemptCount", ["dnsRetryAttemptCount"]); - _dnsMaxCacheTimeout = BicepValue.DefineProperty(this, "DnsMaxCacheTimeout", ["dnsMaxCacheTimeout"]); - _dnsLegacySortOrder = BicepValue.DefineProperty(this, "DnsLegacySortOrder", ["dnsLegacySortOrder"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SiteDnsConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _dnsServers = DefineListProperty("DnsServers", ["dnsServers"]); + _dnsAltServer = DefineProperty("DnsAltServer", ["dnsAltServer"]); + _dnsRetryAttemptTimeout = DefineProperty("DnsRetryAttemptTimeout", ["dnsRetryAttemptTimeout"]); + _dnsRetryAttemptCount = DefineProperty("DnsRetryAttemptCount", ["dnsRetryAttemptCount"]); + _dnsMaxCacheTimeout = DefineProperty("DnsMaxCacheTimeout", ["dnsMaxCacheTimeout"]); + _dnsLegacySortOrder = DefineProperty("DnsLegacySortOrder", ["dnsLegacySortOrder"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteLimits.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteLimits.cs index fdeae2f83c216..2197b941f9a83 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteLimits.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteLimits.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class SiteLimits : ProvisionableConstruct /// /// Maximum allowed CPU usage percentage. /// - public BicepValue MaxPercentageCpu { get => _maxPercentageCpu; set => _maxPercentageCpu.Assign(value); } - private readonly BicepValue _maxPercentageCpu; + public BicepValue MaxPercentageCpu + { + get { Initialize(); return _maxPercentageCpu!; } + set { Initialize(); _maxPercentageCpu!.Assign(value); } + } + private BicepValue? _maxPercentageCpu; /// /// Maximum allowed memory usage in MB. /// - public BicepValue MaxMemoryInMb { get => _maxMemoryInMb; set => _maxMemoryInMb.Assign(value); } - private readonly BicepValue _maxMemoryInMb; + public BicepValue MaxMemoryInMb + { + get { Initialize(); return _maxMemoryInMb!; } + set { Initialize(); _maxMemoryInMb!.Assign(value); } + } + private BicepValue? _maxMemoryInMb; /// /// Maximum allowed disk size usage in MB. /// - public BicepValue MaxDiskSizeInMb { get => _maxDiskSizeInMb; set => _maxDiskSizeInMb.Assign(value); } - private readonly BicepValue _maxDiskSizeInMb; + public BicepValue MaxDiskSizeInMb + { + get { Initialize(); return _maxDiskSizeInMb!; } + set { Initialize(); _maxDiskSizeInMb!.Assign(value); } + } + private BicepValue? _maxDiskSizeInMb; /// /// Creates a new SiteLimits. /// public SiteLimits() { - _maxPercentageCpu = BicepValue.DefineProperty(this, "MaxPercentageCpu", ["maxPercentageCpu"]); - _maxMemoryInMb = BicepValue.DefineProperty(this, "MaxMemoryInMb", ["maxMemoryInMb"]); - _maxDiskSizeInMb = BicepValue.DefineProperty(this, "MaxDiskSizeInMb", ["maxDiskSizeInMb"]); + } + + /// + /// Define all the provisionable properties of SiteLimits. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _maxPercentageCpu = DefineProperty("MaxPercentageCpu", ["maxPercentageCpu"]); + _maxMemoryInMb = DefineProperty("MaxMemoryInMb", ["maxMemoryInMb"]); + _maxDiskSizeInMb = DefineProperty("MaxDiskSizeInMb", ["maxDiskSizeInMb"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteMachineKey.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteMachineKey.cs index eabf636f64da4..91c90f78614c5 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteMachineKey.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SiteMachineKey.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,55 @@ public partial class SiteMachineKey : ProvisionableConstruct /// /// MachineKey validation. /// - public BicepValue Validation { get => _validation; } - private readonly BicepValue _validation; + public BicepValue Validation + { + get { Initialize(); return _validation!; } + } + private BicepValue? _validation; /// /// Validation key. /// - public BicepValue ValidationKey { get => _validationKey; } - private readonly BicepValue _validationKey; + public BicepValue ValidationKey + { + get { Initialize(); return _validationKey!; } + } + private BicepValue? _validationKey; /// /// Algorithm used for decryption. /// - public BicepValue Decryption { get => _decryption; } - private readonly BicepValue _decryption; + public BicepValue Decryption + { + get { Initialize(); return _decryption!; } + } + private BicepValue? _decryption; /// /// Decryption key. /// - public BicepValue DecryptionKey { get => _decryptionKey; } - private readonly BicepValue _decryptionKey; + public BicepValue DecryptionKey + { + get { Initialize(); return _decryptionKey!; } + } + private BicepValue? _decryptionKey; /// /// Creates a new SiteMachineKey. /// public SiteMachineKey() { - _validation = BicepValue.DefineProperty(this, "Validation", ["validation"], isOutput: true); - _validationKey = BicepValue.DefineProperty(this, "ValidationKey", ["validationKey"], isOutput: true); - _decryption = BicepValue.DefineProperty(this, "Decryption", ["decryption"], isOutput: true); - _decryptionKey = BicepValue.DefineProperty(this, "DecryptionKey", ["decryptionKey"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SiteMachineKey. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _validation = DefineProperty("Validation", ["validation"], isOutput: true); + _validationKey = DefineProperty("ValidationKey", ["validationKey"], isOutput: true); + _decryption = DefineProperty("Decryption", ["decryption"], isOutput: true); + _decryptionKey = DefineProperty("DecryptionKey", ["decryptionKey"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SlotSwapStatus.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SlotSwapStatus.cs index 98f40a9ac6a6b..f0d3cf3840e5f 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SlotSwapStatus.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SlotSwapStatus.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,45 @@ public partial class SlotSwapStatus : ProvisionableConstruct /// /// The time the last successful slot swap completed. /// - public BicepValue TimestampUtc { get => _timestampUtc; } - private readonly BicepValue _timestampUtc; + public BicepValue TimestampUtc + { + get { Initialize(); return _timestampUtc!; } + } + private BicepValue? _timestampUtc; /// /// The source slot of the last swap operation. /// - public BicepValue SourceSlotName { get => _sourceSlotName; } - private readonly BicepValue _sourceSlotName; + public BicepValue SourceSlotName + { + get { Initialize(); return _sourceSlotName!; } + } + private BicepValue? _sourceSlotName; /// /// The destination slot of the last swap operation. /// - public BicepValue DestinationSlotName { get => _destinationSlotName; } - private readonly BicepValue _destinationSlotName; + public BicepValue DestinationSlotName + { + get { Initialize(); return _destinationSlotName!; } + } + private BicepValue? _destinationSlotName; /// /// Creates a new SlotSwapStatus. /// public SlotSwapStatus() { - _timestampUtc = BicepValue.DefineProperty(this, "TimestampUtc", ["timestampUtc"], isOutput: true); - _sourceSlotName = BicepValue.DefineProperty(this, "SourceSlotName", ["sourceSlotName"], isOutput: true); - _destinationSlotName = BicepValue.DefineProperty(this, "DestinationSlotName", ["destinationSlotName"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SlotSwapStatus. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _timestampUtc = DefineProperty("TimestampUtc", ["timestampUtc"], isOutput: true); + _sourceSlotName = DefineProperty("SourceSlotName", ["sourceSlotName"], isOutput: true); + _destinationSlotName = DefineProperty("DestinationSlotName", ["destinationSlotName"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SlowRequestsBasedTrigger.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SlowRequestsBasedTrigger.cs index 4d84bdfa3d170..968dc8eef3ed6 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SlowRequestsBasedTrigger.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/SlowRequestsBasedTrigger.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class SlowRequestsBasedTrigger : ProvisionableConstruct /// /// Time taken. /// - public BicepValue TimeTaken { get => _timeTaken; set => _timeTaken.Assign(value); } - private readonly BicepValue _timeTaken; + public BicepValue TimeTaken + { + get { Initialize(); return _timeTaken!; } + set { Initialize(); _timeTaken!.Assign(value); } + } + private BicepValue? _timeTaken; /// /// Request Path. /// - public BicepValue Path { get => _path; set => _path.Assign(value); } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + set { Initialize(); _path!.Assign(value); } + } + private BicepValue? _path; /// /// Request Count. /// - public BicepValue Count { get => _count; set => _count.Assign(value); } - private readonly BicepValue _count; + public BicepValue Count + { + get { Initialize(); return _count!; } + set { Initialize(); _count!.Assign(value); } + } + private BicepValue? _count; /// /// Time interval. /// - public BicepValue TimeInterval { get => _timeInterval; set => _timeInterval.Assign(value); } - private readonly BicepValue _timeInterval; + public BicepValue TimeInterval + { + get { Initialize(); return _timeInterval!; } + set { Initialize(); _timeInterval!.Assign(value); } + } + private BicepValue? _timeInterval; /// /// Creates a new SlowRequestsBasedTrigger. /// public SlowRequestsBasedTrigger() { - _timeTaken = BicepValue.DefineProperty(this, "TimeTaken", ["timeTaken"]); - _path = BicepValue.DefineProperty(this, "Path", ["path"]); - _count = BicepValue.DefineProperty(this, "Count", ["count"]); - _timeInterval = BicepValue.DefineProperty(this, "TimeInterval", ["timeInterval"]); + } + + /// + /// Define all the provisionable properties of SlowRequestsBasedTrigger. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _timeTaken = DefineProperty("TimeTaken", ["timeTaken"]); + _path = DefineProperty("Path", ["path"]); + _count = DefineProperty("Count", ["count"]); + _timeInterval = DefineProperty("TimeInterval", ["timeInterval"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteBuildProperties.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteBuildProperties.cs index 28d43ae0a21e7..8b5ff7958202e 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteBuildProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteBuildProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,66 +18,106 @@ public partial class StaticSiteBuildProperties : ProvisionableConstruct /// /// The path to the app code within the repository. /// - public BicepValue AppLocation { get => _appLocation; set => _appLocation.Assign(value); } - private readonly BicepValue _appLocation; + public BicepValue AppLocation + { + get { Initialize(); return _appLocation!; } + set { Initialize(); _appLocation!.Assign(value); } + } + private BicepValue? _appLocation; /// /// The path to the api code within the repository. /// - public BicepValue ApiLocation { get => _apiLocation; set => _apiLocation.Assign(value); } - private readonly BicepValue _apiLocation; + public BicepValue ApiLocation + { + get { Initialize(); return _apiLocation!; } + set { Initialize(); _apiLocation!.Assign(value); } + } + private BicepValue? _apiLocation; /// /// Deprecated: The path of the app artifacts after building (deprecated in /// favor of OutputLocation). /// - public BicepValue AppArtifactLocation { get => _appArtifactLocation; set => _appArtifactLocation.Assign(value); } - private readonly BicepValue _appArtifactLocation; + public BicepValue AppArtifactLocation + { + get { Initialize(); return _appArtifactLocation!; } + set { Initialize(); _appArtifactLocation!.Assign(value); } + } + private BicepValue? _appArtifactLocation; /// /// The output path of the app after building. /// - public BicepValue OutputLocation { get => _outputLocation; set => _outputLocation.Assign(value); } - private readonly BicepValue _outputLocation; + public BicepValue OutputLocation + { + get { Initialize(); return _outputLocation!; } + set { Initialize(); _outputLocation!.Assign(value); } + } + private BicepValue? _outputLocation; /// /// A custom command to run during deployment of the static content /// application. /// - public BicepValue AppBuildCommand { get => _appBuildCommand; set => _appBuildCommand.Assign(value); } - private readonly BicepValue _appBuildCommand; + public BicepValue AppBuildCommand + { + get { Initialize(); return _appBuildCommand!; } + set { Initialize(); _appBuildCommand!.Assign(value); } + } + private BicepValue? _appBuildCommand; /// /// A custom command to run during deployment of the Azure Functions API /// application. /// - public BicepValue ApiBuildCommand { get => _apiBuildCommand; set => _apiBuildCommand.Assign(value); } - private readonly BicepValue _apiBuildCommand; + public BicepValue ApiBuildCommand + { + get { Initialize(); return _apiBuildCommand!; } + set { Initialize(); _apiBuildCommand!.Assign(value); } + } + private BicepValue? _apiBuildCommand; /// /// Skip Github Action workflow generation. /// - public BicepValue SkipGithubActionWorkflowGeneration { get => _skipGithubActionWorkflowGeneration; set => _skipGithubActionWorkflowGeneration.Assign(value); } - private readonly BicepValue _skipGithubActionWorkflowGeneration; + public BicepValue SkipGithubActionWorkflowGeneration + { + get { Initialize(); return _skipGithubActionWorkflowGeneration!; } + set { Initialize(); _skipGithubActionWorkflowGeneration!.Assign(value); } + } + private BicepValue? _skipGithubActionWorkflowGeneration; /// /// Github Action secret name override. /// - public BicepValue GithubActionSecretNameOverride { get => _githubActionSecretNameOverride; set => _githubActionSecretNameOverride.Assign(value); } - private readonly BicepValue _githubActionSecretNameOverride; + public BicepValue GithubActionSecretNameOverride + { + get { Initialize(); return _githubActionSecretNameOverride!; } + set { Initialize(); _githubActionSecretNameOverride!.Assign(value); } + } + private BicepValue? _githubActionSecretNameOverride; /// /// Creates a new StaticSiteBuildProperties. /// public StaticSiteBuildProperties() { - _appLocation = BicepValue.DefineProperty(this, "AppLocation", ["appLocation"]); - _apiLocation = BicepValue.DefineProperty(this, "ApiLocation", ["apiLocation"]); - _appArtifactLocation = BicepValue.DefineProperty(this, "AppArtifactLocation", ["appArtifactLocation"]); - _outputLocation = BicepValue.DefineProperty(this, "OutputLocation", ["outputLocation"]); - _appBuildCommand = BicepValue.DefineProperty(this, "AppBuildCommand", ["appBuildCommand"]); - _apiBuildCommand = BicepValue.DefineProperty(this, "ApiBuildCommand", ["apiBuildCommand"]); - _skipGithubActionWorkflowGeneration = BicepValue.DefineProperty(this, "SkipGithubActionWorkflowGeneration", ["skipGithubActionWorkflowGeneration"]); - _githubActionSecretNameOverride = BicepValue.DefineProperty(this, "GithubActionSecretNameOverride", ["githubActionSecretNameOverride"]); + } + + /// + /// Define all the provisionable properties of StaticSiteBuildProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _appLocation = DefineProperty("AppLocation", ["appLocation"]); + _apiLocation = DefineProperty("ApiLocation", ["apiLocation"]); + _appArtifactLocation = DefineProperty("AppArtifactLocation", ["appArtifactLocation"]); + _outputLocation = DefineProperty("OutputLocation", ["outputLocation"]); + _appBuildCommand = DefineProperty("AppBuildCommand", ["appBuildCommand"]); + _apiBuildCommand = DefineProperty("ApiBuildCommand", ["apiBuildCommand"]); + _skipGithubActionWorkflowGeneration = DefineProperty("SkipGithubActionWorkflowGeneration", ["skipGithubActionWorkflowGeneration"]); + _githubActionSecretNameOverride = DefineProperty("GithubActionSecretNameOverride", ["githubActionSecretNameOverride"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteDatabaseConnectionConfigurationFileOverview.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteDatabaseConnectionConfigurationFileOverview.cs index a44ee1b8230c8..05840e258a450 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteDatabaseConnectionConfigurationFileOverview.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteDatabaseConnectionConfigurationFileOverview.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,46 @@ public partial class StaticSiteDatabaseConnectionConfigurationFileOverview : Pro /// /// The name of the configuration file. /// - public BicepValue FileName { get => _fileName; } - private readonly BicepValue _fileName; + public BicepValue FileName + { + get { Initialize(); return _fileName!; } + } + private BicepValue? _fileName; /// /// The Base64 encoding of the file contents. /// - public BicepValue Contents { get => _contents; } - private readonly BicepValue _contents; + public BicepValue Contents + { + get { Initialize(); return _contents!; } + } + private BicepValue? _contents; /// /// The type of configuration file. /// - public BicepValue StaticSiteDatabaseConnectionConfigurationFileOverviewType { get => _staticSiteDatabaseConnectionConfigurationFileOverviewType; } - private readonly BicepValue _staticSiteDatabaseConnectionConfigurationFileOverviewType; + public BicepValue StaticSiteDatabaseConnectionConfigurationFileOverviewType + { + get { Initialize(); return _staticSiteDatabaseConnectionConfigurationFileOverviewType!; } + } + private BicepValue? _staticSiteDatabaseConnectionConfigurationFileOverviewType; /// /// Creates a new StaticSiteDatabaseConnectionConfigurationFileOverview. /// public StaticSiteDatabaseConnectionConfigurationFileOverview() { - _fileName = BicepValue.DefineProperty(this, "FileName", ["fileName"], isOutput: true); - _contents = BicepValue.DefineProperty(this, "Contents", ["contents"], isOutput: true); - _staticSiteDatabaseConnectionConfigurationFileOverviewType = BicepValue.DefineProperty(this, "StaticSiteDatabaseConnectionConfigurationFileOverviewType", ["type"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// StaticSiteDatabaseConnectionConfigurationFileOverview. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _fileName = DefineProperty("FileName", ["fileName"], isOutput: true); + _contents = DefineProperty("Contents", ["contents"], isOutput: true); + _staticSiteDatabaseConnectionConfigurationFileOverviewType = DefineProperty("StaticSiteDatabaseConnectionConfigurationFileOverviewType", ["type"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteDatabaseConnectionOverview.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteDatabaseConnectionOverview.cs index 40448bbbb5201..de8bbf911b518 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteDatabaseConnectionOverview.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteDatabaseConnectionOverview.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,8 +20,11 @@ public partial class StaticSiteDatabaseConnectionOverview : ProvisionableConstru /// /// The resource id of the database. /// - public BicepValue ResourceId { get => _resourceId; } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + } + private BicepValue? _resourceId; /// /// If present, the identity is used in conjunction with connection string @@ -28,36 +33,57 @@ public partial class StaticSiteDatabaseConnectionOverview : ProvisionableConstru /// while use of a user-assigned managed identity is indicated with the /// resource id of the managed identity resource. /// - public BicepValue ConnectionIdentity { get => _connectionIdentity; } - private readonly BicepValue _connectionIdentity; + public BicepValue ConnectionIdentity + { + get { Initialize(); return _connectionIdentity!; } + } + private BicepValue? _connectionIdentity; /// /// The region of the database resource. /// - public BicepValue Region { get => _region; } - private readonly BicepValue _region; + public BicepValue Region + { + get { Initialize(); return _region!; } + } + private BicepValue? _region; /// /// A list of configuration files associated with this database connection. /// - public BicepList ConfigurationFiles { get => _configurationFiles; } - private readonly BicepList _configurationFiles; + public BicepList ConfigurationFiles + { + get { Initialize(); return _configurationFiles!; } + } + private BicepList? _configurationFiles; /// /// If present, the name of this database connection resource. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Creates a new StaticSiteDatabaseConnectionOverview. /// public StaticSiteDatabaseConnectionOverview() { - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["resourceId"], isOutput: true); - _connectionIdentity = BicepValue.DefineProperty(this, "ConnectionIdentity", ["connectionIdentity"], isOutput: true); - _region = BicepValue.DefineProperty(this, "Region", ["region"], isOutput: true); - _configurationFiles = BicepList.DefineProperty(this, "ConfigurationFiles", ["configurationFiles"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// StaticSiteDatabaseConnectionOverview. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _resourceId = DefineProperty("ResourceId", ["resourceId"], isOutput: true); + _connectionIdentity = DefineProperty("ConnectionIdentity", ["connectionIdentity"], isOutput: true); + _region = DefineProperty("Region", ["region"], isOutput: true); + _configurationFiles = DefineListProperty("ConfigurationFiles", ["configurationFiles"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteLinkedBackendInfo.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteLinkedBackendInfo.cs index 047f5566c9415..adabf4f6805b0 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteLinkedBackendInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteLinkedBackendInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,55 @@ public partial class StaticSiteLinkedBackendInfo : ProvisionableConstruct /// /// The resource id of the backend linked to the static site. /// - public BicepValue BackendResourceId { get => _backendResourceId; } - private readonly BicepValue _backendResourceId; + public BicepValue BackendResourceId + { + get { Initialize(); return _backendResourceId!; } + } + private BicepValue? _backendResourceId; /// /// The region of the backend linked to the static site. /// - public BicepValue Region { get => _region; } - private readonly BicepValue _region; + public BicepValue Region + { + get { Initialize(); return _region!; } + } + private BicepValue? _region; /// /// The date and time on which the backend was linked to the static site. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// The provisioning state of the linking process. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Creates a new StaticSiteLinkedBackendInfo. /// public StaticSiteLinkedBackendInfo() { - _backendResourceId = BicepValue.DefineProperty(this, "BackendResourceId", ["backendResourceId"], isOutput: true); - _region = BicepValue.DefineProperty(this, "Region", ["region"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["createdOn"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); + } + + /// + /// Define all the provisionable properties of StaticSiteLinkedBackendInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _backendResourceId = DefineProperty("BackendResourceId", ["backendResourceId"], isOutput: true); + _region = DefineProperty("Region", ["region"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["createdOn"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteTemplate.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteTemplate.cs index b3a66656f8f20..0fcda9193c888 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteTemplate.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteTemplate.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,43 +19,71 @@ public partial class StaticSiteTemplate : ProvisionableConstruct /// URL of the template repository. The newly generated repository will be /// based on this one. /// - public BicepValue TemplateRepositoryUri { get => _templateRepositoryUri; set => _templateRepositoryUri.Assign(value); } - private readonly BicepValue _templateRepositoryUri; + public BicepValue TemplateRepositoryUri + { + get { Initialize(); return _templateRepositoryUri!; } + set { Initialize(); _templateRepositoryUri!.Assign(value); } + } + private BicepValue? _templateRepositoryUri; /// /// Owner of the newly generated repository. /// - public BicepValue Owner { get => _owner; set => _owner.Assign(value); } - private readonly BicepValue _owner; + public BicepValue Owner + { + get { Initialize(); return _owner!; } + set { Initialize(); _owner!.Assign(value); } + } + private BicepValue? _owner; /// /// Name of the newly generated repository. /// - public BicepValue RepositoryName { get => _repositoryName; set => _repositoryName.Assign(value); } - private readonly BicepValue _repositoryName; + public BicepValue RepositoryName + { + get { Initialize(); return _repositoryName!; } + set { Initialize(); _repositoryName!.Assign(value); } + } + private BicepValue? _repositoryName; /// /// Description of the newly generated repository. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Whether or not the newly generated repository is a private repository. /// Defaults to false (i.e. public). /// - public BicepValue IsPrivate { get => _isPrivate; set => _isPrivate.Assign(value); } - private readonly BicepValue _isPrivate; + public BicepValue IsPrivate + { + get { Initialize(); return _isPrivate!; } + set { Initialize(); _isPrivate!.Assign(value); } + } + private BicepValue? _isPrivate; /// /// Creates a new StaticSiteTemplate. /// public StaticSiteTemplate() { - _templateRepositoryUri = BicepValue.DefineProperty(this, "TemplateRepositoryUri", ["templateRepositoryUrl"]); - _owner = BicepValue.DefineProperty(this, "Owner", ["owner"]); - _repositoryName = BicepValue.DefineProperty(this, "RepositoryName", ["repositoryName"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _isPrivate = BicepValue.DefineProperty(this, "IsPrivate", ["isPrivate"]); + } + + /// + /// Define all the provisionable properties of StaticSiteTemplate. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _templateRepositoryUri = DefineProperty("TemplateRepositoryUri", ["templateRepositoryUrl"]); + _owner = DefineProperty("Owner", ["owner"]); + _repositoryName = DefineProperty("RepositoryName", ["repositoryName"]); + _description = DefineProperty("Description", ["description"]); + _isPrivate = DefineProperty("IsPrivate", ["isPrivate"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteUserProvidedFunctionAppData.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteUserProvidedFunctionAppData.cs index f360ea58f0526..208ff79673f92 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteUserProvidedFunctionAppData.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StaticSiteUserProvidedFunctionAppData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -19,57 +21,90 @@ public partial class StaticSiteUserProvidedFunctionAppData : ProvisionableConstr /// /// The resource id of the function app registered with the static site. /// - public BicepValue FunctionAppResourceId { get => _functionAppResourceId; set => _functionAppResourceId.Assign(value); } - private readonly BicepValue _functionAppResourceId; + public BicepValue FunctionAppResourceId + { + get { Initialize(); return _functionAppResourceId!; } + set { Initialize(); _functionAppResourceId!.Assign(value); } + } + private BicepValue? _functionAppResourceId; /// /// The region of the function app registered with the static site. /// - public BicepValue FunctionAppRegion { get => _functionAppRegion; set => _functionAppRegion.Assign(value); } - private readonly BicepValue _functionAppRegion; + public BicepValue FunctionAppRegion + { + get { Initialize(); return _functionAppRegion!; } + set { Initialize(); _functionAppRegion!.Assign(value); } + } + private BicepValue? _functionAppRegion; /// /// The date and time on which the function app was registered with the /// static site. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new StaticSiteUserProvidedFunctionAppData. /// public StaticSiteUserProvidedFunctionAppData() { - _functionAppResourceId = BicepValue.DefineProperty(this, "FunctionAppResourceId", ["properties", "functionAppResourceId"]); - _functionAppRegion = BicepValue.DefineProperty(this, "FunctionAppRegion", ["properties", "functionAppRegion"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdOn"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// StaticSiteUserProvidedFunctionAppData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _functionAppResourceId = DefineProperty("FunctionAppResourceId", ["properties", "functionAppResourceId"]); + _functionAppRegion = DefineProperty("FunctionAppRegion", ["properties", "functionAppRegion"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdOn"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StatusCodesBasedTrigger.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StatusCodesBasedTrigger.cs index 102497b3e5aa6..a388f4182e8f7 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StatusCodesBasedTrigger.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StatusCodesBasedTrigger.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,49 +18,81 @@ public partial class StatusCodesBasedTrigger : ProvisionableConstruct /// /// HTTP status code. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Request Sub Status. /// - public BicepValue SubStatus { get => _subStatus; set => _subStatus.Assign(value); } - private readonly BicepValue _subStatus; + public BicepValue SubStatus + { + get { Initialize(); return _subStatus!; } + set { Initialize(); _subStatus!.Assign(value); } + } + private BicepValue? _subStatus; /// /// Win32 error code. /// - public BicepValue Win32Status { get => _win32Status; set => _win32Status.Assign(value); } - private readonly BicepValue _win32Status; + public BicepValue Win32Status + { + get { Initialize(); return _win32Status!; } + set { Initialize(); _win32Status!.Assign(value); } + } + private BicepValue? _win32Status; /// /// Request Count. /// - public BicepValue Count { get => _count; set => _count.Assign(value); } - private readonly BicepValue _count; + public BicepValue Count + { + get { Initialize(); return _count!; } + set { Initialize(); _count!.Assign(value); } + } + private BicepValue? _count; /// /// Time interval. /// - public BicepValue TimeInterval { get => _timeInterval; set => _timeInterval.Assign(value); } - private readonly BicepValue _timeInterval; + public BicepValue TimeInterval + { + get { Initialize(); return _timeInterval!; } + set { Initialize(); _timeInterval!.Assign(value); } + } + private BicepValue? _timeInterval; /// /// Request Path. /// - public BicepValue Path { get => _path; set => _path.Assign(value); } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + set { Initialize(); _path!.Assign(value); } + } + private BicepValue? _path; /// /// Creates a new StatusCodesBasedTrigger. /// public StatusCodesBasedTrigger() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _subStatus = BicepValue.DefineProperty(this, "SubStatus", ["subStatus"]); - _win32Status = BicepValue.DefineProperty(this, "Win32Status", ["win32Status"]); - _count = BicepValue.DefineProperty(this, "Count", ["count"]); - _timeInterval = BicepValue.DefineProperty(this, "TimeInterval", ["timeInterval"]); - _path = BicepValue.DefineProperty(this, "Path", ["path"]); + } + + /// + /// Define all the provisionable properties of StatusCodesBasedTrigger. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _subStatus = DefineProperty("SubStatus", ["subStatus"]); + _win32Status = DefineProperty("Win32Status", ["win32Status"]); + _count = DefineProperty("Count", ["count"]); + _timeInterval = DefineProperty("TimeInterval", ["timeInterval"]); + _path = DefineProperty("Path", ["path"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StatusCodesRangeBasedTrigger.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StatusCodesRangeBasedTrigger.cs index 65ce45972d709..e75d241221bb6 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StatusCodesRangeBasedTrigger.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/StatusCodesRangeBasedTrigger.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class StatusCodesRangeBasedTrigger : ProvisionableConstruct /// /// HTTP status code. /// - public BicepValue StatusCodes { get => _statusCodes; set => _statusCodes.Assign(value); } - private readonly BicepValue _statusCodes; + public BicepValue StatusCodes + { + get { Initialize(); return _statusCodes!; } + set { Initialize(); _statusCodes!.Assign(value); } + } + private BicepValue? _statusCodes; /// /// Gets or sets the path. /// - public BicepValue Path { get => _path; set => _path.Assign(value); } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + set { Initialize(); _path!.Assign(value); } + } + private BicepValue? _path; /// /// Request Count. /// - public BicepValue Count { get => _count; set => _count.Assign(value); } - private readonly BicepValue _count; + public BicepValue Count + { + get { Initialize(); return _count!; } + set { Initialize(); _count!.Assign(value); } + } + private BicepValue? _count; /// /// Time interval. /// - public BicepValue TimeInterval { get => _timeInterval; set => _timeInterval.Assign(value); } - private readonly BicepValue _timeInterval; + public BicepValue TimeInterval + { + get { Initialize(); return _timeInterval!; } + set { Initialize(); _timeInterval!.Assign(value); } + } + private BicepValue? _timeInterval; /// /// Creates a new StatusCodesRangeBasedTrigger. /// public StatusCodesRangeBasedTrigger() { - _statusCodes = BicepValue.DefineProperty(this, "StatusCodes", ["statusCodes"]); - _path = BicepValue.DefineProperty(this, "Path", ["path"]); - _count = BicepValue.DefineProperty(this, "Count", ["count"]); - _timeInterval = BicepValue.DefineProperty(this, "TimeInterval", ["timeInterval"]); + } + + /// + /// Define all the provisionable properties of StatusCodesRangeBasedTrigger. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _statusCodes = DefineProperty("StatusCodes", ["statusCodes"]); + _path = DefineProperty("Path", ["path"]); + _count = DefineProperty("Count", ["count"]); + _timeInterval = DefineProperty("TimeInterval", ["timeInterval"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/VirtualApplication.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/VirtualApplication.cs index 2b187bb2f9c83..0f4de67633197 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/VirtualApplication.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/VirtualApplication.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,36 +19,60 @@ public partial class VirtualApplication : ProvisionableConstruct /// /// Virtual path. /// - public BicepValue VirtualPath { get => _virtualPath; set => _virtualPath.Assign(value); } - private readonly BicepValue _virtualPath; + public BicepValue VirtualPath + { + get { Initialize(); return _virtualPath!; } + set { Initialize(); _virtualPath!.Assign(value); } + } + private BicepValue? _virtualPath; /// /// Physical path. /// - public BicepValue PhysicalPath { get => _physicalPath; set => _physicalPath.Assign(value); } - private readonly BicepValue _physicalPath; + public BicepValue PhysicalPath + { + get { Initialize(); return _physicalPath!; } + set { Initialize(); _physicalPath!.Assign(value); } + } + private BicepValue? _physicalPath; /// /// <code>true</code> if preloading is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsPreloadEnabled { get => _isPreloadEnabled; set => _isPreloadEnabled.Assign(value); } - private readonly BicepValue _isPreloadEnabled; + public BicepValue IsPreloadEnabled + { + get { Initialize(); return _isPreloadEnabled!; } + set { Initialize(); _isPreloadEnabled!.Assign(value); } + } + private BicepValue? _isPreloadEnabled; /// /// Virtual directories for virtual application. /// - public BicepList VirtualDirectories { get => _virtualDirectories; set => _virtualDirectories.Assign(value); } - private readonly BicepList _virtualDirectories; + public BicepList VirtualDirectories + { + get { Initialize(); return _virtualDirectories!; } + set { Initialize(); _virtualDirectories!.Assign(value); } + } + private BicepList? _virtualDirectories; /// /// Creates a new VirtualApplication. /// public VirtualApplication() { - _virtualPath = BicepValue.DefineProperty(this, "VirtualPath", ["virtualPath"]); - _physicalPath = BicepValue.DefineProperty(this, "PhysicalPath", ["physicalPath"]); - _isPreloadEnabled = BicepValue.DefineProperty(this, "IsPreloadEnabled", ["preloadEnabled"]); - _virtualDirectories = BicepList.DefineProperty(this, "VirtualDirectories", ["virtualDirectories"]); + } + + /// + /// Define all the provisionable properties of VirtualApplication. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _virtualPath = DefineProperty("VirtualPath", ["virtualPath"]); + _physicalPath = DefineProperty("PhysicalPath", ["physicalPath"]); + _isPreloadEnabled = DefineProperty("IsPreloadEnabled", ["preloadEnabled"]); + _virtualDirectories = DefineListProperty("VirtualDirectories", ["virtualDirectories"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/VirtualDirectory.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/VirtualDirectory.cs index 4ff772eec7748..b765f32a2ae31 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/VirtualDirectory.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/VirtualDirectory.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class VirtualDirectory : ProvisionableConstruct /// /// Path to virtual application. /// - public BicepValue VirtualPath { get => _virtualPath; set => _virtualPath.Assign(value); } - private readonly BicepValue _virtualPath; + public BicepValue VirtualPath + { + get { Initialize(); return _virtualPath!; } + set { Initialize(); _virtualPath!.Assign(value); } + } + private BicepValue? _virtualPath; /// /// Physical path. /// - public BicepValue PhysicalPath { get => _physicalPath; set => _physicalPath.Assign(value); } - private readonly BicepValue _physicalPath; + public BicepValue PhysicalPath + { + get { Initialize(); return _physicalPath!; } + set { Initialize(); _physicalPath!.Assign(value); } + } + private BicepValue? _physicalPath; /// /// Creates a new VirtualDirectory. /// public VirtualDirectory() { - _virtualPath = BicepValue.DefineProperty(this, "VirtualPath", ["virtualPath"]); - _physicalPath = BicepValue.DefineProperty(this, "PhysicalPath", ["physicalPath"]); + } + + /// + /// Define all the provisionable properties of VirtualDirectory. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _virtualPath = DefineProperty("VirtualPath", ["virtualPath"]); + _physicalPath = DefineProperty("PhysicalPath", ["physicalPath"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/WebAppEnvironmentVariable.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/WebAppEnvironmentVariable.cs index b56cc3eaf812c..6384a1d727c6b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/WebAppEnvironmentVariable.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/WebAppEnvironmentVariable.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class WebAppEnvironmentVariable : ProvisionableConstruct /// /// Environment variable name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Environment variable value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new WebAppEnvironmentVariable. /// public WebAppEnvironmentVariable() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of WebAppEnvironmentVariable. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/WebAppPushSettings.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/WebAppPushSettings.cs index e056fd3a88df3..318791c332c65 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/WebAppPushSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/Models/WebAppPushSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -18,15 +20,23 @@ public partial class WebAppPushSettings : ProvisionableConstruct /// /// Gets or sets a flag indicating whether the Push endpoint is enabled. /// - public BicepValue IsPushEnabled { get => _isPushEnabled; set => _isPushEnabled.Assign(value); } - private readonly BicepValue _isPushEnabled; + public BicepValue IsPushEnabled + { + get { Initialize(); return _isPushEnabled!; } + set { Initialize(); _isPushEnabled!.Assign(value); } + } + private BicepValue? _isPushEnabled; /// /// Gets or sets a JSON string containing a list of tags that are /// whitelisted for use by the push registration endpoint. /// - public BicepValue TagWhitelistJson { get => _tagWhitelistJson; set => _tagWhitelistJson.Assign(value); } - private readonly BicepValue _tagWhitelistJson; + public BicepValue TagWhitelistJson + { + get { Initialize(); return _tagWhitelistJson!; } + set { Initialize(); _tagWhitelistJson!.Assign(value); } + } + private BicepValue? _tagWhitelistJson; /// /// Gets or sets a JSON string containing a list of tags that require user @@ -36,52 +46,81 @@ public partial class WebAppPushSettings : ProvisionableConstruct /// '.', ':', '-'. Validation /// should be performed at the PushRequestHandler. /// - public BicepValue TagsRequiringAuth { get => _tagsRequiringAuth; set => _tagsRequiringAuth.Assign(value); } - private readonly BicepValue _tagsRequiringAuth; + public BicepValue TagsRequiringAuth + { + get { Initialize(); return _tagsRequiringAuth!; } + set { Initialize(); _tagsRequiringAuth!.Assign(value); } + } + private BicepValue? _tagsRequiringAuth; /// /// Gets or sets a JSON string containing a list of dynamic tags that will /// be evaluated from user claims in the push registration endpoint. /// - public BicepValue DynamicTagsJson { get => _dynamicTagsJson; set => _dynamicTagsJson.Assign(value); } - private readonly BicepValue _dynamicTagsJson; + public BicepValue DynamicTagsJson + { + get { Initialize(); return _dynamicTagsJson!; } + set { Initialize(); _dynamicTagsJson!.Assign(value); } + } + private BicepValue? _dynamicTagsJson; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new WebAppPushSettings. /// public WebAppPushSettings() { - _isPushEnabled = BicepValue.DefineProperty(this, "IsPushEnabled", ["properties", "isPushEnabled"]); - _tagWhitelistJson = BicepValue.DefineProperty(this, "TagWhitelistJson", ["properties", "tagWhitelistJson"]); - _tagsRequiringAuth = BicepValue.DefineProperty(this, "TagsRequiringAuth", ["properties", "tagsRequiringAuth"]); - _dynamicTagsJson = BicepValue.DefineProperty(this, "DynamicTagsJson", ["properties", "dynamicTagsJson"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of WebAppPushSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isPushEnabled = DefineProperty("IsPushEnabled", ["properties", "isPushEnabled"]); + _tagWhitelistJson = DefineProperty("TagWhitelistJson", ["properties", "tagWhitelistJson"]); + _tagsRequiringAuth = DefineProperty("TagsRequiringAuth", ["properties", "tagsRequiringAuth"]); + _dynamicTagsJson = DefineProperty("DynamicTagsJson", ["properties", "dynamicTagsJson"]); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/PublishingUser.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/PublishingUser.cs index 01c5b8d9e4ba6..9b04a6142d225 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/PublishingUser.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/PublishingUser.cs @@ -20,56 +20,89 @@ public partial class PublishingUser : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Password used for publishing. /// - public BicepValue PublishingPassword { get => _publishingPassword; set => _publishingPassword.Assign(value); } - private readonly BicepValue _publishingPassword; + public BicepValue PublishingPassword + { + get { Initialize(); return _publishingPassword!; } + set { Initialize(); _publishingPassword!.Assign(value); } + } + private BicepValue? _publishingPassword; /// /// Password hash used for publishing. /// - public BicepValue PublishingPasswordHash { get => _publishingPasswordHash; set => _publishingPasswordHash.Assign(value); } - private readonly BicepValue _publishingPasswordHash; + public BicepValue PublishingPasswordHash + { + get { Initialize(); return _publishingPasswordHash!; } + set { Initialize(); _publishingPasswordHash!.Assign(value); } + } + private BicepValue? _publishingPasswordHash; /// /// Password hash salt used for publishing. /// - public BicepValue PublishingPasswordHashSalt { get => _publishingPasswordHashSalt; set => _publishingPasswordHashSalt.Assign(value); } - private readonly BicepValue _publishingPasswordHashSalt; + public BicepValue PublishingPasswordHashSalt + { + get { Initialize(); return _publishingPasswordHashSalt!; } + set { Initialize(); _publishingPasswordHashSalt!.Assign(value); } + } + private BicepValue? _publishingPasswordHashSalt; /// /// Username used for publishing. /// - public BicepValue PublishingUserName { get => _publishingUserName; set => _publishingUserName.Assign(value); } - private readonly BicepValue _publishingUserName; + public BicepValue PublishingUserName + { + get { Initialize(); return _publishingUserName!; } + set { Initialize(); _publishingUserName!.Assign(value); } + } + private BicepValue? _publishingUserName; /// /// Url of SCM site. /// - public BicepValue ScmUri { get => _scmUri; set => _scmUri.Assign(value); } - private readonly BicepValue _scmUri; + public BicepValue ScmUri + { + get { Initialize(); return _scmUri!; } + set { Initialize(); _scmUri!.Assign(value); } + } + private BicepValue? _scmUri; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new PublishingUser. @@ -84,15 +117,22 @@ public partial class PublishingUser : ProvisionableResource public PublishingUser(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/publishingUsers", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _publishingPassword = BicepValue.DefineProperty(this, "PublishingPassword", ["properties", "publishingPassword"]); - _publishingPasswordHash = BicepValue.DefineProperty(this, "PublishingPasswordHash", ["properties", "publishingPasswordHash"]); - _publishingPasswordHashSalt = BicepValue.DefineProperty(this, "PublishingPasswordHashSalt", ["properties", "publishingPasswordHashSalt"]); - _publishingUserName = BicepValue.DefineProperty(this, "PublishingUserName", ["properties", "publishingUserName"]); - _scmUri = BicepValue.DefineProperty(this, "ScmUri", ["properties", "scmUri"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PublishingUser. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"]); + _publishingPassword = DefineProperty("PublishingPassword", ["properties", "publishingPassword"]); + _publishingPasswordHash = DefineProperty("PublishingPasswordHash", ["properties", "publishingPasswordHash"]); + _publishingPasswordHashSalt = DefineProperty("PublishingPasswordHashSalt", ["properties", "publishingPasswordHashSalt"]); + _publishingUserName = DefineProperty("PublishingUserName", ["properties", "publishingUserName"]); + _scmUri = DefineProperty("ScmUri", ["properties", "scmUri"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/ScmSiteBasicPublishingCredentialsPolicy.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/ScmSiteBasicPublishingCredentialsPolicy.cs index fd12f0b5e339e..6718787e6b67b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/ScmSiteBasicPublishingCredentialsPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/ScmSiteBasicPublishingCredentialsPolicy.cs @@ -20,39 +20,60 @@ public partial class ScmSiteBasicPublishingCredentialsPolicy : ProvisionableReso /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// <code>true</code> to allow access to a publishing method; /// otherwise, <code>false</code>. /// - public BicepValue Allow { get => _allow; set => _allow.Assign(value); } - private readonly BicepValue _allow; + public BicepValue Allow + { + get { Initialize(); return _allow!; } + set { Initialize(); _allow!.Assign(value); } + } + private BicepValue? _allow; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ScmSiteBasicPublishingCredentialsPolicy. @@ -67,12 +88,20 @@ public partial class ScmSiteBasicPublishingCredentialsPolicy : ProvisionableReso public ScmSiteBasicPublishingCredentialsPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/basicPublishingCredentialsPolicies", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _allow = BicepValue.DefineProperty(this, "Allow", ["properties", "allow"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ScmSiteBasicPublishingCredentialsPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _allow = DefineProperty("Allow", ["properties", "allow"]); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/ScmSiteSlotBasicPublishingCredentialsPolicy.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/ScmSiteSlotBasicPublishingCredentialsPolicy.cs index 817e679f41dc2..d40549a198478 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/ScmSiteSlotBasicPublishingCredentialsPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/ScmSiteSlotBasicPublishingCredentialsPolicy.cs @@ -20,39 +20,60 @@ public partial class ScmSiteSlotBasicPublishingCredentialsPolicy : Provisionable /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// <code>true</code> to allow access to a publishing method; /// otherwise, <code>false</code>. /// - public BicepValue Allow { get => _allow; set => _allow.Assign(value); } - private readonly BicepValue _allow; + public BicepValue Allow + { + get { Initialize(); return _allow!; } + set { Initialize(); _allow!.Assign(value); } + } + private BicepValue? _allow; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ScmSiteSlotBasicPublishingCredentialsPolicy. @@ -68,12 +89,20 @@ public partial class ScmSiteSlotBasicPublishingCredentialsPolicy : Provisionable public ScmSiteSlotBasicPublishingCredentialsPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/basicPublishingCredentialsPolicies", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _allow = BicepValue.DefineProperty(this, "Allow", ["properties", "allow"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ScmSiteSlotBasicPublishingCredentialsPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _allow = DefineProperty("Allow", ["properties", "allow"]); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteContainer.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteContainer.cs index 4f9291c795441..2e2771b4c7fc4 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteContainer.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteContainer.cs @@ -21,105 +21,169 @@ public partial class SiteContainer : ProvisionableResource /// /// Site Container Name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Auth Type. /// - public BicepValue AuthType { get => _authType; set => _authType.Assign(value); } - private readonly BicepValue _authType; + public BicepValue AuthType + { + get { Initialize(); return _authType!; } + set { Initialize(); _authType!.Assign(value); } + } + private BicepValue? _authType; /// /// List of environment variables. /// - public BicepList EnvironmentVariables { get => _environmentVariables; set => _environmentVariables.Assign(value); } - private readonly BicepList _environmentVariables; + public BicepList EnvironmentVariables + { + get { Initialize(); return _environmentVariables!; } + set { Initialize(); _environmentVariables!.Assign(value); } + } + private BicepList? _environmentVariables; /// /// Image Name. /// - public BicepValue Image { get => _image; set => _image.Assign(value); } - private readonly BicepValue _image; + public BicepValue Image + { + get { Initialize(); return _image!; } + set { Initialize(); _image!.Assign(value); } + } + private BicepValue? _image; /// /// <code>true</code> if the container is the main site /// container; <code>false</code> otherwise. /// - public BicepValue IsMain { get => _isMain; set => _isMain.Assign(value); } - private readonly BicepValue _isMain; + public BicepValue IsMain + { + get { Initialize(); return _isMain!; } + set { Initialize(); _isMain!.Assign(value); } + } + private BicepValue? _isMain; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Password Secret. /// - public BicepValue PasswordSecret { get => _passwordSecret; set => _passwordSecret.Assign(value); } - private readonly BicepValue _passwordSecret; + public BicepValue PasswordSecret + { + get { Initialize(); return _passwordSecret!; } + set { Initialize(); _passwordSecret!.Assign(value); } + } + private BicepValue? _passwordSecret; /// /// StartUp Command. /// - public BicepValue StartUpCommand { get => _startUpCommand; set => _startUpCommand.Assign(value); } - private readonly BicepValue _startUpCommand; + public BicepValue StartUpCommand + { + get { Initialize(); return _startUpCommand!; } + set { Initialize(); _startUpCommand!.Assign(value); } + } + private BicepValue? _startUpCommand; /// /// Target Port. /// - public BicepValue TargetPort { get => _targetPort; set => _targetPort.Assign(value); } - private readonly BicepValue _targetPort; + public BicepValue TargetPort + { + get { Initialize(); return _targetPort!; } + set { Initialize(); _targetPort!.Assign(value); } + } + private BicepValue? _targetPort; /// /// UserManagedIdentity ClientId. /// - public BicepValue UserManagedIdentityClientId { get => _userManagedIdentityClientId; set => _userManagedIdentityClientId.Assign(value); } - private readonly BicepValue _userManagedIdentityClientId; + public BicepValue UserManagedIdentityClientId + { + get { Initialize(); return _userManagedIdentityClientId!; } + set { Initialize(); _userManagedIdentityClientId!.Assign(value); } + } + private BicepValue? _userManagedIdentityClientId; /// /// User Name. /// - public BicepValue UserName { get => _userName; set => _userName.Assign(value); } - private readonly BicepValue _userName; + public BicepValue UserName + { + get { Initialize(); return _userName!; } + set { Initialize(); _userName!.Assign(value); } + } + private BicepValue? _userName; /// /// List of volume mounts. /// - public BicepList VolumeMounts { get => _volumeMounts; set => _volumeMounts.Assign(value); } - private readonly BicepList _volumeMounts; + public BicepList VolumeMounts + { + get { Initialize(); return _volumeMounts!; } + set { Initialize(); _volumeMounts!.Assign(value); } + } + private BicepList? _volumeMounts; /// /// Created Time. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Last Modified Time. /// - public BicepValue LastModifiedOn { get => _lastModifiedOn; } - private readonly BicepValue _lastModifiedOn; + public BicepValue LastModifiedOn + { + get { Initialize(); return _lastModifiedOn!; } + } + private BicepValue? _lastModifiedOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteContainer. @@ -134,23 +198,30 @@ public partial class SiteContainer : ProvisionableResource public SiteContainer(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/sitecontainers", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _authType = BicepValue.DefineProperty(this, "AuthType", ["properties", "authType"]); - _environmentVariables = BicepList.DefineProperty(this, "EnvironmentVariables", ["properties", "environmentVariables"]); - _image = BicepValue.DefineProperty(this, "Image", ["properties", "image"]); - _isMain = BicepValue.DefineProperty(this, "IsMain", ["properties", "isMain"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _passwordSecret = BicepValue.DefineProperty(this, "PasswordSecret", ["properties", "passwordSecret"]); - _startUpCommand = BicepValue.DefineProperty(this, "StartUpCommand", ["properties", "startUpCommand"]); - _targetPort = BicepValue.DefineProperty(this, "TargetPort", ["properties", "targetPort"]); - _userManagedIdentityClientId = BicepValue.DefineProperty(this, "UserManagedIdentityClientId", ["properties", "userManagedIdentityClientId"]); - _userName = BicepValue.DefineProperty(this, "UserName", ["properties", "userName"]); - _volumeMounts = BicepList.DefineProperty(this, "VolumeMounts", ["properties", "volumeMounts"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _lastModifiedOn = BicepValue.DefineProperty(this, "LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SiteContainer. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _authType = DefineProperty("AuthType", ["properties", "authType"]); + _environmentVariables = DefineListProperty("EnvironmentVariables", ["properties", "environmentVariables"]); + _image = DefineProperty("Image", ["properties", "image"]); + _isMain = DefineProperty("IsMain", ["properties", "isMain"]); + _kind = DefineProperty("Kind", ["kind"]); + _passwordSecret = DefineProperty("PasswordSecret", ["properties", "passwordSecret"]); + _startUpCommand = DefineProperty("StartUpCommand", ["properties", "startUpCommand"]); + _targetPort = DefineProperty("TargetPort", ["properties", "targetPort"]); + _userManagedIdentityClientId = DefineProperty("UserManagedIdentityClientId", ["properties", "userManagedIdentityClientId"]); + _userName = DefineProperty("UserName", ["properties", "userName"]); + _volumeMounts = DefineListProperty("VolumeMounts", ["properties", "volumeMounts"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _lastModifiedOn = DefineProperty("LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteDeployment.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteDeployment.cs index 4b6f6f692f65e..8fcf3aa5b9c0b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteDeployment.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteDeployment.cs @@ -19,81 +19,131 @@ public partial class SiteDeployment : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Who authored the deployment. /// - public BicepValue Author { get => _author; set => _author.Assign(value); } - private readonly BicepValue _author; + public BicepValue Author + { + get { Initialize(); return _author!; } + set { Initialize(); _author!.Assign(value); } + } + private BicepValue? _author; /// /// Author email. /// - public BicepValue AuthorEmail { get => _authorEmail; set => _authorEmail.Assign(value); } - private readonly BicepValue _authorEmail; + public BicepValue AuthorEmail + { + get { Initialize(); return _authorEmail!; } + set { Initialize(); _authorEmail!.Assign(value); } + } + private BicepValue? _authorEmail; /// /// Who performed the deployment. /// - public BicepValue Deployer { get => _deployer; set => _deployer.Assign(value); } - private readonly BicepValue _deployer; + public BicepValue Deployer + { + get { Initialize(); return _deployer!; } + set { Initialize(); _deployer!.Assign(value); } + } + private BicepValue? _deployer; /// /// Details on deployment. /// - public BicepValue Details { get => _details; set => _details.Assign(value); } - private readonly BicepValue _details; + public BicepValue Details + { + get { Initialize(); return _details!; } + set { Initialize(); _details!.Assign(value); } + } + private BicepValue? _details; /// /// End time. /// - public BicepValue EndOn { get => _endOn; set => _endOn.Assign(value); } - private readonly BicepValue _endOn; + public BicepValue EndOn + { + get { Initialize(); return _endOn!; } + set { Initialize(); _endOn!.Assign(value); } + } + private BicepValue? _endOn; /// /// True if deployment is currently active, false if completed and null if /// not started. /// - public BicepValue IsActive { get => _isActive; set => _isActive.Assign(value); } - private readonly BicepValue _isActive; + public BicepValue IsActive + { + get { Initialize(); return _isActive!; } + set { Initialize(); _isActive!.Assign(value); } + } + private BicepValue? _isActive; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Details about deployment status. /// - public BicepValue Message { get => _message; set => _message.Assign(value); } - private readonly BicepValue _message; + public BicepValue Message + { + get { Initialize(); return _message!; } + set { Initialize(); _message!.Assign(value); } + } + private BicepValue? _message; /// /// Start time. /// - public BicepValue StartOn { get => _startOn; set => _startOn.Assign(value); } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + set { Initialize(); _startOn!.Assign(value); } + } + private BicepValue? _startOn; /// /// Deployment status. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteDeployment. @@ -108,19 +158,26 @@ public partial class SiteDeployment : ProvisionableResource public SiteDeployment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/deployments", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _author = BicepValue.DefineProperty(this, "Author", ["properties", "author"]); - _authorEmail = BicepValue.DefineProperty(this, "AuthorEmail", ["properties", "author_email"]); - _deployer = BicepValue.DefineProperty(this, "Deployer", ["properties", "deployer"]); - _details = BicepValue.DefineProperty(this, "Details", ["properties", "details"]); - _endOn = BicepValue.DefineProperty(this, "EndOn", ["properties", "end_time"]); - _isActive = BicepValue.DefineProperty(this, "IsActive", ["properties", "active"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _message = BicepValue.DefineProperty(this, "Message", ["properties", "message"]); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["properties", "start_time"]); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"]); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SiteDeployment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _author = DefineProperty("Author", ["properties", "author"]); + _authorEmail = DefineProperty("AuthorEmail", ["properties", "author_email"]); + _deployer = DefineProperty("Deployer", ["properties", "deployer"]); + _details = DefineProperty("Details", ["properties", "details"]); + _endOn = DefineProperty("EndOn", ["properties", "end_time"]); + _isActive = DefineProperty("IsActive", ["properties", "active"]); + _kind = DefineProperty("Kind", ["kind"]); + _message = DefineProperty("Message", ["properties", "message"]); + _startOn = DefineProperty("StartOn", ["properties", "start_time"]); + _status = DefineProperty("Status", ["properties", "status"]); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteDomainOwnershipIdentifier.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteDomainOwnershipIdentifier.cs index 33143fd884adc..0735d266112f6 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteDomainOwnershipIdentifier.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteDomainOwnershipIdentifier.cs @@ -20,38 +20,60 @@ public partial class SiteDomainOwnershipIdentifier : ProvisionableResource /// /// Name of domain ownership identifier. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// String representation of the identity. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteDomainOwnershipIdentifier. @@ -66,12 +88,20 @@ public partial class SiteDomainOwnershipIdentifier : ProvisionableResource public SiteDomainOwnershipIdentifier(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/domainOwnershipIdentifiers", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _value = BicepValue.DefineProperty(this, "Value", ["properties", "id"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SiteDomainOwnershipIdentifier. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"]); + _value = DefineProperty("Value", ["properties", "id"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteExtension.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteExtension.cs index dcfaf0e153a42..1f89c10a8607d 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteExtension.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteExtension.cs @@ -21,52 +21,83 @@ public partial class SiteExtension : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// SQL Connection String. /// - public BicepValue ConnectionString { get => _connectionString; set => _connectionString.Assign(value); } - private readonly BicepValue _connectionString; + public BicepValue ConnectionString + { + get { Initialize(); return _connectionString!; } + set { Initialize(); _connectionString!.Assign(value); } + } + private BicepValue? _connectionString; /// /// Database Type. /// - public BicepValue DBType { get => _dBType; set => _dBType.Assign(value); } - private readonly BicepValue _dBType; + public BicepValue DBType + { + get { Initialize(); return _dBType!; } + set { Initialize(); _dBType!.Assign(value); } + } + private BicepValue? _dBType; /// /// Sets the AppOffline rule while the MSDeploy operation executes. /// Setting is <code>false</code> by default. /// - public BicepValue IsAppOffline { get => _isAppOffline; set => _isAppOffline.Assign(value); } - private readonly BicepValue _isAppOffline; + public BicepValue IsAppOffline + { + get { Initialize(); return _isAppOffline!; } + set { Initialize(); _isAppOffline!.Assign(value); } + } + private BicepValue? _isAppOffline; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Package URI. /// - public BicepValue PackageUri { get => _packageUri; set => _packageUri.Assign(value); } - private readonly BicepValue _packageUri; + public BicepValue PackageUri + { + get { Initialize(); return _packageUri!; } + set { Initialize(); _packageUri!.Assign(value); } + } + private BicepValue? _packageUri; /// /// MSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. /// - public BicepDictionary SetParameters { get => _setParameters; set => _setParameters.Assign(value); } - private readonly BicepDictionary _setParameters; + public BicepDictionary SetParameters + { + get { Initialize(); return _setParameters!; } + set { Initialize(); _setParameters!.Assign(value); } + } + private BicepDictionary? _setParameters; /// /// URI of MSDeploy Parameters file. Must not be set if SetParameters is /// used. /// - public BicepValue SetParametersXmlFileUri { get => _setParametersXmlFileUri; set => _setParametersXmlFileUri.Assign(value); } - private readonly BicepValue _setParametersXmlFileUri; + public BicepValue SetParametersXmlFileUri + { + get { Initialize(); return _setParametersXmlFileUri!; } + set { Initialize(); _setParametersXmlFileUri!.Assign(value); } + } + private BicepValue? _setParametersXmlFileUri; /// /// Controls whether the MSDeploy operation skips the App_Data directory. @@ -75,56 +106,85 @@ public partial class SiteExtension : ProvisionableResource /// and any App_Data directory in the source will be ignored. /// Setting is <code>false</code> by default. /// - public BicepValue SkipAppData { get => _skipAppData; set => _skipAppData.Assign(value); } - private readonly BicepValue _skipAppData; + public BicepValue SkipAppData + { + get { Initialize(); return _skipAppData!; } + set { Initialize(); _skipAppData!.Assign(value); } + } + private BicepValue? _skipAppData; /// /// Username of deployer. /// - public BicepValue Deployer { get => _deployer; } - private readonly BicepValue _deployer; + public BicepValue Deployer + { + get { Initialize(); return _deployer!; } + } + private BicepValue? _deployer; /// /// End time of deploy operation. /// - public BicepValue EndOn { get => _endOn; } - private readonly BicepValue _endOn; + public BicepValue EndOn + { + get { Initialize(); return _endOn!; } + } + private BicepValue? _endOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Whether the deployment operation has completed. /// - public BicepValue IsComplete { get => _isComplete; } - private readonly BicepValue _isComplete; + public BicepValue IsComplete + { + get { Initialize(); return _isComplete!; } + } + private BicepValue? _isComplete; /// /// Provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Start time of deploy operation. /// - public BicepValue StartOn { get => _startOn; } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + } + private BicepValue? _startOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteExtension. @@ -139,23 +199,30 @@ public partial class SiteExtension : ProvisionableResource public SiteExtension(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/extensions", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _connectionString = BicepValue.DefineProperty(this, "ConnectionString", ["properties", "connectionString"]); - _dBType = BicepValue.DefineProperty(this, "DBType", ["properties", "dbType"]); - _isAppOffline = BicepValue.DefineProperty(this, "IsAppOffline", ["properties", "appOffline"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _packageUri = BicepValue.DefineProperty(this, "PackageUri", ["properties", "packageUri"]); - _setParameters = BicepDictionary.DefineProperty(this, "SetParameters", ["properties", "setParameters"]); - _setParametersXmlFileUri = BicepValue.DefineProperty(this, "SetParametersXmlFileUri", ["properties", "setParametersXmlFileUri"]); - _skipAppData = BicepValue.DefineProperty(this, "SkipAppData", ["properties", "skipAppData"]); - _deployer = BicepValue.DefineProperty(this, "Deployer", ["properties", "deployer"], isOutput: true); - _endOn = BicepValue.DefineProperty(this, "EndOn", ["properties", "endTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isComplete = BicepValue.DefineProperty(this, "IsComplete", ["properties", "complete"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["properties", "startTime"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SiteExtension. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _connectionString = DefineProperty("ConnectionString", ["properties", "connectionString"]); + _dBType = DefineProperty("DBType", ["properties", "dbType"]); + _isAppOffline = DefineProperty("IsAppOffline", ["properties", "appOffline"]); + _kind = DefineProperty("Kind", ["kind"]); + _packageUri = DefineProperty("PackageUri", ["properties", "packageUri"]); + _setParameters = DefineDictionaryProperty("SetParameters", ["properties", "setParameters"]); + _setParametersXmlFileUri = DefineProperty("SetParametersXmlFileUri", ["properties", "setParametersXmlFileUri"]); + _skipAppData = DefineProperty("SkipAppData", ["properties", "skipAppData"]); + _deployer = DefineProperty("Deployer", ["properties", "deployer"], isOutput: true); + _endOn = DefineProperty("EndOn", ["properties", "endTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isComplete = DefineProperty("IsComplete", ["properties", "complete"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _startOn = DefineProperty("StartOn", ["properties", "startTime"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteFunction.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteFunction.cs index 1a8d3c098d350..9ac406095b567 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteFunction.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteFunction.cs @@ -21,8 +21,12 @@ public partial class SiteFunction : ProvisionableResource /// /// Function name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Config information. To assign an object to @@ -40,104 +44,170 @@ public partial class SiteFunction : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Config { get => _config; set => _config.Assign(value); } - private readonly BicepValue _config; + public BicepValue Config + { + get { Initialize(); return _config!; } + set { Initialize(); _config!.Assign(value); } + } + private BicepValue? _config; /// /// Config URI. /// - public BicepValue ConfigHref { get => _configHref; set => _configHref.Assign(value); } - private readonly BicepValue _configHref; + public BicepValue ConfigHref + { + get { Initialize(); return _configHref!; } + set { Initialize(); _configHref!.Assign(value); } + } + private BicepValue? _configHref; /// /// File list. /// - public BicepDictionary Files { get => _files; set => _files.Assign(value); } - private readonly BicepDictionary _files; + public BicepDictionary Files + { + get { Initialize(); return _files!; } + set { Initialize(); _files!.Assign(value); } + } + private BicepDictionary? _files; /// /// Function App ID. /// - public BicepValue FunctionAppId { get => _functionAppId; set => _functionAppId.Assign(value); } - private readonly BicepValue _functionAppId; + public BicepValue FunctionAppId + { + get { Initialize(); return _functionAppId!; } + set { Initialize(); _functionAppId!.Assign(value); } + } + private BicepValue? _functionAppId; /// /// Function URI. /// - public BicepValue Href { get => _href; set => _href.Assign(value); } - private readonly BicepValue _href; + public BicepValue Href + { + get { Initialize(); return _href!; } + set { Initialize(); _href!.Assign(value); } + } + private BicepValue? _href; /// /// The invocation URL. /// - public BicepValue InvokeUrlTemplate { get => _invokeUrlTemplate; set => _invokeUrlTemplate.Assign(value); } - private readonly BicepValue _invokeUrlTemplate; + public BicepValue InvokeUrlTemplate + { + get { Initialize(); return _invokeUrlTemplate!; } + set { Initialize(); _invokeUrlTemplate!.Assign(value); } + } + private BicepValue? _invokeUrlTemplate; /// /// Gets or sets a value indicating whether the function is disabled. /// - public BicepValue IsDisabled { get => _isDisabled; set => _isDisabled.Assign(value); } - private readonly BicepValue _isDisabled; + public BicepValue IsDisabled + { + get { Initialize(); return _isDisabled!; } + set { Initialize(); _isDisabled!.Assign(value); } + } + private BicepValue? _isDisabled; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The function language. /// - public BicepValue Language { get => _language; set => _language.Assign(value); } - private readonly BicepValue _language; + public BicepValue Language + { + get { Initialize(); return _language!; } + set { Initialize(); _language!.Assign(value); } + } + private BicepValue? _language; /// /// Script URI. /// - public BicepValue ScriptHref { get => _scriptHref; set => _scriptHref.Assign(value); } - private readonly BicepValue _scriptHref; + public BicepValue ScriptHref + { + get { Initialize(); return _scriptHref!; } + set { Initialize(); _scriptHref!.Assign(value); } + } + private BicepValue? _scriptHref; /// /// Script root path URI. /// - public BicepValue ScriptRootPathHref { get => _scriptRootPathHref; set => _scriptRootPathHref.Assign(value); } - private readonly BicepValue _scriptRootPathHref; + public BicepValue ScriptRootPathHref + { + get { Initialize(); return _scriptRootPathHref!; } + set { Initialize(); _scriptRootPathHref!.Assign(value); } + } + private BicepValue? _scriptRootPathHref; /// /// Secrets file URI. /// - public BicepValue SecretsFileHref { get => _secretsFileHref; set => _secretsFileHref.Assign(value); } - private readonly BicepValue _secretsFileHref; + public BicepValue SecretsFileHref + { + get { Initialize(); return _secretsFileHref!; } + set { Initialize(); _secretsFileHref!.Assign(value); } + } + private BicepValue? _secretsFileHref; /// /// Test data used when testing via the Azure Portal. /// - public BicepValue TestData { get => _testData; set => _testData.Assign(value); } - private readonly BicepValue _testData; + public BicepValue TestData + { + get { Initialize(); return _testData!; } + set { Initialize(); _testData!.Assign(value); } + } + private BicepValue? _testData; /// /// Test data URI. /// - public BicepValue TestDataHref { get => _testDataHref; set => _testDataHref.Assign(value); } - private readonly BicepValue _testDataHref; + public BicepValue TestDataHref + { + get { Initialize(); return _testDataHref!; } + set { Initialize(); _testDataHref!.Assign(value); } + } + private BicepValue? _testDataHref; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteFunction. @@ -152,24 +222,31 @@ public partial class SiteFunction : ProvisionableResource public SiteFunction(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/functions", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _config = BicepValue.DefineProperty(this, "Config", ["properties", "config"]); - _configHref = BicepValue.DefineProperty(this, "ConfigHref", ["properties", "config_href"]); - _files = BicepDictionary.DefineProperty(this, "Files", ["properties", "files"]); - _functionAppId = BicepValue.DefineProperty(this, "FunctionAppId", ["properties", "function_app_id"]); - _href = BicepValue.DefineProperty(this, "Href", ["properties", "href"]); - _invokeUrlTemplate = BicepValue.DefineProperty(this, "InvokeUrlTemplate", ["properties", "invoke_url_template"]); - _isDisabled = BicepValue.DefineProperty(this, "IsDisabled", ["properties", "isDisabled"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _language = BicepValue.DefineProperty(this, "Language", ["properties", "language"]); - _scriptHref = BicepValue.DefineProperty(this, "ScriptHref", ["properties", "script_href"]); - _scriptRootPathHref = BicepValue.DefineProperty(this, "ScriptRootPathHref", ["properties", "script_root_path_href"]); - _secretsFileHref = BicepValue.DefineProperty(this, "SecretsFileHref", ["properties", "secrets_file_href"]); - _testData = BicepValue.DefineProperty(this, "TestData", ["properties", "test_data"]); - _testDataHref = BicepValue.DefineProperty(this, "TestDataHref", ["properties", "test_data_href"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SiteFunction. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _config = DefineProperty("Config", ["properties", "config"]); + _configHref = DefineProperty("ConfigHref", ["properties", "config_href"]); + _files = DefineDictionaryProperty("Files", ["properties", "files"]); + _functionAppId = DefineProperty("FunctionAppId", ["properties", "function_app_id"]); + _href = DefineProperty("Href", ["properties", "href"]); + _invokeUrlTemplate = DefineProperty("InvokeUrlTemplate", ["properties", "invoke_url_template"]); + _isDisabled = DefineProperty("IsDisabled", ["properties", "isDisabled"]); + _kind = DefineProperty("Kind", ["kind"]); + _language = DefineProperty("Language", ["properties", "language"]); + _scriptHref = DefineProperty("ScriptHref", ["properties", "script_href"]); + _scriptRootPathHref = DefineProperty("ScriptRootPathHref", ["properties", "script_root_path_href"]); + _secretsFileHref = DefineProperty("SecretsFileHref", ["properties", "secrets_file_href"]); + _testData = DefineProperty("TestData", ["properties", "test_data"]); + _testDataHref = DefineProperty("TestDataHref", ["properties", "test_data_href"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteHostNameBinding.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteHostNameBinding.cs index 23c5560e69900..49ed98b7add56 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteHostNameBinding.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteHostNameBinding.cs @@ -20,86 +20,139 @@ public partial class SiteHostNameBinding : ProvisionableResource /// /// Hostname in the hostname binding. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Azure resource name. /// - public BicepValue AzureResourceName { get => _azureResourceName; set => _azureResourceName.Assign(value); } - private readonly BicepValue _azureResourceName; + public BicepValue AzureResourceName + { + get { Initialize(); return _azureResourceName!; } + set { Initialize(); _azureResourceName!.Assign(value); } + } + private BicepValue? _azureResourceName; /// /// Azure resource type. /// - public BicepValue AzureResourceType { get => _azureResourceType; set => _azureResourceType.Assign(value); } - private readonly BicepValue _azureResourceType; + public BicepValue AzureResourceType + { + get { Initialize(); return _azureResourceType!; } + set { Initialize(); _azureResourceType!.Assign(value); } + } + private BicepValue? _azureResourceType; /// /// Custom DNS record type. /// - public BicepValue CustomHostNameDnsRecordType { get => _customHostNameDnsRecordType; set => _customHostNameDnsRecordType.Assign(value); } - private readonly BicepValue _customHostNameDnsRecordType; + public BicepValue CustomHostNameDnsRecordType + { + get { Initialize(); return _customHostNameDnsRecordType!; } + set { Initialize(); _customHostNameDnsRecordType!.Assign(value); } + } + private BicepValue? _customHostNameDnsRecordType; /// /// Fully qualified ARM domain resource URI. /// - public BicepValue DomainId { get => _domainId; set => _domainId.Assign(value); } - private readonly BicepValue _domainId; + public BicepValue DomainId + { + get { Initialize(); return _domainId!; } + set { Initialize(); _domainId!.Assign(value); } + } + private BicepValue? _domainId; /// /// Hostname type. /// - public BicepValue HostNameType { get => _hostNameType; set => _hostNameType.Assign(value); } - private readonly BicepValue _hostNameType; + public BicepValue HostNameType + { + get { Initialize(); return _hostNameType!; } + set { Initialize(); _hostNameType!.Assign(value); } + } + private BicepValue? _hostNameType; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// App Service app name. /// - public BicepValue SiteName { get => _siteName; set => _siteName.Assign(value); } - private readonly BicepValue _siteName; + public BicepValue SiteName + { + get { Initialize(); return _siteName!; } + set { Initialize(); _siteName!.Assign(value); } + } + private BicepValue? _siteName; /// /// SSL type. /// - public BicepValue SslState { get => _sslState; set => _sslState.Assign(value); } - private readonly BicepValue _sslState; + public BicepValue SslState + { + get { Initialize(); return _sslState!; } + set { Initialize(); _sslState!.Assign(value); } + } + private BicepValue? _sslState; /// /// SSL certificate thumbprint. /// - public BicepValue ThumbprintString { get => _thumbprintString; set => _thumbprintString.Assign(value); } - private readonly BicepValue _thumbprintString; + public BicepValue ThumbprintString + { + get { Initialize(); return _thumbprintString!; } + set { Initialize(); _thumbprintString!.Assign(value); } + } + private BicepValue? _thumbprintString; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Virtual IP address assigned to the hostname if IP based SSL is enabled. /// - public BicepValue VirtualIP { get => _virtualIP; } - private readonly BicepValue _virtualIP; + public BicepValue VirtualIP + { + get { Initialize(); return _virtualIP!; } + } + private BicepValue? _virtualIP; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteHostNameBinding. @@ -114,20 +167,27 @@ public partial class SiteHostNameBinding : ProvisionableResource public SiteHostNameBinding(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/hostNameBindings", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _azureResourceName = BicepValue.DefineProperty(this, "AzureResourceName", ["properties", "azureResourceName"]); - _azureResourceType = BicepValue.DefineProperty(this, "AzureResourceType", ["properties", "azureResourceType"]); - _customHostNameDnsRecordType = BicepValue.DefineProperty(this, "CustomHostNameDnsRecordType", ["properties", "customHostNameDnsRecordType"]); - _domainId = BicepValue.DefineProperty(this, "DomainId", ["properties", "domainId"]); - _hostNameType = BicepValue.DefineProperty(this, "HostNameType", ["properties", "hostNameType"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _siteName = BicepValue.DefineProperty(this, "SiteName", ["properties", "siteName"]); - _sslState = BicepValue.DefineProperty(this, "SslState", ["properties", "sslState"]); - _thumbprintString = BicepValue.DefineProperty(this, "ThumbprintString", ["properties", "thumbprint"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _virtualIP = BicepValue.DefineProperty(this, "VirtualIP", ["properties", "virtualIP"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SiteHostNameBinding. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _azureResourceName = DefineProperty("AzureResourceName", ["properties", "azureResourceName"]); + _azureResourceType = DefineProperty("AzureResourceType", ["properties", "azureResourceType"]); + _customHostNameDnsRecordType = DefineProperty("CustomHostNameDnsRecordType", ["properties", "customHostNameDnsRecordType"]); + _domainId = DefineProperty("DomainId", ["properties", "domainId"]); + _hostNameType = DefineProperty("HostNameType", ["properties", "hostNameType"]); + _kind = DefineProperty("Kind", ["kind"]); + _siteName = DefineProperty("SiteName", ["properties", "siteName"]); + _sslState = DefineProperty("SslState", ["properties", "sslState"]); + _thumbprintString = DefineProperty("ThumbprintString", ["properties", "thumbprint"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _virtualIP = DefineProperty("VirtualIP", ["properties", "virtualIP"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteHybridConnectionNamespaceRelay.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteHybridConnectionNamespaceRelay.cs index 4e935587cb9ae..6de369d72bac6 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteHybridConnectionNamespaceRelay.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteHybridConnectionNamespaceRelay.cs @@ -20,78 +20,124 @@ public partial class SiteHybridConnectionNamespaceRelay : ProvisionableResource /// /// The namespace for this hybrid connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The relay name for this hybrid connection. /// - public BicepValue RelayName { get => _relayName; set => _relayName.Assign(value); } - private readonly BicepValue _relayName; + public BicepValue RelayName + { + get { Initialize(); return _relayName!; } + set { Initialize(); _relayName!.Assign(value); } + } + private BicepValue? _relayName; /// /// The hostname of the endpoint. /// - public BicepValue Hostname { get => _hostname; set => _hostname.Assign(value); } - private readonly BicepValue _hostname; + public BicepValue Hostname + { + get { Initialize(); return _hostname!; } + set { Initialize(); _hostname!.Assign(value); } + } + private BicepValue? _hostname; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The port of the endpoint. /// - public BicepValue Port { get => _port; set => _port.Assign(value); } - private readonly BicepValue _port; + public BicepValue Port + { + get { Initialize(); return _port!; } + set { Initialize(); _port!.Assign(value); } + } + private BicepValue? _port; /// /// The ARM URI to the Service Bus relay. /// - public BicepValue RelayArmId { get => _relayArmId; set => _relayArmId.Assign(value); } - private readonly BicepValue _relayArmId; + public BicepValue RelayArmId + { + get { Initialize(); return _relayArmId!; } + set { Initialize(); _relayArmId!.Assign(value); } + } + private BicepValue? _relayArmId; /// /// The name of the Service Bus key which has Send permissions. This is /// used to authenticate to Service Bus. /// - public BicepValue SendKeyName { get => _sendKeyName; set => _sendKeyName.Assign(value); } - private readonly BicepValue _sendKeyName; + public BicepValue SendKeyName + { + get { Initialize(); return _sendKeyName!; } + set { Initialize(); _sendKeyName!.Assign(value); } + } + private BicepValue? _sendKeyName; /// /// The value of the Service Bus key. This is used to authenticate to /// Service Bus. In ARM this key will not be returned /// normally, use the POST /listKeys API instead. /// - public BicepValue SendKeyValue { get => _sendKeyValue; set => _sendKeyValue.Assign(value); } - private readonly BicepValue _sendKeyValue; + public BicepValue SendKeyValue + { + get { Initialize(); return _sendKeyValue!; } + set { Initialize(); _sendKeyValue!.Assign(value); } + } + private BicepValue? _sendKeyValue; /// /// The name of the Service Bus namespace. /// - public BicepValue ServiceBusNamespace { get => _serviceBusNamespace; set => _serviceBusNamespace.Assign(value); } - private readonly BicepValue _serviceBusNamespace; + public BicepValue ServiceBusNamespace + { + get { Initialize(); return _serviceBusNamespace!; } + set { Initialize(); _serviceBusNamespace!.Assign(value); } + } + private BicepValue? _serviceBusNamespace; /// /// The suffix for the service bus endpoint. By default this is /// .servicebus.windows.net. /// - public BicepValue ServiceBusSuffix { get => _serviceBusSuffix; set => _serviceBusSuffix.Assign(value); } - private readonly BicepValue _serviceBusSuffix; + public BicepValue ServiceBusSuffix + { + get { Initialize(); return _serviceBusSuffix!; } + set { Initialize(); _serviceBusSuffix!.Assign(value); } + } + private BicepValue? _serviceBusSuffix; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SiteHybridConnectionNamespaceRelay. @@ -106,18 +152,26 @@ public partial class SiteHybridConnectionNamespaceRelay : ProvisionableResource public SiteHybridConnectionNamespaceRelay(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/hybridConnectionNamespaces/relays", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _relayName = BicepValue.DefineProperty(this, "RelayName", ["properties", "relayName"], isRequired: true); - _hostname = BicepValue.DefineProperty(this, "Hostname", ["properties", "hostname"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _port = BicepValue.DefineProperty(this, "Port", ["properties", "port"]); - _relayArmId = BicepValue.DefineProperty(this, "RelayArmId", ["properties", "relayArmUri"]); - _sendKeyName = BicepValue.DefineProperty(this, "SendKeyName", ["properties", "sendKeyName"]); - _sendKeyValue = BicepValue.DefineProperty(this, "SendKeyValue", ["properties", "sendKeyValue"]); - _serviceBusNamespace = BicepValue.DefineProperty(this, "ServiceBusNamespace", ["properties", "serviceBusNamespace"]); - _serviceBusSuffix = BicepValue.DefineProperty(this, "ServiceBusSuffix", ["properties", "serviceBusSuffix"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// SiteHybridConnectionNamespaceRelay. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _relayName = DefineProperty("RelayName", ["properties", "relayName"], isRequired: true); + _hostname = DefineProperty("Hostname", ["properties", "hostname"]); + _kind = DefineProperty("Kind", ["kind"]); + _port = DefineProperty("Port", ["properties", "port"]); + _relayArmId = DefineProperty("RelayArmId", ["properties", "relayArmUri"]); + _sendKeyName = DefineProperty("SendKeyName", ["properties", "sendKeyName"]); + _sendKeyValue = DefineProperty("SendKeyValue", ["properties", "sendKeyValue"]); + _serviceBusNamespace = DefineProperty("ServiceBusNamespace", ["properties", "serviceBusNamespace"]); + _serviceBusSuffix = DefineProperty("ServiceBusSuffix", ["properties", "serviceBusSuffix"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteInstanceExtension.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteInstanceExtension.cs index 557e2b2db9298..f634725a9b2e3 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteInstanceExtension.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteInstanceExtension.cs @@ -21,52 +21,83 @@ public partial class SiteInstanceExtension : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// SQL Connection String. /// - public BicepValue ConnectionString { get => _connectionString; set => _connectionString.Assign(value); } - private readonly BicepValue _connectionString; + public BicepValue ConnectionString + { + get { Initialize(); return _connectionString!; } + set { Initialize(); _connectionString!.Assign(value); } + } + private BicepValue? _connectionString; /// /// Database Type. /// - public BicepValue DBType { get => _dBType; set => _dBType.Assign(value); } - private readonly BicepValue _dBType; + public BicepValue DBType + { + get { Initialize(); return _dBType!; } + set { Initialize(); _dBType!.Assign(value); } + } + private BicepValue? _dBType; /// /// Sets the AppOffline rule while the MSDeploy operation executes. /// Setting is <code>false</code> by default. /// - public BicepValue IsAppOffline { get => _isAppOffline; set => _isAppOffline.Assign(value); } - private readonly BicepValue _isAppOffline; + public BicepValue IsAppOffline + { + get { Initialize(); return _isAppOffline!; } + set { Initialize(); _isAppOffline!.Assign(value); } + } + private BicepValue? _isAppOffline; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Package URI. /// - public BicepValue PackageUri { get => _packageUri; set => _packageUri.Assign(value); } - private readonly BicepValue _packageUri; + public BicepValue PackageUri + { + get { Initialize(); return _packageUri!; } + set { Initialize(); _packageUri!.Assign(value); } + } + private BicepValue? _packageUri; /// /// MSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. /// - public BicepDictionary SetParameters { get => _setParameters; set => _setParameters.Assign(value); } - private readonly BicepDictionary _setParameters; + public BicepDictionary SetParameters + { + get { Initialize(); return _setParameters!; } + set { Initialize(); _setParameters!.Assign(value); } + } + private BicepDictionary? _setParameters; /// /// URI of MSDeploy Parameters file. Must not be set if SetParameters is /// used. /// - public BicepValue SetParametersXmlFileUri { get => _setParametersXmlFileUri; set => _setParametersXmlFileUri.Assign(value); } - private readonly BicepValue _setParametersXmlFileUri; + public BicepValue SetParametersXmlFileUri + { + get { Initialize(); return _setParametersXmlFileUri!; } + set { Initialize(); _setParametersXmlFileUri!.Assign(value); } + } + private BicepValue? _setParametersXmlFileUri; /// /// Controls whether the MSDeploy operation skips the App_Data directory. @@ -75,50 +106,75 @@ public partial class SiteInstanceExtension : ProvisionableResource /// and any App_Data directory in the source will be ignored. /// Setting is <code>false</code> by default. /// - public BicepValue SkipAppData { get => _skipAppData; set => _skipAppData.Assign(value); } - private readonly BicepValue _skipAppData; + public BicepValue SkipAppData + { + get { Initialize(); return _skipAppData!; } + set { Initialize(); _skipAppData!.Assign(value); } + } + private BicepValue? _skipAppData; /// /// Username of deployer. /// - public BicepValue Deployer { get => _deployer; } - private readonly BicepValue _deployer; + public BicepValue Deployer + { + get { Initialize(); return _deployer!; } + } + private BicepValue? _deployer; /// /// End time of deploy operation. /// - public BicepValue EndOn { get => _endOn; } - private readonly BicepValue _endOn; + public BicepValue EndOn + { + get { Initialize(); return _endOn!; } + } + private BicepValue? _endOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Whether the deployment operation has completed. /// - public BicepValue IsComplete { get => _isComplete; } - private readonly BicepValue _isComplete; + public BicepValue IsComplete + { + get { Initialize(); return _isComplete!; } + } + private BicepValue? _isComplete; /// /// Provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Start time of deploy operation. /// - public BicepValue StartOn { get => _startOn; } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + } + private BicepValue? _startOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SiteInstanceExtension. @@ -133,22 +189,29 @@ public partial class SiteInstanceExtension : ProvisionableResource public SiteInstanceExtension(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/instances/extensions", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _connectionString = BicepValue.DefineProperty(this, "ConnectionString", ["properties", "connectionString"]); - _dBType = BicepValue.DefineProperty(this, "DBType", ["properties", "dbType"]); - _isAppOffline = BicepValue.DefineProperty(this, "IsAppOffline", ["properties", "appOffline"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _packageUri = BicepValue.DefineProperty(this, "PackageUri", ["properties", "packageUri"]); - _setParameters = BicepDictionary.DefineProperty(this, "SetParameters", ["properties", "setParameters"]); - _setParametersXmlFileUri = BicepValue.DefineProperty(this, "SetParametersXmlFileUri", ["properties", "setParametersXmlFileUri"]); - _skipAppData = BicepValue.DefineProperty(this, "SkipAppData", ["properties", "skipAppData"]); - _deployer = BicepValue.DefineProperty(this, "Deployer", ["properties", "deployer"], isOutput: true); - _endOn = BicepValue.DefineProperty(this, "EndOn", ["properties", "endTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isComplete = BicepValue.DefineProperty(this, "IsComplete", ["properties", "complete"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["properties", "startTime"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SiteInstanceExtension. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _connectionString = DefineProperty("ConnectionString", ["properties", "connectionString"]); + _dBType = DefineProperty("DBType", ["properties", "dbType"]); + _isAppOffline = DefineProperty("IsAppOffline", ["properties", "appOffline"]); + _kind = DefineProperty("Kind", ["kind"]); + _packageUri = DefineProperty("PackageUri", ["properties", "packageUri"]); + _setParameters = DefineDictionaryProperty("SetParameters", ["properties", "setParameters"]); + _setParametersXmlFileUri = DefineProperty("SetParametersXmlFileUri", ["properties", "setParametersXmlFileUri"]); + _skipAppData = DefineProperty("SkipAppData", ["properties", "skipAppData"]); + _deployer = DefineProperty("Deployer", ["properties", "deployer"], isOutput: true); + _endOn = DefineProperty("EndOn", ["properties", "endTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isComplete = DefineProperty("IsComplete", ["properties", "complete"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _startOn = DefineProperty("StartOn", ["properties", "startTime"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteNetworkConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteNetworkConfig.cs index d2f1e8be1a5e7..98709109bc42b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteNetworkConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteNetworkConfig.cs @@ -20,47 +20,72 @@ public partial class SiteNetworkConfig : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// A flag that specifies if the scale unit this Web App is on supports /// Swift integration. /// - public BicepValue IsSwiftSupported { get => _isSwiftSupported; set => _isSwiftSupported.Assign(value); } - private readonly BicepValue _isSwiftSupported; + public BicepValue IsSwiftSupported + { + get { Initialize(); return _isSwiftSupported!; } + set { Initialize(); _isSwiftSupported!.Assign(value); } + } + private BicepValue? _isSwiftSupported; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The Virtual Network subnet's resource ID. This is the subnet that /// this Web App will join. This subnet must have a delegation to /// Microsoft.Web/serverFarms defined first. /// - public BicepValue SubnetResourceId { get => _subnetResourceId; set => _subnetResourceId.Assign(value); } - private readonly BicepValue _subnetResourceId; + public BicepValue SubnetResourceId + { + get { Initialize(); return _subnetResourceId!; } + set { Initialize(); _subnetResourceId!.Assign(value); } + } + private BicepValue? _subnetResourceId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteNetworkConfig. @@ -75,13 +100,20 @@ public partial class SiteNetworkConfig : ProvisionableResource public SiteNetworkConfig(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/networkConfig", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _isSwiftSupported = BicepValue.DefineProperty(this, "IsSwiftSupported", ["properties", "swiftSupported"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _subnetResourceId = BicepValue.DefineProperty(this, "SubnetResourceId", ["properties", "subnetResourceId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SiteNetworkConfig. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _isSwiftSupported = DefineProperty("IsSwiftSupported", ["properties", "swiftSupported"]); + _kind = DefineProperty("Kind", ["kind"]); + _subnetResourceId = DefineProperty("SubnetResourceId", ["properties", "subnetResourceId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SitePrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SitePrivateEndpointConnection.cs index b38410542eb7b..a2942bda5f8be 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SitePrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SitePrivateEndpointConnection.cs @@ -23,56 +23,88 @@ public partial class SitePrivateEndpointConnection : ProvisionableResource /// /// The System.String to use. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Private IPAddresses mapped to the remote private endpoint. /// - public BicepList IPAddresses { get => _iPAddresses; set => _iPAddresses.Assign(value); } - private readonly BicepList _iPAddresses; + public BicepList IPAddresses + { + get { Initialize(); return _iPAddresses!; } + set { Initialize(); _iPAddresses!.Assign(value); } + } + private BicepList? _iPAddresses; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The state of a private link connection. /// - public BicepValue PrivateLinkServiceConnectionState { get => _privateLinkServiceConnectionState; set => _privateLinkServiceConnectionState.Assign(value); } - private readonly BicepValue _privateLinkServiceConnectionState; + public PrivateLinkConnectionState PrivateLinkServiceConnectionState + { + get { Initialize(); return _privateLinkServiceConnectionState!; } + set { Initialize(); AssignOrReplace(ref _privateLinkServiceConnectionState, value); } + } + private PrivateLinkConnectionState? _privateLinkServiceConnectionState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// Gets the provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SitePrivateEndpointConnection. @@ -87,15 +119,23 @@ public partial class SitePrivateEndpointConnection : ProvisionableResource public SitePrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/privateEndpointConnections", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _iPAddresses = BicepList.DefineProperty(this, "IPAddresses", ["properties", "ipAddresses"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _privateLinkServiceConnectionState = BicepValue.DefineProperty(this, "PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SitePrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _iPAddresses = DefineListProperty("IPAddresses", ["properties", "ipAddresses"]); + _kind = DefineProperty("Kind", ["kind"]); + _privateLinkServiceConnectionState = DefineModelProperty("PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SitePublicCertificate.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SitePublicCertificate.cs index e038740097d2a..6528058737295 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SitePublicCertificate.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SitePublicCertificate.cs @@ -20,50 +20,79 @@ public partial class SitePublicCertificate : ProvisionableResource /// /// Public certificate name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Public Certificate byte array. /// - public BicepValue Blob { get => _blob; set => _blob.Assign(value); } - private readonly BicepValue _blob; + public BicepValue Blob + { + get { Initialize(); return _blob!; } + set { Initialize(); _blob!.Assign(value); } + } + private BicepValue? _blob; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Public Certificate Location. /// - public BicepValue PublicCertificateLocation { get => _publicCertificateLocation; set => _publicCertificateLocation.Assign(value); } - private readonly BicepValue _publicCertificateLocation; + public BicepValue PublicCertificateLocation + { + get { Initialize(); return _publicCertificateLocation!; } + set { Initialize(); _publicCertificateLocation!.Assign(value); } + } + private BicepValue? _publicCertificateLocation; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Certificate Thumbprint. /// - public BicepValue ThumbprintString { get => _thumbprintString; } - private readonly BicepValue _thumbprintString; + public BicepValue ThumbprintString + { + get { Initialize(); return _thumbprintString!; } + } + private BicepValue? _thumbprintString; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SitePublicCertificate. @@ -78,14 +107,21 @@ public partial class SitePublicCertificate : ProvisionableResource public SitePublicCertificate(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/publicCertificates", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _blob = BicepValue.DefineProperty(this, "Blob", ["properties", "blob"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _publicCertificateLocation = BicepValue.DefineProperty(this, "PublicCertificateLocation", ["properties", "publicCertificateLocation"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _thumbprintString = BicepValue.DefineProperty(this, "ThumbprintString", ["properties", "thumbprint"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SitePublicCertificate. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _blob = DefineProperty("Blob", ["properties", "blob"]); + _kind = DefineProperty("Kind", ["kind"]); + _publicCertificateLocation = DefineProperty("PublicCertificateLocation", ["properties", "publicCertificateLocation"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _thumbprintString = DefineProperty("ThumbprintString", ["properties", "thumbprint"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotDeployment.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotDeployment.cs index 5e456a5e3b947..d7707b1257807 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotDeployment.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotDeployment.cs @@ -19,81 +19,131 @@ public partial class SiteSlotDeployment : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Who authored the deployment. /// - public BicepValue Author { get => _author; set => _author.Assign(value); } - private readonly BicepValue _author; + public BicepValue Author + { + get { Initialize(); return _author!; } + set { Initialize(); _author!.Assign(value); } + } + private BicepValue? _author; /// /// Author email. /// - public BicepValue AuthorEmail { get => _authorEmail; set => _authorEmail.Assign(value); } - private readonly BicepValue _authorEmail; + public BicepValue AuthorEmail + { + get { Initialize(); return _authorEmail!; } + set { Initialize(); _authorEmail!.Assign(value); } + } + private BicepValue? _authorEmail; /// /// Who performed the deployment. /// - public BicepValue Deployer { get => _deployer; set => _deployer.Assign(value); } - private readonly BicepValue _deployer; + public BicepValue Deployer + { + get { Initialize(); return _deployer!; } + set { Initialize(); _deployer!.Assign(value); } + } + private BicepValue? _deployer; /// /// Details on deployment. /// - public BicepValue Details { get => _details; set => _details.Assign(value); } - private readonly BicepValue _details; + public BicepValue Details + { + get { Initialize(); return _details!; } + set { Initialize(); _details!.Assign(value); } + } + private BicepValue? _details; /// /// End time. /// - public BicepValue EndOn { get => _endOn; set => _endOn.Assign(value); } - private readonly BicepValue _endOn; + public BicepValue EndOn + { + get { Initialize(); return _endOn!; } + set { Initialize(); _endOn!.Assign(value); } + } + private BicepValue? _endOn; /// /// True if deployment is currently active, false if completed and null if /// not started. /// - public BicepValue IsActive { get => _isActive; set => _isActive.Assign(value); } - private readonly BicepValue _isActive; + public BicepValue IsActive + { + get { Initialize(); return _isActive!; } + set { Initialize(); _isActive!.Assign(value); } + } + private BicepValue? _isActive; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Details about deployment status. /// - public BicepValue Message { get => _message; set => _message.Assign(value); } - private readonly BicepValue _message; + public BicepValue Message + { + get { Initialize(); return _message!; } + set { Initialize(); _message!.Assign(value); } + } + private BicepValue? _message; /// /// Start time. /// - public BicepValue StartOn { get => _startOn; set => _startOn.Assign(value); } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + set { Initialize(); _startOn!.Assign(value); } + } + private BicepValue? _startOn; /// /// Deployment status. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteSlotDeployment. @@ -108,19 +158,26 @@ public partial class SiteSlotDeployment : ProvisionableResource public SiteSlotDeployment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/deployments", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _author = BicepValue.DefineProperty(this, "Author", ["properties", "author"]); - _authorEmail = BicepValue.DefineProperty(this, "AuthorEmail", ["properties", "author_email"]); - _deployer = BicepValue.DefineProperty(this, "Deployer", ["properties", "deployer"]); - _details = BicepValue.DefineProperty(this, "Details", ["properties", "details"]); - _endOn = BicepValue.DefineProperty(this, "EndOn", ["properties", "end_time"]); - _isActive = BicepValue.DefineProperty(this, "IsActive", ["properties", "active"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _message = BicepValue.DefineProperty(this, "Message", ["properties", "message"]); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["properties", "start_time"]); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"]); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SiteSlotDeployment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _author = DefineProperty("Author", ["properties", "author"]); + _authorEmail = DefineProperty("AuthorEmail", ["properties", "author_email"]); + _deployer = DefineProperty("Deployer", ["properties", "deployer"]); + _details = DefineProperty("Details", ["properties", "details"]); + _endOn = DefineProperty("EndOn", ["properties", "end_time"]); + _isActive = DefineProperty("IsActive", ["properties", "active"]); + _kind = DefineProperty("Kind", ["kind"]); + _message = DefineProperty("Message", ["properties", "message"]); + _startOn = DefineProperty("StartOn", ["properties", "start_time"]); + _status = DefineProperty("Status", ["properties", "status"]); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotDomainOwnershipIdentifier.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotDomainOwnershipIdentifier.cs index 6641c7abc8b9c..76e78dfaa3d9a 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotDomainOwnershipIdentifier.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotDomainOwnershipIdentifier.cs @@ -20,38 +20,60 @@ public partial class SiteSlotDomainOwnershipIdentifier : ProvisionableResource /// /// Name of domain ownership identifier. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// String representation of the identity. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteSlotDomainOwnershipIdentifier. @@ -66,12 +88,20 @@ public partial class SiteSlotDomainOwnershipIdentifier : ProvisionableResource public SiteSlotDomainOwnershipIdentifier(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/domainOwnershipIdentifiers", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _value = BicepValue.DefineProperty(this, "Value", ["properties", "id"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SiteSlotDomainOwnershipIdentifier. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"]); + _value = DefineProperty("Value", ["properties", "id"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotExtension.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotExtension.cs index 1b8b5aeb6dde2..d92d7ddd144fc 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotExtension.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotExtension.cs @@ -21,52 +21,83 @@ public partial class SiteSlotExtension : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// SQL Connection String. /// - public BicepValue ConnectionString { get => _connectionString; set => _connectionString.Assign(value); } - private readonly BicepValue _connectionString; + public BicepValue ConnectionString + { + get { Initialize(); return _connectionString!; } + set { Initialize(); _connectionString!.Assign(value); } + } + private BicepValue? _connectionString; /// /// Database Type. /// - public BicepValue DBType { get => _dBType; set => _dBType.Assign(value); } - private readonly BicepValue _dBType; + public BicepValue DBType + { + get { Initialize(); return _dBType!; } + set { Initialize(); _dBType!.Assign(value); } + } + private BicepValue? _dBType; /// /// Sets the AppOffline rule while the MSDeploy operation executes. /// Setting is <code>false</code> by default. /// - public BicepValue IsAppOffline { get => _isAppOffline; set => _isAppOffline.Assign(value); } - private readonly BicepValue _isAppOffline; + public BicepValue IsAppOffline + { + get { Initialize(); return _isAppOffline!; } + set { Initialize(); _isAppOffline!.Assign(value); } + } + private BicepValue? _isAppOffline; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Package URI. /// - public BicepValue PackageUri { get => _packageUri; set => _packageUri.Assign(value); } - private readonly BicepValue _packageUri; + public BicepValue PackageUri + { + get { Initialize(); return _packageUri!; } + set { Initialize(); _packageUri!.Assign(value); } + } + private BicepValue? _packageUri; /// /// MSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. /// - public BicepDictionary SetParameters { get => _setParameters; set => _setParameters.Assign(value); } - private readonly BicepDictionary _setParameters; + public BicepDictionary SetParameters + { + get { Initialize(); return _setParameters!; } + set { Initialize(); _setParameters!.Assign(value); } + } + private BicepDictionary? _setParameters; /// /// URI of MSDeploy Parameters file. Must not be set if SetParameters is /// used. /// - public BicepValue SetParametersXmlFileUri { get => _setParametersXmlFileUri; set => _setParametersXmlFileUri.Assign(value); } - private readonly BicepValue _setParametersXmlFileUri; + public BicepValue SetParametersXmlFileUri + { + get { Initialize(); return _setParametersXmlFileUri!; } + set { Initialize(); _setParametersXmlFileUri!.Assign(value); } + } + private BicepValue? _setParametersXmlFileUri; /// /// Controls whether the MSDeploy operation skips the App_Data directory. @@ -75,56 +106,85 @@ public partial class SiteSlotExtension : ProvisionableResource /// and any App_Data directory in the source will be ignored. /// Setting is <code>false</code> by default. /// - public BicepValue SkipAppData { get => _skipAppData; set => _skipAppData.Assign(value); } - private readonly BicepValue _skipAppData; + public BicepValue SkipAppData + { + get { Initialize(); return _skipAppData!; } + set { Initialize(); _skipAppData!.Assign(value); } + } + private BicepValue? _skipAppData; /// /// Username of deployer. /// - public BicepValue Deployer { get => _deployer; } - private readonly BicepValue _deployer; + public BicepValue Deployer + { + get { Initialize(); return _deployer!; } + } + private BicepValue? _deployer; /// /// End time of deploy operation. /// - public BicepValue EndOn { get => _endOn; } - private readonly BicepValue _endOn; + public BicepValue EndOn + { + get { Initialize(); return _endOn!; } + } + private BicepValue? _endOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Whether the deployment operation has completed. /// - public BicepValue IsComplete { get => _isComplete; } - private readonly BicepValue _isComplete; + public BicepValue IsComplete + { + get { Initialize(); return _isComplete!; } + } + private BicepValue? _isComplete; /// /// Provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Start time of deploy operation. /// - public BicepValue StartOn { get => _startOn; } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + } + private BicepValue? _startOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteSlotExtension. @@ -139,23 +199,30 @@ public partial class SiteSlotExtension : ProvisionableResource public SiteSlotExtension(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/extensions", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _connectionString = BicepValue.DefineProperty(this, "ConnectionString", ["properties", "connectionString"]); - _dBType = BicepValue.DefineProperty(this, "DBType", ["properties", "dbType"]); - _isAppOffline = BicepValue.DefineProperty(this, "IsAppOffline", ["properties", "appOffline"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _packageUri = BicepValue.DefineProperty(this, "PackageUri", ["properties", "packageUri"]); - _setParameters = BicepDictionary.DefineProperty(this, "SetParameters", ["properties", "setParameters"]); - _setParametersXmlFileUri = BicepValue.DefineProperty(this, "SetParametersXmlFileUri", ["properties", "setParametersXmlFileUri"]); - _skipAppData = BicepValue.DefineProperty(this, "SkipAppData", ["properties", "skipAppData"]); - _deployer = BicepValue.DefineProperty(this, "Deployer", ["properties", "deployer"], isOutput: true); - _endOn = BicepValue.DefineProperty(this, "EndOn", ["properties", "endTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isComplete = BicepValue.DefineProperty(this, "IsComplete", ["properties", "complete"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["properties", "startTime"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SiteSlotExtension. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _connectionString = DefineProperty("ConnectionString", ["properties", "connectionString"]); + _dBType = DefineProperty("DBType", ["properties", "dbType"]); + _isAppOffline = DefineProperty("IsAppOffline", ["properties", "appOffline"]); + _kind = DefineProperty("Kind", ["kind"]); + _packageUri = DefineProperty("PackageUri", ["properties", "packageUri"]); + _setParameters = DefineDictionaryProperty("SetParameters", ["properties", "setParameters"]); + _setParametersXmlFileUri = DefineProperty("SetParametersXmlFileUri", ["properties", "setParametersXmlFileUri"]); + _skipAppData = DefineProperty("SkipAppData", ["properties", "skipAppData"]); + _deployer = DefineProperty("Deployer", ["properties", "deployer"], isOutput: true); + _endOn = DefineProperty("EndOn", ["properties", "endTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isComplete = DefineProperty("IsComplete", ["properties", "complete"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _startOn = DefineProperty("StartOn", ["properties", "startTime"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotFunction.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotFunction.cs index d128a7be312f1..9d7d3435bbde5 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotFunction.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotFunction.cs @@ -21,8 +21,12 @@ public partial class SiteSlotFunction : ProvisionableResource /// /// Function name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Config information. To assign an object to @@ -40,104 +44,170 @@ public partial class SiteSlotFunction : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Config { get => _config; set => _config.Assign(value); } - private readonly BicepValue _config; + public BicepValue Config + { + get { Initialize(); return _config!; } + set { Initialize(); _config!.Assign(value); } + } + private BicepValue? _config; /// /// Config URI. /// - public BicepValue ConfigHref { get => _configHref; set => _configHref.Assign(value); } - private readonly BicepValue _configHref; + public BicepValue ConfigHref + { + get { Initialize(); return _configHref!; } + set { Initialize(); _configHref!.Assign(value); } + } + private BicepValue? _configHref; /// /// File list. /// - public BicepDictionary Files { get => _files; set => _files.Assign(value); } - private readonly BicepDictionary _files; + public BicepDictionary Files + { + get { Initialize(); return _files!; } + set { Initialize(); _files!.Assign(value); } + } + private BicepDictionary? _files; /// /// Function App ID. /// - public BicepValue FunctionAppId { get => _functionAppId; set => _functionAppId.Assign(value); } - private readonly BicepValue _functionAppId; + public BicepValue FunctionAppId + { + get { Initialize(); return _functionAppId!; } + set { Initialize(); _functionAppId!.Assign(value); } + } + private BicepValue? _functionAppId; /// /// Function URI. /// - public BicepValue Href { get => _href; set => _href.Assign(value); } - private readonly BicepValue _href; + public BicepValue Href + { + get { Initialize(); return _href!; } + set { Initialize(); _href!.Assign(value); } + } + private BicepValue? _href; /// /// The invocation URL. /// - public BicepValue InvokeUrlTemplate { get => _invokeUrlTemplate; set => _invokeUrlTemplate.Assign(value); } - private readonly BicepValue _invokeUrlTemplate; + public BicepValue InvokeUrlTemplate + { + get { Initialize(); return _invokeUrlTemplate!; } + set { Initialize(); _invokeUrlTemplate!.Assign(value); } + } + private BicepValue? _invokeUrlTemplate; /// /// Gets or sets a value indicating whether the function is disabled. /// - public BicepValue IsDisabled { get => _isDisabled; set => _isDisabled.Assign(value); } - private readonly BicepValue _isDisabled; + public BicepValue IsDisabled + { + get { Initialize(); return _isDisabled!; } + set { Initialize(); _isDisabled!.Assign(value); } + } + private BicepValue? _isDisabled; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The function language. /// - public BicepValue Language { get => _language; set => _language.Assign(value); } - private readonly BicepValue _language; + public BicepValue Language + { + get { Initialize(); return _language!; } + set { Initialize(); _language!.Assign(value); } + } + private BicepValue? _language; /// /// Script URI. /// - public BicepValue ScriptHref { get => _scriptHref; set => _scriptHref.Assign(value); } - private readonly BicepValue _scriptHref; + public BicepValue ScriptHref + { + get { Initialize(); return _scriptHref!; } + set { Initialize(); _scriptHref!.Assign(value); } + } + private BicepValue? _scriptHref; /// /// Script root path URI. /// - public BicepValue ScriptRootPathHref { get => _scriptRootPathHref; set => _scriptRootPathHref.Assign(value); } - private readonly BicepValue _scriptRootPathHref; + public BicepValue ScriptRootPathHref + { + get { Initialize(); return _scriptRootPathHref!; } + set { Initialize(); _scriptRootPathHref!.Assign(value); } + } + private BicepValue? _scriptRootPathHref; /// /// Secrets file URI. /// - public BicepValue SecretsFileHref { get => _secretsFileHref; set => _secretsFileHref.Assign(value); } - private readonly BicepValue _secretsFileHref; + public BicepValue SecretsFileHref + { + get { Initialize(); return _secretsFileHref!; } + set { Initialize(); _secretsFileHref!.Assign(value); } + } + private BicepValue? _secretsFileHref; /// /// Test data used when testing via the Azure Portal. /// - public BicepValue TestData { get => _testData; set => _testData.Assign(value); } - private readonly BicepValue _testData; + public BicepValue TestData + { + get { Initialize(); return _testData!; } + set { Initialize(); _testData!.Assign(value); } + } + private BicepValue? _testData; /// /// Test data URI. /// - public BicepValue TestDataHref { get => _testDataHref; set => _testDataHref.Assign(value); } - private readonly BicepValue _testDataHref; + public BicepValue TestDataHref + { + get { Initialize(); return _testDataHref!; } + set { Initialize(); _testDataHref!.Assign(value); } + } + private BicepValue? _testDataHref; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteSlotFunction. @@ -152,24 +222,31 @@ public partial class SiteSlotFunction : ProvisionableResource public SiteSlotFunction(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/functions", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _config = BicepValue.DefineProperty(this, "Config", ["properties", "config"]); - _configHref = BicepValue.DefineProperty(this, "ConfigHref", ["properties", "config_href"]); - _files = BicepDictionary.DefineProperty(this, "Files", ["properties", "files"]); - _functionAppId = BicepValue.DefineProperty(this, "FunctionAppId", ["properties", "function_app_id"]); - _href = BicepValue.DefineProperty(this, "Href", ["properties", "href"]); - _invokeUrlTemplate = BicepValue.DefineProperty(this, "InvokeUrlTemplate", ["properties", "invoke_url_template"]); - _isDisabled = BicepValue.DefineProperty(this, "IsDisabled", ["properties", "isDisabled"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _language = BicepValue.DefineProperty(this, "Language", ["properties", "language"]); - _scriptHref = BicepValue.DefineProperty(this, "ScriptHref", ["properties", "script_href"]); - _scriptRootPathHref = BicepValue.DefineProperty(this, "ScriptRootPathHref", ["properties", "script_root_path_href"]); - _secretsFileHref = BicepValue.DefineProperty(this, "SecretsFileHref", ["properties", "secrets_file_href"]); - _testData = BicepValue.DefineProperty(this, "TestData", ["properties", "test_data"]); - _testDataHref = BicepValue.DefineProperty(this, "TestDataHref", ["properties", "test_data_href"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SiteSlotFunction. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _config = DefineProperty("Config", ["properties", "config"]); + _configHref = DefineProperty("ConfigHref", ["properties", "config_href"]); + _files = DefineDictionaryProperty("Files", ["properties", "files"]); + _functionAppId = DefineProperty("FunctionAppId", ["properties", "function_app_id"]); + _href = DefineProperty("Href", ["properties", "href"]); + _invokeUrlTemplate = DefineProperty("InvokeUrlTemplate", ["properties", "invoke_url_template"]); + _isDisabled = DefineProperty("IsDisabled", ["properties", "isDisabled"]); + _kind = DefineProperty("Kind", ["kind"]); + _language = DefineProperty("Language", ["properties", "language"]); + _scriptHref = DefineProperty("ScriptHref", ["properties", "script_href"]); + _scriptRootPathHref = DefineProperty("ScriptRootPathHref", ["properties", "script_root_path_href"]); + _secretsFileHref = DefineProperty("SecretsFileHref", ["properties", "secrets_file_href"]); + _testData = DefineProperty("TestData", ["properties", "test_data"]); + _testDataHref = DefineProperty("TestDataHref", ["properties", "test_data_href"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotHostNameBinding.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotHostNameBinding.cs index eb36229323bee..8a55af379e036 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotHostNameBinding.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotHostNameBinding.cs @@ -20,86 +20,139 @@ public partial class SiteSlotHostNameBinding : ProvisionableResource /// /// Hostname in the hostname binding. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Azure resource name. /// - public BicepValue AzureResourceName { get => _azureResourceName; set => _azureResourceName.Assign(value); } - private readonly BicepValue _azureResourceName; + public BicepValue AzureResourceName + { + get { Initialize(); return _azureResourceName!; } + set { Initialize(); _azureResourceName!.Assign(value); } + } + private BicepValue? _azureResourceName; /// /// Azure resource type. /// - public BicepValue AzureResourceType { get => _azureResourceType; set => _azureResourceType.Assign(value); } - private readonly BicepValue _azureResourceType; + public BicepValue AzureResourceType + { + get { Initialize(); return _azureResourceType!; } + set { Initialize(); _azureResourceType!.Assign(value); } + } + private BicepValue? _azureResourceType; /// /// Custom DNS record type. /// - public BicepValue CustomHostNameDnsRecordType { get => _customHostNameDnsRecordType; set => _customHostNameDnsRecordType.Assign(value); } - private readonly BicepValue _customHostNameDnsRecordType; + public BicepValue CustomHostNameDnsRecordType + { + get { Initialize(); return _customHostNameDnsRecordType!; } + set { Initialize(); _customHostNameDnsRecordType!.Assign(value); } + } + private BicepValue? _customHostNameDnsRecordType; /// /// Fully qualified ARM domain resource URI. /// - public BicepValue DomainId { get => _domainId; set => _domainId.Assign(value); } - private readonly BicepValue _domainId; + public BicepValue DomainId + { + get { Initialize(); return _domainId!; } + set { Initialize(); _domainId!.Assign(value); } + } + private BicepValue? _domainId; /// /// Hostname type. /// - public BicepValue HostNameType { get => _hostNameType; set => _hostNameType.Assign(value); } - private readonly BicepValue _hostNameType; + public BicepValue HostNameType + { + get { Initialize(); return _hostNameType!; } + set { Initialize(); _hostNameType!.Assign(value); } + } + private BicepValue? _hostNameType; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// App Service app name. /// - public BicepValue SiteName { get => _siteName; set => _siteName.Assign(value); } - private readonly BicepValue _siteName; + public BicepValue SiteName + { + get { Initialize(); return _siteName!; } + set { Initialize(); _siteName!.Assign(value); } + } + private BicepValue? _siteName; /// /// SSL type. /// - public BicepValue SslState { get => _sslState; set => _sslState.Assign(value); } - private readonly BicepValue _sslState; + public BicepValue SslState + { + get { Initialize(); return _sslState!; } + set { Initialize(); _sslState!.Assign(value); } + } + private BicepValue? _sslState; /// /// SSL certificate thumbprint. /// - public BicepValue ThumbprintString { get => _thumbprintString; set => _thumbprintString.Assign(value); } - private readonly BicepValue _thumbprintString; + public BicepValue ThumbprintString + { + get { Initialize(); return _thumbprintString!; } + set { Initialize(); _thumbprintString!.Assign(value); } + } + private BicepValue? _thumbprintString; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Virtual IP address assigned to the hostname if IP based SSL is enabled. /// - public BicepValue VirtualIP { get => _virtualIP; } - private readonly BicepValue _virtualIP; + public BicepValue VirtualIP + { + get { Initialize(); return _virtualIP!; } + } + private BicepValue? _virtualIP; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteSlotHostNameBinding. @@ -114,20 +167,27 @@ public partial class SiteSlotHostNameBinding : ProvisionableResource public SiteSlotHostNameBinding(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/hostNameBindings", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _azureResourceName = BicepValue.DefineProperty(this, "AzureResourceName", ["properties", "azureResourceName"]); - _azureResourceType = BicepValue.DefineProperty(this, "AzureResourceType", ["properties", "azureResourceType"]); - _customHostNameDnsRecordType = BicepValue.DefineProperty(this, "CustomHostNameDnsRecordType", ["properties", "customHostNameDnsRecordType"]); - _domainId = BicepValue.DefineProperty(this, "DomainId", ["properties", "domainId"]); - _hostNameType = BicepValue.DefineProperty(this, "HostNameType", ["properties", "hostNameType"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _siteName = BicepValue.DefineProperty(this, "SiteName", ["properties", "siteName"]); - _sslState = BicepValue.DefineProperty(this, "SslState", ["properties", "sslState"]); - _thumbprintString = BicepValue.DefineProperty(this, "ThumbprintString", ["properties", "thumbprint"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _virtualIP = BicepValue.DefineProperty(this, "VirtualIP", ["properties", "virtualIP"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SiteSlotHostNameBinding. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _azureResourceName = DefineProperty("AzureResourceName", ["properties", "azureResourceName"]); + _azureResourceType = DefineProperty("AzureResourceType", ["properties", "azureResourceType"]); + _customHostNameDnsRecordType = DefineProperty("CustomHostNameDnsRecordType", ["properties", "customHostNameDnsRecordType"]); + _domainId = DefineProperty("DomainId", ["properties", "domainId"]); + _hostNameType = DefineProperty("HostNameType", ["properties", "hostNameType"]); + _kind = DefineProperty("Kind", ["kind"]); + _siteName = DefineProperty("SiteName", ["properties", "siteName"]); + _sslState = DefineProperty("SslState", ["properties", "sslState"]); + _thumbprintString = DefineProperty("ThumbprintString", ["properties", "thumbprint"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _virtualIP = DefineProperty("VirtualIP", ["properties", "virtualIP"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelay.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelay.cs index 79f63a001085e..8ad8cc2214782 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelay.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelay.cs @@ -20,78 +20,124 @@ public partial class SiteSlotHybridConnectionNamespaceRelay : ProvisionableResou /// /// The namespace for this hybrid connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The relay name for this hybrid connection. /// - public BicepValue RelayName { get => _relayName; set => _relayName.Assign(value); } - private readonly BicepValue _relayName; + public BicepValue RelayName + { + get { Initialize(); return _relayName!; } + set { Initialize(); _relayName!.Assign(value); } + } + private BicepValue? _relayName; /// /// The hostname of the endpoint. /// - public BicepValue Hostname { get => _hostname; set => _hostname.Assign(value); } - private readonly BicepValue _hostname; + public BicepValue Hostname + { + get { Initialize(); return _hostname!; } + set { Initialize(); _hostname!.Assign(value); } + } + private BicepValue? _hostname; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The port of the endpoint. /// - public BicepValue Port { get => _port; set => _port.Assign(value); } - private readonly BicepValue _port; + public BicepValue Port + { + get { Initialize(); return _port!; } + set { Initialize(); _port!.Assign(value); } + } + private BicepValue? _port; /// /// The ARM URI to the Service Bus relay. /// - public BicepValue RelayArmId { get => _relayArmId; set => _relayArmId.Assign(value); } - private readonly BicepValue _relayArmId; + public BicepValue RelayArmId + { + get { Initialize(); return _relayArmId!; } + set { Initialize(); _relayArmId!.Assign(value); } + } + private BicepValue? _relayArmId; /// /// The name of the Service Bus key which has Send permissions. This is /// used to authenticate to Service Bus. /// - public BicepValue SendKeyName { get => _sendKeyName; set => _sendKeyName.Assign(value); } - private readonly BicepValue _sendKeyName; + public BicepValue SendKeyName + { + get { Initialize(); return _sendKeyName!; } + set { Initialize(); _sendKeyName!.Assign(value); } + } + private BicepValue? _sendKeyName; /// /// The value of the Service Bus key. This is used to authenticate to /// Service Bus. In ARM this key will not be returned /// normally, use the POST /listKeys API instead. /// - public BicepValue SendKeyValue { get => _sendKeyValue; set => _sendKeyValue.Assign(value); } - private readonly BicepValue _sendKeyValue; + public BicepValue SendKeyValue + { + get { Initialize(); return _sendKeyValue!; } + set { Initialize(); _sendKeyValue!.Assign(value); } + } + private BicepValue? _sendKeyValue; /// /// The name of the Service Bus namespace. /// - public BicepValue ServiceBusNamespace { get => _serviceBusNamespace; set => _serviceBusNamespace.Assign(value); } - private readonly BicepValue _serviceBusNamespace; + public BicepValue ServiceBusNamespace + { + get { Initialize(); return _serviceBusNamespace!; } + set { Initialize(); _serviceBusNamespace!.Assign(value); } + } + private BicepValue? _serviceBusNamespace; /// /// The suffix for the service bus endpoint. By default this is /// .servicebus.windows.net. /// - public BicepValue ServiceBusSuffix { get => _serviceBusSuffix; set => _serviceBusSuffix.Assign(value); } - private readonly BicepValue _serviceBusSuffix; + public BicepValue ServiceBusSuffix + { + get { Initialize(); return _serviceBusSuffix!; } + set { Initialize(); _serviceBusSuffix!.Assign(value); } + } + private BicepValue? _serviceBusSuffix; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SiteSlotHybridConnectionNamespaceRelay. @@ -106,18 +152,26 @@ public partial class SiteSlotHybridConnectionNamespaceRelay : ProvisionableResou public SiteSlotHybridConnectionNamespaceRelay(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/hybridConnectionNamespaces/relays", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _relayName = BicepValue.DefineProperty(this, "RelayName", ["properties", "relayName"], isRequired: true); - _hostname = BicepValue.DefineProperty(this, "Hostname", ["properties", "hostname"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _port = BicepValue.DefineProperty(this, "Port", ["properties", "port"]); - _relayArmId = BicepValue.DefineProperty(this, "RelayArmId", ["properties", "relayArmUri"]); - _sendKeyName = BicepValue.DefineProperty(this, "SendKeyName", ["properties", "sendKeyName"]); - _sendKeyValue = BicepValue.DefineProperty(this, "SendKeyValue", ["properties", "sendKeyValue"]); - _serviceBusNamespace = BicepValue.DefineProperty(this, "ServiceBusNamespace", ["properties", "serviceBusNamespace"]); - _serviceBusSuffix = BicepValue.DefineProperty(this, "ServiceBusSuffix", ["properties", "serviceBusSuffix"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// SiteSlotHybridConnectionNamespaceRelay. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _relayName = DefineProperty("RelayName", ["properties", "relayName"], isRequired: true); + _hostname = DefineProperty("Hostname", ["properties", "hostname"]); + _kind = DefineProperty("Kind", ["kind"]); + _port = DefineProperty("Port", ["properties", "port"]); + _relayArmId = DefineProperty("RelayArmId", ["properties", "relayArmUri"]); + _sendKeyName = DefineProperty("SendKeyName", ["properties", "sendKeyName"]); + _sendKeyValue = DefineProperty("SendKeyValue", ["properties", "sendKeyValue"]); + _serviceBusNamespace = DefineProperty("ServiceBusNamespace", ["properties", "serviceBusNamespace"]); + _serviceBusSuffix = DefineProperty("ServiceBusSuffix", ["properties", "serviceBusSuffix"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotInstanceExtension.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotInstanceExtension.cs index 8fb09b51d066d..4f47172b25148 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotInstanceExtension.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotInstanceExtension.cs @@ -21,52 +21,83 @@ public partial class SiteSlotInstanceExtension : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// SQL Connection String. /// - public BicepValue ConnectionString { get => _connectionString; set => _connectionString.Assign(value); } - private readonly BicepValue _connectionString; + public BicepValue ConnectionString + { + get { Initialize(); return _connectionString!; } + set { Initialize(); _connectionString!.Assign(value); } + } + private BicepValue? _connectionString; /// /// Database Type. /// - public BicepValue DBType { get => _dBType; set => _dBType.Assign(value); } - private readonly BicepValue _dBType; + public BicepValue DBType + { + get { Initialize(); return _dBType!; } + set { Initialize(); _dBType!.Assign(value); } + } + private BicepValue? _dBType; /// /// Sets the AppOffline rule while the MSDeploy operation executes. /// Setting is <code>false</code> by default. /// - public BicepValue IsAppOffline { get => _isAppOffline; set => _isAppOffline.Assign(value); } - private readonly BicepValue _isAppOffline; + public BicepValue IsAppOffline + { + get { Initialize(); return _isAppOffline!; } + set { Initialize(); _isAppOffline!.Assign(value); } + } + private BicepValue? _isAppOffline; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Package URI. /// - public BicepValue PackageUri { get => _packageUri; set => _packageUri.Assign(value); } - private readonly BicepValue _packageUri; + public BicepValue PackageUri + { + get { Initialize(); return _packageUri!; } + set { Initialize(); _packageUri!.Assign(value); } + } + private BicepValue? _packageUri; /// /// MSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. /// - public BicepDictionary SetParameters { get => _setParameters; set => _setParameters.Assign(value); } - private readonly BicepDictionary _setParameters; + public BicepDictionary SetParameters + { + get { Initialize(); return _setParameters!; } + set { Initialize(); _setParameters!.Assign(value); } + } + private BicepDictionary? _setParameters; /// /// URI of MSDeploy Parameters file. Must not be set if SetParameters is /// used. /// - public BicepValue SetParametersXmlFileUri { get => _setParametersXmlFileUri; set => _setParametersXmlFileUri.Assign(value); } - private readonly BicepValue _setParametersXmlFileUri; + public BicepValue SetParametersXmlFileUri + { + get { Initialize(); return _setParametersXmlFileUri!; } + set { Initialize(); _setParametersXmlFileUri!.Assign(value); } + } + private BicepValue? _setParametersXmlFileUri; /// /// Controls whether the MSDeploy operation skips the App_Data directory. @@ -75,50 +106,75 @@ public partial class SiteSlotInstanceExtension : ProvisionableResource /// and any App_Data directory in the source will be ignored. /// Setting is <code>false</code> by default. /// - public BicepValue SkipAppData { get => _skipAppData; set => _skipAppData.Assign(value); } - private readonly BicepValue _skipAppData; + public BicepValue SkipAppData + { + get { Initialize(); return _skipAppData!; } + set { Initialize(); _skipAppData!.Assign(value); } + } + private BicepValue? _skipAppData; /// /// Username of deployer. /// - public BicepValue Deployer { get => _deployer; } - private readonly BicepValue _deployer; + public BicepValue Deployer + { + get { Initialize(); return _deployer!; } + } + private BicepValue? _deployer; /// /// End time of deploy operation. /// - public BicepValue EndOn { get => _endOn; } - private readonly BicepValue _endOn; + public BicepValue EndOn + { + get { Initialize(); return _endOn!; } + } + private BicepValue? _endOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Whether the deployment operation has completed. /// - public BicepValue IsComplete { get => _isComplete; } - private readonly BicepValue _isComplete; + public BicepValue IsComplete + { + get { Initialize(); return _isComplete!; } + } + private BicepValue? _isComplete; /// /// Provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Start time of deploy operation. /// - public BicepValue StartOn { get => _startOn; } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + } + private BicepValue? _startOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SiteSlotInstanceExtension. @@ -133,22 +189,29 @@ public partial class SiteSlotInstanceExtension : ProvisionableResource public SiteSlotInstanceExtension(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/instances/extensions", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _connectionString = BicepValue.DefineProperty(this, "ConnectionString", ["properties", "connectionString"]); - _dBType = BicepValue.DefineProperty(this, "DBType", ["properties", "dbType"]); - _isAppOffline = BicepValue.DefineProperty(this, "IsAppOffline", ["properties", "appOffline"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _packageUri = BicepValue.DefineProperty(this, "PackageUri", ["properties", "packageUri"]); - _setParameters = BicepDictionary.DefineProperty(this, "SetParameters", ["properties", "setParameters"]); - _setParametersXmlFileUri = BicepValue.DefineProperty(this, "SetParametersXmlFileUri", ["properties", "setParametersXmlFileUri"]); - _skipAppData = BicepValue.DefineProperty(this, "SkipAppData", ["properties", "skipAppData"]); - _deployer = BicepValue.DefineProperty(this, "Deployer", ["properties", "deployer"], isOutput: true); - _endOn = BicepValue.DefineProperty(this, "EndOn", ["properties", "endTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isComplete = BicepValue.DefineProperty(this, "IsComplete", ["properties", "complete"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["properties", "startTime"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SiteSlotInstanceExtension. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _connectionString = DefineProperty("ConnectionString", ["properties", "connectionString"]); + _dBType = DefineProperty("DBType", ["properties", "dbType"]); + _isAppOffline = DefineProperty("IsAppOffline", ["properties", "appOffline"]); + _kind = DefineProperty("Kind", ["kind"]); + _packageUri = DefineProperty("PackageUri", ["properties", "packageUri"]); + _setParameters = DefineDictionaryProperty("SetParameters", ["properties", "setParameters"]); + _setParametersXmlFileUri = DefineProperty("SetParametersXmlFileUri", ["properties", "setParametersXmlFileUri"]); + _skipAppData = DefineProperty("SkipAppData", ["properties", "skipAppData"]); + _deployer = DefineProperty("Deployer", ["properties", "deployer"], isOutput: true); + _endOn = DefineProperty("EndOn", ["properties", "endTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isComplete = DefineProperty("IsComplete", ["properties", "complete"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _startOn = DefineProperty("StartOn", ["properties", "startTime"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotNetworkConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotNetworkConfig.cs index 8b0650ee9a6d5..e09a68445c16b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotNetworkConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotNetworkConfig.cs @@ -20,47 +20,72 @@ public partial class SiteSlotNetworkConfig : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// A flag that specifies if the scale unit this Web App is on supports /// Swift integration. /// - public BicepValue IsSwiftSupported { get => _isSwiftSupported; set => _isSwiftSupported.Assign(value); } - private readonly BicepValue _isSwiftSupported; + public BicepValue IsSwiftSupported + { + get { Initialize(); return _isSwiftSupported!; } + set { Initialize(); _isSwiftSupported!.Assign(value); } + } + private BicepValue? _isSwiftSupported; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The Virtual Network subnet's resource ID. This is the subnet that /// this Web App will join. This subnet must have a delegation to /// Microsoft.Web/serverFarms defined first. /// - public BicepValue SubnetResourceId { get => _subnetResourceId; set => _subnetResourceId.Assign(value); } - private readonly BicepValue _subnetResourceId; + public BicepValue SubnetResourceId + { + get { Initialize(); return _subnetResourceId!; } + set { Initialize(); _subnetResourceId!.Assign(value); } + } + private BicepValue? _subnetResourceId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteSlotNetworkConfig. @@ -75,13 +100,20 @@ public partial class SiteSlotNetworkConfig : ProvisionableResource public SiteSlotNetworkConfig(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/networkConfig", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _isSwiftSupported = BicepValue.DefineProperty(this, "IsSwiftSupported", ["properties", "swiftSupported"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _subnetResourceId = BicepValue.DefineProperty(this, "SubnetResourceId", ["properties", "subnetResourceId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SiteSlotNetworkConfig. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _isSwiftSupported = DefineProperty("IsSwiftSupported", ["properties", "swiftSupported"]); + _kind = DefineProperty("Kind", ["kind"]); + _subnetResourceId = DefineProperty("SubnetResourceId", ["properties", "subnetResourceId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotPrivateEndpointConnection.cs index 10e2f0163aa43..7b82d90d981f7 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotPrivateEndpointConnection.cs @@ -22,56 +22,88 @@ public partial class SiteSlotPrivateEndpointConnection : ProvisionableResource /// /// The System.String to use. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Private IPAddresses mapped to the remote private endpoint. /// - public BicepList IPAddresses { get => _iPAddresses; set => _iPAddresses.Assign(value); } - private readonly BicepList _iPAddresses; + public BicepList IPAddresses + { + get { Initialize(); return _iPAddresses!; } + set { Initialize(); _iPAddresses!.Assign(value); } + } + private BicepList? _iPAddresses; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The state of a private link connection. /// - public BicepValue PrivateLinkServiceConnectionState { get => _privateLinkServiceConnectionState; set => _privateLinkServiceConnectionState.Assign(value); } - private readonly BicepValue _privateLinkServiceConnectionState; + public PrivateLinkConnectionState PrivateLinkServiceConnectionState + { + get { Initialize(); return _privateLinkServiceConnectionState!; } + set { Initialize(); AssignOrReplace(ref _privateLinkServiceConnectionState, value); } + } + private PrivateLinkConnectionState? _privateLinkServiceConnectionState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// Gets the provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteSlotPrivateEndpointConnection. @@ -86,15 +118,23 @@ public partial class SiteSlotPrivateEndpointConnection : ProvisionableResource public SiteSlotPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/privateEndpointConnections", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _iPAddresses = BicepList.DefineProperty(this, "IPAddresses", ["properties", "ipAddresses"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _privateLinkServiceConnectionState = BicepValue.DefineProperty(this, "PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SiteSlotPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _iPAddresses = DefineListProperty("IPAddresses", ["properties", "ipAddresses"]); + _kind = DefineProperty("Kind", ["kind"]); + _privateLinkServiceConnectionState = DefineModelProperty("PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotSiteContainer.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotSiteContainer.cs index 26707414a5924..c076264bd38bc 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotSiteContainer.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotSiteContainer.cs @@ -21,105 +21,169 @@ public partial class SiteSlotSiteContainer : ProvisionableResource /// /// Site Container Name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Auth Type. /// - public BicepValue AuthType { get => _authType; set => _authType.Assign(value); } - private readonly BicepValue _authType; + public BicepValue AuthType + { + get { Initialize(); return _authType!; } + set { Initialize(); _authType!.Assign(value); } + } + private BicepValue? _authType; /// /// List of environment variables. /// - public BicepList EnvironmentVariables { get => _environmentVariables; set => _environmentVariables.Assign(value); } - private readonly BicepList _environmentVariables; + public BicepList EnvironmentVariables + { + get { Initialize(); return _environmentVariables!; } + set { Initialize(); _environmentVariables!.Assign(value); } + } + private BicepList? _environmentVariables; /// /// Image Name. /// - public BicepValue Image { get => _image; set => _image.Assign(value); } - private readonly BicepValue _image; + public BicepValue Image + { + get { Initialize(); return _image!; } + set { Initialize(); _image!.Assign(value); } + } + private BicepValue? _image; /// /// <code>true</code> if the container is the main site /// container; <code>false</code> otherwise. /// - public BicepValue IsMain { get => _isMain; set => _isMain.Assign(value); } - private readonly BicepValue _isMain; + public BicepValue IsMain + { + get { Initialize(); return _isMain!; } + set { Initialize(); _isMain!.Assign(value); } + } + private BicepValue? _isMain; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Password Secret. /// - public BicepValue PasswordSecret { get => _passwordSecret; set => _passwordSecret.Assign(value); } - private readonly BicepValue _passwordSecret; + public BicepValue PasswordSecret + { + get { Initialize(); return _passwordSecret!; } + set { Initialize(); _passwordSecret!.Assign(value); } + } + private BicepValue? _passwordSecret; /// /// StartUp Command. /// - public BicepValue StartUpCommand { get => _startUpCommand; set => _startUpCommand.Assign(value); } - private readonly BicepValue _startUpCommand; + public BicepValue StartUpCommand + { + get { Initialize(); return _startUpCommand!; } + set { Initialize(); _startUpCommand!.Assign(value); } + } + private BicepValue? _startUpCommand; /// /// Target Port. /// - public BicepValue TargetPort { get => _targetPort; set => _targetPort.Assign(value); } - private readonly BicepValue _targetPort; + public BicepValue TargetPort + { + get { Initialize(); return _targetPort!; } + set { Initialize(); _targetPort!.Assign(value); } + } + private BicepValue? _targetPort; /// /// UserManagedIdentity ClientId. /// - public BicepValue UserManagedIdentityClientId { get => _userManagedIdentityClientId; set => _userManagedIdentityClientId.Assign(value); } - private readonly BicepValue _userManagedIdentityClientId; + public BicepValue UserManagedIdentityClientId + { + get { Initialize(); return _userManagedIdentityClientId!; } + set { Initialize(); _userManagedIdentityClientId!.Assign(value); } + } + private BicepValue? _userManagedIdentityClientId; /// /// User Name. /// - public BicepValue UserName { get => _userName; set => _userName.Assign(value); } - private readonly BicepValue _userName; + public BicepValue UserName + { + get { Initialize(); return _userName!; } + set { Initialize(); _userName!.Assign(value); } + } + private BicepValue? _userName; /// /// List of volume mounts. /// - public BicepList VolumeMounts { get => _volumeMounts; set => _volumeMounts.Assign(value); } - private readonly BicepList _volumeMounts; + public BicepList VolumeMounts + { + get { Initialize(); return _volumeMounts!; } + set { Initialize(); _volumeMounts!.Assign(value); } + } + private BicepList? _volumeMounts; /// /// Created Time. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Last Modified Time. /// - public BicepValue LastModifiedOn { get => _lastModifiedOn; } - private readonly BicepValue _lastModifiedOn; + public BicepValue LastModifiedOn + { + get { Initialize(); return _lastModifiedOn!; } + } + private BicepValue? _lastModifiedOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteSlotSiteContainer. @@ -134,23 +198,30 @@ public partial class SiteSlotSiteContainer : ProvisionableResource public SiteSlotSiteContainer(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/sitecontainers", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _authType = BicepValue.DefineProperty(this, "AuthType", ["properties", "authType"]); - _environmentVariables = BicepList.DefineProperty(this, "EnvironmentVariables", ["properties", "environmentVariables"]); - _image = BicepValue.DefineProperty(this, "Image", ["properties", "image"]); - _isMain = BicepValue.DefineProperty(this, "IsMain", ["properties", "isMain"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _passwordSecret = BicepValue.DefineProperty(this, "PasswordSecret", ["properties", "passwordSecret"]); - _startUpCommand = BicepValue.DefineProperty(this, "StartUpCommand", ["properties", "startUpCommand"]); - _targetPort = BicepValue.DefineProperty(this, "TargetPort", ["properties", "targetPort"]); - _userManagedIdentityClientId = BicepValue.DefineProperty(this, "UserManagedIdentityClientId", ["properties", "userManagedIdentityClientId"]); - _userName = BicepValue.DefineProperty(this, "UserName", ["properties", "userName"]); - _volumeMounts = BicepList.DefineProperty(this, "VolumeMounts", ["properties", "volumeMounts"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _lastModifiedOn = BicepValue.DefineProperty(this, "LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SiteSlotSiteContainer. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _authType = DefineProperty("AuthType", ["properties", "authType"]); + _environmentVariables = DefineListProperty("EnvironmentVariables", ["properties", "environmentVariables"]); + _image = DefineProperty("Image", ["properties", "image"]); + _isMain = DefineProperty("IsMain", ["properties", "isMain"]); + _kind = DefineProperty("Kind", ["kind"]); + _passwordSecret = DefineProperty("PasswordSecret", ["properties", "passwordSecret"]); + _startUpCommand = DefineProperty("StartUpCommand", ["properties", "startUpCommand"]); + _targetPort = DefineProperty("TargetPort", ["properties", "targetPort"]); + _userManagedIdentityClientId = DefineProperty("UserManagedIdentityClientId", ["properties", "userManagedIdentityClientId"]); + _userName = DefineProperty("UserName", ["properties", "userName"]); + _volumeMounts = DefineListProperty("VolumeMounts", ["properties", "volumeMounts"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _lastModifiedOn = DefineProperty("LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotVirtualNetworkConnection.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotVirtualNetworkConnection.cs index 14a0d145d4ccb..bfe68338182c4 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotVirtualNetworkConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotVirtualNetworkConnection.cs @@ -21,77 +21,120 @@ public partial class SiteSlotVirtualNetworkConnection : ProvisionableResource /// /// Name of an existing Virtual Network. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// A certificate file (.cer) blob containing the public key of the private /// key used to authenticate a Point-To-Site VPN connection. /// - public BicepValue CertBlob { get => _certBlob; set => _certBlob.Assign(value); } - private readonly BicepValue _certBlob; + public BicepValue CertBlob + { + get { Initialize(); return _certBlob!; } + set { Initialize(); _certBlob!.Assign(value); } + } + private BicepValue? _certBlob; /// /// DNS servers to be used by this Virtual Network. This should be a /// comma-separated list of IP addresses. /// - public BicepValue DnsServers { get => _dnsServers; set => _dnsServers.Assign(value); } - private readonly BicepValue _dnsServers; + public BicepValue DnsServers + { + get { Initialize(); return _dnsServers!; } + set { Initialize(); _dnsServers!.Assign(value); } + } + private BicepValue? _dnsServers; /// /// Flag that is used to denote if this is VNET injection. /// - public BicepValue IsSwift { get => _isSwift; set => _isSwift.Assign(value); } - private readonly BicepValue _isSwift; + public BicepValue IsSwift + { + get { Initialize(); return _isSwift!; } + set { Initialize(); _isSwift!.Assign(value); } + } + private BicepValue? _isSwift; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The Virtual Network's resource ID. /// - public BicepValue VnetResourceId { get => _vnetResourceId; set => _vnetResourceId.Assign(value); } - private readonly BicepValue _vnetResourceId; + public BicepValue VnetResourceId + { + get { Initialize(); return _vnetResourceId!; } + set { Initialize(); _vnetResourceId!.Assign(value); } + } + private BicepValue? _vnetResourceId; /// /// The client certificate thumbprint. /// - public BicepValue CertThumbprintString { get => _certThumbprintString; } - private readonly BicepValue _certThumbprintString; + public BicepValue CertThumbprintString + { + get { Initialize(); return _certThumbprintString!; } + } + private BicepValue? _certThumbprintString; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// <code>true</code> if a resync is required; otherwise, /// <code>false</code>. /// - public BicepValue IsResyncRequired { get => _isResyncRequired; } - private readonly BicepValue _isResyncRequired; + public BicepValue IsResyncRequired + { + get { Initialize(); return _isResyncRequired!; } + } + private BicepValue? _isResyncRequired; /// /// The routes that this Virtual Network connection uses. /// - public BicepList Routes { get => _routes; } - private readonly BicepList _routes; + public BicepList Routes + { + get { Initialize(); return _routes!; } + } + private BicepList? _routes; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteSlotVirtualNetworkConnection. @@ -106,18 +149,26 @@ public partial class SiteSlotVirtualNetworkConnection : ProvisionableResource public SiteSlotVirtualNetworkConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/virtualNetworkConnections", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _certBlob = BicepValue.DefineProperty(this, "CertBlob", ["properties", "certBlob"]); - _dnsServers = BicepValue.DefineProperty(this, "DnsServers", ["properties", "dnsServers"]); - _isSwift = BicepValue.DefineProperty(this, "IsSwift", ["properties", "isSwift"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _vnetResourceId = BicepValue.DefineProperty(this, "VnetResourceId", ["properties", "vnetResourceId"]); - _certThumbprintString = BicepValue.DefineProperty(this, "CertThumbprintString", ["properties", "certThumbprint"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isResyncRequired = BicepValue.DefineProperty(this, "IsResyncRequired", ["properties", "resyncRequired"], isOutput: true); - _routes = BicepList.DefineProperty(this, "Routes", ["properties", "routes"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SiteSlotVirtualNetworkConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _certBlob = DefineProperty("CertBlob", ["properties", "certBlob"]); + _dnsServers = DefineProperty("DnsServers", ["properties", "dnsServers"]); + _isSwift = DefineProperty("IsSwift", ["properties", "isSwift"]); + _kind = DefineProperty("Kind", ["kind"]); + _vnetResourceId = DefineProperty("VnetResourceId", ["properties", "vnetResourceId"]); + _certThumbprintString = DefineProperty("CertThumbprintString", ["properties", "certThumbprint"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isResyncRequired = DefineProperty("IsResyncRequired", ["properties", "resyncRequired"], isOutput: true); + _routes = DefineListProperty("Routes", ["properties", "routes"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGateway.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGateway.cs index 5b2941046cb25..cefa09599a01b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGateway.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGateway.cs @@ -21,44 +21,70 @@ public partial class SiteSlotVirtualNetworkConnectionGateway : ProvisionableReso /// Name of the gateway. Currently, the only supported string is /// "primary". /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The Virtual Network name. /// - public BicepValue VnetName { get => _vnetName; set => _vnetName.Assign(value); } - private readonly BicepValue _vnetName; + public BicepValue VnetName + { + get { Initialize(); return _vnetName!; } + set { Initialize(); _vnetName!.Assign(value); } + } + private BicepValue? _vnetName; /// /// The URI where the VPN package can be downloaded. /// - public BicepValue VpnPackageUri { get => _vpnPackageUri; set => _vpnPackageUri.Assign(value); } - private readonly BicepValue _vpnPackageUri; + public BicepValue VpnPackageUri + { + get { Initialize(); return _vpnPackageUri!; } + set { Initialize(); _vpnPackageUri!.Assign(value); } + } + private BicepValue? _vpnPackageUri; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SiteSlotVirtualNetworkConnection. /// - public SiteSlotVirtualNetworkConnection? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SiteSlotVirtualNetworkConnection? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteSlotVirtualNetworkConnectionGateway. @@ -73,13 +99,21 @@ public partial class SiteSlotVirtualNetworkConnectionGateway : ProvisionableReso public SiteSlotVirtualNetworkConnectionGateway(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/virtualNetworkConnections/gateways", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _vnetName = BicepValue.DefineProperty(this, "VnetName", ["properties", "vnetName"]); - _vpnPackageUri = BicepValue.DefineProperty(this, "VpnPackageUri", ["properties", "vpnPackageUri"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SiteSlotVirtualNetworkConnectionGateway. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"]); + _vnetName = DefineProperty("VnetName", ["properties", "vnetName"]); + _vpnPackageUri = DefineProperty("VpnPackageUri", ["properties", "vpnPackageUri"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteVirtualNetworkConnection.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteVirtualNetworkConnection.cs index 143cf729d2665..0a3cead6dced9 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteVirtualNetworkConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteVirtualNetworkConnection.cs @@ -21,77 +21,120 @@ public partial class SiteVirtualNetworkConnection : ProvisionableResource /// /// Name of an existing Virtual Network. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// A certificate file (.cer) blob containing the public key of the private /// key used to authenticate a Point-To-Site VPN connection. /// - public BicepValue CertBlob { get => _certBlob; set => _certBlob.Assign(value); } - private readonly BicepValue _certBlob; + public BicepValue CertBlob + { + get { Initialize(); return _certBlob!; } + set { Initialize(); _certBlob!.Assign(value); } + } + private BicepValue? _certBlob; /// /// DNS servers to be used by this Virtual Network. This should be a /// comma-separated list of IP addresses. /// - public BicepValue DnsServers { get => _dnsServers; set => _dnsServers.Assign(value); } - private readonly BicepValue _dnsServers; + public BicepValue DnsServers + { + get { Initialize(); return _dnsServers!; } + set { Initialize(); _dnsServers!.Assign(value); } + } + private BicepValue? _dnsServers; /// /// Flag that is used to denote if this is VNET injection. /// - public BicepValue IsSwift { get => _isSwift; set => _isSwift.Assign(value); } - private readonly BicepValue _isSwift; + public BicepValue IsSwift + { + get { Initialize(); return _isSwift!; } + set { Initialize(); _isSwift!.Assign(value); } + } + private BicepValue? _isSwift; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The Virtual Network's resource ID. /// - public BicepValue VnetResourceId { get => _vnetResourceId; set => _vnetResourceId.Assign(value); } - private readonly BicepValue _vnetResourceId; + public BicepValue VnetResourceId + { + get { Initialize(); return _vnetResourceId!; } + set { Initialize(); _vnetResourceId!.Assign(value); } + } + private BicepValue? _vnetResourceId; /// /// The client certificate thumbprint. /// - public BicepValue CertThumbprintString { get => _certThumbprintString; } - private readonly BicepValue _certThumbprintString; + public BicepValue CertThumbprintString + { + get { Initialize(); return _certThumbprintString!; } + } + private BicepValue? _certThumbprintString; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// <code>true</code> if a resync is required; otherwise, /// <code>false</code>. /// - public BicepValue IsResyncRequired { get => _isResyncRequired; } - private readonly BicepValue _isResyncRequired; + public BicepValue IsResyncRequired + { + get { Initialize(); return _isResyncRequired!; } + } + private BicepValue? _isResyncRequired; /// /// The routes that this Virtual Network connection uses. /// - public BicepList Routes { get => _routes; } - private readonly BicepList _routes; + public BicepList Routes + { + get { Initialize(); return _routes!; } + } + private BicepList? _routes; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteVirtualNetworkConnection. @@ -106,18 +149,25 @@ public partial class SiteVirtualNetworkConnection : ProvisionableResource public SiteVirtualNetworkConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/virtualNetworkConnections", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _certBlob = BicepValue.DefineProperty(this, "CertBlob", ["properties", "certBlob"]); - _dnsServers = BicepValue.DefineProperty(this, "DnsServers", ["properties", "dnsServers"]); - _isSwift = BicepValue.DefineProperty(this, "IsSwift", ["properties", "isSwift"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _vnetResourceId = BicepValue.DefineProperty(this, "VnetResourceId", ["properties", "vnetResourceId"]); - _certThumbprintString = BicepValue.DefineProperty(this, "CertThumbprintString", ["properties", "certThumbprint"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isResyncRequired = BicepValue.DefineProperty(this, "IsResyncRequired", ["properties", "resyncRequired"], isOutput: true); - _routes = BicepList.DefineProperty(this, "Routes", ["properties", "routes"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SiteVirtualNetworkConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _certBlob = DefineProperty("CertBlob", ["properties", "certBlob"]); + _dnsServers = DefineProperty("DnsServers", ["properties", "dnsServers"]); + _isSwift = DefineProperty("IsSwift", ["properties", "isSwift"]); + _kind = DefineProperty("Kind", ["kind"]); + _vnetResourceId = DefineProperty("VnetResourceId", ["properties", "vnetResourceId"]); + _certThumbprintString = DefineProperty("CertThumbprintString", ["properties", "certThumbprint"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isResyncRequired = DefineProperty("IsResyncRequired", ["properties", "resyncRequired"], isOutput: true); + _routes = DefineListProperty("Routes", ["properties", "routes"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteVirtualNetworkConnectionGateway.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteVirtualNetworkConnectionGateway.cs index d706fee7dd1f9..b992119b11833 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteVirtualNetworkConnectionGateway.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SiteVirtualNetworkConnectionGateway.cs @@ -21,44 +21,70 @@ public partial class SiteVirtualNetworkConnectionGateway : ProvisionableResource /// Name of the gateway. Currently, the only supported string is /// "primary". /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The Virtual Network name. /// - public BicepValue VnetName { get => _vnetName; set => _vnetName.Assign(value); } - private readonly BicepValue _vnetName; + public BicepValue VnetName + { + get { Initialize(); return _vnetName!; } + set { Initialize(); _vnetName!.Assign(value); } + } + private BicepValue? _vnetName; /// /// The URI where the VPN package can be downloaded. /// - public BicepValue VpnPackageUri { get => _vpnPackageUri; set => _vpnPackageUri.Assign(value); } - private readonly BicepValue _vpnPackageUri; + public BicepValue VpnPackageUri + { + get { Initialize(); return _vpnPackageUri!; } + set { Initialize(); _vpnPackageUri!.Assign(value); } + } + private BicepValue? _vpnPackageUri; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SiteVirtualNetworkConnection. /// - public SiteVirtualNetworkConnection? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SiteVirtualNetworkConnection? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SiteVirtualNetworkConnectionGateway. @@ -73,13 +99,21 @@ public partial class SiteVirtualNetworkConnectionGateway : ProvisionableResource public SiteVirtualNetworkConnectionGateway(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/virtualNetworkConnections/gateways", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _vnetName = BicepValue.DefineProperty(this, "VnetName", ["properties", "vnetName"]); - _vpnPackageUri = BicepValue.DefineProperty(this, "VpnPackageUri", ["properties", "vpnPackageUri"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SiteVirtualNetworkConnectionGateway. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"]); + _vnetName = DefineProperty("VnetName", ["properties", "vnetName"]); + _vpnPackageUri = DefineProperty("VpnPackageUri", ["properties", "vpnPackageUri"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SlotConfigNames.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SlotConfigNames.cs index 745ae087b329b..54eb792ad719c 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SlotConfigNames.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/SlotConfigNames.cs @@ -21,50 +21,79 @@ public partial class SlotConfigNames : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// List of application settings names. /// - public BicepList AppSettingNames { get => _appSettingNames; set => _appSettingNames.Assign(value); } - private readonly BicepList _appSettingNames; + public BicepList AppSettingNames + { + get { Initialize(); return _appSettingNames!; } + set { Initialize(); _appSettingNames!.Assign(value); } + } + private BicepList? _appSettingNames; /// /// List of external Azure storage account identifiers. /// - public BicepList AzureStorageConfigNames { get => _azureStorageConfigNames; set => _azureStorageConfigNames.Assign(value); } - private readonly BicepList _azureStorageConfigNames; + public BicepList AzureStorageConfigNames + { + get { Initialize(); return _azureStorageConfigNames!; } + set { Initialize(); _azureStorageConfigNames!.Assign(value); } + } + private BicepList? _azureStorageConfigNames; /// /// List of connection string names. /// - public BicepList ConnectionStringNames { get => _connectionStringNames; set => _connectionStringNames.Assign(value); } - private readonly BicepList _connectionStringNames; + public BicepList ConnectionStringNames + { + get { Initialize(); return _connectionStringNames!; } + set { Initialize(); _connectionStringNames!.Assign(value); } + } + private BicepList? _connectionStringNames; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SlotConfigNames. @@ -79,14 +108,21 @@ public partial class SlotConfigNames : ProvisionableResource public SlotConfigNames(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/config", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _appSettingNames = BicepList.DefineProperty(this, "AppSettingNames", ["properties", "appSettingNames"]); - _azureStorageConfigNames = BicepList.DefineProperty(this, "AzureStorageConfigNames", ["properties", "azureStorageConfigNames"]); - _connectionStringNames = BicepList.DefineProperty(this, "ConnectionStringNames", ["properties", "connectionStringNames"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SlotConfigNames. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _appSettingNames = DefineListProperty("AppSettingNames", ["properties", "appSettingNames"]); + _azureStorageConfigNames = DefineListProperty("AzureStorageConfigNames", ["properties", "azureStorageConfigNames"]); + _connectionStringNames = DefineListProperty("ConnectionStringNames", ["properties", "connectionStringNames"]); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSite.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSite.cs index b828686dda315..bc2252483a955 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSite.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSite.cs @@ -23,165 +23,259 @@ public partial class StaticSite : ProvisionableResource /// /// Name of the static site to create or update. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// <code>false</code> if config file is locked for this static /// web app; otherwise, <code>true</code>. /// - public BicepValue AllowConfigFileUpdates { get => _allowConfigFileUpdates; set => _allowConfigFileUpdates.Assign(value); } - private readonly BicepValue _allowConfigFileUpdates; + public BicepValue AllowConfigFileUpdates + { + get { Initialize(); return _allowConfigFileUpdates!; } + set { Initialize(); _allowConfigFileUpdates!.Assign(value); } + } + private BicepValue? _allowConfigFileUpdates; /// /// The target branch in the repository. /// - public BicepValue Branch { get => _branch; set => _branch.Assign(value); } - private readonly BicepValue _branch; + public BicepValue Branch + { + get { Initialize(); return _branch!; } + set { Initialize(); _branch!.Assign(value); } + } + private BicepValue? _branch; /// /// Build properties to configure on the repository. /// - public BicepValue BuildProperties { get => _buildProperties; set => _buildProperties.Assign(value); } - private readonly BicepValue _buildProperties; + public StaticSiteBuildProperties BuildProperties + { + get { Initialize(); return _buildProperties!; } + set { Initialize(); AssignOrReplace(ref _buildProperties, value); } + } + private StaticSiteBuildProperties? _buildProperties; /// /// State indicating the status of the enterprise grade CDN serving traffic /// to the static web app. /// - public BicepValue EnterpriseGradeCdnStatus { get => _enterpriseGradeCdnStatus; set => _enterpriseGradeCdnStatus.Assign(value); } - private readonly BicepValue _enterpriseGradeCdnStatus; + public BicepValue EnterpriseGradeCdnStatus + { + get { Initialize(); return _enterpriseGradeCdnStatus!; } + set { Initialize(); _enterpriseGradeCdnStatus!.Assign(value); } + } + private BicepValue? _enterpriseGradeCdnStatus; /// /// Managed service identity. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The provider that submitted the last deployment to the primary /// environment of the static site. /// - public BicepValue Provider { get => _provider; set => _provider.Assign(value); } - private readonly BicepValue _provider; + public BicepValue Provider + { + get { Initialize(); return _provider!; } + set { Initialize(); _provider!.Assign(value); } + } + private BicepValue? _provider; /// /// State indicating whether public traffic are allowed or not for a static /// web app. Allowed Values: 'Enabled', 'Disabled' or /// an empty string. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// A user's github repository token. This is used to setup the Github /// Actions workflow file and API secrets. /// - public BicepValue RepositoryToken { get => _repositoryToken; set => _repositoryToken.Assign(value); } - private readonly BicepValue _repositoryToken; + public BicepValue RepositoryToken + { + get { Initialize(); return _repositoryToken!; } + set { Initialize(); _repositoryToken!.Assign(value); } + } + private BicepValue? _repositoryToken; /// /// URL for the repository of the static site. /// - public BicepValue RepositoryUri { get => _repositoryUri; set => _repositoryUri.Assign(value); } - private readonly BicepValue _repositoryUri; + public BicepValue RepositoryUri + { + get { Initialize(); return _repositoryUri!; } + set { Initialize(); _repositoryUri!.Assign(value); } + } + private BicepValue? _repositoryUri; /// /// Description of a SKU for a scalable resource. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public AppServiceSkuDescription Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private AppServiceSkuDescription? _sku; /// /// State indicating whether staging environments are allowed or not /// allowed for a static web app. /// - public BicepValue StagingEnvironmentPolicy { get => _stagingEnvironmentPolicy; set => _stagingEnvironmentPolicy.Assign(value); } - private readonly BicepValue _stagingEnvironmentPolicy; + public BicepValue StagingEnvironmentPolicy + { + get { Initialize(); return _stagingEnvironmentPolicy!; } + set { Initialize(); _stagingEnvironmentPolicy!.Assign(value); } + } + private BicepValue? _stagingEnvironmentPolicy; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Template options for generating a new repository. /// - public BicepValue TemplateProperties { get => _templateProperties; set => _templateProperties.Assign(value); } - private readonly BicepValue _templateProperties; + public StaticSiteTemplate TemplateProperties + { + get { Initialize(); return _templateProperties!; } + set { Initialize(); AssignOrReplace(ref _templateProperties, value); } + } + private StaticSiteTemplate? _templateProperties; /// /// The content distribution endpoint for the static site. /// - public BicepValue ContentDistributionEndpoint { get => _contentDistributionEndpoint; } - private readonly BicepValue _contentDistributionEndpoint; + public BicepValue ContentDistributionEndpoint + { + get { Initialize(); return _contentDistributionEndpoint!; } + } + private BicepValue? _contentDistributionEndpoint; /// /// The custom domains associated with this static site. /// - public BicepList CustomDomains { get => _customDomains; } - private readonly BicepList _customDomains; + public BicepList CustomDomains + { + get { Initialize(); return _customDomains!; } + } + private BicepList? _customDomains; /// /// Database connections for the static site. /// - public BicepList DatabaseConnections { get => _databaseConnections; } - private readonly BicepList _databaseConnections; + public BicepList DatabaseConnections + { + get { Initialize(); return _databaseConnections!; } + } + private BicepList? _databaseConnections; /// /// The default autogenerated hostname for the static site. /// - public BicepValue DefaultHostname { get => _defaultHostname; } - private readonly BicepValue _defaultHostname; + public BicepValue DefaultHostname + { + get { Initialize(); return _defaultHostname!; } + } + private BicepValue? _defaultHostname; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Identity to use for Key Vault Reference authentication. /// - public BicepValue KeyVaultReferenceIdentity { get => _keyVaultReferenceIdentity; } - private readonly BicepValue _keyVaultReferenceIdentity; + public BicepValue KeyVaultReferenceIdentity + { + get { Initialize(); return _keyVaultReferenceIdentity!; } + } + private BicepValue? _keyVaultReferenceIdentity; /// /// Backends linked to the static side. /// - public BicepList LinkedBackends { get => _linkedBackends; } - private readonly BicepList _linkedBackends; + public BicepList LinkedBackends + { + get { Initialize(); return _linkedBackends!; } + } + private BicepList? _linkedBackends; /// /// Private endpoint connections. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// User provided function apps registered with the static site. /// - public BicepList UserProvidedFunctionApps { get => _userProvidedFunctionApps; } - private readonly BicepList _userProvidedFunctionApps; + public BicepList UserProvidedFunctionApps + { + get { Initialize(); return _userProvidedFunctionApps!; } + } + private BicepList? _userProvidedFunctionApps; /// /// Creates a new StaticSite. @@ -196,32 +290,39 @@ public partial class StaticSite : ProvisionableResource public StaticSite(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/staticSites", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _allowConfigFileUpdates = BicepValue.DefineProperty(this, "AllowConfigFileUpdates", ["properties", "allowConfigFileUpdates"]); - _branch = BicepValue.DefineProperty(this, "Branch", ["properties", "branch"]); - _buildProperties = BicepValue.DefineProperty(this, "BuildProperties", ["properties", "buildProperties"]); - _enterpriseGradeCdnStatus = BicepValue.DefineProperty(this, "EnterpriseGradeCdnStatus", ["properties", "enterpriseGradeCdnStatus"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _provider = BicepValue.DefineProperty(this, "Provider", ["properties", "provider"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _repositoryToken = BicepValue.DefineProperty(this, "RepositoryToken", ["properties", "repositoryToken"]); - _repositoryUri = BicepValue.DefineProperty(this, "RepositoryUri", ["properties", "repositoryUrl"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _stagingEnvironmentPolicy = BicepValue.DefineProperty(this, "StagingEnvironmentPolicy", ["properties", "stagingEnvironmentPolicy"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _templateProperties = BicepValue.DefineProperty(this, "TemplateProperties", ["properties", "templateProperties"]); - _contentDistributionEndpoint = BicepValue.DefineProperty(this, "ContentDistributionEndpoint", ["properties", "contentDistributionEndpoint"], isOutput: true); - _customDomains = BicepList.DefineProperty(this, "CustomDomains", ["properties", "customDomains"], isOutput: true); - _databaseConnections = BicepList.DefineProperty(this, "DatabaseConnections", ["properties", "databaseConnections"], isOutput: true); - _defaultHostname = BicepValue.DefineProperty(this, "DefaultHostname", ["properties", "defaultHostname"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _keyVaultReferenceIdentity = BicepValue.DefineProperty(this, "KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"], isOutput: true); - _linkedBackends = BicepList.DefineProperty(this, "LinkedBackends", ["properties", "linkedBackends"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _userProvidedFunctionApps = BicepList.DefineProperty(this, "UserProvidedFunctionApps", ["properties", "userProvidedFunctionApps"], isOutput: true); + } + + /// + /// Define all the provisionable properties of StaticSite. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _allowConfigFileUpdates = DefineProperty("AllowConfigFileUpdates", ["properties", "allowConfigFileUpdates"]); + _branch = DefineProperty("Branch", ["properties", "branch"]); + _buildProperties = DefineModelProperty("BuildProperties", ["properties", "buildProperties"]); + _enterpriseGradeCdnStatus = DefineProperty("EnterpriseGradeCdnStatus", ["properties", "enterpriseGradeCdnStatus"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _kind = DefineProperty("Kind", ["kind"]); + _provider = DefineProperty("Provider", ["properties", "provider"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _repositoryToken = DefineProperty("RepositoryToken", ["properties", "repositoryToken"]); + _repositoryUri = DefineProperty("RepositoryUri", ["properties", "repositoryUrl"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _stagingEnvironmentPolicy = DefineProperty("StagingEnvironmentPolicy", ["properties", "stagingEnvironmentPolicy"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _templateProperties = DefineModelProperty("TemplateProperties", ["properties", "templateProperties"]); + _contentDistributionEndpoint = DefineProperty("ContentDistributionEndpoint", ["properties", "contentDistributionEndpoint"], isOutput: true); + _customDomains = DefineListProperty("CustomDomains", ["properties", "customDomains"], isOutput: true); + _databaseConnections = DefineListProperty("DatabaseConnections", ["properties", "databaseConnections"], isOutput: true); + _defaultHostname = DefineProperty("DefaultHostname", ["properties", "defaultHostname"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _keyVaultReferenceIdentity = DefineProperty("KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"], isOutput: true); + _linkedBackends = DefineListProperty("LinkedBackends", ["properties", "linkedBackends"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _userProvidedFunctionApps = DefineListProperty("UserProvidedFunctionApps", ["properties", "userProvidedFunctionApps"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBasicAuthProperty.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBasicAuthProperty.cs index 8ecba9eac828d..1d80b2bd0b3b3 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBasicAuthProperty.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBasicAuthProperty.cs @@ -21,64 +21,100 @@ public partial class StaticSiteBasicAuthProperty : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// State indicating if basic auth is enabled and for what environments it /// is active. /// - public BicepValue ApplicableEnvironmentsMode { get => _applicableEnvironmentsMode; set => _applicableEnvironmentsMode.Assign(value); } - private readonly BicepValue _applicableEnvironmentsMode; + public BicepValue ApplicableEnvironmentsMode + { + get { Initialize(); return _applicableEnvironmentsMode!; } + set { Initialize(); _applicableEnvironmentsMode!.Assign(value); } + } + private BicepValue? _applicableEnvironmentsMode; /// /// The list of enabled environments for Basic Auth if /// ApplicableEnvironmentsMode is set to SpecifiedEnvironments. /// - public BicepList Environments { get => _environments; set => _environments.Assign(value); } - private readonly BicepList _environments; + public BicepList Environments + { + get { Initialize(); return _environments!; } + set { Initialize(); _environments!.Assign(value); } + } + private BicepList? _environments; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The password for basic auth. /// - public BicepValue Password { get => _password; set => _password.Assign(value); } - private readonly BicepValue _password; + public BicepValue Password + { + get { Initialize(); return _password!; } + set { Initialize(); _password!.Assign(value); } + } + private BicepValue? _password; /// /// Url to the secret in Key Vault. /// - public BicepValue SecretUri { get => _secretUri; set => _secretUri.Assign(value); } - private readonly BicepValue _secretUri; + public BicepValue SecretUri + { + get { Initialize(); return _secretUri!; } + set { Initialize(); _secretUri!.Assign(value); } + } + private BicepValue? _secretUri; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// State indicating if basic auth has a secret and what type it is. /// - public BicepValue SecretState { get => _secretState; } - private readonly BicepValue _secretState; + public BicepValue SecretState + { + get { Initialize(); return _secretState!; } + } + private BicepValue? _secretState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StaticSite. /// - public StaticSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StaticSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new StaticSiteBasicAuthProperty. @@ -93,16 +129,23 @@ public partial class StaticSiteBasicAuthProperty : ProvisionableResource public StaticSiteBasicAuthProperty(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/staticSites/basicAuth", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _applicableEnvironmentsMode = BicepValue.DefineProperty(this, "ApplicableEnvironmentsMode", ["properties", "applicableEnvironmentsMode"]); - _environments = BicepList.DefineProperty(this, "Environments", ["properties", "environments"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _password = BicepValue.DefineProperty(this, "Password", ["properties", "password"]); - _secretUri = BicepValue.DefineProperty(this, "SecretUri", ["properties", "secretUrl"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _secretState = BicepValue.DefineProperty(this, "SecretState", ["properties", "secretState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of StaticSiteBasicAuthProperty. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _applicableEnvironmentsMode = DefineProperty("ApplicableEnvironmentsMode", ["properties", "applicableEnvironmentsMode"]); + _environments = DefineListProperty("Environments", ["properties", "environments"]); + _kind = DefineProperty("Kind", ["kind"]); + _password = DefineProperty("Password", ["properties", "password"]); + _secretUri = DefineProperty("SecretUri", ["properties", "secretUrl"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _secretState = DefineProperty("SecretState", ["properties", "secretState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBuildDatabaseConnection.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBuildDatabaseConnection.cs index 6fab002a87b35..223634ad54ea7 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBuildDatabaseConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBuildDatabaseConnection.cs @@ -21,8 +21,12 @@ public partial class StaticSiteBuildDatabaseConnection : ProvisionableResource /// /// Name of the database connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// If present, the identity is used in conjunction with connection string @@ -31,50 +35,79 @@ public partial class StaticSiteBuildDatabaseConnection : ProvisionableResource /// while use of a user-assigned managed identity is indicated with the /// resource id of the managed identity resource. /// - public BicepValue ConnectionIdentity { get => _connectionIdentity; set => _connectionIdentity.Assign(value); } - private readonly BicepValue _connectionIdentity; + public BicepValue ConnectionIdentity + { + get { Initialize(); return _connectionIdentity!; } + set { Initialize(); _connectionIdentity!.Assign(value); } + } + private BicepValue? _connectionIdentity; /// /// The connection string to use to connect to the database. /// - public BicepValue ConnectionString { get => _connectionString; set => _connectionString.Assign(value); } - private readonly BicepValue _connectionString; + public BicepValue ConnectionString + { + get { Initialize(); return _connectionString!; } + set { Initialize(); _connectionString!.Assign(value); } + } + private BicepValue? _connectionString; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The region of the database resource. /// - public BicepValue Region { get => _region; set => _region.Assign(value); } - private readonly BicepValue _region; + public BicepValue Region + { + get { Initialize(); return _region!; } + set { Initialize(); _region!.Assign(value); } + } + private BicepValue? _region; /// /// The resource id of the database. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// A list of configuration files associated with this database connection. /// - public BicepList ConfigurationFiles { get => _configurationFiles; } - private readonly BicepList _configurationFiles; + public BicepList ConfigurationFiles + { + get { Initialize(); return _configurationFiles!; } + } + private BicepList? _configurationFiles; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new StaticSiteBuildDatabaseConnection. @@ -89,15 +122,23 @@ public partial class StaticSiteBuildDatabaseConnection : ProvisionableResource public StaticSiteBuildDatabaseConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/staticSites/builds/databaseConnections", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionIdentity = BicepValue.DefineProperty(this, "ConnectionIdentity", ["properties", "connectionIdentity"]); - _connectionString = BicepValue.DefineProperty(this, "ConnectionString", ["properties", "connectionString"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _region = BicepValue.DefineProperty(this, "Region", ["properties", "region"]); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceId"]); - _configurationFiles = BicepList.DefineProperty(this, "ConfigurationFiles", ["properties", "configurationFiles"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// StaticSiteBuildDatabaseConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionIdentity = DefineProperty("ConnectionIdentity", ["properties", "connectionIdentity"]); + _connectionString = DefineProperty("ConnectionString", ["properties", "connectionString"]); + _kind = DefineProperty("Kind", ["kind"]); + _region = DefineProperty("Region", ["properties", "region"]); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceId"]); + _configurationFiles = DefineListProperty("ConfigurationFiles", ["properties", "configurationFiles"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBuildLinkedBackend.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBuildLinkedBackend.cs index c2d50bf44ef6d..47ee5bccc646c 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBuildLinkedBackend.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBuildLinkedBackend.cs @@ -20,50 +20,78 @@ public partial class StaticSiteBuildLinkedBackend : ProvisionableResource /// /// Name of the backend to link to the static site. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The resource id of the backend linked to the static site. /// - public BicepValue BackendResourceId { get => _backendResourceId; set => _backendResourceId.Assign(value); } - private readonly BicepValue _backendResourceId; + public BicepValue BackendResourceId + { + get { Initialize(); return _backendResourceId!; } + set { Initialize(); _backendResourceId!.Assign(value); } + } + private BicepValue? _backendResourceId; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The region of the backend linked to the static site. /// - public BicepValue Region { get => _region; set => _region.Assign(value); } - private readonly BicepValue _region; + public BicepValue Region + { + get { Initialize(); return _region!; } + set { Initialize(); _region!.Assign(value); } + } + private BicepValue? _region; /// /// The date and time on which the backend was linked to the static site. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning state of the linking process. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new StaticSiteBuildLinkedBackend. @@ -78,14 +106,21 @@ public partial class StaticSiteBuildLinkedBackend : ProvisionableResource public StaticSiteBuildLinkedBackend(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/staticSites/builds/linkedBackends", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _backendResourceId = BicepValue.DefineProperty(this, "BackendResourceId", ["properties", "backendResourceId"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _region = BicepValue.DefineProperty(this, "Region", ["properties", "region"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdOn"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of StaticSiteBuildLinkedBackend. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _backendResourceId = DefineProperty("BackendResourceId", ["properties", "backendResourceId"]); + _kind = DefineProperty("Kind", ["kind"]); + _region = DefineProperty("Region", ["properties", "region"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdOn"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionApp.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionApp.cs index cb80c46ed6b44..86565fd620018 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionApp.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionApp.cs @@ -20,45 +20,70 @@ public partial class StaticSiteBuildUserProvidedFunctionApp : ProvisionableResou /// /// Gets or sets the Name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The region of the function app registered with the static site. /// - public BicepValue FunctionAppRegion { get => _functionAppRegion; set => _functionAppRegion.Assign(value); } - private readonly BicepValue _functionAppRegion; + public BicepValue FunctionAppRegion + { + get { Initialize(); return _functionAppRegion!; } + set { Initialize(); _functionAppRegion!.Assign(value); } + } + private BicepValue? _functionAppRegion; /// /// The resource id of the function app registered with the static site. /// - public BicepValue FunctionAppResourceId { get => _functionAppResourceId; set => _functionAppResourceId.Assign(value); } - private readonly BicepValue _functionAppResourceId; + public BicepValue FunctionAppResourceId + { + get { Initialize(); return _functionAppResourceId!; } + set { Initialize(); _functionAppResourceId!.Assign(value); } + } + private BicepValue? _functionAppResourceId; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The date and time on which the function app was registered with the /// static site. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new StaticSiteBuildUserProvidedFunctionApp. @@ -73,13 +98,21 @@ public partial class StaticSiteBuildUserProvidedFunctionApp : ProvisionableResou public StaticSiteBuildUserProvidedFunctionApp(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/staticSites/builds/userProvidedFunctionApps", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _functionAppRegion = BicepValue.DefineProperty(this, "FunctionAppRegion", ["properties", "functionAppRegion"]); - _functionAppResourceId = BicepValue.DefineProperty(this, "FunctionAppResourceId", ["properties", "functionAppResourceId"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdOn"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// StaticSiteBuildUserProvidedFunctionApp. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _functionAppRegion = DefineProperty("FunctionAppRegion", ["properties", "functionAppRegion"]); + _functionAppResourceId = DefineProperty("FunctionAppResourceId", ["properties", "functionAppResourceId"]); + _kind = DefineProperty("Kind", ["kind"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdOn"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteCustomDomainOverview.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteCustomDomainOverview.cs index 323c81e07c863..5a486d444faf7 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteCustomDomainOverview.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteCustomDomainOverview.cs @@ -20,69 +20,106 @@ public partial class StaticSiteCustomDomainOverview : ProvisionableResource /// /// The custom domain to create. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Validation method for adding a custom domain. /// - public BicepValue ValidationMethod { get => _validationMethod; set => _validationMethod.Assign(value); } - private readonly BicepValue _validationMethod; + public BicepValue ValidationMethod + { + get { Initialize(); return _validationMethod!; } + set { Initialize(); _validationMethod!.Assign(value); } + } + private BicepValue? _validationMethod; /// /// The date and time on which the custom domain was created for the static /// site. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// The domain name for the static site custom domain. /// - public BicepValue DomainName { get => _domainName; } - private readonly BicepValue _domainName; + public BicepValue DomainName + { + get { Initialize(); return _domainName!; } + } + private BicepValue? _domainName; /// /// Gets the error message. /// - public BicepValue ErrorMessage { get => _errorMessage; } - private readonly BicepValue _errorMessage; + public BicepValue ErrorMessage + { + get { Initialize(); return _errorMessage!; } + } + private BicepValue? _errorMessage; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The status of the custom domain. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The TXT record validation token. /// - public BicepValue ValidationToken { get => _validationToken; } - private readonly BicepValue _validationToken; + public BicepValue ValidationToken + { + get { Initialize(); return _validationToken!; } + } + private BicepValue? _validationToken; /// /// Gets or sets a reference to the parent StaticSite. /// - public StaticSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StaticSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new StaticSiteCustomDomainOverview. @@ -97,17 +134,25 @@ public partial class StaticSiteCustomDomainOverview : ProvisionableResource public StaticSiteCustomDomainOverview(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/staticSites/customDomains", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _validationMethod = BicepValue.DefineProperty(this, "ValidationMethod", ["properties", "validationMethod"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdOn"], isOutput: true); - _domainName = BicepValue.DefineProperty(this, "DomainName", ["properties", "domainName"], isOutput: true); - _errorMessage = BicepValue.DefineProperty(this, "ErrorMessage", ["properties", "errorMessage"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _validationToken = BicepValue.DefineProperty(this, "ValidationToken", ["properties", "validationToken"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// StaticSiteCustomDomainOverview. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"]); + _validationMethod = DefineProperty("ValidationMethod", ["properties", "validationMethod"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdOn"], isOutput: true); + _domainName = DefineProperty("DomainName", ["properties", "domainName"], isOutput: true); + _errorMessage = DefineProperty("ErrorMessage", ["properties", "errorMessage"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _validationToken = DefineProperty("ValidationToken", ["properties", "validationToken"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteDatabaseConnection.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteDatabaseConnection.cs index fc100c1337159..9f837cb60da7f 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteDatabaseConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteDatabaseConnection.cs @@ -21,8 +21,12 @@ public partial class StaticSiteDatabaseConnection : ProvisionableResource /// /// Name of the database connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// If present, the identity is used in conjunction with connection string @@ -31,56 +35,89 @@ public partial class StaticSiteDatabaseConnection : ProvisionableResource /// while use of a user-assigned managed identity is indicated with the /// resource id of the managed identity resource. /// - public BicepValue ConnectionIdentity { get => _connectionIdentity; set => _connectionIdentity.Assign(value); } - private readonly BicepValue _connectionIdentity; + public BicepValue ConnectionIdentity + { + get { Initialize(); return _connectionIdentity!; } + set { Initialize(); _connectionIdentity!.Assign(value); } + } + private BicepValue? _connectionIdentity; /// /// The connection string to use to connect to the database. /// - public BicepValue ConnectionString { get => _connectionString; set => _connectionString.Assign(value); } - private readonly BicepValue _connectionString; + public BicepValue ConnectionString + { + get { Initialize(); return _connectionString!; } + set { Initialize(); _connectionString!.Assign(value); } + } + private BicepValue? _connectionString; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The region of the database resource. /// - public BicepValue Region { get => _region; set => _region.Assign(value); } - private readonly BicepValue _region; + public BicepValue Region + { + get { Initialize(); return _region!; } + set { Initialize(); _region!.Assign(value); } + } + private BicepValue? _region; /// /// The resource id of the database. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// A list of configuration files associated with this database connection. /// - public BicepList ConfigurationFiles { get => _configurationFiles; } - private readonly BicepList _configurationFiles; + public BicepList ConfigurationFiles + { + get { Initialize(); return _configurationFiles!; } + } + private BicepList? _configurationFiles; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StaticSite. /// - public StaticSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StaticSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new StaticSiteDatabaseConnection. @@ -95,16 +132,23 @@ public partial class StaticSiteDatabaseConnection : ProvisionableResource public StaticSiteDatabaseConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/staticSites/databaseConnections", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionIdentity = BicepValue.DefineProperty(this, "ConnectionIdentity", ["properties", "connectionIdentity"]); - _connectionString = BicepValue.DefineProperty(this, "ConnectionString", ["properties", "connectionString"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _region = BicepValue.DefineProperty(this, "Region", ["properties", "region"]); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceId"]); - _configurationFiles = BicepList.DefineProperty(this, "ConfigurationFiles", ["properties", "configurationFiles"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of StaticSiteDatabaseConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionIdentity = DefineProperty("ConnectionIdentity", ["properties", "connectionIdentity"]); + _connectionString = DefineProperty("ConnectionString", ["properties", "connectionString"]); + _kind = DefineProperty("Kind", ["kind"]); + _region = DefineProperty("Region", ["properties", "region"]); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceId"]); + _configurationFiles = DefineListProperty("ConfigurationFiles", ["properties", "configurationFiles"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteLinkedBackend.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteLinkedBackend.cs index e550e00618d7d..055912bcd4119 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteLinkedBackend.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteLinkedBackend.cs @@ -20,56 +20,88 @@ public partial class StaticSiteLinkedBackend : ProvisionableResource /// /// Name of the backend to link to the static site. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The resource id of the backend linked to the static site. /// - public BicepValue BackendResourceId { get => _backendResourceId; set => _backendResourceId.Assign(value); } - private readonly BicepValue _backendResourceId; + public BicepValue BackendResourceId + { + get { Initialize(); return _backendResourceId!; } + set { Initialize(); _backendResourceId!.Assign(value); } + } + private BicepValue? _backendResourceId; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The region of the backend linked to the static site. /// - public BicepValue Region { get => _region; set => _region.Assign(value); } - private readonly BicepValue _region; + public BicepValue Region + { + get { Initialize(); return _region!; } + set { Initialize(); _region!.Assign(value); } + } + private BicepValue? _region; /// /// The date and time on which the backend was linked to the static site. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning state of the linking process. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StaticSite. /// - public StaticSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StaticSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new StaticSiteLinkedBackend. @@ -84,15 +116,22 @@ public partial class StaticSiteLinkedBackend : ProvisionableResource public StaticSiteLinkedBackend(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/staticSites/linkedBackends", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _backendResourceId = BicepValue.DefineProperty(this, "BackendResourceId", ["properties", "backendResourceId"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _region = BicepValue.DefineProperty(this, "Region", ["properties", "region"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdOn"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of StaticSiteLinkedBackend. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _backendResourceId = DefineProperty("BackendResourceId", ["properties", "backendResourceId"]); + _kind = DefineProperty("Kind", ["kind"]); + _region = DefineProperty("Region", ["properties", "region"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdOn"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSitePrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSitePrivateEndpointConnection.cs index e703ac215cd23..d941edc424e75 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSitePrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSitePrivateEndpointConnection.cs @@ -22,56 +22,88 @@ public partial class StaticSitePrivateEndpointConnection : ProvisionableResource /// /// Name of the private endpoint connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Private IPAddresses mapped to the remote private endpoint. /// - public BicepList IPAddresses { get => _iPAddresses; set => _iPAddresses.Assign(value); } - private readonly BicepList _iPAddresses; + public BicepList IPAddresses + { + get { Initialize(); return _iPAddresses!; } + set { Initialize(); _iPAddresses!.Assign(value); } + } + private BicepList? _iPAddresses; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The state of a private link connection. /// - public BicepValue PrivateLinkServiceConnectionState { get => _privateLinkServiceConnectionState; set => _privateLinkServiceConnectionState.Assign(value); } - private readonly BicepValue _privateLinkServiceConnectionState; + public PrivateLinkConnectionState PrivateLinkServiceConnectionState + { + get { Initialize(); return _privateLinkServiceConnectionState!; } + set { Initialize(); AssignOrReplace(ref _privateLinkServiceConnectionState, value); } + } + private PrivateLinkConnectionState? _privateLinkServiceConnectionState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// Gets the provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StaticSite. /// - public StaticSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StaticSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new StaticSitePrivateEndpointConnection. @@ -86,15 +118,23 @@ public partial class StaticSitePrivateEndpointConnection : ProvisionableResource public StaticSitePrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/staticSites/privateEndpointConnections", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _iPAddresses = BicepList.DefineProperty(this, "IPAddresses", ["properties", "ipAddresses"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _privateLinkServiceConnectionState = BicepValue.DefineProperty(this, "PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// StaticSitePrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _iPAddresses = DefineListProperty("IPAddresses", ["properties", "ipAddresses"]); + _kind = DefineProperty("Kind", ["kind"]); + _privateLinkServiceConnectionState = DefineModelProperty("PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteUserProvidedFunctionApp.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteUserProvidedFunctionApp.cs index 944b96b91daec..00c8c9f22f776 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteUserProvidedFunctionApp.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/StaticSiteUserProvidedFunctionApp.cs @@ -20,51 +20,80 @@ public partial class StaticSiteUserProvidedFunctionApp : ProvisionableResource /// /// Gets or sets the Name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The region of the function app registered with the static site. /// - public BicepValue FunctionAppRegion { get => _functionAppRegion; set => _functionAppRegion.Assign(value); } - private readonly BicepValue _functionAppRegion; + public BicepValue FunctionAppRegion + { + get { Initialize(); return _functionAppRegion!; } + set { Initialize(); _functionAppRegion!.Assign(value); } + } + private BicepValue? _functionAppRegion; /// /// The resource id of the function app registered with the static site. /// - public BicepValue FunctionAppResourceId { get => _functionAppResourceId; set => _functionAppResourceId.Assign(value); } - private readonly BicepValue _functionAppResourceId; + public BicepValue FunctionAppResourceId + { + get { Initialize(); return _functionAppResourceId!; } + set { Initialize(); _functionAppResourceId!.Assign(value); } + } + private BicepValue? _functionAppResourceId; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The date and time on which the function app was registered with the /// static site. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StaticSite. /// - public StaticSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StaticSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new StaticSiteUserProvidedFunctionApp. @@ -79,14 +108,22 @@ public partial class StaticSiteUserProvidedFunctionApp : ProvisionableResource public StaticSiteUserProvidedFunctionApp(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/staticSites/userProvidedFunctionApps", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _functionAppRegion = BicepValue.DefineProperty(this, "FunctionAppRegion", ["properties", "functionAppRegion"]); - _functionAppResourceId = BicepValue.DefineProperty(this, "FunctionAppResourceId", ["properties", "functionAppResourceId"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdOn"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// StaticSiteUserProvidedFunctionApp. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _functionAppRegion = DefineProperty("FunctionAppRegion", ["properties", "functionAppRegion"]); + _functionAppResourceId = DefineProperty("FunctionAppResourceId", ["properties", "functionAppResourceId"]); + _kind = DefineProperty("Kind", ["kind"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdOn"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSite.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSite.cs index e95ba043edf91..a8a29f7398165 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSite.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSite.cs @@ -23,27 +23,43 @@ public partial class WebSite : ProvisionableResource /// Unique name of the app to create or update. To create or update a /// deployment slot, use the {slot} parameter. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Resource ID of the associated App Service plan, formatted as: /// "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". /// - public BicepValue AppServicePlanId { get => _appServicePlanId; set => _appServicePlanId.Assign(value); } - private readonly BicepValue _appServicePlanId; + public BicepValue AppServicePlanId + { + get { Initialize(); return _appServicePlanId!; } + set { Initialize(); _appServicePlanId!.Assign(value); } + } + private BicepValue? _appServicePlanId; /// /// client certificate authentication comma-separated exclusion paths. /// - public BicepValue ClientCertExclusionPaths { get => _clientCertExclusionPaths; set => _clientCertExclusionPaths.Assign(value); } - private readonly BicepValue _clientCertExclusionPaths; + public BicepValue ClientCertExclusionPaths + { + get { Initialize(); return _clientCertExclusionPaths!; } + set { Initialize(); _clientCertExclusionPaths!.Assign(value); } + } + private BicepValue? _clientCertExclusionPaths; /// /// This composes with ClientCertEnabled setting. - @@ -52,77 +68,125 @@ public partial class WebSite : ProvisionableResource /// is required. - ClientCertEnabled: true and ClientCertMode: /// Optional means ClientCert is optional or accepted. /// - public BicepValue ClientCertMode { get => _clientCertMode; set => _clientCertMode.Assign(value); } - private readonly BicepValue _clientCertMode; + public BicepValue ClientCertMode + { + get { Initialize(); return _clientCertMode!; } + set { Initialize(); _clientCertMode!.Assign(value); } + } + private BicepValue? _clientCertMode; /// /// If specified during app creation, the app is cloned from a source app. /// - public BicepValue CloningInfo { get => _cloningInfo; set => _cloningInfo.Assign(value); } - private readonly BicepValue _cloningInfo; + public CloningInfo CloningInfo + { + get { Initialize(); return _cloningInfo!; } + set { Initialize(); AssignOrReplace(ref _cloningInfo, value); } + } + private CloningInfo? _cloningInfo; /// /// Size of the function container. /// - public BicepValue ContainerSize { get => _containerSize; set => _containerSize.Assign(value); } - private readonly BicepValue _containerSize; + public BicepValue ContainerSize + { + get { Initialize(); return _containerSize!; } + set { Initialize(); _containerSize!.Assign(value); } + } + private BicepValue? _containerSize; /// /// Unique identifier that verifies the custom domains assigned to the app. /// Customer will add this id to a txt record for verification. /// - public BicepValue CustomDomainVerificationId { get => _customDomainVerificationId; set => _customDomainVerificationId.Assign(value); } - private readonly BicepValue _customDomainVerificationId; + public BicepValue CustomDomainVerificationId + { + get { Initialize(); return _customDomainVerificationId!; } + set { Initialize(); _customDomainVerificationId!.Assign(value); } + } + private BicepValue? _customDomainVerificationId; /// /// Maximum allowed daily memory-time quota (applicable on dynamic apps /// only). /// - public BicepValue DailyMemoryTimeQuota { get => _dailyMemoryTimeQuota; set => _dailyMemoryTimeQuota.Assign(value); } - private readonly BicepValue _dailyMemoryTimeQuota; + public BicepValue DailyMemoryTimeQuota + { + get { Initialize(); return _dailyMemoryTimeQuota!; } + set { Initialize(); _dailyMemoryTimeQuota!.Assign(value); } + } + private BicepValue? _dailyMemoryTimeQuota; /// /// Dapr configuration of the app. /// - public BicepValue DaprConfig { get => _daprConfig; set => _daprConfig.Assign(value); } - private readonly BicepValue _daprConfig; + public AppDaprConfig DaprConfig + { + get { Initialize(); return _daprConfig!; } + set { Initialize(); AssignOrReplace(ref _daprConfig, value); } + } + private AppDaprConfig? _daprConfig; /// /// Property to configure various DNS related settings for a site. /// - public BicepValue DnsConfiguration { get => _dnsConfiguration; set => _dnsConfiguration.Assign(value); } - private readonly BicepValue _dnsConfiguration; + public SiteDnsConfig DnsConfiguration + { + get { Initialize(); return _dnsConfiguration!; } + set { Initialize(); AssignOrReplace(ref _dnsConfiguration, value); } + } + private SiteDnsConfig? _dnsConfiguration; /// /// Extended Location. /// - public BicepValue ExtendedLocation { get => _extendedLocation; set => _extendedLocation.Assign(value); } - private readonly BicepValue _extendedLocation; + public ExtendedAzureLocation ExtendedLocation + { + get { Initialize(); return _extendedLocation!; } + set { Initialize(); AssignOrReplace(ref _extendedLocation, value); } + } + private ExtendedAzureLocation? _extendedLocation; /// /// Configuration specific of the Azure Function app. /// - public BicepValue FunctionAppConfig { get => _functionAppConfig; set => _functionAppConfig.Assign(value); } - private readonly BicepValue _functionAppConfig; + public FunctionAppConfig FunctionAppConfig + { + get { Initialize(); return _functionAppConfig!; } + set { Initialize(); AssignOrReplace(ref _functionAppConfig, value); } + } + private FunctionAppConfig? _functionAppConfig; /// /// App Service Environment to use for the app. /// - public BicepValue HostingEnvironmentProfile { get => _hostingEnvironmentProfile; set => _hostingEnvironmentProfile.Assign(value); } - private readonly BicepValue _hostingEnvironmentProfile; + public HostingEnvironmentProfile HostingEnvironmentProfile + { + get { Initialize(); return _hostingEnvironmentProfile!; } + set { Initialize(); AssignOrReplace(ref _hostingEnvironmentProfile, value); } + } + private HostingEnvironmentProfile? _hostingEnvironmentProfile; /// /// Hostname SSL states are used to manage the SSL bindings for app's /// hostnames. /// - public BicepList HostNameSslStates { get => _hostNameSslStates; set => _hostNameSslStates.Assign(value); } - private readonly BicepList _hostNameSslStates; + public BicepList HostNameSslStates + { + get { Initialize(); return _hostNameSslStates!; } + set { Initialize(); _hostNameSslStates!.Assign(value); } + } + private BicepList? _hostNameSslStates; /// /// Managed service identity. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// <code>true</code> to enable client affinity; @@ -130,8 +194,12 @@ public partial class WebSite : ProvisionableResource /// cookies, which route client requests in the same session to the same /// instance. Default is <code>true</code>. /// - public BicepValue IsClientAffinityEnabled { get => _isClientAffinityEnabled; set => _isClientAffinityEnabled.Assign(value); } - private readonly BicepValue _isClientAffinityEnabled; + public BicepValue IsClientAffinityEnabled + { + get { Initialize(); return _isClientAffinityEnabled!; } + set { Initialize(); _isClientAffinityEnabled!.Assign(value); } + } + private BicepValue? _isClientAffinityEnabled; /// /// <code>true</code> to enable client certificate @@ -139,16 +207,24 @@ public partial class WebSite : ProvisionableResource /// <code>false</code>. Default is /// <code>false</code>. /// - public BicepValue IsClientCertEnabled { get => _isClientCertEnabled; set => _isClientCertEnabled.Assign(value); } - private readonly BicepValue _isClientCertEnabled; + public BicepValue IsClientCertEnabled + { + get { Initialize(); return _isClientCertEnabled!; } + set { Initialize(); _isClientCertEnabled!.Assign(value); } + } + private BicepValue? _isClientCertEnabled; /// /// <code>true</code> if the app is enabled; otherwise, /// <code>false</code>. Setting this value to false disables /// the app (takes the app offline). /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// <code>true</code> to disable the public hostnames of the @@ -156,124 +232,200 @@ public partial class WebSite : ProvisionableResource /// <code>true</code>, the app is only accessible via API /// management process. /// - public BicepValue IsHostNameDisabled { get => _isHostNameDisabled; set => _isHostNameDisabled.Assign(value); } - private readonly BicepValue _isHostNameDisabled; + public BicepValue IsHostNameDisabled + { + get { Initialize(); return _isHostNameDisabled!; } + set { Initialize(); _isHostNameDisabled!.Assign(value); } + } + private BicepValue? _isHostNameDisabled; /// /// HttpsOnly: configures a web site to accept only https requests. Issues /// redirect for http requests /// - public BicepValue IsHttpsOnly { get => _isHttpsOnly; set => _isHttpsOnly.Assign(value); } - private readonly BicepValue _isHttpsOnly; + public BicepValue IsHttpsOnly + { + get { Initialize(); return _isHttpsOnly!; } + set { Initialize(); _isHttpsOnly!.Assign(value); } + } + private BicepValue? _isHttpsOnly; /// /// Hyper-V sandbox. /// - public BicepValue IsHyperV { get => _isHyperV; set => _isHyperV.Assign(value); } - private readonly BicepValue _isHyperV; + public BicepValue IsHyperV + { + get { Initialize(); return _isHyperV!; } + set { Initialize(); _isHyperV!.Assign(value); } + } + private BicepValue? _isHyperV; /// /// <code>true</code> if reserved; otherwise, /// <code>false</code>. /// - public BicepValue IsReserved { get => _isReserved; set => _isReserved.Assign(value); } - private readonly BicepValue _isReserved; + public BicepValue IsReserved + { + get { Initialize(); return _isReserved!; } + set { Initialize(); _isReserved!.Assign(value); } + } + private BicepValue? _isReserved; /// /// <code>true</code> to stop SCM (KUDU) site when the app is /// stopped; otherwise, <code>false</code>. The default is /// <code>false</code>. /// - public BicepValue IsScmSiteAlsoStopped { get => _isScmSiteAlsoStopped; set => _isScmSiteAlsoStopped.Assign(value); } - private readonly BicepValue _isScmSiteAlsoStopped; + public BicepValue IsScmSiteAlsoStopped + { + get { Initialize(); return _isScmSiteAlsoStopped!; } + set { Initialize(); _isScmSiteAlsoStopped!.Assign(value); } + } + private BicepValue? _isScmSiteAlsoStopped; /// /// Checks if Customer provided storage account is required. /// - public BicepValue IsStorageAccountRequired { get => _isStorageAccountRequired; set => _isStorageAccountRequired.Assign(value); } - private readonly BicepValue _isStorageAccountRequired; + public BicepValue IsStorageAccountRequired + { + get { Initialize(); return _isStorageAccountRequired!; } + set { Initialize(); _isStorageAccountRequired!.Assign(value); } + } + private BicepValue? _isStorageAccountRequired; /// /// To enable Backup and Restore operations over virtual network. /// - public BicepValue IsVnetBackupRestoreEnabled { get => _isVnetBackupRestoreEnabled; set => _isVnetBackupRestoreEnabled.Assign(value); } - private readonly BicepValue _isVnetBackupRestoreEnabled; + public BicepValue IsVnetBackupRestoreEnabled + { + get { Initialize(); return _isVnetBackupRestoreEnabled!; } + set { Initialize(); _isVnetBackupRestoreEnabled!.Assign(value); } + } + private BicepValue? _isVnetBackupRestoreEnabled; /// /// To enable accessing content over virtual network. /// - public BicepValue IsVnetContentShareEnabled { get => _isVnetContentShareEnabled; set => _isVnetContentShareEnabled.Assign(value); } - private readonly BicepValue _isVnetContentShareEnabled; + public BicepValue IsVnetContentShareEnabled + { + get { Initialize(); return _isVnetContentShareEnabled!; } + set { Initialize(); _isVnetContentShareEnabled!.Assign(value); } + } + private BicepValue? _isVnetContentShareEnabled; /// /// To enable pulling image over Virtual Network. /// - public BicepValue IsVnetImagePullEnabled { get => _isVnetImagePullEnabled; set => _isVnetImagePullEnabled.Assign(value); } - private readonly BicepValue _isVnetImagePullEnabled; + public BicepValue IsVnetImagePullEnabled + { + get { Initialize(); return _isVnetImagePullEnabled!; } + set { Initialize(); _isVnetImagePullEnabled!.Assign(value); } + } + private BicepValue? _isVnetImagePullEnabled; /// /// Virtual Network Route All enabled. This causes all outbound traffic to /// have Virtual Network Security Groups and User Defined Routes applied. /// - public BicepValue IsVnetRouteAllEnabled { get => _isVnetRouteAllEnabled; set => _isVnetRouteAllEnabled.Assign(value); } - private readonly BicepValue _isVnetRouteAllEnabled; + public BicepValue IsVnetRouteAllEnabled + { + get { Initialize(); return _isVnetRouteAllEnabled!; } + set { Initialize(); _isVnetRouteAllEnabled!.Assign(value); } + } + private BicepValue? _isVnetRouteAllEnabled; /// /// Obsolete: Hyper-V sandbox. /// - public BicepValue IsXenon { get => _isXenon; set => _isXenon.Assign(value); } - private readonly BicepValue _isXenon; + public BicepValue IsXenon + { + get { Initialize(); return _isXenon!; } + set { Initialize(); _isXenon!.Assign(value); } + } + private BicepValue? _isXenon; /// /// Identity to use for Key Vault Reference authentication. /// - public BicepValue KeyVaultReferenceIdentity { get => _keyVaultReferenceIdentity; set => _keyVaultReferenceIdentity.Assign(value); } - private readonly BicepValue _keyVaultReferenceIdentity; + public BicepValue KeyVaultReferenceIdentity + { + get { Initialize(); return _keyVaultReferenceIdentity!; } + set { Initialize(); _keyVaultReferenceIdentity!.Assign(value); } + } + private BicepValue? _keyVaultReferenceIdentity; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Azure Resource Manager ID of the customer's selected Managed /// Environment on which to host this app. This must be of the form /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}. /// - public BicepValue ManagedEnvironmentId { get => _managedEnvironmentId; set => _managedEnvironmentId.Assign(value); } - private readonly BicepValue _managedEnvironmentId; + public BicepValue ManagedEnvironmentId + { + get { Initialize(); return _managedEnvironmentId!; } + set { Initialize(); _managedEnvironmentId!.Assign(value); } + } + private BicepValue? _managedEnvironmentId; /// /// Property to allow or block all public traffic. Allowed Values: /// 'Enabled', 'Disabled' or an empty string. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Site redundancy mode. /// - public BicepValue RedundancyMode { get => _redundancyMode; set => _redundancyMode.Assign(value); } - private readonly BicepValue _redundancyMode; + public BicepValue RedundancyMode + { + get { Initialize(); return _redundancyMode!; } + set { Initialize(); _redundancyMode!.Assign(value); } + } + private BicepValue? _redundancyMode; /// /// Function app resource requirements. /// - public BicepValue ResourceConfig { get => _resourceConfig; set => _resourceConfig.Assign(value); } - private readonly BicepValue _resourceConfig; + public FunctionAppResourceConfig ResourceConfig + { + get { Initialize(); return _resourceConfig!; } + set { Initialize(); AssignOrReplace(ref _resourceConfig, value); } + } + private FunctionAppResourceConfig? _resourceConfig; /// /// Configuration of the app. /// - public BicepValue SiteConfig { get => _siteConfig; set => _siteConfig.Assign(value); } - private readonly BicepValue _siteConfig; + public SiteConfigProperties SiteConfig + { + get { Initialize(); return _siteConfig!; } + set { Initialize(); AssignOrReplace(ref _siteConfig, value); } + } + private SiteConfigProperties? _siteConfig; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Azure Resource Manager ID of the Virtual network and subnet to be @@ -281,143 +433,211 @@ public partial class WebSite : ProvisionableResource /// form /// /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} /// - public BicepValue VirtualNetworkSubnetId { get => _virtualNetworkSubnetId; set => _virtualNetworkSubnetId.Assign(value); } - private readonly BicepValue _virtualNetworkSubnetId; + public BicepValue VirtualNetworkSubnetId + { + get { Initialize(); return _virtualNetworkSubnetId!; } + set { Initialize(); _virtualNetworkSubnetId!.Assign(value); } + } + private BicepValue? _virtualNetworkSubnetId; /// /// Workload profile name for function app to execute on. /// - public BicepValue WorkloadProfileName { get => _workloadProfileName; set => _workloadProfileName.Assign(value); } - private readonly BicepValue _workloadProfileName; + public BicepValue WorkloadProfileName + { + get { Initialize(); return _workloadProfileName!; } + set { Initialize(); _workloadProfileName!.Assign(value); } + } + private BicepValue? _workloadProfileName; /// /// Management information availability state for the app. /// - public BicepValue AvailabilityState { get => _availabilityState; } - private readonly BicepValue _availabilityState; + public BicepValue AvailabilityState + { + get { Initialize(); return _availabilityState!; } + } + private BicepValue? _availabilityState; /// /// Default hostname of the app. Read-only. /// - public BicepValue DefaultHostName { get => _defaultHostName; } - private readonly BicepValue _defaultHostName; + public BicepValue DefaultHostName + { + get { Initialize(); return _defaultHostName!; } + } + private BicepValue? _defaultHostName; /// /// Enabled hostnames for the app.Hostnames need to be assigned (see /// HostNames) AND enabled. Otherwise, the app is not served /// on those hostnames. /// - public BicepList EnabledHostNames { get => _enabledHostNames; } - private readonly BicepList _enabledHostNames; + public BicepList EnabledHostNames + { + get { Initialize(); return _enabledHostNames!; } + } + private BicepList? _enabledHostNames; /// /// Hostnames associated with the app. /// - public BicepList HostNames { get => _hostNames; } - private readonly BicepList _hostNames; + public BicepList HostNames + { + get { Initialize(); return _hostNames!; } + } + private BicepList? _hostNames; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Specifies an operation id if this site has a pending operation. /// - public BicepValue InProgressOperationId { get => _inProgressOperationId; } - private readonly BicepValue _inProgressOperationId; + public BicepValue InProgressOperationId + { + get { Initialize(); return _inProgressOperationId!; } + } + private BicepValue? _inProgressOperationId; /// /// <code>true</code> if the app is a default container; /// otherwise, <code>false</code>. /// - public BicepValue IsDefaultContainer { get => _isDefaultContainer; } - private readonly BicepValue _isDefaultContainer; + public BicepValue IsDefaultContainer + { + get { Initialize(); return _isDefaultContainer!; } + } + private BicepValue? _isDefaultContainer; /// /// Last time the app was modified, in UTC. Read-only. /// - public BicepValue LastModifiedTimeUtc { get => _lastModifiedTimeUtc; } - private readonly BicepValue _lastModifiedTimeUtc; + public BicepValue LastModifiedTimeUtc + { + get { Initialize(); return _lastModifiedTimeUtc!; } + } + private BicepValue? _lastModifiedTimeUtc; /// /// Maximum number of workers. This only applies to Functions /// container. /// - public BicepValue MaxNumberOfWorkers { get => _maxNumberOfWorkers; } - private readonly BicepValue _maxNumberOfWorkers; + public BicepValue MaxNumberOfWorkers + { + get { Initialize(); return _maxNumberOfWorkers!; } + } + private BicepValue? _maxNumberOfWorkers; /// /// List of IP addresses that the app uses for outbound connections (e.g. /// database access). Includes VIPs from tenants that site can be hosted /// with current settings. Read-only. /// - public BicepValue OutboundIPAddresses { get => _outboundIPAddresses; } - private readonly BicepValue _outboundIPAddresses; + public BicepValue OutboundIPAddresses + { + get { Initialize(); return _outboundIPAddresses!; } + } + private BicepValue? _outboundIPAddresses; /// /// List of IP addresses that the app uses for outbound connections (e.g. /// database access). Includes VIPs from all tenants except dataComponent. /// Read-only. /// - public BicepValue PossibleOutboundIPAddresses { get => _possibleOutboundIPAddresses; } - private readonly BicepValue _possibleOutboundIPAddresses; + public BicepValue PossibleOutboundIPAddresses + { + get { Initialize(); return _possibleOutboundIPAddresses!; } + } + private BicepValue? _possibleOutboundIPAddresses; /// /// Name of the repository site. /// - public BicepValue RepositorySiteName { get => _repositorySiteName; } - private readonly BicepValue _repositorySiteName; + public BicepValue RepositorySiteName + { + get { Initialize(); return _repositorySiteName!; } + } + private BicepValue? _repositorySiteName; /// /// Name of the resource group the app belongs to. Read-only. /// - public BicepValue ResourceGroup { get => _resourceGroup; } - private readonly BicepValue _resourceGroup; + public BicepValue ResourceGroup + { + get { Initialize(); return _resourceGroup!; } + } + private BicepValue? _resourceGroup; /// /// Status of the last deployment slot swap operation. /// - public BicepValue SlotSwapStatus { get => _slotSwapStatus; } - private readonly BicepValue _slotSwapStatus; + public SlotSwapStatus SlotSwapStatus + { + get { Initialize(); return _slotSwapStatus!; } + } + private SlotSwapStatus? _slotSwapStatus; /// /// Current state of the app. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// App suspended till in case memory-time quota is exceeded. /// - public BicepValue SuspendOn { get => _suspendOn; } - private readonly BicepValue _suspendOn; + public BicepValue SuspendOn + { + get { Initialize(); return _suspendOn!; } + } + private BicepValue? _suspendOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Specifies which deployment slot this app will swap into. Read-only. /// - public BicepValue TargetSwapSlot { get => _targetSwapSlot; } - private readonly BicepValue _targetSwapSlot; + public BicepValue TargetSwapSlot + { + get { Initialize(); return _targetSwapSlot!; } + } + private BicepValue? _targetSwapSlot; /// /// Azure Traffic Manager hostnames associated with the app. Read-only. /// - public BicepList TrafficManagerHostNames { get => _trafficManagerHostNames; } - private readonly BicepList _trafficManagerHostNames; + public BicepList TrafficManagerHostNames + { + get { Initialize(); return _trafficManagerHostNames!; } + } + private BicepList? _trafficManagerHostNames; /// /// State indicating whether the app has exceeded its quota usage. /// Read-only. /// - public BicepValue UsageState { get => _usageState; } - private readonly BicepValue _usageState; + public BicepValue UsageState + { + get { Initialize(); return _usageState!; } + } + private BicepValue? _usageState; /// /// Creates a new WebSite. @@ -432,66 +652,73 @@ public partial class WebSite : ProvisionableResource public WebSite(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _appServicePlanId = BicepValue.DefineProperty(this, "AppServicePlanId", ["properties", "serverFarmId"]); - _clientCertExclusionPaths = BicepValue.DefineProperty(this, "ClientCertExclusionPaths", ["properties", "clientCertExclusionPaths"]); - _clientCertMode = BicepValue.DefineProperty(this, "ClientCertMode", ["properties", "clientCertMode"]); - _cloningInfo = BicepValue.DefineProperty(this, "CloningInfo", ["properties", "cloningInfo"]); - _containerSize = BicepValue.DefineProperty(this, "ContainerSize", ["properties", "containerSize"]); - _customDomainVerificationId = BicepValue.DefineProperty(this, "CustomDomainVerificationId", ["properties", "customDomainVerificationId"]); - _dailyMemoryTimeQuota = BicepValue.DefineProperty(this, "DailyMemoryTimeQuota", ["properties", "dailyMemoryTimeQuota"]); - _daprConfig = BicepValue.DefineProperty(this, "DaprConfig", ["properties", "daprConfig"]); - _dnsConfiguration = BicepValue.DefineProperty(this, "DnsConfiguration", ["properties", "dnsConfiguration"]); - _extendedLocation = BicepValue.DefineProperty(this, "ExtendedLocation", ["extendedLocation"]); - _functionAppConfig = BicepValue.DefineProperty(this, "FunctionAppConfig", ["properties", "functionAppConfig"]); - _hostingEnvironmentProfile = BicepValue.DefineProperty(this, "HostingEnvironmentProfile", ["properties", "hostingEnvironmentProfile"]); - _hostNameSslStates = BicepList.DefineProperty(this, "HostNameSslStates", ["properties", "hostNameSslStates"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _isClientAffinityEnabled = BicepValue.DefineProperty(this, "IsClientAffinityEnabled", ["properties", "clientAffinityEnabled"]); - _isClientCertEnabled = BicepValue.DefineProperty(this, "IsClientCertEnabled", ["properties", "clientCertEnabled"]); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["properties", "enabled"]); - _isHostNameDisabled = BicepValue.DefineProperty(this, "IsHostNameDisabled", ["properties", "hostNamesDisabled"]); - _isHttpsOnly = BicepValue.DefineProperty(this, "IsHttpsOnly", ["properties", "httpsOnly"]); - _isHyperV = BicepValue.DefineProperty(this, "IsHyperV", ["properties", "hyperV"]); - _isReserved = BicepValue.DefineProperty(this, "IsReserved", ["properties", "reserved"]); - _isScmSiteAlsoStopped = BicepValue.DefineProperty(this, "IsScmSiteAlsoStopped", ["properties", "scmSiteAlsoStopped"]); - _isStorageAccountRequired = BicepValue.DefineProperty(this, "IsStorageAccountRequired", ["properties", "storageAccountRequired"]); - _isVnetBackupRestoreEnabled = BicepValue.DefineProperty(this, "IsVnetBackupRestoreEnabled", ["properties", "vnetBackupRestoreEnabled"]); - _isVnetContentShareEnabled = BicepValue.DefineProperty(this, "IsVnetContentShareEnabled", ["properties", "vnetContentShareEnabled"]); - _isVnetImagePullEnabled = BicepValue.DefineProperty(this, "IsVnetImagePullEnabled", ["properties", "vnetImagePullEnabled"]); - _isVnetRouteAllEnabled = BicepValue.DefineProperty(this, "IsVnetRouteAllEnabled", ["properties", "vnetRouteAllEnabled"]); - _isXenon = BicepValue.DefineProperty(this, "IsXenon", ["properties", "isXenon"]); - _keyVaultReferenceIdentity = BicepValue.DefineProperty(this, "KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _managedEnvironmentId = BicepValue.DefineProperty(this, "ManagedEnvironmentId", ["properties", "managedEnvironmentId"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _redundancyMode = BicepValue.DefineProperty(this, "RedundancyMode", ["properties", "redundancyMode"]); - _resourceConfig = BicepValue.DefineProperty(this, "ResourceConfig", ["properties", "resourceConfig"]); - _siteConfig = BicepValue.DefineProperty(this, "SiteConfig", ["properties", "siteConfig"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _virtualNetworkSubnetId = BicepValue.DefineProperty(this, "VirtualNetworkSubnetId", ["properties", "virtualNetworkSubnetId"]); - _workloadProfileName = BicepValue.DefineProperty(this, "WorkloadProfileName", ["properties", "workloadProfileName"]); - _availabilityState = BicepValue.DefineProperty(this, "AvailabilityState", ["properties", "availabilityState"], isOutput: true); - _defaultHostName = BicepValue.DefineProperty(this, "DefaultHostName", ["properties", "defaultHostName"], isOutput: true); - _enabledHostNames = BicepList.DefineProperty(this, "EnabledHostNames", ["properties", "enabledHostNames"], isOutput: true); - _hostNames = BicepList.DefineProperty(this, "HostNames", ["properties", "hostNames"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _inProgressOperationId = BicepValue.DefineProperty(this, "InProgressOperationId", ["properties", "inProgressOperationId"], isOutput: true); - _isDefaultContainer = BicepValue.DefineProperty(this, "IsDefaultContainer", ["properties", "isDefaultContainer"], isOutput: true); - _lastModifiedTimeUtc = BicepValue.DefineProperty(this, "LastModifiedTimeUtc", ["properties", "lastModifiedTimeUtc"], isOutput: true); - _maxNumberOfWorkers = BicepValue.DefineProperty(this, "MaxNumberOfWorkers", ["properties", "maxNumberOfWorkers"], isOutput: true); - _outboundIPAddresses = BicepValue.DefineProperty(this, "OutboundIPAddresses", ["properties", "outboundIpAddresses"], isOutput: true); - _possibleOutboundIPAddresses = BicepValue.DefineProperty(this, "PossibleOutboundIPAddresses", ["properties", "possibleOutboundIpAddresses"], isOutput: true); - _repositorySiteName = BicepValue.DefineProperty(this, "RepositorySiteName", ["properties", "repositorySiteName"], isOutput: true); - _resourceGroup = BicepValue.DefineProperty(this, "ResourceGroup", ["properties", "resourceGroup"], isOutput: true); - _slotSwapStatus = BicepValue.DefineProperty(this, "SlotSwapStatus", ["properties", "slotSwapStatus"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _suspendOn = BicepValue.DefineProperty(this, "SuspendOn", ["properties", "suspendedTill"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _targetSwapSlot = BicepValue.DefineProperty(this, "TargetSwapSlot", ["properties", "targetSwapSlot"], isOutput: true); - _trafficManagerHostNames = BicepList.DefineProperty(this, "TrafficManagerHostNames", ["properties", "trafficManagerHostNames"], isOutput: true); - _usageState = BicepValue.DefineProperty(this, "UsageState", ["properties", "usageState"], isOutput: true); + } + + /// + /// Define all the provisionable properties of WebSite. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _appServicePlanId = DefineProperty("AppServicePlanId", ["properties", "serverFarmId"]); + _clientCertExclusionPaths = DefineProperty("ClientCertExclusionPaths", ["properties", "clientCertExclusionPaths"]); + _clientCertMode = DefineProperty("ClientCertMode", ["properties", "clientCertMode"]); + _cloningInfo = DefineModelProperty("CloningInfo", ["properties", "cloningInfo"]); + _containerSize = DefineProperty("ContainerSize", ["properties", "containerSize"]); + _customDomainVerificationId = DefineProperty("CustomDomainVerificationId", ["properties", "customDomainVerificationId"]); + _dailyMemoryTimeQuota = DefineProperty("DailyMemoryTimeQuota", ["properties", "dailyMemoryTimeQuota"]); + _daprConfig = DefineModelProperty("DaprConfig", ["properties", "daprConfig"]); + _dnsConfiguration = DefineModelProperty("DnsConfiguration", ["properties", "dnsConfiguration"]); + _extendedLocation = DefineModelProperty("ExtendedLocation", ["extendedLocation"]); + _functionAppConfig = DefineModelProperty("FunctionAppConfig", ["properties", "functionAppConfig"]); + _hostingEnvironmentProfile = DefineModelProperty("HostingEnvironmentProfile", ["properties", "hostingEnvironmentProfile"]); + _hostNameSslStates = DefineListProperty("HostNameSslStates", ["properties", "hostNameSslStates"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _isClientAffinityEnabled = DefineProperty("IsClientAffinityEnabled", ["properties", "clientAffinityEnabled"]); + _isClientCertEnabled = DefineProperty("IsClientCertEnabled", ["properties", "clientCertEnabled"]); + _isEnabled = DefineProperty("IsEnabled", ["properties", "enabled"]); + _isHostNameDisabled = DefineProperty("IsHostNameDisabled", ["properties", "hostNamesDisabled"]); + _isHttpsOnly = DefineProperty("IsHttpsOnly", ["properties", "httpsOnly"]); + _isHyperV = DefineProperty("IsHyperV", ["properties", "hyperV"]); + _isReserved = DefineProperty("IsReserved", ["properties", "reserved"]); + _isScmSiteAlsoStopped = DefineProperty("IsScmSiteAlsoStopped", ["properties", "scmSiteAlsoStopped"]); + _isStorageAccountRequired = DefineProperty("IsStorageAccountRequired", ["properties", "storageAccountRequired"]); + _isVnetBackupRestoreEnabled = DefineProperty("IsVnetBackupRestoreEnabled", ["properties", "vnetBackupRestoreEnabled"]); + _isVnetContentShareEnabled = DefineProperty("IsVnetContentShareEnabled", ["properties", "vnetContentShareEnabled"]); + _isVnetImagePullEnabled = DefineProperty("IsVnetImagePullEnabled", ["properties", "vnetImagePullEnabled"]); + _isVnetRouteAllEnabled = DefineProperty("IsVnetRouteAllEnabled", ["properties", "vnetRouteAllEnabled"]); + _isXenon = DefineProperty("IsXenon", ["properties", "isXenon"]); + _keyVaultReferenceIdentity = DefineProperty("KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"]); + _kind = DefineProperty("Kind", ["kind"]); + _managedEnvironmentId = DefineProperty("ManagedEnvironmentId", ["properties", "managedEnvironmentId"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _redundancyMode = DefineProperty("RedundancyMode", ["properties", "redundancyMode"]); + _resourceConfig = DefineModelProperty("ResourceConfig", ["properties", "resourceConfig"]); + _siteConfig = DefineModelProperty("SiteConfig", ["properties", "siteConfig"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _virtualNetworkSubnetId = DefineProperty("VirtualNetworkSubnetId", ["properties", "virtualNetworkSubnetId"]); + _workloadProfileName = DefineProperty("WorkloadProfileName", ["properties", "workloadProfileName"]); + _availabilityState = DefineProperty("AvailabilityState", ["properties", "availabilityState"], isOutput: true); + _defaultHostName = DefineProperty("DefaultHostName", ["properties", "defaultHostName"], isOutput: true); + _enabledHostNames = DefineListProperty("EnabledHostNames", ["properties", "enabledHostNames"], isOutput: true); + _hostNames = DefineListProperty("HostNames", ["properties", "hostNames"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _inProgressOperationId = DefineProperty("InProgressOperationId", ["properties", "inProgressOperationId"], isOutput: true); + _isDefaultContainer = DefineProperty("IsDefaultContainer", ["properties", "isDefaultContainer"], isOutput: true); + _lastModifiedTimeUtc = DefineProperty("LastModifiedTimeUtc", ["properties", "lastModifiedTimeUtc"], isOutput: true); + _maxNumberOfWorkers = DefineProperty("MaxNumberOfWorkers", ["properties", "maxNumberOfWorkers"], isOutput: true); + _outboundIPAddresses = DefineProperty("OutboundIPAddresses", ["properties", "outboundIpAddresses"], isOutput: true); + _possibleOutboundIPAddresses = DefineProperty("PossibleOutboundIPAddresses", ["properties", "possibleOutboundIpAddresses"], isOutput: true); + _repositorySiteName = DefineProperty("RepositorySiteName", ["properties", "repositorySiteName"], isOutput: true); + _resourceGroup = DefineProperty("ResourceGroup", ["properties", "resourceGroup"], isOutput: true); + _slotSwapStatus = DefineModelProperty("SlotSwapStatus", ["properties", "slotSwapStatus"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _suspendOn = DefineProperty("SuspendOn", ["properties", "suspendedTill"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _targetSwapSlot = DefineProperty("TargetSwapSlot", ["properties", "targetSwapSlot"], isOutput: true); + _trafficManagerHostNames = DefineListProperty("TrafficManagerHostNames", ["properties", "trafficManagerHostNames"], isOutput: true); + _usageState = DefineProperty("UsageState", ["properties", "usageState"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteConfig.cs index 443626816c042..2189a39d87e91 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteConfig.cs @@ -21,159 +21,258 @@ public partial class WebSiteConfig : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// If using user managed identity, the user managed identity ClientId. /// - public BicepValue AcrUserManagedIdentityId { get => _acrUserManagedIdentityId; set => _acrUserManagedIdentityId.Assign(value); } - private readonly BicepValue _acrUserManagedIdentityId; + public BicepValue AcrUserManagedIdentityId + { + get { Initialize(); return _acrUserManagedIdentityId!; } + set { Initialize(); _acrUserManagedIdentityId!.Assign(value); } + } + private BicepValue? _acrUserManagedIdentityId; /// /// IP security restrictions for scm to use main. /// - public BicepValue AllowIPSecurityRestrictionsForScmToUseMain { get => _allowIPSecurityRestrictionsForScmToUseMain; set => _allowIPSecurityRestrictionsForScmToUseMain.Assign(value); } - private readonly BicepValue _allowIPSecurityRestrictionsForScmToUseMain; + public BicepValue AllowIPSecurityRestrictionsForScmToUseMain + { + get { Initialize(); return _allowIPSecurityRestrictionsForScmToUseMain!; } + set { Initialize(); _allowIPSecurityRestrictionsForScmToUseMain!.Assign(value); } + } + private BicepValue? _allowIPSecurityRestrictionsForScmToUseMain; /// /// The URL of the API definition. /// - public BicepValue ApiDefinitionUri { get => _apiDefinitionUri; set => _apiDefinitionUri.Assign(value); } - private readonly BicepValue _apiDefinitionUri; + public BicepValue ApiDefinitionUri + { + get { Initialize(); return _apiDefinitionUri!; } + set { Initialize(); _apiDefinitionUri!.Assign(value); } + } + private BicepValue? _apiDefinitionUri; /// /// APIM-Api Identifier. /// - public BicepValue ApiManagementConfigId { get => _apiManagementConfigId; set => _apiManagementConfigId.Assign(value); } - private readonly BicepValue _apiManagementConfigId; + public BicepValue ApiManagementConfigId + { + get { Initialize(); return _apiManagementConfigId!; } + set { Initialize(); _apiManagementConfigId!.Assign(value); } + } + private BicepValue? _apiManagementConfigId; /// /// App command line to launch. /// - public BicepValue AppCommandLine { get => _appCommandLine; set => _appCommandLine.Assign(value); } - private readonly BicepValue _appCommandLine; + public BicepValue AppCommandLine + { + get { Initialize(); return _appCommandLine!; } + set { Initialize(); _appCommandLine!.Assign(value); } + } + private BicepValue? _appCommandLine; /// /// Application settings. /// - public BicepList AppSettings { get => _appSettings; set => _appSettings.Assign(value); } - private readonly BicepList _appSettings; + public BicepList AppSettings + { + get { Initialize(); return _appSettings!; } + set { Initialize(); _appSettings!.Assign(value); } + } + private BicepList? _appSettings; /// /// Auto Heal rules. /// - public BicepValue AutoHealRules { get => _autoHealRules; set => _autoHealRules.Assign(value); } - private readonly BicepValue _autoHealRules; + public AutoHealRules AutoHealRules + { + get { Initialize(); return _autoHealRules!; } + set { Initialize(); AssignOrReplace(ref _autoHealRules, value); } + } + private AutoHealRules? _autoHealRules; /// /// Auto-swap slot name. /// - public BicepValue AutoSwapSlotName { get => _autoSwapSlotName; set => _autoSwapSlotName.Assign(value); } - private readonly BicepValue _autoSwapSlotName; + public BicepValue AutoSwapSlotName + { + get { Initialize(); return _autoSwapSlotName!; } + set { Initialize(); _autoSwapSlotName!.Assign(value); } + } + private BicepValue? _autoSwapSlotName; /// /// List of Azure Storage Accounts. /// - public BicepDictionary AzureStorageAccounts { get => _azureStorageAccounts; set => _azureStorageAccounts.Assign(value); } - private readonly BicepDictionary _azureStorageAccounts; + public BicepDictionary AzureStorageAccounts + { + get { Initialize(); return _azureStorageAccounts!; } + set { Initialize(); _azureStorageAccounts!.Assign(value); } + } + private BicepDictionary? _azureStorageAccounts; /// /// Connection strings. /// - public BicepList ConnectionStrings { get => _connectionStrings; set => _connectionStrings.Assign(value); } - private readonly BicepList _connectionStrings; + public BicepList ConnectionStrings + { + get { Initialize(); return _connectionStrings!; } + set { Initialize(); _connectionStrings!.Assign(value); } + } + private BicepList? _connectionStrings; /// /// Cross-Origin Resource Sharing (CORS) settings. /// - public BicepValue Cors { get => _cors; set => _cors.Assign(value); } - private readonly BicepValue _cors; + public AppServiceCorsSettings Cors + { + get { Initialize(); return _cors!; } + set { Initialize(); AssignOrReplace(ref _cors, value); } + } + private AppServiceCorsSettings? _cors; /// /// Default documents. /// - public BicepList DefaultDocuments { get => _defaultDocuments; set => _defaultDocuments.Assign(value); } - private readonly BicepList _defaultDocuments; + public BicepList DefaultDocuments + { + get { Initialize(); return _defaultDocuments!; } + set { Initialize(); _defaultDocuments!.Assign(value); } + } + private BicepList? _defaultDocuments; /// /// Document root. /// - public BicepValue DocumentRoot { get => _documentRoot; set => _documentRoot.Assign(value); } - private readonly BicepValue _documentRoot; + public BicepValue DocumentRoot + { + get { Initialize(); return _documentRoot!; } + set { Initialize(); _documentRoot!.Assign(value); } + } + private BicepValue? _documentRoot; /// /// Maximum number of workers that a site can scale out to. /// This setting only applies to apps in plans where /// ElasticScaleEnabled is <code>true</code> /// - public BicepValue ElasticWebAppScaleLimit { get => _elasticWebAppScaleLimit; set => _elasticWebAppScaleLimit.Assign(value); } - private readonly BicepValue _elasticWebAppScaleLimit; + public BicepValue ElasticWebAppScaleLimit + { + get { Initialize(); return _elasticWebAppScaleLimit!; } + set { Initialize(); _elasticWebAppScaleLimit!.Assign(value); } + } + private BicepValue? _elasticWebAppScaleLimit; /// /// List of ramp-up rules. /// - public BicepList ExperimentsRampUpRules { get => _experimentsRampUpRules; set => _experimentsRampUpRules.Assign(value); } - private readonly BicepList _experimentsRampUpRules; + public BicepList ExperimentsRampUpRules + { + get { Initialize(); return _experimentsRampUpRules!; } + set { Initialize(); _experimentsRampUpRules!.Assign(value); } + } + private BicepList? _experimentsRampUpRules; /// /// State of FTP / FTPS service. /// - public BicepValue FtpsState { get => _ftpsState; set => _ftpsState.Assign(value); } - private readonly BicepValue _ftpsState; + public BicepValue FtpsState + { + get { Initialize(); return _ftpsState!; } + set { Initialize(); _ftpsState!.Assign(value); } + } + private BicepValue? _ftpsState; /// /// Maximum number of workers that a site can scale out to. /// This setting only applies to the Consumption and Elastic /// Premium Plans /// - public BicepValue FunctionAppScaleLimit { get => _functionAppScaleLimit; set => _functionAppScaleLimit.Assign(value); } - private readonly BicepValue _functionAppScaleLimit; + public BicepValue FunctionAppScaleLimit + { + get { Initialize(); return _functionAppScaleLimit!; } + set { Initialize(); _functionAppScaleLimit!.Assign(value); } + } + private BicepValue? _functionAppScaleLimit; /// /// Handler mappings. /// - public BicepList HandlerMappings { get => _handlerMappings; set => _handlerMappings.Assign(value); } - private readonly BicepList _handlerMappings; + public BicepList HandlerMappings + { + get { Initialize(); return _handlerMappings!; } + set { Initialize(); _handlerMappings!.Assign(value); } + } + private BicepList? _handlerMappings; /// /// Health check path. /// - public BicepValue HealthCheckPath { get => _healthCheckPath; set => _healthCheckPath.Assign(value); } - private readonly BicepValue _healthCheckPath; + public BicepValue HealthCheckPath + { + get { Initialize(); return _healthCheckPath!; } + set { Initialize(); _healthCheckPath!.Assign(value); } + } + private BicepValue? _healthCheckPath; /// /// IP security restrictions for main. /// - public BicepList IPSecurityRestrictions { get => _iPSecurityRestrictions; set => _iPSecurityRestrictions.Assign(value); } - private readonly BicepList _iPSecurityRestrictions; + public BicepList IPSecurityRestrictions + { + get { Initialize(); return _iPSecurityRestrictions!; } + set { Initialize(); _iPSecurityRestrictions!.Assign(value); } + } + private BicepList? _iPSecurityRestrictions; /// /// Default action for main access restriction if no rules are matched. /// - public BicepValue IPSecurityRestrictionsDefaultAction { get => _iPSecurityRestrictionsDefaultAction; set => _iPSecurityRestrictionsDefaultAction.Assign(value); } - private readonly BicepValue _iPSecurityRestrictionsDefaultAction; + public BicepValue IPSecurityRestrictionsDefaultAction + { + get { Initialize(); return _iPSecurityRestrictionsDefaultAction!; } + set { Initialize(); _iPSecurityRestrictionsDefaultAction!.Assign(value); } + } + private BicepValue? _iPSecurityRestrictionsDefaultAction; /// /// <code>true</code> if Always On is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsAlwaysOn { get => _isAlwaysOn; set => _isAlwaysOn.Assign(value); } - private readonly BicepValue _isAlwaysOn; + public BicepValue IsAlwaysOn + { + get { Initialize(); return _isAlwaysOn!; } + set { Initialize(); _isAlwaysOn!.Assign(value); } + } + private BicepValue? _isAlwaysOn; /// /// <code>true</code> if Auto Heal is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsAutoHealEnabled { get => _isAutoHealEnabled; set => _isAutoHealEnabled.Assign(value); } - private readonly BicepValue _isAutoHealEnabled; + public BicepValue IsAutoHealEnabled + { + get { Initialize(); return _isAutoHealEnabled!; } + set { Initialize(); _isAutoHealEnabled!.Assign(value); } + } + private BicepValue? _isAutoHealEnabled; /// /// <code>true</code> if detailed error logging is enabled; /// otherwise, <code>false</code>. /// - public BicepValue IsDetailedErrorLoggingEnabled { get => _isDetailedErrorLoggingEnabled; set => _isDetailedErrorLoggingEnabled.Assign(value); } - private readonly BicepValue _isDetailedErrorLoggingEnabled; + public BicepValue IsDetailedErrorLoggingEnabled + { + get { Initialize(); return _isDetailedErrorLoggingEnabled!; } + set { Initialize(); _isDetailedErrorLoggingEnabled!.Assign(value); } + } + private BicepValue? _isDetailedErrorLoggingEnabled; /// /// Gets or sets a value indicating whether functions runtime scale @@ -181,286 +280,466 @@ public partial class WebSiteConfig : ProvisionableResource /// will not monitor event sources directly, but will instead call to the /// runtime to get scale status. /// - public BicepValue IsFunctionsRuntimeScaleMonitoringEnabled { get => _isFunctionsRuntimeScaleMonitoringEnabled; set => _isFunctionsRuntimeScaleMonitoringEnabled.Assign(value); } - private readonly BicepValue _isFunctionsRuntimeScaleMonitoringEnabled; + public BicepValue IsFunctionsRuntimeScaleMonitoringEnabled + { + get { Initialize(); return _isFunctionsRuntimeScaleMonitoringEnabled!; } + set { Initialize(); _isFunctionsRuntimeScaleMonitoringEnabled!.Assign(value); } + } + private BicepValue? _isFunctionsRuntimeScaleMonitoringEnabled; /// /// Http20Enabled: configures a web site to allow clients to connect over /// http2.0. /// - public BicepValue IsHttp20Enabled { get => _isHttp20Enabled; set => _isHttp20Enabled.Assign(value); } - private readonly BicepValue _isHttp20Enabled; + public BicepValue IsHttp20Enabled + { + get { Initialize(); return _isHttp20Enabled!; } + set { Initialize(); _isHttp20Enabled!.Assign(value); } + } + private BicepValue? _isHttp20Enabled; /// /// <code>true</code> if HTTP logging is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsHttpLoggingEnabled { get => _isHttpLoggingEnabled; set => _isHttpLoggingEnabled.Assign(value); } - private readonly BicepValue _isHttpLoggingEnabled; + public BicepValue IsHttpLoggingEnabled + { + get { Initialize(); return _isHttpLoggingEnabled!; } + set { Initialize(); _isHttpLoggingEnabled!.Assign(value); } + } + private BicepValue? _isHttpLoggingEnabled; /// /// <code>true</code> to enable local MySQL; otherwise, /// <code>false</code>. /// - public BicepValue IsLocalMySqlEnabled { get => _isLocalMySqlEnabled; set => _isLocalMySqlEnabled.Assign(value); } - private readonly BicepValue _isLocalMySqlEnabled; + public BicepValue IsLocalMySqlEnabled + { + get { Initialize(); return _isLocalMySqlEnabled!; } + set { Initialize(); _isLocalMySqlEnabled!.Assign(value); } + } + private BicepValue? _isLocalMySqlEnabled; /// /// <code>true</code> if remote debugging is enabled; /// otherwise, <code>false</code>. /// - public BicepValue IsRemoteDebuggingEnabled { get => _isRemoteDebuggingEnabled; set => _isRemoteDebuggingEnabled.Assign(value); } - private readonly BicepValue _isRemoteDebuggingEnabled; + public BicepValue IsRemoteDebuggingEnabled + { + get { Initialize(); return _isRemoteDebuggingEnabled!; } + set { Initialize(); _isRemoteDebuggingEnabled!.Assign(value); } + } + private BicepValue? _isRemoteDebuggingEnabled; /// /// <code>true</code> if request tracing is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsRequestTracingEnabled { get => _isRequestTracingEnabled; set => _isRequestTracingEnabled.Assign(value); } - private readonly BicepValue _isRequestTracingEnabled; + public BicepValue IsRequestTracingEnabled + { + get { Initialize(); return _isRequestTracingEnabled!; } + set { Initialize(); _isRequestTracingEnabled!.Assign(value); } + } + private BicepValue? _isRequestTracingEnabled; /// /// Virtual Network Route All enabled. This causes all outbound traffic to /// have Virtual Network Security Groups and User Defined Routes applied. /// - public BicepValue IsVnetRouteAllEnabled { get => _isVnetRouteAllEnabled; set => _isVnetRouteAllEnabled.Assign(value); } - private readonly BicepValue _isVnetRouteAllEnabled; + public BicepValue IsVnetRouteAllEnabled + { + get { Initialize(); return _isVnetRouteAllEnabled!; } + set { Initialize(); _isVnetRouteAllEnabled!.Assign(value); } + } + private BicepValue? _isVnetRouteAllEnabled; /// /// <code>true</code> if WebSocket is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsWebSocketsEnabled { get => _isWebSocketsEnabled; set => _isWebSocketsEnabled.Assign(value); } - private readonly BicepValue _isWebSocketsEnabled; + public BicepValue IsWebSocketsEnabled + { + get { Initialize(); return _isWebSocketsEnabled!; } + set { Initialize(); _isWebSocketsEnabled!.Assign(value); } + } + private BicepValue? _isWebSocketsEnabled; /// /// Java container. /// - public BicepValue JavaContainer { get => _javaContainer; set => _javaContainer.Assign(value); } - private readonly BicepValue _javaContainer; + public BicepValue JavaContainer + { + get { Initialize(); return _javaContainer!; } + set { Initialize(); _javaContainer!.Assign(value); } + } + private BicepValue? _javaContainer; /// /// Java container version. /// - public BicepValue JavaContainerVersion { get => _javaContainerVersion; set => _javaContainerVersion.Assign(value); } - private readonly BicepValue _javaContainerVersion; + public BicepValue JavaContainerVersion + { + get { Initialize(); return _javaContainerVersion!; } + set { Initialize(); _javaContainerVersion!.Assign(value); } + } + private BicepValue? _javaContainerVersion; /// /// Java version. /// - public BicepValue JavaVersion { get => _javaVersion; set => _javaVersion.Assign(value); } - private readonly BicepValue _javaVersion; + public BicepValue JavaVersion + { + get { Initialize(); return _javaVersion!; } + set { Initialize(); _javaVersion!.Assign(value); } + } + private BicepValue? _javaVersion; /// /// Identity to use for Key Vault Reference authentication. /// - public BicepValue KeyVaultReferenceIdentity { get => _keyVaultReferenceIdentity; set => _keyVaultReferenceIdentity.Assign(value); } - private readonly BicepValue _keyVaultReferenceIdentity; + public BicepValue KeyVaultReferenceIdentity + { + get { Initialize(); return _keyVaultReferenceIdentity!; } + set { Initialize(); _keyVaultReferenceIdentity!.Assign(value); } + } + private BicepValue? _keyVaultReferenceIdentity; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Site limits. /// - public BicepValue Limits { get => _limits; set => _limits.Assign(value); } - private readonly BicepValue _limits; + public SiteLimits Limits + { + get { Initialize(); return _limits!; } + set { Initialize(); AssignOrReplace(ref _limits, value); } + } + private SiteLimits? _limits; /// /// Linux App Framework and version. /// - public BicepValue LinuxFxVersion { get => _linuxFxVersion; set => _linuxFxVersion.Assign(value); } - private readonly BicepValue _linuxFxVersion; + public BicepValue LinuxFxVersion + { + get { Initialize(); return _linuxFxVersion!; } + set { Initialize(); _linuxFxVersion!.Assign(value); } + } + private BicepValue? _linuxFxVersion; /// /// Site load balancing. /// - public BicepValue LoadBalancing { get => _loadBalancing; set => _loadBalancing.Assign(value); } - private readonly BicepValue _loadBalancing; + public BicepValue LoadBalancing + { + get { Initialize(); return _loadBalancing!; } + set { Initialize(); _loadBalancing!.Assign(value); } + } + private BicepValue? _loadBalancing; /// /// HTTP logs directory size limit. /// - public BicepValue LogsDirectorySizeLimit { get => _logsDirectorySizeLimit; set => _logsDirectorySizeLimit.Assign(value); } - private readonly BicepValue _logsDirectorySizeLimit; + public BicepValue LogsDirectorySizeLimit + { + get { Initialize(); return _logsDirectorySizeLimit!; } + set { Initialize(); _logsDirectorySizeLimit!.Assign(value); } + } + private BicepValue? _logsDirectorySizeLimit; /// /// Managed pipeline mode. /// - public BicepValue ManagedPipelineMode { get => _managedPipelineMode; set => _managedPipelineMode.Assign(value); } - private readonly BicepValue _managedPipelineMode; + public BicepValue ManagedPipelineMode + { + get { Initialize(); return _managedPipelineMode!; } + set { Initialize(); _managedPipelineMode!.Assign(value); } + } + private BicepValue? _managedPipelineMode; /// /// Managed Service Identity Id. /// - public BicepValue ManagedServiceIdentityId { get => _managedServiceIdentityId; set => _managedServiceIdentityId.Assign(value); } - private readonly BicepValue _managedServiceIdentityId; + public BicepValue ManagedServiceIdentityId + { + get { Initialize(); return _managedServiceIdentityId!; } + set { Initialize(); _managedServiceIdentityId!.Assign(value); } + } + private BicepValue? _managedServiceIdentityId; /// /// Application metadata. This property cannot be retrieved, since it may /// contain secrets. /// - public BicepList Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepList _metadata; + public BicepList Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepList? _metadata; /// /// Number of minimum instance count for a site This setting /// only applies to the Elastic Plans /// - public BicepValue MinimumElasticInstanceCount { get => _minimumElasticInstanceCount; set => _minimumElasticInstanceCount.Assign(value); } - private readonly BicepValue _minimumElasticInstanceCount; + public BicepValue MinimumElasticInstanceCount + { + get { Initialize(); return _minimumElasticInstanceCount!; } + set { Initialize(); _minimumElasticInstanceCount!.Assign(value); } + } + private BicepValue? _minimumElasticInstanceCount; /// /// The minimum strength TLS cipher suite allowed for an application. /// - public BicepValue MinTlsCipherSuite { get => _minTlsCipherSuite; set => _minTlsCipherSuite.Assign(value); } - private readonly BicepValue _minTlsCipherSuite; + public BicepValue MinTlsCipherSuite + { + get { Initialize(); return _minTlsCipherSuite!; } + set { Initialize(); _minTlsCipherSuite!.Assign(value); } + } + private BicepValue? _minTlsCipherSuite; /// /// MinTlsVersion: configures the minimum version of TLS required for SSL /// requests. /// - public BicepValue MinTlsVersion { get => _minTlsVersion; set => _minTlsVersion.Assign(value); } - private readonly BicepValue _minTlsVersion; + public BicepValue MinTlsVersion + { + get { Initialize(); return _minTlsVersion!; } + set { Initialize(); _minTlsVersion!.Assign(value); } + } + private BicepValue? _minTlsVersion; /// /// .NET Framework version. /// - public BicepValue NetFrameworkVersion { get => _netFrameworkVersion; set => _netFrameworkVersion.Assign(value); } - private readonly BicepValue _netFrameworkVersion; + public BicepValue NetFrameworkVersion + { + get { Initialize(); return _netFrameworkVersion!; } + set { Initialize(); _netFrameworkVersion!.Assign(value); } + } + private BicepValue? _netFrameworkVersion; /// /// Version of Node.js. /// - public BicepValue NodeVersion { get => _nodeVersion; set => _nodeVersion.Assign(value); } - private readonly BicepValue _nodeVersion; + public BicepValue NodeVersion + { + get { Initialize(); return _nodeVersion!; } + set { Initialize(); _nodeVersion!.Assign(value); } + } + private BicepValue? _nodeVersion; /// /// Number of workers. /// - public BicepValue NumberOfWorkers { get => _numberOfWorkers; set => _numberOfWorkers.Assign(value); } - private readonly BicepValue _numberOfWorkers; + public BicepValue NumberOfWorkers + { + get { Initialize(); return _numberOfWorkers!; } + set { Initialize(); _numberOfWorkers!.Assign(value); } + } + private BicepValue? _numberOfWorkers; /// /// Version of PHP. /// - public BicepValue PhpVersion { get => _phpVersion; set => _phpVersion.Assign(value); } - private readonly BicepValue _phpVersion; + public BicepValue PhpVersion + { + get { Initialize(); return _phpVersion!; } + set { Initialize(); _phpVersion!.Assign(value); } + } + private BicepValue? _phpVersion; /// /// Version of PowerShell. /// - public BicepValue PowerShellVersion { get => _powerShellVersion; set => _powerShellVersion.Assign(value); } - private readonly BicepValue _powerShellVersion; + public BicepValue PowerShellVersion + { + get { Initialize(); return _powerShellVersion!; } + set { Initialize(); _powerShellVersion!.Assign(value); } + } + private BicepValue? _powerShellVersion; /// /// Number of preWarmed instances. This setting only applies to /// the Consumption and Elastic Plans /// - public BicepValue PreWarmedInstanceCount { get => _preWarmedInstanceCount; set => _preWarmedInstanceCount.Assign(value); } - private readonly BicepValue _preWarmedInstanceCount; + public BicepValue PreWarmedInstanceCount + { + get { Initialize(); return _preWarmedInstanceCount!; } + set { Initialize(); _preWarmedInstanceCount!.Assign(value); } + } + private BicepValue? _preWarmedInstanceCount; /// /// Property to allow or block all public traffic. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Publishing user name. /// - public BicepValue PublishingUsername { get => _publishingUsername; set => _publishingUsername.Assign(value); } - private readonly BicepValue _publishingUsername; + public BicepValue PublishingUsername + { + get { Initialize(); return _publishingUsername!; } + set { Initialize(); _publishingUsername!.Assign(value); } + } + private BicepValue? _publishingUsername; /// /// Push endpoint settings. /// - public BicepValue Push { get => _push; set => _push.Assign(value); } - private readonly BicepValue _push; + public WebAppPushSettings Push + { + get { Initialize(); return _push!; } + set { Initialize(); AssignOrReplace(ref _push, value); } + } + private WebAppPushSettings? _push; /// /// Version of Python. /// - public BicepValue PythonVersion { get => _pythonVersion; set => _pythonVersion.Assign(value); } - private readonly BicepValue _pythonVersion; + public BicepValue PythonVersion + { + get { Initialize(); return _pythonVersion!; } + set { Initialize(); _pythonVersion!.Assign(value); } + } + private BicepValue? _pythonVersion; /// /// Remote debugging version. /// - public BicepValue RemoteDebuggingVersion { get => _remoteDebuggingVersion; set => _remoteDebuggingVersion.Assign(value); } - private readonly BicepValue _remoteDebuggingVersion; + public BicepValue RemoteDebuggingVersion + { + get { Initialize(); return _remoteDebuggingVersion!; } + set { Initialize(); _remoteDebuggingVersion!.Assign(value); } + } + private BicepValue? _remoteDebuggingVersion; /// /// Request tracing expiration time. /// - public BicepValue RequestTracingExpirationOn { get => _requestTracingExpirationOn; set => _requestTracingExpirationOn.Assign(value); } - private readonly BicepValue _requestTracingExpirationOn; + public BicepValue RequestTracingExpirationOn + { + get { Initialize(); return _requestTracingExpirationOn!; } + set { Initialize(); _requestTracingExpirationOn!.Assign(value); } + } + private BicepValue? _requestTracingExpirationOn; /// /// IP security restrictions for scm. /// - public BicepList ScmIPSecurityRestrictions { get => _scmIPSecurityRestrictions; set => _scmIPSecurityRestrictions.Assign(value); } - private readonly BicepList _scmIPSecurityRestrictions; + public BicepList ScmIPSecurityRestrictions + { + get { Initialize(); return _scmIPSecurityRestrictions!; } + set { Initialize(); _scmIPSecurityRestrictions!.Assign(value); } + } + private BicepList? _scmIPSecurityRestrictions; /// /// Default action for scm access restriction if no rules are matched. /// - public BicepValue ScmIPSecurityRestrictionsDefaultAction { get => _scmIPSecurityRestrictionsDefaultAction; set => _scmIPSecurityRestrictionsDefaultAction.Assign(value); } - private readonly BicepValue _scmIPSecurityRestrictionsDefaultAction; + public BicepValue ScmIPSecurityRestrictionsDefaultAction + { + get { Initialize(); return _scmIPSecurityRestrictionsDefaultAction!; } + set { Initialize(); _scmIPSecurityRestrictionsDefaultAction!.Assign(value); } + } + private BicepValue? _scmIPSecurityRestrictionsDefaultAction; /// /// ScmMinTlsVersion: configures the minimum version of TLS required for /// SSL requests for SCM site. /// - public BicepValue ScmMinTlsVersion { get => _scmMinTlsVersion; set => _scmMinTlsVersion.Assign(value); } - private readonly BicepValue _scmMinTlsVersion; + public BicepValue ScmMinTlsVersion + { + get { Initialize(); return _scmMinTlsVersion!; } + set { Initialize(); _scmMinTlsVersion!.Assign(value); } + } + private BicepValue? _scmMinTlsVersion; /// /// SCM type. /// - public BicepValue ScmType { get => _scmType; set => _scmType.Assign(value); } - private readonly BicepValue _scmType; + public BicepValue ScmType + { + get { Initialize(); return _scmType!; } + set { Initialize(); _scmType!.Assign(value); } + } + private BicepValue? _scmType; /// /// Tracing options. /// - public BicepValue TracingOptions { get => _tracingOptions; set => _tracingOptions.Assign(value); } - private readonly BicepValue _tracingOptions; + public BicepValue TracingOptions + { + get { Initialize(); return _tracingOptions!; } + set { Initialize(); _tracingOptions!.Assign(value); } + } + private BicepValue? _tracingOptions; /// /// <code>true</code> to use 32-bit worker process; otherwise, /// <code>false</code>. /// - public BicepValue Use32BitWorkerProcess { get => _use32BitWorkerProcess; set => _use32BitWorkerProcess.Assign(value); } - private readonly BicepValue _use32BitWorkerProcess; + public BicepValue Use32BitWorkerProcess + { + get { Initialize(); return _use32BitWorkerProcess!; } + set { Initialize(); _use32BitWorkerProcess!.Assign(value); } + } + private BicepValue? _use32BitWorkerProcess; /// /// Flag to use Managed Identity Creds for ACR pull. /// - public BicepValue UseManagedIdentityCreds { get => _useManagedIdentityCreds; set => _useManagedIdentityCreds.Assign(value); } - private readonly BicepValue _useManagedIdentityCreds; + public BicepValue UseManagedIdentityCreds + { + get { Initialize(); return _useManagedIdentityCreds!; } + set { Initialize(); _useManagedIdentityCreds!.Assign(value); } + } + private BicepValue? _useManagedIdentityCreds; /// /// Virtual applications. /// - public BicepList VirtualApplications { get => _virtualApplications; set => _virtualApplications.Assign(value); } - private readonly BicepList _virtualApplications; + public BicepList VirtualApplications + { + get { Initialize(); return _virtualApplications!; } + set { Initialize(); _virtualApplications!.Assign(value); } + } + private BicepList? _virtualApplications; /// /// Virtual Network name. /// - public BicepValue VnetName { get => _vnetName; set => _vnetName.Assign(value); } - private readonly BicepValue _vnetName; + public BicepValue VnetName + { + get { Initialize(); return _vnetName!; } + set { Initialize(); _vnetName!.Assign(value); } + } + private BicepValue? _vnetName; /// /// The number of private ports assigned to this app. These will be /// assigned dynamically on runtime. /// - public BicepValue VnetPrivatePortsCount { get => _vnetPrivatePortsCount; set => _vnetPrivatePortsCount.Assign(value); } - private readonly BicepValue _vnetPrivatePortsCount; + public BicepValue VnetPrivatePortsCount + { + get { Initialize(); return _vnetPrivatePortsCount!; } + set { Initialize(); _vnetPrivatePortsCount!.Assign(value); } + } + private BicepValue? _vnetPrivatePortsCount; /// /// Sets the time zone a site uses for generating timestamps. Compatible @@ -472,44 +751,69 @@ public partial class WebSiteConfig : ProvisionableResource /// HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time /// Zones. /// - public BicepValue WebsiteTimeZone { get => _websiteTimeZone; set => _websiteTimeZone.Assign(value); } - private readonly BicepValue _websiteTimeZone; + public BicepValue WebsiteTimeZone + { + get { Initialize(); return _websiteTimeZone!; } + set { Initialize(); _websiteTimeZone!.Assign(value); } + } + private BicepValue? _websiteTimeZone; /// /// Xenon App Framework and version. /// - public BicepValue WindowsFxVersion { get => _windowsFxVersion; set => _windowsFxVersion.Assign(value); } - private readonly BicepValue _windowsFxVersion; + public BicepValue WindowsFxVersion + { + get { Initialize(); return _windowsFxVersion!; } + set { Initialize(); _windowsFxVersion!.Assign(value); } + } + private BicepValue? _windowsFxVersion; /// /// Explicit Managed Service Identity Id. /// - public BicepValue XManagedServiceIdentityId { get => _xManagedServiceIdentityId; set => _xManagedServiceIdentityId.Assign(value); } - private readonly BicepValue _xManagedServiceIdentityId; + public BicepValue XManagedServiceIdentityId + { + get { Initialize(); return _xManagedServiceIdentityId!; } + set { Initialize(); _xManagedServiceIdentityId!.Assign(value); } + } + private BicepValue? _xManagedServiceIdentityId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Site MachineKey. /// - public BicepValue MachineKey { get => _machineKey; } - private readonly BicepValue _machineKey; + public SiteMachineKey MachineKey + { + get { Initialize(); return _machineKey!; } + } + private SiteMachineKey? _machineKey; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteConfig. @@ -524,83 +828,90 @@ public partial class WebSiteConfig : ProvisionableResource public WebSiteConfig(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/config", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _acrUserManagedIdentityId = BicepValue.DefineProperty(this, "AcrUserManagedIdentityId", ["properties", "acrUserManagedIdentityID"]); - _allowIPSecurityRestrictionsForScmToUseMain = BicepValue.DefineProperty(this, "AllowIPSecurityRestrictionsForScmToUseMain", ["properties", "scmIpSecurityRestrictionsUseMain"]); - _apiDefinitionUri = BicepValue.DefineProperty(this, "ApiDefinitionUri", ["properties", "apiDefinition", "url"]); - _apiManagementConfigId = BicepValue.DefineProperty(this, "ApiManagementConfigId", ["properties", "apiManagementConfig", "id"]); - _appCommandLine = BicepValue.DefineProperty(this, "AppCommandLine", ["properties", "appCommandLine"]); - _appSettings = BicepList.DefineProperty(this, "AppSettings", ["properties", "appSettings"]); - _autoHealRules = BicepValue.DefineProperty(this, "AutoHealRules", ["properties", "autoHealRules"]); - _autoSwapSlotName = BicepValue.DefineProperty(this, "AutoSwapSlotName", ["properties", "autoSwapSlotName"]); - _azureStorageAccounts = BicepDictionary.DefineProperty(this, "AzureStorageAccounts", ["properties", "azureStorageAccounts"]); - _connectionStrings = BicepList.DefineProperty(this, "ConnectionStrings", ["properties", "connectionStrings"]); - _cors = BicepValue.DefineProperty(this, "Cors", ["properties", "cors"]); - _defaultDocuments = BicepList.DefineProperty(this, "DefaultDocuments", ["properties", "defaultDocuments"]); - _documentRoot = BicepValue.DefineProperty(this, "DocumentRoot", ["properties", "documentRoot"]); - _elasticWebAppScaleLimit = BicepValue.DefineProperty(this, "ElasticWebAppScaleLimit", ["properties", "elasticWebAppScaleLimit"]); - _experimentsRampUpRules = BicepList.DefineProperty(this, "ExperimentsRampUpRules", ["properties", "experiments", "rampUpRules"]); - _ftpsState = BicepValue.DefineProperty(this, "FtpsState", ["properties", "ftpsState"]); - _functionAppScaleLimit = BicepValue.DefineProperty(this, "FunctionAppScaleLimit", ["properties", "functionAppScaleLimit"]); - _handlerMappings = BicepList.DefineProperty(this, "HandlerMappings", ["properties", "handlerMappings"]); - _healthCheckPath = BicepValue.DefineProperty(this, "HealthCheckPath", ["properties", "healthCheckPath"]); - _iPSecurityRestrictions = BicepList.DefineProperty(this, "IPSecurityRestrictions", ["properties", "ipSecurityRestrictions"]); - _iPSecurityRestrictionsDefaultAction = BicepValue.DefineProperty(this, "IPSecurityRestrictionsDefaultAction", ["properties", "ipSecurityRestrictionsDefaultAction"]); - _isAlwaysOn = BicepValue.DefineProperty(this, "IsAlwaysOn", ["properties", "alwaysOn"]); - _isAutoHealEnabled = BicepValue.DefineProperty(this, "IsAutoHealEnabled", ["properties", "autoHealEnabled"]); - _isDetailedErrorLoggingEnabled = BicepValue.DefineProperty(this, "IsDetailedErrorLoggingEnabled", ["properties", "detailedErrorLoggingEnabled"]); - _isFunctionsRuntimeScaleMonitoringEnabled = BicepValue.DefineProperty(this, "IsFunctionsRuntimeScaleMonitoringEnabled", ["properties", "functionsRuntimeScaleMonitoringEnabled"]); - _isHttp20Enabled = BicepValue.DefineProperty(this, "IsHttp20Enabled", ["properties", "http20Enabled"]); - _isHttpLoggingEnabled = BicepValue.DefineProperty(this, "IsHttpLoggingEnabled", ["properties", "httpLoggingEnabled"]); - _isLocalMySqlEnabled = BicepValue.DefineProperty(this, "IsLocalMySqlEnabled", ["properties", "localMySqlEnabled"]); - _isRemoteDebuggingEnabled = BicepValue.DefineProperty(this, "IsRemoteDebuggingEnabled", ["properties", "remoteDebuggingEnabled"]); - _isRequestTracingEnabled = BicepValue.DefineProperty(this, "IsRequestTracingEnabled", ["properties", "requestTracingEnabled"]); - _isVnetRouteAllEnabled = BicepValue.DefineProperty(this, "IsVnetRouteAllEnabled", ["properties", "vnetRouteAllEnabled"]); - _isWebSocketsEnabled = BicepValue.DefineProperty(this, "IsWebSocketsEnabled", ["properties", "webSocketsEnabled"]); - _javaContainer = BicepValue.DefineProperty(this, "JavaContainer", ["properties", "javaContainer"]); - _javaContainerVersion = BicepValue.DefineProperty(this, "JavaContainerVersion", ["properties", "javaContainerVersion"]); - _javaVersion = BicepValue.DefineProperty(this, "JavaVersion", ["properties", "javaVersion"]); - _keyVaultReferenceIdentity = BicepValue.DefineProperty(this, "KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _limits = BicepValue.DefineProperty(this, "Limits", ["properties", "limits"]); - _linuxFxVersion = BicepValue.DefineProperty(this, "LinuxFxVersion", ["properties", "linuxFxVersion"]); - _loadBalancing = BicepValue.DefineProperty(this, "LoadBalancing", ["properties", "loadBalancing"]); - _logsDirectorySizeLimit = BicepValue.DefineProperty(this, "LogsDirectorySizeLimit", ["properties", "logsDirectorySizeLimit"]); - _managedPipelineMode = BicepValue.DefineProperty(this, "ManagedPipelineMode", ["properties", "managedPipelineMode"]); - _managedServiceIdentityId = BicepValue.DefineProperty(this, "ManagedServiceIdentityId", ["properties", "managedServiceIdentityId"]); - _metadata = BicepList.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _minimumElasticInstanceCount = BicepValue.DefineProperty(this, "MinimumElasticInstanceCount", ["properties", "minimumElasticInstanceCount"]); - _minTlsCipherSuite = BicepValue.DefineProperty(this, "MinTlsCipherSuite", ["properties", "minTlsCipherSuite"]); - _minTlsVersion = BicepValue.DefineProperty(this, "MinTlsVersion", ["properties", "minTlsVersion"]); - _netFrameworkVersion = BicepValue.DefineProperty(this, "NetFrameworkVersion", ["properties", "netFrameworkVersion"]); - _nodeVersion = BicepValue.DefineProperty(this, "NodeVersion", ["properties", "nodeVersion"]); - _numberOfWorkers = BicepValue.DefineProperty(this, "NumberOfWorkers", ["properties", "numberOfWorkers"]); - _phpVersion = BicepValue.DefineProperty(this, "PhpVersion", ["properties", "phpVersion"]); - _powerShellVersion = BicepValue.DefineProperty(this, "PowerShellVersion", ["properties", "powerShellVersion"]); - _preWarmedInstanceCount = BicepValue.DefineProperty(this, "PreWarmedInstanceCount", ["properties", "preWarmedInstanceCount"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _publishingUsername = BicepValue.DefineProperty(this, "PublishingUsername", ["properties", "publishingUsername"]); - _push = BicepValue.DefineProperty(this, "Push", ["properties", "push"]); - _pythonVersion = BicepValue.DefineProperty(this, "PythonVersion", ["properties", "pythonVersion"]); - _remoteDebuggingVersion = BicepValue.DefineProperty(this, "RemoteDebuggingVersion", ["properties", "remoteDebuggingVersion"]); - _requestTracingExpirationOn = BicepValue.DefineProperty(this, "RequestTracingExpirationOn", ["properties", "requestTracingExpirationTime"]); - _scmIPSecurityRestrictions = BicepList.DefineProperty(this, "ScmIPSecurityRestrictions", ["properties", "scmIpSecurityRestrictions"]); - _scmIPSecurityRestrictionsDefaultAction = BicepValue.DefineProperty(this, "ScmIPSecurityRestrictionsDefaultAction", ["properties", "scmIpSecurityRestrictionsDefaultAction"]); - _scmMinTlsVersion = BicepValue.DefineProperty(this, "ScmMinTlsVersion", ["properties", "scmMinTlsVersion"]); - _scmType = BicepValue.DefineProperty(this, "ScmType", ["properties", "scmType"]); - _tracingOptions = BicepValue.DefineProperty(this, "TracingOptions", ["properties", "tracingOptions"]); - _use32BitWorkerProcess = BicepValue.DefineProperty(this, "Use32BitWorkerProcess", ["properties", "use32BitWorkerProcess"]); - _useManagedIdentityCreds = BicepValue.DefineProperty(this, "UseManagedIdentityCreds", ["properties", "acrUseManagedIdentityCreds"]); - _virtualApplications = BicepList.DefineProperty(this, "VirtualApplications", ["properties", "virtualApplications"]); - _vnetName = BicepValue.DefineProperty(this, "VnetName", ["properties", "vnetName"]); - _vnetPrivatePortsCount = BicepValue.DefineProperty(this, "VnetPrivatePortsCount", ["properties", "vnetPrivatePortsCount"]); - _websiteTimeZone = BicepValue.DefineProperty(this, "WebsiteTimeZone", ["properties", "websiteTimeZone"]); - _windowsFxVersion = BicepValue.DefineProperty(this, "WindowsFxVersion", ["properties", "windowsFxVersion"]); - _xManagedServiceIdentityId = BicepValue.DefineProperty(this, "XManagedServiceIdentityId", ["properties", "xManagedServiceIdentityId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _machineKey = BicepValue.DefineProperty(this, "MachineKey", ["properties", "machineKey"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSiteConfig. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _acrUserManagedIdentityId = DefineProperty("AcrUserManagedIdentityId", ["properties", "acrUserManagedIdentityID"]); + _allowIPSecurityRestrictionsForScmToUseMain = DefineProperty("AllowIPSecurityRestrictionsForScmToUseMain", ["properties", "scmIpSecurityRestrictionsUseMain"]); + _apiDefinitionUri = DefineProperty("ApiDefinitionUri", ["properties", "apiDefinition", "url"]); + _apiManagementConfigId = DefineProperty("ApiManagementConfigId", ["properties", "apiManagementConfig", "id"]); + _appCommandLine = DefineProperty("AppCommandLine", ["properties", "appCommandLine"]); + _appSettings = DefineListProperty("AppSettings", ["properties", "appSettings"]); + _autoHealRules = DefineModelProperty("AutoHealRules", ["properties", "autoHealRules"]); + _autoSwapSlotName = DefineProperty("AutoSwapSlotName", ["properties", "autoSwapSlotName"]); + _azureStorageAccounts = DefineDictionaryProperty("AzureStorageAccounts", ["properties", "azureStorageAccounts"]); + _connectionStrings = DefineListProperty("ConnectionStrings", ["properties", "connectionStrings"]); + _cors = DefineModelProperty("Cors", ["properties", "cors"]); + _defaultDocuments = DefineListProperty("DefaultDocuments", ["properties", "defaultDocuments"]); + _documentRoot = DefineProperty("DocumentRoot", ["properties", "documentRoot"]); + _elasticWebAppScaleLimit = DefineProperty("ElasticWebAppScaleLimit", ["properties", "elasticWebAppScaleLimit"]); + _experimentsRampUpRules = DefineListProperty("ExperimentsRampUpRules", ["properties", "experiments", "rampUpRules"]); + _ftpsState = DefineProperty("FtpsState", ["properties", "ftpsState"]); + _functionAppScaleLimit = DefineProperty("FunctionAppScaleLimit", ["properties", "functionAppScaleLimit"]); + _handlerMappings = DefineListProperty("HandlerMappings", ["properties", "handlerMappings"]); + _healthCheckPath = DefineProperty("HealthCheckPath", ["properties", "healthCheckPath"]); + _iPSecurityRestrictions = DefineListProperty("IPSecurityRestrictions", ["properties", "ipSecurityRestrictions"]); + _iPSecurityRestrictionsDefaultAction = DefineProperty("IPSecurityRestrictionsDefaultAction", ["properties", "ipSecurityRestrictionsDefaultAction"]); + _isAlwaysOn = DefineProperty("IsAlwaysOn", ["properties", "alwaysOn"]); + _isAutoHealEnabled = DefineProperty("IsAutoHealEnabled", ["properties", "autoHealEnabled"]); + _isDetailedErrorLoggingEnabled = DefineProperty("IsDetailedErrorLoggingEnabled", ["properties", "detailedErrorLoggingEnabled"]); + _isFunctionsRuntimeScaleMonitoringEnabled = DefineProperty("IsFunctionsRuntimeScaleMonitoringEnabled", ["properties", "functionsRuntimeScaleMonitoringEnabled"]); + _isHttp20Enabled = DefineProperty("IsHttp20Enabled", ["properties", "http20Enabled"]); + _isHttpLoggingEnabled = DefineProperty("IsHttpLoggingEnabled", ["properties", "httpLoggingEnabled"]); + _isLocalMySqlEnabled = DefineProperty("IsLocalMySqlEnabled", ["properties", "localMySqlEnabled"]); + _isRemoteDebuggingEnabled = DefineProperty("IsRemoteDebuggingEnabled", ["properties", "remoteDebuggingEnabled"]); + _isRequestTracingEnabled = DefineProperty("IsRequestTracingEnabled", ["properties", "requestTracingEnabled"]); + _isVnetRouteAllEnabled = DefineProperty("IsVnetRouteAllEnabled", ["properties", "vnetRouteAllEnabled"]); + _isWebSocketsEnabled = DefineProperty("IsWebSocketsEnabled", ["properties", "webSocketsEnabled"]); + _javaContainer = DefineProperty("JavaContainer", ["properties", "javaContainer"]); + _javaContainerVersion = DefineProperty("JavaContainerVersion", ["properties", "javaContainerVersion"]); + _javaVersion = DefineProperty("JavaVersion", ["properties", "javaVersion"]); + _keyVaultReferenceIdentity = DefineProperty("KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"]); + _kind = DefineProperty("Kind", ["kind"]); + _limits = DefineModelProperty("Limits", ["properties", "limits"]); + _linuxFxVersion = DefineProperty("LinuxFxVersion", ["properties", "linuxFxVersion"]); + _loadBalancing = DefineProperty("LoadBalancing", ["properties", "loadBalancing"]); + _logsDirectorySizeLimit = DefineProperty("LogsDirectorySizeLimit", ["properties", "logsDirectorySizeLimit"]); + _managedPipelineMode = DefineProperty("ManagedPipelineMode", ["properties", "managedPipelineMode"]); + _managedServiceIdentityId = DefineProperty("ManagedServiceIdentityId", ["properties", "managedServiceIdentityId"]); + _metadata = DefineListProperty("Metadata", ["properties", "metadata"]); + _minimumElasticInstanceCount = DefineProperty("MinimumElasticInstanceCount", ["properties", "minimumElasticInstanceCount"]); + _minTlsCipherSuite = DefineProperty("MinTlsCipherSuite", ["properties", "minTlsCipherSuite"]); + _minTlsVersion = DefineProperty("MinTlsVersion", ["properties", "minTlsVersion"]); + _netFrameworkVersion = DefineProperty("NetFrameworkVersion", ["properties", "netFrameworkVersion"]); + _nodeVersion = DefineProperty("NodeVersion", ["properties", "nodeVersion"]); + _numberOfWorkers = DefineProperty("NumberOfWorkers", ["properties", "numberOfWorkers"]); + _phpVersion = DefineProperty("PhpVersion", ["properties", "phpVersion"]); + _powerShellVersion = DefineProperty("PowerShellVersion", ["properties", "powerShellVersion"]); + _preWarmedInstanceCount = DefineProperty("PreWarmedInstanceCount", ["properties", "preWarmedInstanceCount"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _publishingUsername = DefineProperty("PublishingUsername", ["properties", "publishingUsername"]); + _push = DefineModelProperty("Push", ["properties", "push"]); + _pythonVersion = DefineProperty("PythonVersion", ["properties", "pythonVersion"]); + _remoteDebuggingVersion = DefineProperty("RemoteDebuggingVersion", ["properties", "remoteDebuggingVersion"]); + _requestTracingExpirationOn = DefineProperty("RequestTracingExpirationOn", ["properties", "requestTracingExpirationTime"]); + _scmIPSecurityRestrictions = DefineListProperty("ScmIPSecurityRestrictions", ["properties", "scmIpSecurityRestrictions"]); + _scmIPSecurityRestrictionsDefaultAction = DefineProperty("ScmIPSecurityRestrictionsDefaultAction", ["properties", "scmIpSecurityRestrictionsDefaultAction"]); + _scmMinTlsVersion = DefineProperty("ScmMinTlsVersion", ["properties", "scmMinTlsVersion"]); + _scmType = DefineProperty("ScmType", ["properties", "scmType"]); + _tracingOptions = DefineProperty("TracingOptions", ["properties", "tracingOptions"]); + _use32BitWorkerProcess = DefineProperty("Use32BitWorkerProcess", ["properties", "use32BitWorkerProcess"]); + _useManagedIdentityCreds = DefineProperty("UseManagedIdentityCreds", ["properties", "acrUseManagedIdentityCreds"]); + _virtualApplications = DefineListProperty("VirtualApplications", ["properties", "virtualApplications"]); + _vnetName = DefineProperty("VnetName", ["properties", "vnetName"]); + _vnetPrivatePortsCount = DefineProperty("VnetPrivatePortsCount", ["properties", "vnetPrivatePortsCount"]); + _websiteTimeZone = DefineProperty("WebsiteTimeZone", ["properties", "websiteTimeZone"]); + _windowsFxVersion = DefineProperty("WindowsFxVersion", ["properties", "windowsFxVersion"]); + _xManagedServiceIdentityId = DefineProperty("XManagedServiceIdentityId", ["properties", "xManagedServiceIdentityId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _machineKey = DefineModelProperty("MachineKey", ["properties", "machineKey"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteExtension.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteExtension.cs index 12026dccd0659..9fa887a7b7521 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteExtension.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteExtension.cs @@ -21,153 +21,229 @@ public partial class WebSiteExtension : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// List of authors. /// - public BicepList Authors { get => _authors; } - private readonly BicepList _authors; + public BicepList Authors + { + get { Initialize(); return _authors!; } + } + private BicepList? _authors; /// /// Site Extension comment. /// - public BicepValue Comment { get => _comment; } - private readonly BicepValue _comment; + public BicepValue Comment + { + get { Initialize(); return _comment!; } + } + private BicepValue? _comment; /// /// Detailed description. /// - public BicepValue Description { get => _description; } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + } + private BicepValue? _description; /// /// Count of downloads. /// - public BicepValue DownloadCount { get => _downloadCount; } - private readonly BicepValue _downloadCount; + public BicepValue DownloadCount + { + get { Initialize(); return _downloadCount!; } + } + private BicepValue? _downloadCount; /// /// Site extension ID. /// - public BicepValue ExtensionId { get => _extensionId; } - private readonly BicepValue _extensionId; + public BicepValue ExtensionId + { + get { Initialize(); return _extensionId!; } + } + private BicepValue? _extensionId; /// /// Site extension type. /// - public BicepValue ExtensionType { get => _extensionType; } - private readonly BicepValue _extensionType; + public BicepValue ExtensionType + { + get { Initialize(); return _extensionType!; } + } + private BicepValue? _extensionType; /// /// Extension URL. /// - public BicepValue ExtensionUri { get => _extensionUri; } - private readonly BicepValue _extensionUri; + public BicepValue ExtensionUri + { + get { Initialize(); return _extensionUri!; } + } + private BicepValue? _extensionUri; /// /// Feed URL. /// - public BicepValue FeedUri { get => _feedUri; } - private readonly BicepValue _feedUri; + public BicepValue FeedUri + { + get { Initialize(); return _feedUri!; } + } + private BicepValue? _feedUri; /// /// Icon URL. /// - public BicepValue IconUri { get => _iconUri; } - private readonly BicepValue _iconUri; + public BicepValue IconUri + { + get { Initialize(); return _iconUri!; } + } + private BicepValue? _iconUri; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Installed timestamp. /// - public BicepValue InstalledOn { get => _installedOn; } - private readonly BicepValue _installedOn; + public BicepValue InstalledOn + { + get { Initialize(); return _installedOn!; } + } + private BicepValue? _installedOn; /// /// Installer command line parameters. /// - public BicepValue InstallerCommandLineParams { get => _installerCommandLineParams; } - private readonly BicepValue _installerCommandLineParams; + public BicepValue InstallerCommandLineParams + { + get { Initialize(); return _installerCommandLineParams!; } + } + private BicepValue? _installerCommandLineParams; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// License URL. /// - public BicepValue LicenseUri { get => _licenseUri; } - private readonly BicepValue _licenseUri; + public BicepValue LicenseUri + { + get { Initialize(); return _licenseUri!; } + } + private BicepValue? _licenseUri; /// /// <code>true</code> if the local version is the latest /// version; <code>false</code> otherwise. /// - public BicepValue LocalIsLatestVersion { get => _localIsLatestVersion; } - private readonly BicepValue _localIsLatestVersion; + public BicepValue LocalIsLatestVersion + { + get { Initialize(); return _localIsLatestVersion!; } + } + private BicepValue? _localIsLatestVersion; /// /// Local path. /// - public BicepValue LocalPath { get => _localPath; } - private readonly BicepValue _localPath; + public BicepValue LocalPath + { + get { Initialize(); return _localPath!; } + } + private BicepValue? _localPath; /// /// Project URL. /// - public BicepValue ProjectUri { get => _projectUri; } - private readonly BicepValue _projectUri; + public BicepValue ProjectUri + { + get { Initialize(); return _projectUri!; } + } + private BicepValue? _projectUri; /// /// Provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Published timestamp. /// - public BicepValue PublishedOn { get => _publishedOn; } - private readonly BicepValue _publishedOn; + public BicepValue PublishedOn + { + get { Initialize(); return _publishedOn!; } + } + private BicepValue? _publishedOn; /// /// Summary description. /// - public BicepValue Summary { get => _summary; } - private readonly BicepValue _summary; + public BicepValue Summary + { + get { Initialize(); return _summary!; } + } + private BicepValue? _summary; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets the title. /// - public BicepValue Title { get => _title; } - private readonly BicepValue _title; + public BicepValue Title + { + get { Initialize(); return _title!; } + } + private BicepValue? _title; /// /// Version information. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteExtension. @@ -182,31 +258,38 @@ public partial class WebSiteExtension : ProvisionableResource public WebSiteExtension(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/siteextensions", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _authors = BicepList.DefineProperty(this, "Authors", ["properties", "authors"], isOutput: true); - _comment = BicepValue.DefineProperty(this, "Comment", ["properties", "comment"], isOutput: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"], isOutput: true); - _downloadCount = BicepValue.DefineProperty(this, "DownloadCount", ["properties", "download_count"], isOutput: true); - _extensionId = BicepValue.DefineProperty(this, "ExtensionId", ["properties", "extension_id"], isOutput: true); - _extensionType = BicepValue.DefineProperty(this, "ExtensionType", ["properties", "extension_type"], isOutput: true); - _extensionUri = BicepValue.DefineProperty(this, "ExtensionUri", ["properties", "extension_url"], isOutput: true); - _feedUri = BicepValue.DefineProperty(this, "FeedUri", ["properties", "feed_url"], isOutput: true); - _iconUri = BicepValue.DefineProperty(this, "IconUri", ["properties", "icon_url"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _installedOn = BicepValue.DefineProperty(this, "InstalledOn", ["properties", "installed_date_time"], isOutput: true); - _installerCommandLineParams = BicepValue.DefineProperty(this, "InstallerCommandLineParams", ["properties", "installer_command_line_params"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _licenseUri = BicepValue.DefineProperty(this, "LicenseUri", ["properties", "license_url"], isOutput: true); - _localIsLatestVersion = BicepValue.DefineProperty(this, "LocalIsLatestVersion", ["properties", "local_is_latest_version"], isOutput: true); - _localPath = BicepValue.DefineProperty(this, "LocalPath", ["properties", "local_path"], isOutput: true); - _projectUri = BicepValue.DefineProperty(this, "ProjectUri", ["properties", "project_url"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _publishedOn = BicepValue.DefineProperty(this, "PublishedOn", ["properties", "published_date_time"], isOutput: true); - _summary = BicepValue.DefineProperty(this, "Summary", ["properties", "summary"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _title = BicepValue.DefineProperty(this, "Title", ["properties", "title"], isOutput: true); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSiteExtension. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _authors = DefineListProperty("Authors", ["properties", "authors"], isOutput: true); + _comment = DefineProperty("Comment", ["properties", "comment"], isOutput: true); + _description = DefineProperty("Description", ["properties", "description"], isOutput: true); + _downloadCount = DefineProperty("DownloadCount", ["properties", "download_count"], isOutput: true); + _extensionId = DefineProperty("ExtensionId", ["properties", "extension_id"], isOutput: true); + _extensionType = DefineProperty("ExtensionType", ["properties", "extension_type"], isOutput: true); + _extensionUri = DefineProperty("ExtensionUri", ["properties", "extension_url"], isOutput: true); + _feedUri = DefineProperty("FeedUri", ["properties", "feed_url"], isOutput: true); + _iconUri = DefineProperty("IconUri", ["properties", "icon_url"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _installedOn = DefineProperty("InstalledOn", ["properties", "installed_date_time"], isOutput: true); + _installerCommandLineParams = DefineProperty("InstallerCommandLineParams", ["properties", "installer_command_line_params"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _licenseUri = DefineProperty("LicenseUri", ["properties", "license_url"], isOutput: true); + _localIsLatestVersion = DefineProperty("LocalIsLatestVersion", ["properties", "local_is_latest_version"], isOutput: true); + _localPath = DefineProperty("LocalPath", ["properties", "local_path"], isOutput: true); + _projectUri = DefineProperty("ProjectUri", ["properties", "project_url"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _publishedOn = DefineProperty("PublishedOn", ["properties", "published_date_time"], isOutput: true); + _summary = DefineProperty("Summary", ["properties", "summary"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _title = DefineProperty("Title", ["properties", "title"], isOutput: true); + _version = DefineProperty("Version", ["properties", "version"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteFtpPublishingCredentialsPolicy.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteFtpPublishingCredentialsPolicy.cs index ea0bd320d47ef..d3680fdda8331 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteFtpPublishingCredentialsPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteFtpPublishingCredentialsPolicy.cs @@ -20,39 +20,60 @@ public partial class WebSiteFtpPublishingCredentialsPolicy : ProvisionableResour /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// <code>true</code> to allow access to a publishing method; /// otherwise, <code>false</code>. /// - public BicepValue Allow { get => _allow; set => _allow.Assign(value); } - private readonly BicepValue _allow; + public BicepValue Allow + { + get { Initialize(); return _allow!; } + set { Initialize(); _allow!.Assign(value); } + } + private BicepValue? _allow; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteFtpPublishingCredentialsPolicy. @@ -67,12 +88,20 @@ public partial class WebSiteFtpPublishingCredentialsPolicy : ProvisionableResour public WebSiteFtpPublishingCredentialsPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/basicPublishingCredentialsPolicies", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _allow = BicepValue.DefineProperty(this, "Allow", ["properties", "allow"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// WebSiteFtpPublishingCredentialsPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _allow = DefineProperty("Allow", ["properties", "allow"]); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteHybridConnection.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteHybridConnection.cs index d5de26d5e7d34..22d13acc9163b 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteHybridConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteHybridConnection.cs @@ -20,68 +20,110 @@ public partial class WebSiteHybridConnection : ProvisionableResource /// /// Name of the hybrid connection configuration. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the biztalk uri. /// - public BicepValue BiztalkUri { get => _biztalkUri; set => _biztalkUri.Assign(value); } - private readonly BicepValue _biztalkUri; + public BicepValue BiztalkUri + { + get { Initialize(); return _biztalkUri!; } + set { Initialize(); _biztalkUri!.Assign(value); } + } + private BicepValue? _biztalkUri; /// /// Gets or sets the entity connection string. /// - public BicepValue EntityConnectionString { get => _entityConnectionString; set => _entityConnectionString.Assign(value); } - private readonly BicepValue _entityConnectionString; + public BicepValue EntityConnectionString + { + get { Initialize(); return _entityConnectionString!; } + set { Initialize(); _entityConnectionString!.Assign(value); } + } + private BicepValue? _entityConnectionString; /// /// Gets or sets the entity name. /// - public BicepValue EntityName { get => _entityName; set => _entityName.Assign(value); } - private readonly BicepValue _entityName; + public BicepValue EntityName + { + get { Initialize(); return _entityName!; } + set { Initialize(); _entityName!.Assign(value); } + } + private BicepValue? _entityName; /// /// Gets or sets the hostname. /// - public BicepValue Hostname { get => _hostname; set => _hostname.Assign(value); } - private readonly BicepValue _hostname; + public BicepValue Hostname + { + get { Initialize(); return _hostname!; } + set { Initialize(); _hostname!.Assign(value); } + } + private BicepValue? _hostname; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets or sets the port. /// - public BicepValue Port { get => _port; set => _port.Assign(value); } - private readonly BicepValue _port; + public BicepValue Port + { + get { Initialize(); return _port!; } + set { Initialize(); _port!.Assign(value); } + } + private BicepValue? _port; /// /// Gets or sets the resource connection string. /// - public BicepValue ResourceConnectionString { get => _resourceConnectionString; set => _resourceConnectionString.Assign(value); } - private readonly BicepValue _resourceConnectionString; + public BicepValue ResourceConnectionString + { + get { Initialize(); return _resourceConnectionString!; } + set { Initialize(); _resourceConnectionString!.Assign(value); } + } + private BicepValue? _resourceConnectionString; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteHybridConnection. @@ -96,17 +138,24 @@ public partial class WebSiteHybridConnection : ProvisionableResource public WebSiteHybridConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/hybridconnection", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _biztalkUri = BicepValue.DefineProperty(this, "BiztalkUri", ["properties", "biztalkUri"]); - _entityConnectionString = BicepValue.DefineProperty(this, "EntityConnectionString", ["properties", "entityConnectionString"]); - _entityName = BicepValue.DefineProperty(this, "EntityName", ["properties", "entityName"]); - _hostname = BicepValue.DefineProperty(this, "Hostname", ["properties", "hostname"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _port = BicepValue.DefineProperty(this, "Port", ["properties", "port"]); - _resourceConnectionString = BicepValue.DefineProperty(this, "ResourceConnectionString", ["properties", "resourceConnectionString"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSiteHybridConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _biztalkUri = DefineProperty("BiztalkUri", ["properties", "biztalkUri"]); + _entityConnectionString = DefineProperty("EntityConnectionString", ["properties", "entityConnectionString"]); + _entityName = DefineProperty("EntityName", ["properties", "entityName"]); + _hostname = DefineProperty("Hostname", ["properties", "hostname"]); + _kind = DefineProperty("Kind", ["kind"]); + _port = DefineProperty("Port", ["properties", "port"]); + _resourceConnectionString = DefineProperty("ResourceConnectionString", ["properties", "resourceConnectionString"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSitePremierAddon.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSitePremierAddon.cs index ea77b04254d82..d009fbb5334a7 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSitePremierAddon.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSitePremierAddon.cs @@ -21,74 +21,120 @@ public partial class WebSitePremierAddon : ProvisionableResource /// /// Add-on name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Premier add on Marketplace offer. /// - public BicepValue MarketplaceOffer { get => _marketplaceOffer; set => _marketplaceOffer.Assign(value); } - private readonly BicepValue _marketplaceOffer; + public BicepValue MarketplaceOffer + { + get { Initialize(); return _marketplaceOffer!; } + set { Initialize(); _marketplaceOffer!.Assign(value); } + } + private BicepValue? _marketplaceOffer; /// /// Premier add on Marketplace publisher. /// - public BicepValue MarketplacePublisher { get => _marketplacePublisher; set => _marketplacePublisher.Assign(value); } - private readonly BicepValue _marketplacePublisher; + public BicepValue MarketplacePublisher + { + get { Initialize(); return _marketplacePublisher!; } + set { Initialize(); _marketplacePublisher!.Assign(value); } + } + private BicepValue? _marketplacePublisher; /// /// Premier add on Product. /// - public BicepValue Product { get => _product; set => _product.Assign(value); } - private readonly BicepValue _product; + public BicepValue Product + { + get { Initialize(); return _product!; } + set { Initialize(); _product!.Assign(value); } + } + private BicepValue? _product; /// /// Premier add on SKU. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public BicepValue Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); _sku!.Assign(value); } + } + private BicepValue? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Premier add on Vendor. /// - public BicepValue Vendor { get => _vendor; set => _vendor.Assign(value); } - private readonly BicepValue _vendor; + public BicepValue Vendor + { + get { Initialize(); return _vendor!; } + set { Initialize(); _vendor!.Assign(value); } + } + private BicepValue? _vendor; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSitePremierAddon. @@ -103,18 +149,25 @@ public partial class WebSitePremierAddon : ProvisionableResource public WebSitePremierAddon(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/premieraddons", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _marketplaceOffer = BicepValue.DefineProperty(this, "MarketplaceOffer", ["properties", "marketplaceOffer"]); - _marketplacePublisher = BicepValue.DefineProperty(this, "MarketplacePublisher", ["properties", "marketplacePublisher"]); - _product = BicepValue.DefineProperty(this, "Product", ["properties", "product"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["properties", "sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _vendor = BicepValue.DefineProperty(this, "Vendor", ["properties", "vendor"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSitePremierAddon. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"]); + _marketplaceOffer = DefineProperty("MarketplaceOffer", ["properties", "marketplaceOffer"]); + _marketplacePublisher = DefineProperty("MarketplacePublisher", ["properties", "marketplacePublisher"]); + _product = DefineProperty("Product", ["properties", "product"]); + _sku = DefineProperty("Sku", ["properties", "sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _vendor = DefineProperty("Vendor", ["properties", "vendor"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSitePrivateAccess.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSitePrivateAccess.cs index a3bdd07bd2a74..43078164dc96a 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSitePrivateAccess.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSitePrivateAccess.cs @@ -21,44 +21,69 @@ public partial class WebSitePrivateAccess : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Whether private access is enabled or not. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The Virtual Networks (and subnets) allowed to access the site privately. /// - public BicepList VirtualNetworks { get => _virtualNetworks; set => _virtualNetworks.Assign(value); } - private readonly BicepList _virtualNetworks; + public BicepList VirtualNetworks + { + get { Initialize(); return _virtualNetworks!; } + set { Initialize(); _virtualNetworks!.Assign(value); } + } + private BicepList? _virtualNetworks; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSitePrivateAccess. @@ -73,13 +98,20 @@ public partial class WebSitePrivateAccess : ProvisionableResource public WebSitePrivateAccess(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/privateAccess", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["properties", "enabled"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _virtualNetworks = BicepList.DefineProperty(this, "VirtualNetworks", ["properties", "virtualNetworks"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSitePrivateAccess. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _isEnabled = DefineProperty("IsEnabled", ["properties", "enabled"]); + _kind = DefineProperty("Kind", ["kind"]); + _virtualNetworks = DefineListProperty("VirtualNetworks", ["properties", "virtualNetworks"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlot.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlot.cs index a40d02c281d2a..3e0c0758c0ab0 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlot.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlot.cs @@ -22,27 +22,42 @@ public partial class WebSiteSlot : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Resource ID of the associated App Service plan, formatted as: /// "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". /// - public BicepValue AppServicePlanId { get => _appServicePlanId; set => _appServicePlanId.Assign(value); } - private readonly BicepValue _appServicePlanId; + public BicepValue AppServicePlanId + { + get { Initialize(); return _appServicePlanId!; } + set { Initialize(); _appServicePlanId!.Assign(value); } + } + private BicepValue? _appServicePlanId; /// /// client certificate authentication comma-separated exclusion paths. /// - public BicepValue ClientCertExclusionPaths { get => _clientCertExclusionPaths; set => _clientCertExclusionPaths.Assign(value); } - private readonly BicepValue _clientCertExclusionPaths; + public BicepValue ClientCertExclusionPaths + { + get { Initialize(); return _clientCertExclusionPaths!; } + set { Initialize(); _clientCertExclusionPaths!.Assign(value); } + } + private BicepValue? _clientCertExclusionPaths; /// /// This composes with ClientCertEnabled setting. - @@ -51,77 +66,125 @@ public partial class WebSiteSlot : ProvisionableResource /// is required. - ClientCertEnabled: true and ClientCertMode: /// Optional means ClientCert is optional or accepted. /// - public BicepValue ClientCertMode { get => _clientCertMode; set => _clientCertMode.Assign(value); } - private readonly BicepValue _clientCertMode; + public BicepValue ClientCertMode + { + get { Initialize(); return _clientCertMode!; } + set { Initialize(); _clientCertMode!.Assign(value); } + } + private BicepValue? _clientCertMode; /// /// If specified during app creation, the app is cloned from a source app. /// - public BicepValue CloningInfo { get => _cloningInfo; set => _cloningInfo.Assign(value); } - private readonly BicepValue _cloningInfo; + public CloningInfo CloningInfo + { + get { Initialize(); return _cloningInfo!; } + set { Initialize(); AssignOrReplace(ref _cloningInfo, value); } + } + private CloningInfo? _cloningInfo; /// /// Size of the function container. /// - public BicepValue ContainerSize { get => _containerSize; set => _containerSize.Assign(value); } - private readonly BicepValue _containerSize; + public BicepValue ContainerSize + { + get { Initialize(); return _containerSize!; } + set { Initialize(); _containerSize!.Assign(value); } + } + private BicepValue? _containerSize; /// /// Unique identifier that verifies the custom domains assigned to the app. /// Customer will add this id to a txt record for verification. /// - public BicepValue CustomDomainVerificationId { get => _customDomainVerificationId; set => _customDomainVerificationId.Assign(value); } - private readonly BicepValue _customDomainVerificationId; + public BicepValue CustomDomainVerificationId + { + get { Initialize(); return _customDomainVerificationId!; } + set { Initialize(); _customDomainVerificationId!.Assign(value); } + } + private BicepValue? _customDomainVerificationId; /// /// Maximum allowed daily memory-time quota (applicable on dynamic apps /// only). /// - public BicepValue DailyMemoryTimeQuota { get => _dailyMemoryTimeQuota; set => _dailyMemoryTimeQuota.Assign(value); } - private readonly BicepValue _dailyMemoryTimeQuota; + public BicepValue DailyMemoryTimeQuota + { + get { Initialize(); return _dailyMemoryTimeQuota!; } + set { Initialize(); _dailyMemoryTimeQuota!.Assign(value); } + } + private BicepValue? _dailyMemoryTimeQuota; /// /// Dapr configuration of the app. /// - public BicepValue DaprConfig { get => _daprConfig; set => _daprConfig.Assign(value); } - private readonly BicepValue _daprConfig; + public AppDaprConfig DaprConfig + { + get { Initialize(); return _daprConfig!; } + set { Initialize(); AssignOrReplace(ref _daprConfig, value); } + } + private AppDaprConfig? _daprConfig; /// /// Property to configure various DNS related settings for a site. /// - public BicepValue DnsConfiguration { get => _dnsConfiguration; set => _dnsConfiguration.Assign(value); } - private readonly BicepValue _dnsConfiguration; + public SiteDnsConfig DnsConfiguration + { + get { Initialize(); return _dnsConfiguration!; } + set { Initialize(); AssignOrReplace(ref _dnsConfiguration, value); } + } + private SiteDnsConfig? _dnsConfiguration; /// /// Extended Location. /// - public BicepValue ExtendedLocation { get => _extendedLocation; set => _extendedLocation.Assign(value); } - private readonly BicepValue _extendedLocation; + public ExtendedAzureLocation ExtendedLocation + { + get { Initialize(); return _extendedLocation!; } + set { Initialize(); AssignOrReplace(ref _extendedLocation, value); } + } + private ExtendedAzureLocation? _extendedLocation; /// /// Configuration specific of the Azure Function app. /// - public BicepValue FunctionAppConfig { get => _functionAppConfig; set => _functionAppConfig.Assign(value); } - private readonly BicepValue _functionAppConfig; + public FunctionAppConfig FunctionAppConfig + { + get { Initialize(); return _functionAppConfig!; } + set { Initialize(); AssignOrReplace(ref _functionAppConfig, value); } + } + private FunctionAppConfig? _functionAppConfig; /// /// App Service Environment to use for the app. /// - public BicepValue HostingEnvironmentProfile { get => _hostingEnvironmentProfile; set => _hostingEnvironmentProfile.Assign(value); } - private readonly BicepValue _hostingEnvironmentProfile; + public HostingEnvironmentProfile HostingEnvironmentProfile + { + get { Initialize(); return _hostingEnvironmentProfile!; } + set { Initialize(); AssignOrReplace(ref _hostingEnvironmentProfile, value); } + } + private HostingEnvironmentProfile? _hostingEnvironmentProfile; /// /// Hostname SSL states are used to manage the SSL bindings for app's /// hostnames. /// - public BicepList HostNameSslStates { get => _hostNameSslStates; set => _hostNameSslStates.Assign(value); } - private readonly BicepList _hostNameSslStates; + public BicepList HostNameSslStates + { + get { Initialize(); return _hostNameSslStates!; } + set { Initialize(); _hostNameSslStates!.Assign(value); } + } + private BicepList? _hostNameSslStates; /// /// Managed service identity. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// <code>true</code> to enable client affinity; @@ -129,8 +192,12 @@ public partial class WebSiteSlot : ProvisionableResource /// cookies, which route client requests in the same session to the same /// instance. Default is <code>true</code>. /// - public BicepValue IsClientAffinityEnabled { get => _isClientAffinityEnabled; set => _isClientAffinityEnabled.Assign(value); } - private readonly BicepValue _isClientAffinityEnabled; + public BicepValue IsClientAffinityEnabled + { + get { Initialize(); return _isClientAffinityEnabled!; } + set { Initialize(); _isClientAffinityEnabled!.Assign(value); } + } + private BicepValue? _isClientAffinityEnabled; /// /// <code>true</code> to enable client certificate @@ -138,16 +205,24 @@ public partial class WebSiteSlot : ProvisionableResource /// <code>false</code>. Default is /// <code>false</code>. /// - public BicepValue IsClientCertEnabled { get => _isClientCertEnabled; set => _isClientCertEnabled.Assign(value); } - private readonly BicepValue _isClientCertEnabled; + public BicepValue IsClientCertEnabled + { + get { Initialize(); return _isClientCertEnabled!; } + set { Initialize(); _isClientCertEnabled!.Assign(value); } + } + private BicepValue? _isClientCertEnabled; /// /// <code>true</code> if the app is enabled; otherwise, /// <code>false</code>. Setting this value to false disables /// the app (takes the app offline). /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// <code>true</code> to disable the public hostnames of the @@ -155,124 +230,200 @@ public partial class WebSiteSlot : ProvisionableResource /// <code>true</code>, the app is only accessible via API /// management process. /// - public BicepValue IsHostNameDisabled { get => _isHostNameDisabled; set => _isHostNameDisabled.Assign(value); } - private readonly BicepValue _isHostNameDisabled; + public BicepValue IsHostNameDisabled + { + get { Initialize(); return _isHostNameDisabled!; } + set { Initialize(); _isHostNameDisabled!.Assign(value); } + } + private BicepValue? _isHostNameDisabled; /// /// HttpsOnly: configures a web site to accept only https requests. Issues /// redirect for http requests /// - public BicepValue IsHttpsOnly { get => _isHttpsOnly; set => _isHttpsOnly.Assign(value); } - private readonly BicepValue _isHttpsOnly; + public BicepValue IsHttpsOnly + { + get { Initialize(); return _isHttpsOnly!; } + set { Initialize(); _isHttpsOnly!.Assign(value); } + } + private BicepValue? _isHttpsOnly; /// /// Hyper-V sandbox. /// - public BicepValue IsHyperV { get => _isHyperV; set => _isHyperV.Assign(value); } - private readonly BicepValue _isHyperV; + public BicepValue IsHyperV + { + get { Initialize(); return _isHyperV!; } + set { Initialize(); _isHyperV!.Assign(value); } + } + private BicepValue? _isHyperV; /// /// <code>true</code> if reserved; otherwise, /// <code>false</code>. /// - public BicepValue IsReserved { get => _isReserved; set => _isReserved.Assign(value); } - private readonly BicepValue _isReserved; + public BicepValue IsReserved + { + get { Initialize(); return _isReserved!; } + set { Initialize(); _isReserved!.Assign(value); } + } + private BicepValue? _isReserved; /// /// <code>true</code> to stop SCM (KUDU) site when the app is /// stopped; otherwise, <code>false</code>. The default is /// <code>false</code>. /// - public BicepValue IsScmSiteAlsoStopped { get => _isScmSiteAlsoStopped; set => _isScmSiteAlsoStopped.Assign(value); } - private readonly BicepValue _isScmSiteAlsoStopped; + public BicepValue IsScmSiteAlsoStopped + { + get { Initialize(); return _isScmSiteAlsoStopped!; } + set { Initialize(); _isScmSiteAlsoStopped!.Assign(value); } + } + private BicepValue? _isScmSiteAlsoStopped; /// /// Checks if Customer provided storage account is required. /// - public BicepValue IsStorageAccountRequired { get => _isStorageAccountRequired; set => _isStorageAccountRequired.Assign(value); } - private readonly BicepValue _isStorageAccountRequired; + public BicepValue IsStorageAccountRequired + { + get { Initialize(); return _isStorageAccountRequired!; } + set { Initialize(); _isStorageAccountRequired!.Assign(value); } + } + private BicepValue? _isStorageAccountRequired; /// /// To enable Backup and Restore operations over virtual network. /// - public BicepValue IsVnetBackupRestoreEnabled { get => _isVnetBackupRestoreEnabled; set => _isVnetBackupRestoreEnabled.Assign(value); } - private readonly BicepValue _isVnetBackupRestoreEnabled; + public BicepValue IsVnetBackupRestoreEnabled + { + get { Initialize(); return _isVnetBackupRestoreEnabled!; } + set { Initialize(); _isVnetBackupRestoreEnabled!.Assign(value); } + } + private BicepValue? _isVnetBackupRestoreEnabled; /// /// To enable accessing content over virtual network. /// - public BicepValue IsVnetContentShareEnabled { get => _isVnetContentShareEnabled; set => _isVnetContentShareEnabled.Assign(value); } - private readonly BicepValue _isVnetContentShareEnabled; + public BicepValue IsVnetContentShareEnabled + { + get { Initialize(); return _isVnetContentShareEnabled!; } + set { Initialize(); _isVnetContentShareEnabled!.Assign(value); } + } + private BicepValue? _isVnetContentShareEnabled; /// /// To enable pulling image over Virtual Network. /// - public BicepValue IsVnetImagePullEnabled { get => _isVnetImagePullEnabled; set => _isVnetImagePullEnabled.Assign(value); } - private readonly BicepValue _isVnetImagePullEnabled; + public BicepValue IsVnetImagePullEnabled + { + get { Initialize(); return _isVnetImagePullEnabled!; } + set { Initialize(); _isVnetImagePullEnabled!.Assign(value); } + } + private BicepValue? _isVnetImagePullEnabled; /// /// Virtual Network Route All enabled. This causes all outbound traffic to /// have Virtual Network Security Groups and User Defined Routes applied. /// - public BicepValue IsVnetRouteAllEnabled { get => _isVnetRouteAllEnabled; set => _isVnetRouteAllEnabled.Assign(value); } - private readonly BicepValue _isVnetRouteAllEnabled; + public BicepValue IsVnetRouteAllEnabled + { + get { Initialize(); return _isVnetRouteAllEnabled!; } + set { Initialize(); _isVnetRouteAllEnabled!.Assign(value); } + } + private BicepValue? _isVnetRouteAllEnabled; /// /// Obsolete: Hyper-V sandbox. /// - public BicepValue IsXenon { get => _isXenon; set => _isXenon.Assign(value); } - private readonly BicepValue _isXenon; + public BicepValue IsXenon + { + get { Initialize(); return _isXenon!; } + set { Initialize(); _isXenon!.Assign(value); } + } + private BicepValue? _isXenon; /// /// Identity to use for Key Vault Reference authentication. /// - public BicepValue KeyVaultReferenceIdentity { get => _keyVaultReferenceIdentity; set => _keyVaultReferenceIdentity.Assign(value); } - private readonly BicepValue _keyVaultReferenceIdentity; + public BicepValue KeyVaultReferenceIdentity + { + get { Initialize(); return _keyVaultReferenceIdentity!; } + set { Initialize(); _keyVaultReferenceIdentity!.Assign(value); } + } + private BicepValue? _keyVaultReferenceIdentity; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Azure Resource Manager ID of the customer's selected Managed /// Environment on which to host this app. This must be of the form /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}. /// - public BicepValue ManagedEnvironmentId { get => _managedEnvironmentId; set => _managedEnvironmentId.Assign(value); } - private readonly BicepValue _managedEnvironmentId; + public BicepValue ManagedEnvironmentId + { + get { Initialize(); return _managedEnvironmentId!; } + set { Initialize(); _managedEnvironmentId!.Assign(value); } + } + private BicepValue? _managedEnvironmentId; /// /// Property to allow or block all public traffic. Allowed Values: /// 'Enabled', 'Disabled' or an empty string. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Site redundancy mode. /// - public BicepValue RedundancyMode { get => _redundancyMode; set => _redundancyMode.Assign(value); } - private readonly BicepValue _redundancyMode; + public BicepValue RedundancyMode + { + get { Initialize(); return _redundancyMode!; } + set { Initialize(); _redundancyMode!.Assign(value); } + } + private BicepValue? _redundancyMode; /// /// Function app resource requirements. /// - public BicepValue ResourceConfig { get => _resourceConfig; set => _resourceConfig.Assign(value); } - private readonly BicepValue _resourceConfig; + public FunctionAppResourceConfig ResourceConfig + { + get { Initialize(); return _resourceConfig!; } + set { Initialize(); AssignOrReplace(ref _resourceConfig, value); } + } + private FunctionAppResourceConfig? _resourceConfig; /// /// Configuration of the app. /// - public BicepValue SiteConfig { get => _siteConfig; set => _siteConfig.Assign(value); } - private readonly BicepValue _siteConfig; + public SiteConfigProperties SiteConfig + { + get { Initialize(); return _siteConfig!; } + set { Initialize(); AssignOrReplace(ref _siteConfig, value); } + } + private SiteConfigProperties? _siteConfig; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Azure Resource Manager ID of the Virtual network and subnet to be @@ -280,149 +431,221 @@ public partial class WebSiteSlot : ProvisionableResource /// form /// /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} /// - public BicepValue VirtualNetworkSubnetId { get => _virtualNetworkSubnetId; set => _virtualNetworkSubnetId.Assign(value); } - private readonly BicepValue _virtualNetworkSubnetId; + public BicepValue VirtualNetworkSubnetId + { + get { Initialize(); return _virtualNetworkSubnetId!; } + set { Initialize(); _virtualNetworkSubnetId!.Assign(value); } + } + private BicepValue? _virtualNetworkSubnetId; /// /// Workload profile name for function app to execute on. /// - public BicepValue WorkloadProfileName { get => _workloadProfileName; set => _workloadProfileName.Assign(value); } - private readonly BicepValue _workloadProfileName; + public BicepValue WorkloadProfileName + { + get { Initialize(); return _workloadProfileName!; } + set { Initialize(); _workloadProfileName!.Assign(value); } + } + private BicepValue? _workloadProfileName; /// /// Management information availability state for the app. /// - public BicepValue AvailabilityState { get => _availabilityState; } - private readonly BicepValue _availabilityState; + public BicepValue AvailabilityState + { + get { Initialize(); return _availabilityState!; } + } + private BicepValue? _availabilityState; /// /// Default hostname of the app. Read-only. /// - public BicepValue DefaultHostName { get => _defaultHostName; } - private readonly BicepValue _defaultHostName; + public BicepValue DefaultHostName + { + get { Initialize(); return _defaultHostName!; } + } + private BicepValue? _defaultHostName; /// /// Enabled hostnames for the app.Hostnames need to be assigned (see /// HostNames) AND enabled. Otherwise, the app is not served /// on those hostnames. /// - public BicepList EnabledHostNames { get => _enabledHostNames; } - private readonly BicepList _enabledHostNames; + public BicepList EnabledHostNames + { + get { Initialize(); return _enabledHostNames!; } + } + private BicepList? _enabledHostNames; /// /// Hostnames associated with the app. /// - public BicepList HostNames { get => _hostNames; } - private readonly BicepList _hostNames; + public BicepList HostNames + { + get { Initialize(); return _hostNames!; } + } + private BicepList? _hostNames; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Specifies an operation id if this site has a pending operation. /// - public BicepValue InProgressOperationId { get => _inProgressOperationId; } - private readonly BicepValue _inProgressOperationId; + public BicepValue InProgressOperationId + { + get { Initialize(); return _inProgressOperationId!; } + } + private BicepValue? _inProgressOperationId; /// /// <code>true</code> if the app is a default container; /// otherwise, <code>false</code>. /// - public BicepValue IsDefaultContainer { get => _isDefaultContainer; } - private readonly BicepValue _isDefaultContainer; + public BicepValue IsDefaultContainer + { + get { Initialize(); return _isDefaultContainer!; } + } + private BicepValue? _isDefaultContainer; /// /// Last time the app was modified, in UTC. Read-only. /// - public BicepValue LastModifiedTimeUtc { get => _lastModifiedTimeUtc; } - private readonly BicepValue _lastModifiedTimeUtc; + public BicepValue LastModifiedTimeUtc + { + get { Initialize(); return _lastModifiedTimeUtc!; } + } + private BicepValue? _lastModifiedTimeUtc; /// /// Maximum number of workers. This only applies to Functions /// container. /// - public BicepValue MaxNumberOfWorkers { get => _maxNumberOfWorkers; } - private readonly BicepValue _maxNumberOfWorkers; + public BicepValue MaxNumberOfWorkers + { + get { Initialize(); return _maxNumberOfWorkers!; } + } + private BicepValue? _maxNumberOfWorkers; /// /// List of IP addresses that the app uses for outbound connections (e.g. /// database access). Includes VIPs from tenants that site can be hosted /// with current settings. Read-only. /// - public BicepValue OutboundIPAddresses { get => _outboundIPAddresses; } - private readonly BicepValue _outboundIPAddresses; + public BicepValue OutboundIPAddresses + { + get { Initialize(); return _outboundIPAddresses!; } + } + private BicepValue? _outboundIPAddresses; /// /// List of IP addresses that the app uses for outbound connections (e.g. /// database access). Includes VIPs from all tenants except dataComponent. /// Read-only. /// - public BicepValue PossibleOutboundIPAddresses { get => _possibleOutboundIPAddresses; } - private readonly BicepValue _possibleOutboundIPAddresses; + public BicepValue PossibleOutboundIPAddresses + { + get { Initialize(); return _possibleOutboundIPAddresses!; } + } + private BicepValue? _possibleOutboundIPAddresses; /// /// Name of the repository site. /// - public BicepValue RepositorySiteName { get => _repositorySiteName; } - private readonly BicepValue _repositorySiteName; + public BicepValue RepositorySiteName + { + get { Initialize(); return _repositorySiteName!; } + } + private BicepValue? _repositorySiteName; /// /// Name of the resource group the app belongs to. Read-only. /// - public BicepValue ResourceGroup { get => _resourceGroup; } - private readonly BicepValue _resourceGroup; + public BicepValue ResourceGroup + { + get { Initialize(); return _resourceGroup!; } + } + private BicepValue? _resourceGroup; /// /// Status of the last deployment slot swap operation. /// - public BicepValue SlotSwapStatus { get => _slotSwapStatus; } - private readonly BicepValue _slotSwapStatus; + public SlotSwapStatus SlotSwapStatus + { + get { Initialize(); return _slotSwapStatus!; } + } + private SlotSwapStatus? _slotSwapStatus; /// /// Current state of the app. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// App suspended till in case memory-time quota is exceeded. /// - public BicepValue SuspendOn { get => _suspendOn; } - private readonly BicepValue _suspendOn; + public BicepValue SuspendOn + { + get { Initialize(); return _suspendOn!; } + } + private BicepValue? _suspendOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Specifies which deployment slot this app will swap into. Read-only. /// - public BicepValue TargetSwapSlot { get => _targetSwapSlot; } - private readonly BicepValue _targetSwapSlot; + public BicepValue TargetSwapSlot + { + get { Initialize(); return _targetSwapSlot!; } + } + private BicepValue? _targetSwapSlot; /// /// Azure Traffic Manager hostnames associated with the app. Read-only. /// - public BicepList TrafficManagerHostNames { get => _trafficManagerHostNames; } - private readonly BicepList _trafficManagerHostNames; + public BicepList TrafficManagerHostNames + { + get { Initialize(); return _trafficManagerHostNames!; } + } + private BicepList? _trafficManagerHostNames; /// /// State indicating whether the app has exceeded its quota usage. /// Read-only. /// - public BicepValue UsageState { get => _usageState; } - private readonly BicepValue _usageState; + public BicepValue UsageState + { + get { Initialize(); return _usageState!; } + } + private BicepValue? _usageState; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteSlot. @@ -437,67 +660,74 @@ public partial class WebSiteSlot : ProvisionableResource public WebSiteSlot(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _appServicePlanId = BicepValue.DefineProperty(this, "AppServicePlanId", ["properties", "serverFarmId"]); - _clientCertExclusionPaths = BicepValue.DefineProperty(this, "ClientCertExclusionPaths", ["properties", "clientCertExclusionPaths"]); - _clientCertMode = BicepValue.DefineProperty(this, "ClientCertMode", ["properties", "clientCertMode"]); - _cloningInfo = BicepValue.DefineProperty(this, "CloningInfo", ["properties", "cloningInfo"]); - _containerSize = BicepValue.DefineProperty(this, "ContainerSize", ["properties", "containerSize"]); - _customDomainVerificationId = BicepValue.DefineProperty(this, "CustomDomainVerificationId", ["properties", "customDomainVerificationId"]); - _dailyMemoryTimeQuota = BicepValue.DefineProperty(this, "DailyMemoryTimeQuota", ["properties", "dailyMemoryTimeQuota"]); - _daprConfig = BicepValue.DefineProperty(this, "DaprConfig", ["properties", "daprConfig"]); - _dnsConfiguration = BicepValue.DefineProperty(this, "DnsConfiguration", ["properties", "dnsConfiguration"]); - _extendedLocation = BicepValue.DefineProperty(this, "ExtendedLocation", ["extendedLocation"]); - _functionAppConfig = BicepValue.DefineProperty(this, "FunctionAppConfig", ["properties", "functionAppConfig"]); - _hostingEnvironmentProfile = BicepValue.DefineProperty(this, "HostingEnvironmentProfile", ["properties", "hostingEnvironmentProfile"]); - _hostNameSslStates = BicepList.DefineProperty(this, "HostNameSslStates", ["properties", "hostNameSslStates"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _isClientAffinityEnabled = BicepValue.DefineProperty(this, "IsClientAffinityEnabled", ["properties", "clientAffinityEnabled"]); - _isClientCertEnabled = BicepValue.DefineProperty(this, "IsClientCertEnabled", ["properties", "clientCertEnabled"]); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["properties", "enabled"]); - _isHostNameDisabled = BicepValue.DefineProperty(this, "IsHostNameDisabled", ["properties", "hostNamesDisabled"]); - _isHttpsOnly = BicepValue.DefineProperty(this, "IsHttpsOnly", ["properties", "httpsOnly"]); - _isHyperV = BicepValue.DefineProperty(this, "IsHyperV", ["properties", "hyperV"]); - _isReserved = BicepValue.DefineProperty(this, "IsReserved", ["properties", "reserved"]); - _isScmSiteAlsoStopped = BicepValue.DefineProperty(this, "IsScmSiteAlsoStopped", ["properties", "scmSiteAlsoStopped"]); - _isStorageAccountRequired = BicepValue.DefineProperty(this, "IsStorageAccountRequired", ["properties", "storageAccountRequired"]); - _isVnetBackupRestoreEnabled = BicepValue.DefineProperty(this, "IsVnetBackupRestoreEnabled", ["properties", "vnetBackupRestoreEnabled"]); - _isVnetContentShareEnabled = BicepValue.DefineProperty(this, "IsVnetContentShareEnabled", ["properties", "vnetContentShareEnabled"]); - _isVnetImagePullEnabled = BicepValue.DefineProperty(this, "IsVnetImagePullEnabled", ["properties", "vnetImagePullEnabled"]); - _isVnetRouteAllEnabled = BicepValue.DefineProperty(this, "IsVnetRouteAllEnabled", ["properties", "vnetRouteAllEnabled"]); - _isXenon = BicepValue.DefineProperty(this, "IsXenon", ["properties", "isXenon"]); - _keyVaultReferenceIdentity = BicepValue.DefineProperty(this, "KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _managedEnvironmentId = BicepValue.DefineProperty(this, "ManagedEnvironmentId", ["properties", "managedEnvironmentId"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _redundancyMode = BicepValue.DefineProperty(this, "RedundancyMode", ["properties", "redundancyMode"]); - _resourceConfig = BicepValue.DefineProperty(this, "ResourceConfig", ["properties", "resourceConfig"]); - _siteConfig = BicepValue.DefineProperty(this, "SiteConfig", ["properties", "siteConfig"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _virtualNetworkSubnetId = BicepValue.DefineProperty(this, "VirtualNetworkSubnetId", ["properties", "virtualNetworkSubnetId"]); - _workloadProfileName = BicepValue.DefineProperty(this, "WorkloadProfileName", ["properties", "workloadProfileName"]); - _availabilityState = BicepValue.DefineProperty(this, "AvailabilityState", ["properties", "availabilityState"], isOutput: true); - _defaultHostName = BicepValue.DefineProperty(this, "DefaultHostName", ["properties", "defaultHostName"], isOutput: true); - _enabledHostNames = BicepList.DefineProperty(this, "EnabledHostNames", ["properties", "enabledHostNames"], isOutput: true); - _hostNames = BicepList.DefineProperty(this, "HostNames", ["properties", "hostNames"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _inProgressOperationId = BicepValue.DefineProperty(this, "InProgressOperationId", ["properties", "inProgressOperationId"], isOutput: true); - _isDefaultContainer = BicepValue.DefineProperty(this, "IsDefaultContainer", ["properties", "isDefaultContainer"], isOutput: true); - _lastModifiedTimeUtc = BicepValue.DefineProperty(this, "LastModifiedTimeUtc", ["properties", "lastModifiedTimeUtc"], isOutput: true); - _maxNumberOfWorkers = BicepValue.DefineProperty(this, "MaxNumberOfWorkers", ["properties", "maxNumberOfWorkers"], isOutput: true); - _outboundIPAddresses = BicepValue.DefineProperty(this, "OutboundIPAddresses", ["properties", "outboundIpAddresses"], isOutput: true); - _possibleOutboundIPAddresses = BicepValue.DefineProperty(this, "PossibleOutboundIPAddresses", ["properties", "possibleOutboundIpAddresses"], isOutput: true); - _repositorySiteName = BicepValue.DefineProperty(this, "RepositorySiteName", ["properties", "repositorySiteName"], isOutput: true); - _resourceGroup = BicepValue.DefineProperty(this, "ResourceGroup", ["properties", "resourceGroup"], isOutput: true); - _slotSwapStatus = BicepValue.DefineProperty(this, "SlotSwapStatus", ["properties", "slotSwapStatus"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _suspendOn = BicepValue.DefineProperty(this, "SuspendOn", ["properties", "suspendedTill"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _targetSwapSlot = BicepValue.DefineProperty(this, "TargetSwapSlot", ["properties", "targetSwapSlot"], isOutput: true); - _trafficManagerHostNames = BicepList.DefineProperty(this, "TrafficManagerHostNames", ["properties", "trafficManagerHostNames"], isOutput: true); - _usageState = BicepValue.DefineProperty(this, "UsageState", ["properties", "usageState"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSiteSlot. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _appServicePlanId = DefineProperty("AppServicePlanId", ["properties", "serverFarmId"]); + _clientCertExclusionPaths = DefineProperty("ClientCertExclusionPaths", ["properties", "clientCertExclusionPaths"]); + _clientCertMode = DefineProperty("ClientCertMode", ["properties", "clientCertMode"]); + _cloningInfo = DefineModelProperty("CloningInfo", ["properties", "cloningInfo"]); + _containerSize = DefineProperty("ContainerSize", ["properties", "containerSize"]); + _customDomainVerificationId = DefineProperty("CustomDomainVerificationId", ["properties", "customDomainVerificationId"]); + _dailyMemoryTimeQuota = DefineProperty("DailyMemoryTimeQuota", ["properties", "dailyMemoryTimeQuota"]); + _daprConfig = DefineModelProperty("DaprConfig", ["properties", "daprConfig"]); + _dnsConfiguration = DefineModelProperty("DnsConfiguration", ["properties", "dnsConfiguration"]); + _extendedLocation = DefineModelProperty("ExtendedLocation", ["extendedLocation"]); + _functionAppConfig = DefineModelProperty("FunctionAppConfig", ["properties", "functionAppConfig"]); + _hostingEnvironmentProfile = DefineModelProperty("HostingEnvironmentProfile", ["properties", "hostingEnvironmentProfile"]); + _hostNameSslStates = DefineListProperty("HostNameSslStates", ["properties", "hostNameSslStates"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _isClientAffinityEnabled = DefineProperty("IsClientAffinityEnabled", ["properties", "clientAffinityEnabled"]); + _isClientCertEnabled = DefineProperty("IsClientCertEnabled", ["properties", "clientCertEnabled"]); + _isEnabled = DefineProperty("IsEnabled", ["properties", "enabled"]); + _isHostNameDisabled = DefineProperty("IsHostNameDisabled", ["properties", "hostNamesDisabled"]); + _isHttpsOnly = DefineProperty("IsHttpsOnly", ["properties", "httpsOnly"]); + _isHyperV = DefineProperty("IsHyperV", ["properties", "hyperV"]); + _isReserved = DefineProperty("IsReserved", ["properties", "reserved"]); + _isScmSiteAlsoStopped = DefineProperty("IsScmSiteAlsoStopped", ["properties", "scmSiteAlsoStopped"]); + _isStorageAccountRequired = DefineProperty("IsStorageAccountRequired", ["properties", "storageAccountRequired"]); + _isVnetBackupRestoreEnabled = DefineProperty("IsVnetBackupRestoreEnabled", ["properties", "vnetBackupRestoreEnabled"]); + _isVnetContentShareEnabled = DefineProperty("IsVnetContentShareEnabled", ["properties", "vnetContentShareEnabled"]); + _isVnetImagePullEnabled = DefineProperty("IsVnetImagePullEnabled", ["properties", "vnetImagePullEnabled"]); + _isVnetRouteAllEnabled = DefineProperty("IsVnetRouteAllEnabled", ["properties", "vnetRouteAllEnabled"]); + _isXenon = DefineProperty("IsXenon", ["properties", "isXenon"]); + _keyVaultReferenceIdentity = DefineProperty("KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"]); + _kind = DefineProperty("Kind", ["kind"]); + _managedEnvironmentId = DefineProperty("ManagedEnvironmentId", ["properties", "managedEnvironmentId"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _redundancyMode = DefineProperty("RedundancyMode", ["properties", "redundancyMode"]); + _resourceConfig = DefineModelProperty("ResourceConfig", ["properties", "resourceConfig"]); + _siteConfig = DefineModelProperty("SiteConfig", ["properties", "siteConfig"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _virtualNetworkSubnetId = DefineProperty("VirtualNetworkSubnetId", ["properties", "virtualNetworkSubnetId"]); + _workloadProfileName = DefineProperty("WorkloadProfileName", ["properties", "workloadProfileName"]); + _availabilityState = DefineProperty("AvailabilityState", ["properties", "availabilityState"], isOutput: true); + _defaultHostName = DefineProperty("DefaultHostName", ["properties", "defaultHostName"], isOutput: true); + _enabledHostNames = DefineListProperty("EnabledHostNames", ["properties", "enabledHostNames"], isOutput: true); + _hostNames = DefineListProperty("HostNames", ["properties", "hostNames"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _inProgressOperationId = DefineProperty("InProgressOperationId", ["properties", "inProgressOperationId"], isOutput: true); + _isDefaultContainer = DefineProperty("IsDefaultContainer", ["properties", "isDefaultContainer"], isOutput: true); + _lastModifiedTimeUtc = DefineProperty("LastModifiedTimeUtc", ["properties", "lastModifiedTimeUtc"], isOutput: true); + _maxNumberOfWorkers = DefineProperty("MaxNumberOfWorkers", ["properties", "maxNumberOfWorkers"], isOutput: true); + _outboundIPAddresses = DefineProperty("OutboundIPAddresses", ["properties", "outboundIpAddresses"], isOutput: true); + _possibleOutboundIPAddresses = DefineProperty("PossibleOutboundIPAddresses", ["properties", "possibleOutboundIpAddresses"], isOutput: true); + _repositorySiteName = DefineProperty("RepositorySiteName", ["properties", "repositorySiteName"], isOutput: true); + _resourceGroup = DefineProperty("ResourceGroup", ["properties", "resourceGroup"], isOutput: true); + _slotSwapStatus = DefineModelProperty("SlotSwapStatus", ["properties", "slotSwapStatus"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _suspendOn = DefineProperty("SuspendOn", ["properties", "suspendedTill"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _targetSwapSlot = DefineProperty("TargetSwapSlot", ["properties", "targetSwapSlot"], isOutput: true); + _trafficManagerHostNames = DefineListProperty("TrafficManagerHostNames", ["properties", "trafficManagerHostNames"], isOutput: true); + _usageState = DefineProperty("UsageState", ["properties", "usageState"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotConfig.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotConfig.cs index d3de8eb429cba..a5fbae6336f45 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotConfig.cs @@ -21,159 +21,258 @@ public partial class WebSiteSlotConfig : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// If using user managed identity, the user managed identity ClientId. /// - public BicepValue AcrUserManagedIdentityId { get => _acrUserManagedIdentityId; set => _acrUserManagedIdentityId.Assign(value); } - private readonly BicepValue _acrUserManagedIdentityId; + public BicepValue AcrUserManagedIdentityId + { + get { Initialize(); return _acrUserManagedIdentityId!; } + set { Initialize(); _acrUserManagedIdentityId!.Assign(value); } + } + private BicepValue? _acrUserManagedIdentityId; /// /// IP security restrictions for scm to use main. /// - public BicepValue AllowIPSecurityRestrictionsForScmToUseMain { get => _allowIPSecurityRestrictionsForScmToUseMain; set => _allowIPSecurityRestrictionsForScmToUseMain.Assign(value); } - private readonly BicepValue _allowIPSecurityRestrictionsForScmToUseMain; + public BicepValue AllowIPSecurityRestrictionsForScmToUseMain + { + get { Initialize(); return _allowIPSecurityRestrictionsForScmToUseMain!; } + set { Initialize(); _allowIPSecurityRestrictionsForScmToUseMain!.Assign(value); } + } + private BicepValue? _allowIPSecurityRestrictionsForScmToUseMain; /// /// The URL of the API definition. /// - public BicepValue ApiDefinitionUri { get => _apiDefinitionUri; set => _apiDefinitionUri.Assign(value); } - private readonly BicepValue _apiDefinitionUri; + public BicepValue ApiDefinitionUri + { + get { Initialize(); return _apiDefinitionUri!; } + set { Initialize(); _apiDefinitionUri!.Assign(value); } + } + private BicepValue? _apiDefinitionUri; /// /// APIM-Api Identifier. /// - public BicepValue ApiManagementConfigId { get => _apiManagementConfigId; set => _apiManagementConfigId.Assign(value); } - private readonly BicepValue _apiManagementConfigId; + public BicepValue ApiManagementConfigId + { + get { Initialize(); return _apiManagementConfigId!; } + set { Initialize(); _apiManagementConfigId!.Assign(value); } + } + private BicepValue? _apiManagementConfigId; /// /// App command line to launch. /// - public BicepValue AppCommandLine { get => _appCommandLine; set => _appCommandLine.Assign(value); } - private readonly BicepValue _appCommandLine; + public BicepValue AppCommandLine + { + get { Initialize(); return _appCommandLine!; } + set { Initialize(); _appCommandLine!.Assign(value); } + } + private BicepValue? _appCommandLine; /// /// Application settings. /// - public BicepList AppSettings { get => _appSettings; set => _appSettings.Assign(value); } - private readonly BicepList _appSettings; + public BicepList AppSettings + { + get { Initialize(); return _appSettings!; } + set { Initialize(); _appSettings!.Assign(value); } + } + private BicepList? _appSettings; /// /// Auto Heal rules. /// - public BicepValue AutoHealRules { get => _autoHealRules; set => _autoHealRules.Assign(value); } - private readonly BicepValue _autoHealRules; + public AutoHealRules AutoHealRules + { + get { Initialize(); return _autoHealRules!; } + set { Initialize(); AssignOrReplace(ref _autoHealRules, value); } + } + private AutoHealRules? _autoHealRules; /// /// Auto-swap slot name. /// - public BicepValue AutoSwapSlotName { get => _autoSwapSlotName; set => _autoSwapSlotName.Assign(value); } - private readonly BicepValue _autoSwapSlotName; + public BicepValue AutoSwapSlotName + { + get { Initialize(); return _autoSwapSlotName!; } + set { Initialize(); _autoSwapSlotName!.Assign(value); } + } + private BicepValue? _autoSwapSlotName; /// /// List of Azure Storage Accounts. /// - public BicepDictionary AzureStorageAccounts { get => _azureStorageAccounts; set => _azureStorageAccounts.Assign(value); } - private readonly BicepDictionary _azureStorageAccounts; + public BicepDictionary AzureStorageAccounts + { + get { Initialize(); return _azureStorageAccounts!; } + set { Initialize(); _azureStorageAccounts!.Assign(value); } + } + private BicepDictionary? _azureStorageAccounts; /// /// Connection strings. /// - public BicepList ConnectionStrings { get => _connectionStrings; set => _connectionStrings.Assign(value); } - private readonly BicepList _connectionStrings; + public BicepList ConnectionStrings + { + get { Initialize(); return _connectionStrings!; } + set { Initialize(); _connectionStrings!.Assign(value); } + } + private BicepList? _connectionStrings; /// /// Cross-Origin Resource Sharing (CORS) settings. /// - public BicepValue Cors { get => _cors; set => _cors.Assign(value); } - private readonly BicepValue _cors; + public AppServiceCorsSettings Cors + { + get { Initialize(); return _cors!; } + set { Initialize(); AssignOrReplace(ref _cors, value); } + } + private AppServiceCorsSettings? _cors; /// /// Default documents. /// - public BicepList DefaultDocuments { get => _defaultDocuments; set => _defaultDocuments.Assign(value); } - private readonly BicepList _defaultDocuments; + public BicepList DefaultDocuments + { + get { Initialize(); return _defaultDocuments!; } + set { Initialize(); _defaultDocuments!.Assign(value); } + } + private BicepList? _defaultDocuments; /// /// Document root. /// - public BicepValue DocumentRoot { get => _documentRoot; set => _documentRoot.Assign(value); } - private readonly BicepValue _documentRoot; + public BicepValue DocumentRoot + { + get { Initialize(); return _documentRoot!; } + set { Initialize(); _documentRoot!.Assign(value); } + } + private BicepValue? _documentRoot; /// /// Maximum number of workers that a site can scale out to. /// This setting only applies to apps in plans where /// ElasticScaleEnabled is <code>true</code> /// - public BicepValue ElasticWebAppScaleLimit { get => _elasticWebAppScaleLimit; set => _elasticWebAppScaleLimit.Assign(value); } - private readonly BicepValue _elasticWebAppScaleLimit; + public BicepValue ElasticWebAppScaleLimit + { + get { Initialize(); return _elasticWebAppScaleLimit!; } + set { Initialize(); _elasticWebAppScaleLimit!.Assign(value); } + } + private BicepValue? _elasticWebAppScaleLimit; /// /// List of ramp-up rules. /// - public BicepList ExperimentsRampUpRules { get => _experimentsRampUpRules; set => _experimentsRampUpRules.Assign(value); } - private readonly BicepList _experimentsRampUpRules; + public BicepList ExperimentsRampUpRules + { + get { Initialize(); return _experimentsRampUpRules!; } + set { Initialize(); _experimentsRampUpRules!.Assign(value); } + } + private BicepList? _experimentsRampUpRules; /// /// State of FTP / FTPS service. /// - public BicepValue FtpsState { get => _ftpsState; set => _ftpsState.Assign(value); } - private readonly BicepValue _ftpsState; + public BicepValue FtpsState + { + get { Initialize(); return _ftpsState!; } + set { Initialize(); _ftpsState!.Assign(value); } + } + private BicepValue? _ftpsState; /// /// Maximum number of workers that a site can scale out to. /// This setting only applies to the Consumption and Elastic /// Premium Plans /// - public BicepValue FunctionAppScaleLimit { get => _functionAppScaleLimit; set => _functionAppScaleLimit.Assign(value); } - private readonly BicepValue _functionAppScaleLimit; + public BicepValue FunctionAppScaleLimit + { + get { Initialize(); return _functionAppScaleLimit!; } + set { Initialize(); _functionAppScaleLimit!.Assign(value); } + } + private BicepValue? _functionAppScaleLimit; /// /// Handler mappings. /// - public BicepList HandlerMappings { get => _handlerMappings; set => _handlerMappings.Assign(value); } - private readonly BicepList _handlerMappings; + public BicepList HandlerMappings + { + get { Initialize(); return _handlerMappings!; } + set { Initialize(); _handlerMappings!.Assign(value); } + } + private BicepList? _handlerMappings; /// /// Health check path. /// - public BicepValue HealthCheckPath { get => _healthCheckPath; set => _healthCheckPath.Assign(value); } - private readonly BicepValue _healthCheckPath; + public BicepValue HealthCheckPath + { + get { Initialize(); return _healthCheckPath!; } + set { Initialize(); _healthCheckPath!.Assign(value); } + } + private BicepValue? _healthCheckPath; /// /// IP security restrictions for main. /// - public BicepList IPSecurityRestrictions { get => _iPSecurityRestrictions; set => _iPSecurityRestrictions.Assign(value); } - private readonly BicepList _iPSecurityRestrictions; + public BicepList IPSecurityRestrictions + { + get { Initialize(); return _iPSecurityRestrictions!; } + set { Initialize(); _iPSecurityRestrictions!.Assign(value); } + } + private BicepList? _iPSecurityRestrictions; /// /// Default action for main access restriction if no rules are matched. /// - public BicepValue IPSecurityRestrictionsDefaultAction { get => _iPSecurityRestrictionsDefaultAction; set => _iPSecurityRestrictionsDefaultAction.Assign(value); } - private readonly BicepValue _iPSecurityRestrictionsDefaultAction; + public BicepValue IPSecurityRestrictionsDefaultAction + { + get { Initialize(); return _iPSecurityRestrictionsDefaultAction!; } + set { Initialize(); _iPSecurityRestrictionsDefaultAction!.Assign(value); } + } + private BicepValue? _iPSecurityRestrictionsDefaultAction; /// /// <code>true</code> if Always On is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsAlwaysOn { get => _isAlwaysOn; set => _isAlwaysOn.Assign(value); } - private readonly BicepValue _isAlwaysOn; + public BicepValue IsAlwaysOn + { + get { Initialize(); return _isAlwaysOn!; } + set { Initialize(); _isAlwaysOn!.Assign(value); } + } + private BicepValue? _isAlwaysOn; /// /// <code>true</code> if Auto Heal is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsAutoHealEnabled { get => _isAutoHealEnabled; set => _isAutoHealEnabled.Assign(value); } - private readonly BicepValue _isAutoHealEnabled; + public BicepValue IsAutoHealEnabled + { + get { Initialize(); return _isAutoHealEnabled!; } + set { Initialize(); _isAutoHealEnabled!.Assign(value); } + } + private BicepValue? _isAutoHealEnabled; /// /// <code>true</code> if detailed error logging is enabled; /// otherwise, <code>false</code>. /// - public BicepValue IsDetailedErrorLoggingEnabled { get => _isDetailedErrorLoggingEnabled; set => _isDetailedErrorLoggingEnabled.Assign(value); } - private readonly BicepValue _isDetailedErrorLoggingEnabled; + public BicepValue IsDetailedErrorLoggingEnabled + { + get { Initialize(); return _isDetailedErrorLoggingEnabled!; } + set { Initialize(); _isDetailedErrorLoggingEnabled!.Assign(value); } + } + private BicepValue? _isDetailedErrorLoggingEnabled; /// /// Gets or sets a value indicating whether functions runtime scale @@ -181,286 +280,466 @@ public partial class WebSiteSlotConfig : ProvisionableResource /// will not monitor event sources directly, but will instead call to the /// runtime to get scale status. /// - public BicepValue IsFunctionsRuntimeScaleMonitoringEnabled { get => _isFunctionsRuntimeScaleMonitoringEnabled; set => _isFunctionsRuntimeScaleMonitoringEnabled.Assign(value); } - private readonly BicepValue _isFunctionsRuntimeScaleMonitoringEnabled; + public BicepValue IsFunctionsRuntimeScaleMonitoringEnabled + { + get { Initialize(); return _isFunctionsRuntimeScaleMonitoringEnabled!; } + set { Initialize(); _isFunctionsRuntimeScaleMonitoringEnabled!.Assign(value); } + } + private BicepValue? _isFunctionsRuntimeScaleMonitoringEnabled; /// /// Http20Enabled: configures a web site to allow clients to connect over /// http2.0. /// - public BicepValue IsHttp20Enabled { get => _isHttp20Enabled; set => _isHttp20Enabled.Assign(value); } - private readonly BicepValue _isHttp20Enabled; + public BicepValue IsHttp20Enabled + { + get { Initialize(); return _isHttp20Enabled!; } + set { Initialize(); _isHttp20Enabled!.Assign(value); } + } + private BicepValue? _isHttp20Enabled; /// /// <code>true</code> if HTTP logging is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsHttpLoggingEnabled { get => _isHttpLoggingEnabled; set => _isHttpLoggingEnabled.Assign(value); } - private readonly BicepValue _isHttpLoggingEnabled; + public BicepValue IsHttpLoggingEnabled + { + get { Initialize(); return _isHttpLoggingEnabled!; } + set { Initialize(); _isHttpLoggingEnabled!.Assign(value); } + } + private BicepValue? _isHttpLoggingEnabled; /// /// <code>true</code> to enable local MySQL; otherwise, /// <code>false</code>. /// - public BicepValue IsLocalMySqlEnabled { get => _isLocalMySqlEnabled; set => _isLocalMySqlEnabled.Assign(value); } - private readonly BicepValue _isLocalMySqlEnabled; + public BicepValue IsLocalMySqlEnabled + { + get { Initialize(); return _isLocalMySqlEnabled!; } + set { Initialize(); _isLocalMySqlEnabled!.Assign(value); } + } + private BicepValue? _isLocalMySqlEnabled; /// /// <code>true</code> if remote debugging is enabled; /// otherwise, <code>false</code>. /// - public BicepValue IsRemoteDebuggingEnabled { get => _isRemoteDebuggingEnabled; set => _isRemoteDebuggingEnabled.Assign(value); } - private readonly BicepValue _isRemoteDebuggingEnabled; + public BicepValue IsRemoteDebuggingEnabled + { + get { Initialize(); return _isRemoteDebuggingEnabled!; } + set { Initialize(); _isRemoteDebuggingEnabled!.Assign(value); } + } + private BicepValue? _isRemoteDebuggingEnabled; /// /// <code>true</code> if request tracing is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsRequestTracingEnabled { get => _isRequestTracingEnabled; set => _isRequestTracingEnabled.Assign(value); } - private readonly BicepValue _isRequestTracingEnabled; + public BicepValue IsRequestTracingEnabled + { + get { Initialize(); return _isRequestTracingEnabled!; } + set { Initialize(); _isRequestTracingEnabled!.Assign(value); } + } + private BicepValue? _isRequestTracingEnabled; /// /// Virtual Network Route All enabled. This causes all outbound traffic to /// have Virtual Network Security Groups and User Defined Routes applied. /// - public BicepValue IsVnetRouteAllEnabled { get => _isVnetRouteAllEnabled; set => _isVnetRouteAllEnabled.Assign(value); } - private readonly BicepValue _isVnetRouteAllEnabled; + public BicepValue IsVnetRouteAllEnabled + { + get { Initialize(); return _isVnetRouteAllEnabled!; } + set { Initialize(); _isVnetRouteAllEnabled!.Assign(value); } + } + private BicepValue? _isVnetRouteAllEnabled; /// /// <code>true</code> if WebSocket is enabled; otherwise, /// <code>false</code>. /// - public BicepValue IsWebSocketsEnabled { get => _isWebSocketsEnabled; set => _isWebSocketsEnabled.Assign(value); } - private readonly BicepValue _isWebSocketsEnabled; + public BicepValue IsWebSocketsEnabled + { + get { Initialize(); return _isWebSocketsEnabled!; } + set { Initialize(); _isWebSocketsEnabled!.Assign(value); } + } + private BicepValue? _isWebSocketsEnabled; /// /// Java container. /// - public BicepValue JavaContainer { get => _javaContainer; set => _javaContainer.Assign(value); } - private readonly BicepValue _javaContainer; + public BicepValue JavaContainer + { + get { Initialize(); return _javaContainer!; } + set { Initialize(); _javaContainer!.Assign(value); } + } + private BicepValue? _javaContainer; /// /// Java container version. /// - public BicepValue JavaContainerVersion { get => _javaContainerVersion; set => _javaContainerVersion.Assign(value); } - private readonly BicepValue _javaContainerVersion; + public BicepValue JavaContainerVersion + { + get { Initialize(); return _javaContainerVersion!; } + set { Initialize(); _javaContainerVersion!.Assign(value); } + } + private BicepValue? _javaContainerVersion; /// /// Java version. /// - public BicepValue JavaVersion { get => _javaVersion; set => _javaVersion.Assign(value); } - private readonly BicepValue _javaVersion; + public BicepValue JavaVersion + { + get { Initialize(); return _javaVersion!; } + set { Initialize(); _javaVersion!.Assign(value); } + } + private BicepValue? _javaVersion; /// /// Identity to use for Key Vault Reference authentication. /// - public BicepValue KeyVaultReferenceIdentity { get => _keyVaultReferenceIdentity; set => _keyVaultReferenceIdentity.Assign(value); } - private readonly BicepValue _keyVaultReferenceIdentity; + public BicepValue KeyVaultReferenceIdentity + { + get { Initialize(); return _keyVaultReferenceIdentity!; } + set { Initialize(); _keyVaultReferenceIdentity!.Assign(value); } + } + private BicepValue? _keyVaultReferenceIdentity; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Site limits. /// - public BicepValue Limits { get => _limits; set => _limits.Assign(value); } - private readonly BicepValue _limits; + public SiteLimits Limits + { + get { Initialize(); return _limits!; } + set { Initialize(); AssignOrReplace(ref _limits, value); } + } + private SiteLimits? _limits; /// /// Linux App Framework and version. /// - public BicepValue LinuxFxVersion { get => _linuxFxVersion; set => _linuxFxVersion.Assign(value); } - private readonly BicepValue _linuxFxVersion; + public BicepValue LinuxFxVersion + { + get { Initialize(); return _linuxFxVersion!; } + set { Initialize(); _linuxFxVersion!.Assign(value); } + } + private BicepValue? _linuxFxVersion; /// /// Site load balancing. /// - public BicepValue LoadBalancing { get => _loadBalancing; set => _loadBalancing.Assign(value); } - private readonly BicepValue _loadBalancing; + public BicepValue LoadBalancing + { + get { Initialize(); return _loadBalancing!; } + set { Initialize(); _loadBalancing!.Assign(value); } + } + private BicepValue? _loadBalancing; /// /// HTTP logs directory size limit. /// - public BicepValue LogsDirectorySizeLimit { get => _logsDirectorySizeLimit; set => _logsDirectorySizeLimit.Assign(value); } - private readonly BicepValue _logsDirectorySizeLimit; + public BicepValue LogsDirectorySizeLimit + { + get { Initialize(); return _logsDirectorySizeLimit!; } + set { Initialize(); _logsDirectorySizeLimit!.Assign(value); } + } + private BicepValue? _logsDirectorySizeLimit; /// /// Managed pipeline mode. /// - public BicepValue ManagedPipelineMode { get => _managedPipelineMode; set => _managedPipelineMode.Assign(value); } - private readonly BicepValue _managedPipelineMode; + public BicepValue ManagedPipelineMode + { + get { Initialize(); return _managedPipelineMode!; } + set { Initialize(); _managedPipelineMode!.Assign(value); } + } + private BicepValue? _managedPipelineMode; /// /// Managed Service Identity Id. /// - public BicepValue ManagedServiceIdentityId { get => _managedServiceIdentityId; set => _managedServiceIdentityId.Assign(value); } - private readonly BicepValue _managedServiceIdentityId; + public BicepValue ManagedServiceIdentityId + { + get { Initialize(); return _managedServiceIdentityId!; } + set { Initialize(); _managedServiceIdentityId!.Assign(value); } + } + private BicepValue? _managedServiceIdentityId; /// /// Application metadata. This property cannot be retrieved, since it may /// contain secrets. /// - public BicepList Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepList _metadata; + public BicepList Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepList? _metadata; /// /// Number of minimum instance count for a site This setting /// only applies to the Elastic Plans /// - public BicepValue MinimumElasticInstanceCount { get => _minimumElasticInstanceCount; set => _minimumElasticInstanceCount.Assign(value); } - private readonly BicepValue _minimumElasticInstanceCount; + public BicepValue MinimumElasticInstanceCount + { + get { Initialize(); return _minimumElasticInstanceCount!; } + set { Initialize(); _minimumElasticInstanceCount!.Assign(value); } + } + private BicepValue? _minimumElasticInstanceCount; /// /// The minimum strength TLS cipher suite allowed for an application. /// - public BicepValue MinTlsCipherSuite { get => _minTlsCipherSuite; set => _minTlsCipherSuite.Assign(value); } - private readonly BicepValue _minTlsCipherSuite; + public BicepValue MinTlsCipherSuite + { + get { Initialize(); return _minTlsCipherSuite!; } + set { Initialize(); _minTlsCipherSuite!.Assign(value); } + } + private BicepValue? _minTlsCipherSuite; /// /// MinTlsVersion: configures the minimum version of TLS required for SSL /// requests. /// - public BicepValue MinTlsVersion { get => _minTlsVersion; set => _minTlsVersion.Assign(value); } - private readonly BicepValue _minTlsVersion; + public BicepValue MinTlsVersion + { + get { Initialize(); return _minTlsVersion!; } + set { Initialize(); _minTlsVersion!.Assign(value); } + } + private BicepValue? _minTlsVersion; /// /// .NET Framework version. /// - public BicepValue NetFrameworkVersion { get => _netFrameworkVersion; set => _netFrameworkVersion.Assign(value); } - private readonly BicepValue _netFrameworkVersion; + public BicepValue NetFrameworkVersion + { + get { Initialize(); return _netFrameworkVersion!; } + set { Initialize(); _netFrameworkVersion!.Assign(value); } + } + private BicepValue? _netFrameworkVersion; /// /// Version of Node.js. /// - public BicepValue NodeVersion { get => _nodeVersion; set => _nodeVersion.Assign(value); } - private readonly BicepValue _nodeVersion; + public BicepValue NodeVersion + { + get { Initialize(); return _nodeVersion!; } + set { Initialize(); _nodeVersion!.Assign(value); } + } + private BicepValue? _nodeVersion; /// /// Number of workers. /// - public BicepValue NumberOfWorkers { get => _numberOfWorkers; set => _numberOfWorkers.Assign(value); } - private readonly BicepValue _numberOfWorkers; + public BicepValue NumberOfWorkers + { + get { Initialize(); return _numberOfWorkers!; } + set { Initialize(); _numberOfWorkers!.Assign(value); } + } + private BicepValue? _numberOfWorkers; /// /// Version of PHP. /// - public BicepValue PhpVersion { get => _phpVersion; set => _phpVersion.Assign(value); } - private readonly BicepValue _phpVersion; + public BicepValue PhpVersion + { + get { Initialize(); return _phpVersion!; } + set { Initialize(); _phpVersion!.Assign(value); } + } + private BicepValue? _phpVersion; /// /// Version of PowerShell. /// - public BicepValue PowerShellVersion { get => _powerShellVersion; set => _powerShellVersion.Assign(value); } - private readonly BicepValue _powerShellVersion; + public BicepValue PowerShellVersion + { + get { Initialize(); return _powerShellVersion!; } + set { Initialize(); _powerShellVersion!.Assign(value); } + } + private BicepValue? _powerShellVersion; /// /// Number of preWarmed instances. This setting only applies to /// the Consumption and Elastic Plans /// - public BicepValue PreWarmedInstanceCount { get => _preWarmedInstanceCount; set => _preWarmedInstanceCount.Assign(value); } - private readonly BicepValue _preWarmedInstanceCount; + public BicepValue PreWarmedInstanceCount + { + get { Initialize(); return _preWarmedInstanceCount!; } + set { Initialize(); _preWarmedInstanceCount!.Assign(value); } + } + private BicepValue? _preWarmedInstanceCount; /// /// Property to allow or block all public traffic. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Publishing user name. /// - public BicepValue PublishingUsername { get => _publishingUsername; set => _publishingUsername.Assign(value); } - private readonly BicepValue _publishingUsername; + public BicepValue PublishingUsername + { + get { Initialize(); return _publishingUsername!; } + set { Initialize(); _publishingUsername!.Assign(value); } + } + private BicepValue? _publishingUsername; /// /// Push endpoint settings. /// - public BicepValue Push { get => _push; set => _push.Assign(value); } - private readonly BicepValue _push; + public WebAppPushSettings Push + { + get { Initialize(); return _push!; } + set { Initialize(); AssignOrReplace(ref _push, value); } + } + private WebAppPushSettings? _push; /// /// Version of Python. /// - public BicepValue PythonVersion { get => _pythonVersion; set => _pythonVersion.Assign(value); } - private readonly BicepValue _pythonVersion; + public BicepValue PythonVersion + { + get { Initialize(); return _pythonVersion!; } + set { Initialize(); _pythonVersion!.Assign(value); } + } + private BicepValue? _pythonVersion; /// /// Remote debugging version. /// - public BicepValue RemoteDebuggingVersion { get => _remoteDebuggingVersion; set => _remoteDebuggingVersion.Assign(value); } - private readonly BicepValue _remoteDebuggingVersion; + public BicepValue RemoteDebuggingVersion + { + get { Initialize(); return _remoteDebuggingVersion!; } + set { Initialize(); _remoteDebuggingVersion!.Assign(value); } + } + private BicepValue? _remoteDebuggingVersion; /// /// Request tracing expiration time. /// - public BicepValue RequestTracingExpirationOn { get => _requestTracingExpirationOn; set => _requestTracingExpirationOn.Assign(value); } - private readonly BicepValue _requestTracingExpirationOn; + public BicepValue RequestTracingExpirationOn + { + get { Initialize(); return _requestTracingExpirationOn!; } + set { Initialize(); _requestTracingExpirationOn!.Assign(value); } + } + private BicepValue? _requestTracingExpirationOn; /// /// IP security restrictions for scm. /// - public BicepList ScmIPSecurityRestrictions { get => _scmIPSecurityRestrictions; set => _scmIPSecurityRestrictions.Assign(value); } - private readonly BicepList _scmIPSecurityRestrictions; + public BicepList ScmIPSecurityRestrictions + { + get { Initialize(); return _scmIPSecurityRestrictions!; } + set { Initialize(); _scmIPSecurityRestrictions!.Assign(value); } + } + private BicepList? _scmIPSecurityRestrictions; /// /// Default action for scm access restriction if no rules are matched. /// - public BicepValue ScmIPSecurityRestrictionsDefaultAction { get => _scmIPSecurityRestrictionsDefaultAction; set => _scmIPSecurityRestrictionsDefaultAction.Assign(value); } - private readonly BicepValue _scmIPSecurityRestrictionsDefaultAction; + public BicepValue ScmIPSecurityRestrictionsDefaultAction + { + get { Initialize(); return _scmIPSecurityRestrictionsDefaultAction!; } + set { Initialize(); _scmIPSecurityRestrictionsDefaultAction!.Assign(value); } + } + private BicepValue? _scmIPSecurityRestrictionsDefaultAction; /// /// ScmMinTlsVersion: configures the minimum version of TLS required for /// SSL requests for SCM site. /// - public BicepValue ScmMinTlsVersion { get => _scmMinTlsVersion; set => _scmMinTlsVersion.Assign(value); } - private readonly BicepValue _scmMinTlsVersion; + public BicepValue ScmMinTlsVersion + { + get { Initialize(); return _scmMinTlsVersion!; } + set { Initialize(); _scmMinTlsVersion!.Assign(value); } + } + private BicepValue? _scmMinTlsVersion; /// /// SCM type. /// - public BicepValue ScmType { get => _scmType; set => _scmType.Assign(value); } - private readonly BicepValue _scmType; + public BicepValue ScmType + { + get { Initialize(); return _scmType!; } + set { Initialize(); _scmType!.Assign(value); } + } + private BicepValue? _scmType; /// /// Tracing options. /// - public BicepValue TracingOptions { get => _tracingOptions; set => _tracingOptions.Assign(value); } - private readonly BicepValue _tracingOptions; + public BicepValue TracingOptions + { + get { Initialize(); return _tracingOptions!; } + set { Initialize(); _tracingOptions!.Assign(value); } + } + private BicepValue? _tracingOptions; /// /// <code>true</code> to use 32-bit worker process; otherwise, /// <code>false</code>. /// - public BicepValue Use32BitWorkerProcess { get => _use32BitWorkerProcess; set => _use32BitWorkerProcess.Assign(value); } - private readonly BicepValue _use32BitWorkerProcess; + public BicepValue Use32BitWorkerProcess + { + get { Initialize(); return _use32BitWorkerProcess!; } + set { Initialize(); _use32BitWorkerProcess!.Assign(value); } + } + private BicepValue? _use32BitWorkerProcess; /// /// Flag to use Managed Identity Creds for ACR pull. /// - public BicepValue UseManagedIdentityCreds { get => _useManagedIdentityCreds; set => _useManagedIdentityCreds.Assign(value); } - private readonly BicepValue _useManagedIdentityCreds; + public BicepValue UseManagedIdentityCreds + { + get { Initialize(); return _useManagedIdentityCreds!; } + set { Initialize(); _useManagedIdentityCreds!.Assign(value); } + } + private BicepValue? _useManagedIdentityCreds; /// /// Virtual applications. /// - public BicepList VirtualApplications { get => _virtualApplications; set => _virtualApplications.Assign(value); } - private readonly BicepList _virtualApplications; + public BicepList VirtualApplications + { + get { Initialize(); return _virtualApplications!; } + set { Initialize(); _virtualApplications!.Assign(value); } + } + private BicepList? _virtualApplications; /// /// Virtual Network name. /// - public BicepValue VnetName { get => _vnetName; set => _vnetName.Assign(value); } - private readonly BicepValue _vnetName; + public BicepValue VnetName + { + get { Initialize(); return _vnetName!; } + set { Initialize(); _vnetName!.Assign(value); } + } + private BicepValue? _vnetName; /// /// The number of private ports assigned to this app. These will be /// assigned dynamically on runtime. /// - public BicepValue VnetPrivatePortsCount { get => _vnetPrivatePortsCount; set => _vnetPrivatePortsCount.Assign(value); } - private readonly BicepValue _vnetPrivatePortsCount; + public BicepValue VnetPrivatePortsCount + { + get { Initialize(); return _vnetPrivatePortsCount!; } + set { Initialize(); _vnetPrivatePortsCount!.Assign(value); } + } + private BicepValue? _vnetPrivatePortsCount; /// /// Sets the time zone a site uses for generating timestamps. Compatible @@ -472,44 +751,69 @@ public partial class WebSiteSlotConfig : ProvisionableResource /// HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time /// Zones. /// - public BicepValue WebsiteTimeZone { get => _websiteTimeZone; set => _websiteTimeZone.Assign(value); } - private readonly BicepValue _websiteTimeZone; + public BicepValue WebsiteTimeZone + { + get { Initialize(); return _websiteTimeZone!; } + set { Initialize(); _websiteTimeZone!.Assign(value); } + } + private BicepValue? _websiteTimeZone; /// /// Xenon App Framework and version. /// - public BicepValue WindowsFxVersion { get => _windowsFxVersion; set => _windowsFxVersion.Assign(value); } - private readonly BicepValue _windowsFxVersion; + public BicepValue WindowsFxVersion + { + get { Initialize(); return _windowsFxVersion!; } + set { Initialize(); _windowsFxVersion!.Assign(value); } + } + private BicepValue? _windowsFxVersion; /// /// Explicit Managed Service Identity Id. /// - public BicepValue XManagedServiceIdentityId { get => _xManagedServiceIdentityId; set => _xManagedServiceIdentityId.Assign(value); } - private readonly BicepValue _xManagedServiceIdentityId; + public BicepValue XManagedServiceIdentityId + { + get { Initialize(); return _xManagedServiceIdentityId!; } + set { Initialize(); _xManagedServiceIdentityId!.Assign(value); } + } + private BicepValue? _xManagedServiceIdentityId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Site MachineKey. /// - public BicepValue MachineKey { get => _machineKey; } - private readonly BicepValue _machineKey; + public SiteMachineKey MachineKey + { + get { Initialize(); return _machineKey!; } + } + private SiteMachineKey? _machineKey; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteSlotConfig. @@ -524,83 +828,90 @@ public partial class WebSiteSlotConfig : ProvisionableResource public WebSiteSlotConfig(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/config", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _acrUserManagedIdentityId = BicepValue.DefineProperty(this, "AcrUserManagedIdentityId", ["properties", "acrUserManagedIdentityID"]); - _allowIPSecurityRestrictionsForScmToUseMain = BicepValue.DefineProperty(this, "AllowIPSecurityRestrictionsForScmToUseMain", ["properties", "scmIpSecurityRestrictionsUseMain"]); - _apiDefinitionUri = BicepValue.DefineProperty(this, "ApiDefinitionUri", ["properties", "apiDefinition", "url"]); - _apiManagementConfigId = BicepValue.DefineProperty(this, "ApiManagementConfigId", ["properties", "apiManagementConfig", "id"]); - _appCommandLine = BicepValue.DefineProperty(this, "AppCommandLine", ["properties", "appCommandLine"]); - _appSettings = BicepList.DefineProperty(this, "AppSettings", ["properties", "appSettings"]); - _autoHealRules = BicepValue.DefineProperty(this, "AutoHealRules", ["properties", "autoHealRules"]); - _autoSwapSlotName = BicepValue.DefineProperty(this, "AutoSwapSlotName", ["properties", "autoSwapSlotName"]); - _azureStorageAccounts = BicepDictionary.DefineProperty(this, "AzureStorageAccounts", ["properties", "azureStorageAccounts"]); - _connectionStrings = BicepList.DefineProperty(this, "ConnectionStrings", ["properties", "connectionStrings"]); - _cors = BicepValue.DefineProperty(this, "Cors", ["properties", "cors"]); - _defaultDocuments = BicepList.DefineProperty(this, "DefaultDocuments", ["properties", "defaultDocuments"]); - _documentRoot = BicepValue.DefineProperty(this, "DocumentRoot", ["properties", "documentRoot"]); - _elasticWebAppScaleLimit = BicepValue.DefineProperty(this, "ElasticWebAppScaleLimit", ["properties", "elasticWebAppScaleLimit"]); - _experimentsRampUpRules = BicepList.DefineProperty(this, "ExperimentsRampUpRules", ["properties", "experiments", "rampUpRules"]); - _ftpsState = BicepValue.DefineProperty(this, "FtpsState", ["properties", "ftpsState"]); - _functionAppScaleLimit = BicepValue.DefineProperty(this, "FunctionAppScaleLimit", ["properties", "functionAppScaleLimit"]); - _handlerMappings = BicepList.DefineProperty(this, "HandlerMappings", ["properties", "handlerMappings"]); - _healthCheckPath = BicepValue.DefineProperty(this, "HealthCheckPath", ["properties", "healthCheckPath"]); - _iPSecurityRestrictions = BicepList.DefineProperty(this, "IPSecurityRestrictions", ["properties", "ipSecurityRestrictions"]); - _iPSecurityRestrictionsDefaultAction = BicepValue.DefineProperty(this, "IPSecurityRestrictionsDefaultAction", ["properties", "ipSecurityRestrictionsDefaultAction"]); - _isAlwaysOn = BicepValue.DefineProperty(this, "IsAlwaysOn", ["properties", "alwaysOn"]); - _isAutoHealEnabled = BicepValue.DefineProperty(this, "IsAutoHealEnabled", ["properties", "autoHealEnabled"]); - _isDetailedErrorLoggingEnabled = BicepValue.DefineProperty(this, "IsDetailedErrorLoggingEnabled", ["properties", "detailedErrorLoggingEnabled"]); - _isFunctionsRuntimeScaleMonitoringEnabled = BicepValue.DefineProperty(this, "IsFunctionsRuntimeScaleMonitoringEnabled", ["properties", "functionsRuntimeScaleMonitoringEnabled"]); - _isHttp20Enabled = BicepValue.DefineProperty(this, "IsHttp20Enabled", ["properties", "http20Enabled"]); - _isHttpLoggingEnabled = BicepValue.DefineProperty(this, "IsHttpLoggingEnabled", ["properties", "httpLoggingEnabled"]); - _isLocalMySqlEnabled = BicepValue.DefineProperty(this, "IsLocalMySqlEnabled", ["properties", "localMySqlEnabled"]); - _isRemoteDebuggingEnabled = BicepValue.DefineProperty(this, "IsRemoteDebuggingEnabled", ["properties", "remoteDebuggingEnabled"]); - _isRequestTracingEnabled = BicepValue.DefineProperty(this, "IsRequestTracingEnabled", ["properties", "requestTracingEnabled"]); - _isVnetRouteAllEnabled = BicepValue.DefineProperty(this, "IsVnetRouteAllEnabled", ["properties", "vnetRouteAllEnabled"]); - _isWebSocketsEnabled = BicepValue.DefineProperty(this, "IsWebSocketsEnabled", ["properties", "webSocketsEnabled"]); - _javaContainer = BicepValue.DefineProperty(this, "JavaContainer", ["properties", "javaContainer"]); - _javaContainerVersion = BicepValue.DefineProperty(this, "JavaContainerVersion", ["properties", "javaContainerVersion"]); - _javaVersion = BicepValue.DefineProperty(this, "JavaVersion", ["properties", "javaVersion"]); - _keyVaultReferenceIdentity = BicepValue.DefineProperty(this, "KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _limits = BicepValue.DefineProperty(this, "Limits", ["properties", "limits"]); - _linuxFxVersion = BicepValue.DefineProperty(this, "LinuxFxVersion", ["properties", "linuxFxVersion"]); - _loadBalancing = BicepValue.DefineProperty(this, "LoadBalancing", ["properties", "loadBalancing"]); - _logsDirectorySizeLimit = BicepValue.DefineProperty(this, "LogsDirectorySizeLimit", ["properties", "logsDirectorySizeLimit"]); - _managedPipelineMode = BicepValue.DefineProperty(this, "ManagedPipelineMode", ["properties", "managedPipelineMode"]); - _managedServiceIdentityId = BicepValue.DefineProperty(this, "ManagedServiceIdentityId", ["properties", "managedServiceIdentityId"]); - _metadata = BicepList.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _minimumElasticInstanceCount = BicepValue.DefineProperty(this, "MinimumElasticInstanceCount", ["properties", "minimumElasticInstanceCount"]); - _minTlsCipherSuite = BicepValue.DefineProperty(this, "MinTlsCipherSuite", ["properties", "minTlsCipherSuite"]); - _minTlsVersion = BicepValue.DefineProperty(this, "MinTlsVersion", ["properties", "minTlsVersion"]); - _netFrameworkVersion = BicepValue.DefineProperty(this, "NetFrameworkVersion", ["properties", "netFrameworkVersion"]); - _nodeVersion = BicepValue.DefineProperty(this, "NodeVersion", ["properties", "nodeVersion"]); - _numberOfWorkers = BicepValue.DefineProperty(this, "NumberOfWorkers", ["properties", "numberOfWorkers"]); - _phpVersion = BicepValue.DefineProperty(this, "PhpVersion", ["properties", "phpVersion"]); - _powerShellVersion = BicepValue.DefineProperty(this, "PowerShellVersion", ["properties", "powerShellVersion"]); - _preWarmedInstanceCount = BicepValue.DefineProperty(this, "PreWarmedInstanceCount", ["properties", "preWarmedInstanceCount"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _publishingUsername = BicepValue.DefineProperty(this, "PublishingUsername", ["properties", "publishingUsername"]); - _push = BicepValue.DefineProperty(this, "Push", ["properties", "push"]); - _pythonVersion = BicepValue.DefineProperty(this, "PythonVersion", ["properties", "pythonVersion"]); - _remoteDebuggingVersion = BicepValue.DefineProperty(this, "RemoteDebuggingVersion", ["properties", "remoteDebuggingVersion"]); - _requestTracingExpirationOn = BicepValue.DefineProperty(this, "RequestTracingExpirationOn", ["properties", "requestTracingExpirationTime"]); - _scmIPSecurityRestrictions = BicepList.DefineProperty(this, "ScmIPSecurityRestrictions", ["properties", "scmIpSecurityRestrictions"]); - _scmIPSecurityRestrictionsDefaultAction = BicepValue.DefineProperty(this, "ScmIPSecurityRestrictionsDefaultAction", ["properties", "scmIpSecurityRestrictionsDefaultAction"]); - _scmMinTlsVersion = BicepValue.DefineProperty(this, "ScmMinTlsVersion", ["properties", "scmMinTlsVersion"]); - _scmType = BicepValue.DefineProperty(this, "ScmType", ["properties", "scmType"]); - _tracingOptions = BicepValue.DefineProperty(this, "TracingOptions", ["properties", "tracingOptions"]); - _use32BitWorkerProcess = BicepValue.DefineProperty(this, "Use32BitWorkerProcess", ["properties", "use32BitWorkerProcess"]); - _useManagedIdentityCreds = BicepValue.DefineProperty(this, "UseManagedIdentityCreds", ["properties", "acrUseManagedIdentityCreds"]); - _virtualApplications = BicepList.DefineProperty(this, "VirtualApplications", ["properties", "virtualApplications"]); - _vnetName = BicepValue.DefineProperty(this, "VnetName", ["properties", "vnetName"]); - _vnetPrivatePortsCount = BicepValue.DefineProperty(this, "VnetPrivatePortsCount", ["properties", "vnetPrivatePortsCount"]); - _websiteTimeZone = BicepValue.DefineProperty(this, "WebsiteTimeZone", ["properties", "websiteTimeZone"]); - _windowsFxVersion = BicepValue.DefineProperty(this, "WindowsFxVersion", ["properties", "windowsFxVersion"]); - _xManagedServiceIdentityId = BicepValue.DefineProperty(this, "XManagedServiceIdentityId", ["properties", "xManagedServiceIdentityId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _machineKey = BicepValue.DefineProperty(this, "MachineKey", ["properties", "machineKey"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSiteSlotConfig. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _acrUserManagedIdentityId = DefineProperty("AcrUserManagedIdentityId", ["properties", "acrUserManagedIdentityID"]); + _allowIPSecurityRestrictionsForScmToUseMain = DefineProperty("AllowIPSecurityRestrictionsForScmToUseMain", ["properties", "scmIpSecurityRestrictionsUseMain"]); + _apiDefinitionUri = DefineProperty("ApiDefinitionUri", ["properties", "apiDefinition", "url"]); + _apiManagementConfigId = DefineProperty("ApiManagementConfigId", ["properties", "apiManagementConfig", "id"]); + _appCommandLine = DefineProperty("AppCommandLine", ["properties", "appCommandLine"]); + _appSettings = DefineListProperty("AppSettings", ["properties", "appSettings"]); + _autoHealRules = DefineModelProperty("AutoHealRules", ["properties", "autoHealRules"]); + _autoSwapSlotName = DefineProperty("AutoSwapSlotName", ["properties", "autoSwapSlotName"]); + _azureStorageAccounts = DefineDictionaryProperty("AzureStorageAccounts", ["properties", "azureStorageAccounts"]); + _connectionStrings = DefineListProperty("ConnectionStrings", ["properties", "connectionStrings"]); + _cors = DefineModelProperty("Cors", ["properties", "cors"]); + _defaultDocuments = DefineListProperty("DefaultDocuments", ["properties", "defaultDocuments"]); + _documentRoot = DefineProperty("DocumentRoot", ["properties", "documentRoot"]); + _elasticWebAppScaleLimit = DefineProperty("ElasticWebAppScaleLimit", ["properties", "elasticWebAppScaleLimit"]); + _experimentsRampUpRules = DefineListProperty("ExperimentsRampUpRules", ["properties", "experiments", "rampUpRules"]); + _ftpsState = DefineProperty("FtpsState", ["properties", "ftpsState"]); + _functionAppScaleLimit = DefineProperty("FunctionAppScaleLimit", ["properties", "functionAppScaleLimit"]); + _handlerMappings = DefineListProperty("HandlerMappings", ["properties", "handlerMappings"]); + _healthCheckPath = DefineProperty("HealthCheckPath", ["properties", "healthCheckPath"]); + _iPSecurityRestrictions = DefineListProperty("IPSecurityRestrictions", ["properties", "ipSecurityRestrictions"]); + _iPSecurityRestrictionsDefaultAction = DefineProperty("IPSecurityRestrictionsDefaultAction", ["properties", "ipSecurityRestrictionsDefaultAction"]); + _isAlwaysOn = DefineProperty("IsAlwaysOn", ["properties", "alwaysOn"]); + _isAutoHealEnabled = DefineProperty("IsAutoHealEnabled", ["properties", "autoHealEnabled"]); + _isDetailedErrorLoggingEnabled = DefineProperty("IsDetailedErrorLoggingEnabled", ["properties", "detailedErrorLoggingEnabled"]); + _isFunctionsRuntimeScaleMonitoringEnabled = DefineProperty("IsFunctionsRuntimeScaleMonitoringEnabled", ["properties", "functionsRuntimeScaleMonitoringEnabled"]); + _isHttp20Enabled = DefineProperty("IsHttp20Enabled", ["properties", "http20Enabled"]); + _isHttpLoggingEnabled = DefineProperty("IsHttpLoggingEnabled", ["properties", "httpLoggingEnabled"]); + _isLocalMySqlEnabled = DefineProperty("IsLocalMySqlEnabled", ["properties", "localMySqlEnabled"]); + _isRemoteDebuggingEnabled = DefineProperty("IsRemoteDebuggingEnabled", ["properties", "remoteDebuggingEnabled"]); + _isRequestTracingEnabled = DefineProperty("IsRequestTracingEnabled", ["properties", "requestTracingEnabled"]); + _isVnetRouteAllEnabled = DefineProperty("IsVnetRouteAllEnabled", ["properties", "vnetRouteAllEnabled"]); + _isWebSocketsEnabled = DefineProperty("IsWebSocketsEnabled", ["properties", "webSocketsEnabled"]); + _javaContainer = DefineProperty("JavaContainer", ["properties", "javaContainer"]); + _javaContainerVersion = DefineProperty("JavaContainerVersion", ["properties", "javaContainerVersion"]); + _javaVersion = DefineProperty("JavaVersion", ["properties", "javaVersion"]); + _keyVaultReferenceIdentity = DefineProperty("KeyVaultReferenceIdentity", ["properties", "keyVaultReferenceIdentity"]); + _kind = DefineProperty("Kind", ["kind"]); + _limits = DefineModelProperty("Limits", ["properties", "limits"]); + _linuxFxVersion = DefineProperty("LinuxFxVersion", ["properties", "linuxFxVersion"]); + _loadBalancing = DefineProperty("LoadBalancing", ["properties", "loadBalancing"]); + _logsDirectorySizeLimit = DefineProperty("LogsDirectorySizeLimit", ["properties", "logsDirectorySizeLimit"]); + _managedPipelineMode = DefineProperty("ManagedPipelineMode", ["properties", "managedPipelineMode"]); + _managedServiceIdentityId = DefineProperty("ManagedServiceIdentityId", ["properties", "managedServiceIdentityId"]); + _metadata = DefineListProperty("Metadata", ["properties", "metadata"]); + _minimumElasticInstanceCount = DefineProperty("MinimumElasticInstanceCount", ["properties", "minimumElasticInstanceCount"]); + _minTlsCipherSuite = DefineProperty("MinTlsCipherSuite", ["properties", "minTlsCipherSuite"]); + _minTlsVersion = DefineProperty("MinTlsVersion", ["properties", "minTlsVersion"]); + _netFrameworkVersion = DefineProperty("NetFrameworkVersion", ["properties", "netFrameworkVersion"]); + _nodeVersion = DefineProperty("NodeVersion", ["properties", "nodeVersion"]); + _numberOfWorkers = DefineProperty("NumberOfWorkers", ["properties", "numberOfWorkers"]); + _phpVersion = DefineProperty("PhpVersion", ["properties", "phpVersion"]); + _powerShellVersion = DefineProperty("PowerShellVersion", ["properties", "powerShellVersion"]); + _preWarmedInstanceCount = DefineProperty("PreWarmedInstanceCount", ["properties", "preWarmedInstanceCount"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _publishingUsername = DefineProperty("PublishingUsername", ["properties", "publishingUsername"]); + _push = DefineModelProperty("Push", ["properties", "push"]); + _pythonVersion = DefineProperty("PythonVersion", ["properties", "pythonVersion"]); + _remoteDebuggingVersion = DefineProperty("RemoteDebuggingVersion", ["properties", "remoteDebuggingVersion"]); + _requestTracingExpirationOn = DefineProperty("RequestTracingExpirationOn", ["properties", "requestTracingExpirationTime"]); + _scmIPSecurityRestrictions = DefineListProperty("ScmIPSecurityRestrictions", ["properties", "scmIpSecurityRestrictions"]); + _scmIPSecurityRestrictionsDefaultAction = DefineProperty("ScmIPSecurityRestrictionsDefaultAction", ["properties", "scmIpSecurityRestrictionsDefaultAction"]); + _scmMinTlsVersion = DefineProperty("ScmMinTlsVersion", ["properties", "scmMinTlsVersion"]); + _scmType = DefineProperty("ScmType", ["properties", "scmType"]); + _tracingOptions = DefineProperty("TracingOptions", ["properties", "tracingOptions"]); + _use32BitWorkerProcess = DefineProperty("Use32BitWorkerProcess", ["properties", "use32BitWorkerProcess"]); + _useManagedIdentityCreds = DefineProperty("UseManagedIdentityCreds", ["properties", "acrUseManagedIdentityCreds"]); + _virtualApplications = DefineListProperty("VirtualApplications", ["properties", "virtualApplications"]); + _vnetName = DefineProperty("VnetName", ["properties", "vnetName"]); + _vnetPrivatePortsCount = DefineProperty("VnetPrivatePortsCount", ["properties", "vnetPrivatePortsCount"]); + _websiteTimeZone = DefineProperty("WebsiteTimeZone", ["properties", "websiteTimeZone"]); + _windowsFxVersion = DefineProperty("WindowsFxVersion", ["properties", "windowsFxVersion"]); + _xManagedServiceIdentityId = DefineProperty("XManagedServiceIdentityId", ["properties", "xManagedServiceIdentityId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _machineKey = DefineModelProperty("MachineKey", ["properties", "machineKey"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotExtension.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotExtension.cs index 8daab215f2604..e5656c788fef9 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotExtension.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotExtension.cs @@ -21,153 +21,229 @@ public partial class WebSiteSlotExtension : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// List of authors. /// - public BicepList Authors { get => _authors; } - private readonly BicepList _authors; + public BicepList Authors + { + get { Initialize(); return _authors!; } + } + private BicepList? _authors; /// /// Site Extension comment. /// - public BicepValue Comment { get => _comment; } - private readonly BicepValue _comment; + public BicepValue Comment + { + get { Initialize(); return _comment!; } + } + private BicepValue? _comment; /// /// Detailed description. /// - public BicepValue Description { get => _description; } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + } + private BicepValue? _description; /// /// Count of downloads. /// - public BicepValue DownloadCount { get => _downloadCount; } - private readonly BicepValue _downloadCount; + public BicepValue DownloadCount + { + get { Initialize(); return _downloadCount!; } + } + private BicepValue? _downloadCount; /// /// Site extension ID. /// - public BicepValue ExtensionId { get => _extensionId; } - private readonly BicepValue _extensionId; + public BicepValue ExtensionId + { + get { Initialize(); return _extensionId!; } + } + private BicepValue? _extensionId; /// /// Site extension type. /// - public BicepValue ExtensionType { get => _extensionType; } - private readonly BicepValue _extensionType; + public BicepValue ExtensionType + { + get { Initialize(); return _extensionType!; } + } + private BicepValue? _extensionType; /// /// Extension URL. /// - public BicepValue ExtensionUri { get => _extensionUri; } - private readonly BicepValue _extensionUri; + public BicepValue ExtensionUri + { + get { Initialize(); return _extensionUri!; } + } + private BicepValue? _extensionUri; /// /// Feed URL. /// - public BicepValue FeedUri { get => _feedUri; } - private readonly BicepValue _feedUri; + public BicepValue FeedUri + { + get { Initialize(); return _feedUri!; } + } + private BicepValue? _feedUri; /// /// Icon URL. /// - public BicepValue IconUri { get => _iconUri; } - private readonly BicepValue _iconUri; + public BicepValue IconUri + { + get { Initialize(); return _iconUri!; } + } + private BicepValue? _iconUri; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Installed timestamp. /// - public BicepValue InstalledOn { get => _installedOn; } - private readonly BicepValue _installedOn; + public BicepValue InstalledOn + { + get { Initialize(); return _installedOn!; } + } + private BicepValue? _installedOn; /// /// Installer command line parameters. /// - public BicepValue InstallerCommandLineParams { get => _installerCommandLineParams; } - private readonly BicepValue _installerCommandLineParams; + public BicepValue InstallerCommandLineParams + { + get { Initialize(); return _installerCommandLineParams!; } + } + private BicepValue? _installerCommandLineParams; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// License URL. /// - public BicepValue LicenseUri { get => _licenseUri; } - private readonly BicepValue _licenseUri; + public BicepValue LicenseUri + { + get { Initialize(); return _licenseUri!; } + } + private BicepValue? _licenseUri; /// /// <code>true</code> if the local version is the latest /// version; <code>false</code> otherwise. /// - public BicepValue LocalIsLatestVersion { get => _localIsLatestVersion; } - private readonly BicepValue _localIsLatestVersion; + public BicepValue LocalIsLatestVersion + { + get { Initialize(); return _localIsLatestVersion!; } + } + private BicepValue? _localIsLatestVersion; /// /// Local path. /// - public BicepValue LocalPath { get => _localPath; } - private readonly BicepValue _localPath; + public BicepValue LocalPath + { + get { Initialize(); return _localPath!; } + } + private BicepValue? _localPath; /// /// Project URL. /// - public BicepValue ProjectUri { get => _projectUri; } - private readonly BicepValue _projectUri; + public BicepValue ProjectUri + { + get { Initialize(); return _projectUri!; } + } + private BicepValue? _projectUri; /// /// Provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Published timestamp. /// - public BicepValue PublishedOn { get => _publishedOn; } - private readonly BicepValue _publishedOn; + public BicepValue PublishedOn + { + get { Initialize(); return _publishedOn!; } + } + private BicepValue? _publishedOn; /// /// Summary description. /// - public BicepValue Summary { get => _summary; } - private readonly BicepValue _summary; + public BicepValue Summary + { + get { Initialize(); return _summary!; } + } + private BicepValue? _summary; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets the title. /// - public BicepValue Title { get => _title; } - private readonly BicepValue _title; + public BicepValue Title + { + get { Initialize(); return _title!; } + } + private BicepValue? _title; /// /// Version information. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteSlotExtension. @@ -182,31 +258,38 @@ public partial class WebSiteSlotExtension : ProvisionableResource public WebSiteSlotExtension(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/siteextensions", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _authors = BicepList.DefineProperty(this, "Authors", ["properties", "authors"], isOutput: true); - _comment = BicepValue.DefineProperty(this, "Comment", ["properties", "comment"], isOutput: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"], isOutput: true); - _downloadCount = BicepValue.DefineProperty(this, "DownloadCount", ["properties", "download_count"], isOutput: true); - _extensionId = BicepValue.DefineProperty(this, "ExtensionId", ["properties", "extension_id"], isOutput: true); - _extensionType = BicepValue.DefineProperty(this, "ExtensionType", ["properties", "extension_type"], isOutput: true); - _extensionUri = BicepValue.DefineProperty(this, "ExtensionUri", ["properties", "extension_url"], isOutput: true); - _feedUri = BicepValue.DefineProperty(this, "FeedUri", ["properties", "feed_url"], isOutput: true); - _iconUri = BicepValue.DefineProperty(this, "IconUri", ["properties", "icon_url"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _installedOn = BicepValue.DefineProperty(this, "InstalledOn", ["properties", "installed_date_time"], isOutput: true); - _installerCommandLineParams = BicepValue.DefineProperty(this, "InstallerCommandLineParams", ["properties", "installer_command_line_params"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _licenseUri = BicepValue.DefineProperty(this, "LicenseUri", ["properties", "license_url"], isOutput: true); - _localIsLatestVersion = BicepValue.DefineProperty(this, "LocalIsLatestVersion", ["properties", "local_is_latest_version"], isOutput: true); - _localPath = BicepValue.DefineProperty(this, "LocalPath", ["properties", "local_path"], isOutput: true); - _projectUri = BicepValue.DefineProperty(this, "ProjectUri", ["properties", "project_url"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _publishedOn = BicepValue.DefineProperty(this, "PublishedOn", ["properties", "published_date_time"], isOutput: true); - _summary = BicepValue.DefineProperty(this, "Summary", ["properties", "summary"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _title = BicepValue.DefineProperty(this, "Title", ["properties", "title"], isOutput: true); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSiteSlotExtension. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _authors = DefineListProperty("Authors", ["properties", "authors"], isOutput: true); + _comment = DefineProperty("Comment", ["properties", "comment"], isOutput: true); + _description = DefineProperty("Description", ["properties", "description"], isOutput: true); + _downloadCount = DefineProperty("DownloadCount", ["properties", "download_count"], isOutput: true); + _extensionId = DefineProperty("ExtensionId", ["properties", "extension_id"], isOutput: true); + _extensionType = DefineProperty("ExtensionType", ["properties", "extension_type"], isOutput: true); + _extensionUri = DefineProperty("ExtensionUri", ["properties", "extension_url"], isOutput: true); + _feedUri = DefineProperty("FeedUri", ["properties", "feed_url"], isOutput: true); + _iconUri = DefineProperty("IconUri", ["properties", "icon_url"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _installedOn = DefineProperty("InstalledOn", ["properties", "installed_date_time"], isOutput: true); + _installerCommandLineParams = DefineProperty("InstallerCommandLineParams", ["properties", "installer_command_line_params"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _licenseUri = DefineProperty("LicenseUri", ["properties", "license_url"], isOutput: true); + _localIsLatestVersion = DefineProperty("LocalIsLatestVersion", ["properties", "local_is_latest_version"], isOutput: true); + _localPath = DefineProperty("LocalPath", ["properties", "local_path"], isOutput: true); + _projectUri = DefineProperty("ProjectUri", ["properties", "project_url"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _publishedOn = DefineProperty("PublishedOn", ["properties", "published_date_time"], isOutput: true); + _summary = DefineProperty("Summary", ["properties", "summary"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _title = DefineProperty("Title", ["properties", "title"], isOutput: true); + _version = DefineProperty("Version", ["properties", "version"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotFtpPublishingCredentialsPolicy.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotFtpPublishingCredentialsPolicy.cs index a62031048fce3..198d62863f00a 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotFtpPublishingCredentialsPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotFtpPublishingCredentialsPolicy.cs @@ -20,39 +20,60 @@ public partial class WebSiteSlotFtpPublishingCredentialsPolicy : ProvisionableRe /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// <code>true</code> to allow access to a publishing method; /// otherwise, <code>false</code>. /// - public BicepValue Allow { get => _allow; set => _allow.Assign(value); } - private readonly BicepValue _allow; + public BicepValue Allow + { + get { Initialize(); return _allow!; } + set { Initialize(); _allow!.Assign(value); } + } + private BicepValue? _allow; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteSlotFtpPublishingCredentialsPolicy. @@ -68,12 +89,20 @@ public partial class WebSiteSlotFtpPublishingCredentialsPolicy : ProvisionableRe public WebSiteSlotFtpPublishingCredentialsPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/basicPublishingCredentialsPolicies", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _allow = BicepValue.DefineProperty(this, "Allow", ["properties", "allow"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// WebSiteSlotFtpPublishingCredentialsPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _allow = DefineProperty("Allow", ["properties", "allow"]); + _kind = DefineProperty("Kind", ["kind"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotHybridConnection.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotHybridConnection.cs index a6b6ebb33f73c..593c9ebbdc134 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotHybridConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotHybridConnection.cs @@ -20,68 +20,110 @@ public partial class WebSiteSlotHybridConnection : ProvisionableResource /// /// Name of the hybrid connection configuration. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the biztalk uri. /// - public BicepValue BiztalkUri { get => _biztalkUri; set => _biztalkUri.Assign(value); } - private readonly BicepValue _biztalkUri; + public BicepValue BiztalkUri + { + get { Initialize(); return _biztalkUri!; } + set { Initialize(); _biztalkUri!.Assign(value); } + } + private BicepValue? _biztalkUri; /// /// Gets or sets the entity connection string. /// - public BicepValue EntityConnectionString { get => _entityConnectionString; set => _entityConnectionString.Assign(value); } - private readonly BicepValue _entityConnectionString; + public BicepValue EntityConnectionString + { + get { Initialize(); return _entityConnectionString!; } + set { Initialize(); _entityConnectionString!.Assign(value); } + } + private BicepValue? _entityConnectionString; /// /// Gets or sets the entity name. /// - public BicepValue EntityName { get => _entityName; set => _entityName.Assign(value); } - private readonly BicepValue _entityName; + public BicepValue EntityName + { + get { Initialize(); return _entityName!; } + set { Initialize(); _entityName!.Assign(value); } + } + private BicepValue? _entityName; /// /// Gets or sets the hostname. /// - public BicepValue Hostname { get => _hostname; set => _hostname.Assign(value); } - private readonly BicepValue _hostname; + public BicepValue Hostname + { + get { Initialize(); return _hostname!; } + set { Initialize(); _hostname!.Assign(value); } + } + private BicepValue? _hostname; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets or sets the port. /// - public BicepValue Port { get => _port; set => _port.Assign(value); } - private readonly BicepValue _port; + public BicepValue Port + { + get { Initialize(); return _port!; } + set { Initialize(); _port!.Assign(value); } + } + private BicepValue? _port; /// /// Gets or sets the resource connection string. /// - public BicepValue ResourceConnectionString { get => _resourceConnectionString; set => _resourceConnectionString.Assign(value); } - private readonly BicepValue _resourceConnectionString; + public BicepValue ResourceConnectionString + { + get { Initialize(); return _resourceConnectionString!; } + set { Initialize(); _resourceConnectionString!.Assign(value); } + } + private BicepValue? _resourceConnectionString; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteSlotHybridConnection. @@ -96,17 +138,24 @@ public partial class WebSiteSlotHybridConnection : ProvisionableResource public WebSiteSlotHybridConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/hybridconnection", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _biztalkUri = BicepValue.DefineProperty(this, "BiztalkUri", ["properties", "biztalkUri"]); - _entityConnectionString = BicepValue.DefineProperty(this, "EntityConnectionString", ["properties", "entityConnectionString"]); - _entityName = BicepValue.DefineProperty(this, "EntityName", ["properties", "entityName"]); - _hostname = BicepValue.DefineProperty(this, "Hostname", ["properties", "hostname"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _port = BicepValue.DefineProperty(this, "Port", ["properties", "port"]); - _resourceConnectionString = BicepValue.DefineProperty(this, "ResourceConnectionString", ["properties", "resourceConnectionString"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSiteSlotHybridConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _biztalkUri = DefineProperty("BiztalkUri", ["properties", "biztalkUri"]); + _entityConnectionString = DefineProperty("EntityConnectionString", ["properties", "entityConnectionString"]); + _entityName = DefineProperty("EntityName", ["properties", "entityName"]); + _hostname = DefineProperty("Hostname", ["properties", "hostname"]); + _kind = DefineProperty("Kind", ["kind"]); + _port = DefineProperty("Port", ["properties", "port"]); + _resourceConnectionString = DefineProperty("ResourceConnectionString", ["properties", "resourceConnectionString"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotPremierAddOn.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotPremierAddOn.cs index 4c809ec38f77d..7bfd08f204149 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotPremierAddOn.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotPremierAddOn.cs @@ -21,74 +21,120 @@ public partial class WebSiteSlotPremierAddOn : ProvisionableResource /// /// Add-on name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Premier add on Marketplace offer. /// - public BicepValue MarketplaceOffer { get => _marketplaceOffer; set => _marketplaceOffer.Assign(value); } - private readonly BicepValue _marketplaceOffer; + public BicepValue MarketplaceOffer + { + get { Initialize(); return _marketplaceOffer!; } + set { Initialize(); _marketplaceOffer!.Assign(value); } + } + private BicepValue? _marketplaceOffer; /// /// Premier add on Marketplace publisher. /// - public BicepValue MarketplacePublisher { get => _marketplacePublisher; set => _marketplacePublisher.Assign(value); } - private readonly BicepValue _marketplacePublisher; + public BicepValue MarketplacePublisher + { + get { Initialize(); return _marketplacePublisher!; } + set { Initialize(); _marketplacePublisher!.Assign(value); } + } + private BicepValue? _marketplacePublisher; /// /// Premier add on Product. /// - public BicepValue Product { get => _product; set => _product.Assign(value); } - private readonly BicepValue _product; + public BicepValue Product + { + get { Initialize(); return _product!; } + set { Initialize(); _product!.Assign(value); } + } + private BicepValue? _product; /// /// Premier add on SKU. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public BicepValue Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); _sku!.Assign(value); } + } + private BicepValue? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Premier add on Vendor. /// - public BicepValue Vendor { get => _vendor; set => _vendor.Assign(value); } - private readonly BicepValue _vendor; + public BicepValue Vendor + { + get { Initialize(); return _vendor!; } + set { Initialize(); _vendor!.Assign(value); } + } + private BicepValue? _vendor; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteSlotPremierAddOn. @@ -103,18 +149,25 @@ public partial class WebSiteSlotPremierAddOn : ProvisionableResource public WebSiteSlotPremierAddOn(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/premieraddons", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _marketplaceOffer = BicepValue.DefineProperty(this, "MarketplaceOffer", ["properties", "marketplaceOffer"]); - _marketplacePublisher = BicepValue.DefineProperty(this, "MarketplacePublisher", ["properties", "marketplacePublisher"]); - _product = BicepValue.DefineProperty(this, "Product", ["properties", "product"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["properties", "sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _vendor = BicepValue.DefineProperty(this, "Vendor", ["properties", "vendor"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSiteSlotPremierAddOn. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"]); + _marketplaceOffer = DefineProperty("MarketplaceOffer", ["properties", "marketplaceOffer"]); + _marketplacePublisher = DefineProperty("MarketplacePublisher", ["properties", "marketplacePublisher"]); + _product = DefineProperty("Product", ["properties", "product"]); + _sku = DefineProperty("Sku", ["properties", "sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _vendor = DefineProperty("Vendor", ["properties", "vendor"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotPrivateAccess.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotPrivateAccess.cs index f764fd0fd57e5..b1485b00499d3 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotPrivateAccess.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotPrivateAccess.cs @@ -21,44 +21,69 @@ public partial class WebSiteSlotPrivateAccess : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Whether private access is enabled or not. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The Virtual Networks (and subnets) allowed to access the site privately. /// - public BicepList VirtualNetworks { get => _virtualNetworks; set => _virtualNetworks.Assign(value); } - private readonly BicepList _virtualNetworks; + public BicepList VirtualNetworks + { + get { Initialize(); return _virtualNetworks!; } + set { Initialize(); _virtualNetworks!.Assign(value); } + } + private BicepList? _virtualNetworks; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteSlotPrivateAccess. @@ -73,13 +98,20 @@ public partial class WebSiteSlotPrivateAccess : ProvisionableResource public WebSiteSlotPrivateAccess(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/privateAccess", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["properties", "enabled"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _virtualNetworks = BicepList.DefineProperty(this, "VirtualNetworks", ["properties", "virtualNetworks"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSiteSlotPrivateAccess. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _isEnabled = DefineProperty("IsEnabled", ["properties", "enabled"]); + _kind = DefineProperty("Kind", ["kind"]); + _virtualNetworks = DefineListProperty("VirtualNetworks", ["properties", "virtualNetworks"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotPublicCertificate.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotPublicCertificate.cs index 10a4b35a276b2..e47f0b0a48a7a 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotPublicCertificate.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotPublicCertificate.cs @@ -20,50 +20,79 @@ public partial class WebSiteSlotPublicCertificate : ProvisionableResource /// /// Public certificate name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Public Certificate byte array. /// - public BicepValue Blob { get => _blob; set => _blob.Assign(value); } - private readonly BicepValue _blob; + public BicepValue Blob + { + get { Initialize(); return _blob!; } + set { Initialize(); _blob!.Assign(value); } + } + private BicepValue? _blob; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Public Certificate Location. /// - public BicepValue PublicCertificateLocation { get => _publicCertificateLocation; set => _publicCertificateLocation.Assign(value); } - private readonly BicepValue _publicCertificateLocation; + public BicepValue PublicCertificateLocation + { + get { Initialize(); return _publicCertificateLocation!; } + set { Initialize(); _publicCertificateLocation!.Assign(value); } + } + private BicepValue? _publicCertificateLocation; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Certificate Thumbprint. /// - public BicepValue ThumbprintString { get => _thumbprintString; } - private readonly BicepValue _thumbprintString; + public BicepValue ThumbprintString + { + get { Initialize(); return _thumbprintString!; } + } + private BicepValue? _thumbprintString; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteSlotPublicCertificate. @@ -78,14 +107,21 @@ public partial class WebSiteSlotPublicCertificate : ProvisionableResource public WebSiteSlotPublicCertificate(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/publicCertificates", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _blob = BicepValue.DefineProperty(this, "Blob", ["properties", "blob"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _publicCertificateLocation = BicepValue.DefineProperty(this, "PublicCertificateLocation", ["properties", "publicCertificateLocation"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _thumbprintString = BicepValue.DefineProperty(this, "ThumbprintString", ["properties", "thumbprint"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSiteSlotPublicCertificate. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _blob = DefineProperty("Blob", ["properties", "blob"]); + _kind = DefineProperty("Kind", ["kind"]); + _publicCertificateLocation = DefineProperty("PublicCertificateLocation", ["properties", "publicCertificateLocation"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _thumbprintString = DefineProperty("ThumbprintString", ["properties", "thumbprint"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotSourceControl.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotSourceControl.cs index 0c788ca46603d..a4f2499c99e57 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotSourceControl.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSlotSourceControl.cs @@ -20,78 +20,123 @@ public partial class WebSiteSlotSourceControl : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Name of branch to use for deployment. /// - public BicepValue Branch { get => _branch; set => _branch.Assign(value); } - private readonly BicepValue _branch; + public BicepValue Branch + { + get { Initialize(); return _branch!; } + set { Initialize(); _branch!.Assign(value); } + } + private BicepValue? _branch; /// /// If GitHub Action is selected, than the associated configuration. /// - public BicepValue GitHubActionConfiguration { get => _gitHubActionConfiguration; set => _gitHubActionConfiguration.Assign(value); } - private readonly BicepValue _gitHubActionConfiguration; + public GitHubActionConfiguration GitHubActionConfiguration + { + get { Initialize(); return _gitHubActionConfiguration!; } + set { Initialize(); AssignOrReplace(ref _gitHubActionConfiguration, value); } + } + private GitHubActionConfiguration? _gitHubActionConfiguration; /// /// <code>true</code> to enable deployment rollback; otherwise, /// <code>false</code>. /// - public BicepValue IsDeploymentRollbackEnabled { get => _isDeploymentRollbackEnabled; set => _isDeploymentRollbackEnabled.Assign(value); } - private readonly BicepValue _isDeploymentRollbackEnabled; + public BicepValue IsDeploymentRollbackEnabled + { + get { Initialize(); return _isDeploymentRollbackEnabled!; } + set { Initialize(); _isDeploymentRollbackEnabled!.Assign(value); } + } + private BicepValue? _isDeploymentRollbackEnabled; /// /// <code>true</code> if this is deployed via GitHub action. /// - public BicepValue IsGitHubAction { get => _isGitHubAction; set => _isGitHubAction.Assign(value); } - private readonly BicepValue _isGitHubAction; + public BicepValue IsGitHubAction + { + get { Initialize(); return _isGitHubAction!; } + set { Initialize(); _isGitHubAction!.Assign(value); } + } + private BicepValue? _isGitHubAction; /// /// <code>true</code> to limit to manual integration; /// <code>false</code> to enable continuous integration (which /// configures webhooks into online repos like GitHub). /// - public BicepValue IsManualIntegration { get => _isManualIntegration; set => _isManualIntegration.Assign(value); } - private readonly BicepValue _isManualIntegration; + public BicepValue IsManualIntegration + { + get { Initialize(); return _isManualIntegration!; } + set { Initialize(); _isManualIntegration!.Assign(value); } + } + private BicepValue? _isManualIntegration; /// /// <code>true</code> for a Mercurial repository; /// <code>false</code> for a Git repository. /// - public BicepValue IsMercurial { get => _isMercurial; set => _isMercurial.Assign(value); } - private readonly BicepValue _isMercurial; + public BicepValue IsMercurial + { + get { Initialize(); return _isMercurial!; } + set { Initialize(); _isMercurial!.Assign(value); } + } + private BicepValue? _isMercurial; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Repository or source control URL. /// - public BicepValue RepoUri { get => _repoUri; set => _repoUri.Assign(value); } - private readonly BicepValue _repoUri; + public BicepValue RepoUri + { + get { Initialize(); return _repoUri!; } + set { Initialize(); _repoUri!.Assign(value); } + } + private BicepValue? _repoUri; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSiteSlot. /// - public WebSiteSlot? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSiteSlot? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteSlotSourceControl. @@ -106,18 +151,25 @@ public partial class WebSiteSlotSourceControl : ProvisionableResource public WebSiteSlotSourceControl(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/slots/sourcecontrols", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _branch = BicepValue.DefineProperty(this, "Branch", ["properties", "branch"]); - _gitHubActionConfiguration = BicepValue.DefineProperty(this, "GitHubActionConfiguration", ["properties", "gitHubActionConfiguration"]); - _isDeploymentRollbackEnabled = BicepValue.DefineProperty(this, "IsDeploymentRollbackEnabled", ["properties", "deploymentRollbackEnabled"]); - _isGitHubAction = BicepValue.DefineProperty(this, "IsGitHubAction", ["properties", "isGitHubAction"]); - _isManualIntegration = BicepValue.DefineProperty(this, "IsManualIntegration", ["properties", "isManualIntegration"]); - _isMercurial = BicepValue.DefineProperty(this, "IsMercurial", ["properties", "isMercurial"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _repoUri = BicepValue.DefineProperty(this, "RepoUri", ["properties", "repoUrl"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSiteSlotSourceControl. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _branch = DefineProperty("Branch", ["properties", "branch"]); + _gitHubActionConfiguration = DefineModelProperty("GitHubActionConfiguration", ["properties", "gitHubActionConfiguration"]); + _isDeploymentRollbackEnabled = DefineProperty("IsDeploymentRollbackEnabled", ["properties", "deploymentRollbackEnabled"]); + _isGitHubAction = DefineProperty("IsGitHubAction", ["properties", "isGitHubAction"]); + _isManualIntegration = DefineProperty("IsManualIntegration", ["properties", "isManualIntegration"]); + _isMercurial = DefineProperty("IsMercurial", ["properties", "isMercurial"]); + _kind = DefineProperty("Kind", ["kind"]); + _repoUri = DefineProperty("RepoUri", ["properties", "repoUrl"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSourceControl.cs b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSourceControl.cs index 60bda1c511901..878ebe890daef 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSourceControl.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/src/Generated/WebSiteSourceControl.cs @@ -20,78 +20,123 @@ public partial class WebSiteSourceControl : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Name of branch to use for deployment. /// - public BicepValue Branch { get => _branch; set => _branch.Assign(value); } - private readonly BicepValue _branch; + public BicepValue Branch + { + get { Initialize(); return _branch!; } + set { Initialize(); _branch!.Assign(value); } + } + private BicepValue? _branch; /// /// If GitHub Action is selected, than the associated configuration. /// - public BicepValue GitHubActionConfiguration { get => _gitHubActionConfiguration; set => _gitHubActionConfiguration.Assign(value); } - private readonly BicepValue _gitHubActionConfiguration; + public GitHubActionConfiguration GitHubActionConfiguration + { + get { Initialize(); return _gitHubActionConfiguration!; } + set { Initialize(); AssignOrReplace(ref _gitHubActionConfiguration, value); } + } + private GitHubActionConfiguration? _gitHubActionConfiguration; /// /// <code>true</code> to enable deployment rollback; otherwise, /// <code>false</code>. /// - public BicepValue IsDeploymentRollbackEnabled { get => _isDeploymentRollbackEnabled; set => _isDeploymentRollbackEnabled.Assign(value); } - private readonly BicepValue _isDeploymentRollbackEnabled; + public BicepValue IsDeploymentRollbackEnabled + { + get { Initialize(); return _isDeploymentRollbackEnabled!; } + set { Initialize(); _isDeploymentRollbackEnabled!.Assign(value); } + } + private BicepValue? _isDeploymentRollbackEnabled; /// /// <code>true</code> if this is deployed via GitHub action. /// - public BicepValue IsGitHubAction { get => _isGitHubAction; set => _isGitHubAction.Assign(value); } - private readonly BicepValue _isGitHubAction; + public BicepValue IsGitHubAction + { + get { Initialize(); return _isGitHubAction!; } + set { Initialize(); _isGitHubAction!.Assign(value); } + } + private BicepValue? _isGitHubAction; /// /// <code>true</code> to limit to manual integration; /// <code>false</code> to enable continuous integration (which /// configures webhooks into online repos like GitHub). /// - public BicepValue IsManualIntegration { get => _isManualIntegration; set => _isManualIntegration.Assign(value); } - private readonly BicepValue _isManualIntegration; + public BicepValue IsManualIntegration + { + get { Initialize(); return _isManualIntegration!; } + set { Initialize(); _isManualIntegration!.Assign(value); } + } + private BicepValue? _isManualIntegration; /// /// <code>true</code> for a Mercurial repository; /// <code>false</code> for a Git repository. /// - public BicepValue IsMercurial { get => _isMercurial; set => _isMercurial.Assign(value); } - private readonly BicepValue _isMercurial; + public BicepValue IsMercurial + { + get { Initialize(); return _isMercurial!; } + set { Initialize(); _isMercurial!.Assign(value); } + } + private BicepValue? _isMercurial; /// /// Kind of resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Repository or source control URL. /// - public BicepValue RepoUri { get => _repoUri; set => _repoUri.Assign(value); } - private readonly BicepValue _repoUri; + public BicepValue RepoUri + { + get { Initialize(); return _repoUri!; } + set { Initialize(); _repoUri!.Assign(value); } + } + private BicepValue? _repoUri; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebSite. /// - public WebSite? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebSite? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebSiteSourceControl. @@ -106,18 +151,25 @@ public partial class WebSiteSourceControl : ProvisionableResource public WebSiteSourceControl(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Web/sites/sourcecontrols", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _branch = BicepValue.DefineProperty(this, "Branch", ["properties", "branch"]); - _gitHubActionConfiguration = BicepValue.DefineProperty(this, "GitHubActionConfiguration", ["properties", "gitHubActionConfiguration"]); - _isDeploymentRollbackEnabled = BicepValue.DefineProperty(this, "IsDeploymentRollbackEnabled", ["properties", "deploymentRollbackEnabled"]); - _isGitHubAction = BicepValue.DefineProperty(this, "IsGitHubAction", ["properties", "isGitHubAction"]); - _isManualIntegration = BicepValue.DefineProperty(this, "IsManualIntegration", ["properties", "isManualIntegration"]); - _isMercurial = BicepValue.DefineProperty(this, "IsMercurial", ["properties", "isMercurial"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _repoUri = BicepValue.DefineProperty(this, "RepoUri", ["properties", "repoUrl"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebSiteSourceControl. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _branch = DefineProperty("Branch", ["properties", "branch"]); + _gitHubActionConfiguration = DefineModelProperty("GitHubActionConfiguration", ["properties", "gitHubActionConfiguration"]); + _isDeploymentRollbackEnabled = DefineProperty("IsDeploymentRollbackEnabled", ["properties", "deploymentRollbackEnabled"]); + _isGitHubAction = DefineProperty("IsGitHubAction", ["properties", "isGitHubAction"]); + _isManualIntegration = DefineProperty("IsManualIntegration", ["properties", "isManualIntegration"]); + _isMercurial = DefineProperty("IsMercurial", ["properties", "isMercurial"]); + _kind = DefineProperty("Kind", ["kind"]); + _repoUri = DefineProperty("RepoUri", ["properties", "repoUrl"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.AppService/tests/BasicAppServiceTests.cs b/sdk/provisioning/Azure.Provisioning.AppService/tests/BasicAppServiceTests.cs index 76f3c0236285e..194354bf67a03 100644 --- a/sdk/provisioning/Azure.Provisioning.AppService/tests/BasicAppServiceTests.cs +++ b/sdk/provisioning/Azure.Provisioning.AppService/tests/BasicAppServiceTests.cs @@ -8,6 +8,7 @@ using Azure.Provisioning.Resources; using Azure.Provisioning.Storage; using Azure.Provisioning.Tests; +using Newtonsoft.Json.Linq; using NUnit.Framework; namespace Azure.Provisioning.AppService.Tests; @@ -81,12 +82,12 @@ await test.Define( new AppServiceNameValuePair { Name = "AzureWebJobsStorage", - Value = BicepFunction.Interpolate($"DefaultEndpointsProtocol=https;AccountName={storage.Name};EndpointSuffix=core.windows.net;AccountKey={storage.GetKeys()[0].Value!.Value}") + Value = BicepFunction.Interpolate($"DefaultEndpointsProtocol=https;AccountName={storage.Name};EndpointSuffix=core.windows.net;AccountKey={storage.GetKeys()[0].Unwrap().Value}") }, new AppServiceNameValuePair { Name = "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING", - Value = BicepFunction.Interpolate($"DefaultEndpointsProtocol=https;AccountName={storage.Name};EndpointSuffix=core.windows.net;AccountKey={storage.GetKeys()[0].Value!.Value}") + Value = BicepFunction.Interpolate($"DefaultEndpointsProtocol=https;AccountName={storage.Name};EndpointSuffix=core.windows.net;AccountKey={storage.GetKeys()[0].Unwrap().Value}") }, new AppServiceNameValuePair { diff --git a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/api/Azure.Provisioning.ApplicationInsights.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/api/Azure.Provisioning.ApplicationInsights.netstandard2.0.cs index 6fa77126b5400..cb71d60cc2ca6 100644 --- a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/api/Azure.Provisioning.ApplicationInsights.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/api/Azure.Provisioning.ApplicationInsights.netstandard2.0.cs @@ -63,12 +63,13 @@ public partial class ApplicationInsightsComponent : Azure.Provisioning.Primitive public Azure.Provisioning.BicepValue RequestSource { get { throw null; } set { } } public Azure.Provisioning.BicepValue RetentionInDays { get { throw null; } set { } } public Azure.Provisioning.BicepValue SamplingPercentage { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } public Azure.Provisioning.BicepValue WorkspaceResourceId { get { throw null; } set { } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.ApplicationInsights.ApplicationInsightsBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.ApplicationInsights.ApplicationInsightsBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ApplicationInsights.ApplicationInsightsComponent FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -98,15 +99,16 @@ public partial class ApplicationInsightsWebTest : Azure.Provisioning.Primitives. public Azure.Provisioning.BicepList Locations { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue Request { get { throw null; } set { } } + public Azure.Provisioning.ApplicationInsights.WebTestRequest Request { get { throw null; } set { } } public Azure.Provisioning.BicepValue SyntheticMonitorId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeoutInSeconds { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ValidationRules { get { throw null; } set { } } + public Azure.Provisioning.ApplicationInsights.WebTestValidationRules ValidationRules { get { throw null; } set { } } public Azure.Provisioning.BicepValue WebTest { get { throw null; } set { } } public Azure.Provisioning.BicepValue WebTestKind { get { throw null; } set { } } public Azure.Provisioning.BicepValue WebTestName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ApplicationInsights.ApplicationInsightsWebTest FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -124,7 +126,7 @@ public partial class ApplicationInsightsWorkbook : Azure.Provisioning.Primitives public Azure.Provisioning.BicepValue DisplayName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ETag { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue ModifiedOn { get { throw null; } } @@ -133,10 +135,11 @@ public partial class ApplicationInsightsWorkbook : Azure.Provisioning.Primitives public Azure.Provisioning.BicepValue SerializedData { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageUri { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserId { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ApplicationInsights.ApplicationInsightsWorkbook FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -158,9 +161,10 @@ public partial class ApplicationInsightsWorkbookTemplate : Azure.Provisioning.Pr public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Priority { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TemplateData { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ApplicationInsights.ApplicationInsightsWorkbookTemplate FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -187,6 +191,7 @@ public partial class PrivateLinkScopedResourceReference : Azure.Provisioning.Pri public PrivateLinkScopedResourceReference() { } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } } public Azure.Provisioning.BicepValue ScopeId { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class WebTestContentValidation : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -194,11 +199,13 @@ public WebTestContentValidation() { } public Azure.Provisioning.BicepValue ContentMatch { get { throw null; } set { } } public Azure.Provisioning.BicepValue IgnoreCase { get { throw null; } set { } } public Azure.Provisioning.BicepValue PassIfTextFound { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class WebTestGeolocation : Azure.Provisioning.Primitives.ProvisionableConstruct { public WebTestGeolocation() { } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum WebTestKind { @@ -218,21 +225,24 @@ public WebTestRequest() { } public Azure.Provisioning.BicepValue ParseDependentRequests { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequestBody { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequestUri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class WebTestRequestHeaderField : Azure.Provisioning.Primitives.ProvisionableConstruct { public WebTestRequestHeaderField() { } public Azure.Provisioning.BicepValue HeaderFieldName { get { throw null; } set { } } public Azure.Provisioning.BicepValue HeaderFieldValue { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class WebTestValidationRules : Azure.Provisioning.Primitives.ProvisionableConstruct { public WebTestValidationRules() { } public Azure.Provisioning.BicepValue CheckSsl { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ContentValidation { get { throw null; } set { } } + public Azure.Provisioning.ApplicationInsights.WebTestContentValidation ContentValidation { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExpectedHttpStatusCode { get { throw null; } set { } } public Azure.Provisioning.BicepValue IgnoreHttpStatusCode { get { throw null; } set { } } public Azure.Provisioning.BicepValue SslCertRemainingLifetimeCheck { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum WorkbookSharedTypeKind { @@ -247,11 +257,13 @@ public WorkbookTemplateGallery() { } public Azure.Provisioning.BicepValue Order { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceType { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkbookType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class WorkbookTemplateLocalizedGallery : Azure.Provisioning.Primitives.ProvisionableConstruct { public WorkbookTemplateLocalizedGallery() { } public Azure.Provisioning.BicepList Galleries { get { throw null; } set { } } public Azure.Provisioning.BicepValue TemplateData { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } } diff --git a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsComponent.cs b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsComponent.cs index 2d649e8457c1b..22086a1188af7 100644 --- a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsComponent.cs +++ b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsComponent.cs @@ -26,34 +26,54 @@ public partial class ApplicationInsightsComponent : ProvisionableResource /// /// The name of the Application Insights component resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The kind of application that this component refers to, used to /// customize UI. This value is a freeform string, values should typically /// be one of the following: web, ios, other, store, java, phone. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Type of application being monitored. /// - public BicepValue ApplicationType { get => _applicationType; set => _applicationType.Assign(value); } - private readonly BicepValue _applicationType; + public BicepValue ApplicationType + { + get { Initialize(); return _applicationType!; } + set { Initialize(); _applicationType!.Assign(value); } + } + private BicepValue? _applicationType; /// /// Resource etag. /// - public BicepValue ETag { get => _eTag; set => _eTag.Assign(value); } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + set { Initialize(); _eTag!.Assign(value); } + } + private BicepValue? _eTag; /// /// Used by the Application Insights system to determine what kind of flow @@ -61,85 +81,137 @@ public partial class ApplicationInsightsComponent : ProvisionableResource /// 'Bluefield' when creating/updating a component via the REST /// API. /// - public BicepValue FlowType { get => _flowType; set => _flowType.Assign(value); } - private readonly BicepValue _flowType; + public BicepValue FlowType + { + get { Initialize(); return _flowType!; } + set { Initialize(); _flowType!.Assign(value); } + } + private BicepValue? _flowType; /// /// The unique application ID created when a new application is added to /// HockeyApp, used for communications with HockeyApp. /// - public BicepValue HockeyAppId { get => _hockeyAppId; set => _hockeyAppId.Assign(value); } - private readonly BicepValue _hockeyAppId; + public BicepValue HockeyAppId + { + get { Initialize(); return _hockeyAppId!; } + set { Initialize(); _hockeyAppId!.Assign(value); } + } + private BicepValue? _hockeyAppId; /// /// Indicates the flow of the ingestion. /// - public BicepValue IngestionMode { get => _ingestionMode; set => _ingestionMode.Assign(value); } - private readonly BicepValue _ingestionMode; + public BicepValue IngestionMode + { + get { Initialize(); return _ingestionMode!; } + set { Initialize(); _ingestionMode!.Assign(value); } + } + private BicepValue? _ingestionMode; /// /// Disable IP masking. /// - public BicepValue IsDisableIPMasking { get => _isDisableIPMasking; set => _isDisableIPMasking.Assign(value); } - private readonly BicepValue _isDisableIPMasking; + public BicepValue IsDisableIPMasking + { + get { Initialize(); return _isDisableIPMasking!; } + set { Initialize(); _isDisableIPMasking!.Assign(value); } + } + private BicepValue? _isDisableIPMasking; /// /// Disable Non-AAD based Auth. /// - public BicepValue IsDisableLocalAuth { get => _isDisableLocalAuth; set => _isDisableLocalAuth.Assign(value); } - private readonly BicepValue _isDisableLocalAuth; + public BicepValue IsDisableLocalAuth + { + get { Initialize(); return _isDisableLocalAuth!; } + set { Initialize(); _isDisableLocalAuth!.Assign(value); } + } + private BicepValue? _isDisableLocalAuth; /// /// Force users to create their own storage account for profiler and /// debugger. /// - public BicepValue IsForceCustomerStorageForProfiler { get => _isForceCustomerStorageForProfiler; set => _isForceCustomerStorageForProfiler.Assign(value); } - private readonly BicepValue _isForceCustomerStorageForProfiler; + public BicepValue IsForceCustomerStorageForProfiler + { + get { Initialize(); return _isForceCustomerStorageForProfiler!; } + set { Initialize(); _isForceCustomerStorageForProfiler!.Assign(value); } + } + private BicepValue? _isForceCustomerStorageForProfiler; /// /// Purge data immediately after 30 days. /// - public BicepValue IsImmediatePurgeDataOn30Days { get => _isImmediatePurgeDataOn30Days; set => _isImmediatePurgeDataOn30Days.Assign(value); } - private readonly BicepValue _isImmediatePurgeDataOn30Days; + public BicepValue IsImmediatePurgeDataOn30Days + { + get { Initialize(); return _isImmediatePurgeDataOn30Days!; } + set { Initialize(); _isImmediatePurgeDataOn30Days!.Assign(value); } + } + private BicepValue? _isImmediatePurgeDataOn30Days; /// /// The network access type for accessing Application Insights ingestion. /// - public BicepValue PublicNetworkAccessForIngestion { get => _publicNetworkAccessForIngestion; set => _publicNetworkAccessForIngestion.Assign(value); } - private readonly BicepValue _publicNetworkAccessForIngestion; + public BicepValue PublicNetworkAccessForIngestion + { + get { Initialize(); return _publicNetworkAccessForIngestion!; } + set { Initialize(); _publicNetworkAccessForIngestion!.Assign(value); } + } + private BicepValue? _publicNetworkAccessForIngestion; /// /// The network access type for accessing Application Insights query. /// - public BicepValue PublicNetworkAccessForQuery { get => _publicNetworkAccessForQuery; set => _publicNetworkAccessForQuery.Assign(value); } - private readonly BicepValue _publicNetworkAccessForQuery; + public BicepValue PublicNetworkAccessForQuery + { + get { Initialize(); return _publicNetworkAccessForQuery!; } + set { Initialize(); _publicNetworkAccessForQuery!.Assign(value); } + } + private BicepValue? _publicNetworkAccessForQuery; /// /// Describes what tool created this Application Insights component. /// Customers using this API should set this to the default /// 'rest'. /// - public BicepValue RequestSource { get => _requestSource; set => _requestSource.Assign(value); } - private readonly BicepValue _requestSource; + public BicepValue RequestSource + { + get { Initialize(); return _requestSource!; } + set { Initialize(); _requestSource!.Assign(value); } + } + private BicepValue? _requestSource; /// /// Retention period in days. /// - public BicepValue RetentionInDays { get => _retentionInDays; set => _retentionInDays.Assign(value); } - private readonly BicepValue _retentionInDays; + public BicepValue RetentionInDays + { + get { Initialize(); return _retentionInDays!; } + set { Initialize(); _retentionInDays!.Assign(value); } + } + private BicepValue? _retentionInDays; /// /// Percentage of the data produced by the application being monitored that /// is being sampled for Application Insights telemetry. /// - public BicepValue SamplingPercentage { get => _samplingPercentage; set => _samplingPercentage.Assign(value); } - private readonly BicepValue _samplingPercentage; + public BicepValue SamplingPercentage + { + get { Initialize(); return _samplingPercentage!; } + set { Initialize(); _samplingPercentage!.Assign(value); } + } + private BicepValue? _samplingPercentage; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Resource Id of the log analytics workspace which the data will be @@ -147,47 +219,69 @@ public partial class ApplicationInsightsComponent : ProvisionableResource /// this API version. Applications from older versions will not have this /// property. /// - public BicepValue WorkspaceResourceId { get => _workspaceResourceId; set => _workspaceResourceId.Assign(value); } - private readonly BicepValue _workspaceResourceId; + public BicepValue WorkspaceResourceId + { + get { Initialize(); return _workspaceResourceId!; } + set { Initialize(); _workspaceResourceId!.Assign(value); } + } + private BicepValue? _workspaceResourceId; /// /// Application Insights Unique ID for your Application. /// - public BicepValue AppId { get => _appId; } - private readonly BicepValue _appId; + public BicepValue AppId + { + get { Initialize(); return _appId!; } + } + private BicepValue? _appId; /// /// The unique ID of your application. This field mirrors the /// 'Name' field and cannot be changed. /// - public BicepValue ApplicationId { get => _applicationId; } - private readonly BicepValue _applicationId; + public BicepValue ApplicationId + { + get { Initialize(); return _applicationId!; } + } + private BicepValue? _applicationId; /// /// Application Insights component connection string. /// - public BicepValue ConnectionString { get => _connectionString; } - private readonly BicepValue _connectionString; + public BicepValue ConnectionString + { + get { Initialize(); return _connectionString!; } + } + private BicepValue? _connectionString; /// /// Creation Date for the Application Insights component, in ISO 8601 /// format. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Token used to authenticate communications with between Application /// Insights and HockeyApp. /// - public BicepValue HockeyAppToken { get => _hockeyAppToken; } - private readonly BicepValue _hockeyAppToken; + public BicepValue HockeyAppToken + { + get { Initialize(); return _hockeyAppToken!; } + } + private BicepValue? _hockeyAppToken; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Application Insights Instrumentation key. A read-only value that @@ -195,26 +289,38 @@ public partial class ApplicationInsightsComponent : ProvisionableResource /// sent to Azure Application Insights. This value will be supplied upon /// construction of each new Application Insights component. /// - public BicepValue InstrumentationKey { get => _instrumentationKey; } - private readonly BicepValue _instrumentationKey; + public BicepValue InstrumentationKey + { + get { Initialize(); return _instrumentationKey!; } + } + private BicepValue? _instrumentationKey; /// /// The date which the component got migrated to LA, in ISO 8601 format. /// - public BicepValue LaMigrationOn { get => _laMigrationOn; } - private readonly BicepValue _laMigrationOn; + public BicepValue LaMigrationOn + { + get { Initialize(); return _laMigrationOn!; } + } + private BicepValue? _laMigrationOn; /// /// Application name. /// - public BicepValue NamePropertiesName { get => _namePropertiesName; } - private readonly BicepValue _namePropertiesName; + public BicepValue NamePropertiesName + { + get { Initialize(); return _namePropertiesName!; } + } + private BicepValue? _namePropertiesName; /// /// List of linked private link scope resources. /// - public BicepList PrivateLinkScopedResources { get => _privateLinkScopedResources; } - private readonly BicepList _privateLinkScopedResources; + public BicepList PrivateLinkScopedResources + { + get { Initialize(); return _privateLinkScopedResources!; } + } + private BicepList? _privateLinkScopedResources; /// /// Current state of this component: whether or not is has been provisioned @@ -222,20 +328,29 @@ public partial class ApplicationInsightsComponent : ProvisionableResource /// value but are able to read from it. Values will include Succeeded, /// Deploying, Canceled, and Failed. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Azure Tenant Id. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// Creates a new ApplicationInsightsComponent. @@ -250,38 +365,45 @@ public partial class ApplicationInsightsComponent : ProvisionableResource public ApplicationInsightsComponent(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Insights/components", resourceVersion ?? "2020-02-02") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _applicationType = BicepValue.DefineProperty(this, "ApplicationType", ["properties", "Application_Type"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"]); - _flowType = BicepValue.DefineProperty(this, "FlowType", ["properties", "Flow_Type"]); - _hockeyAppId = BicepValue.DefineProperty(this, "HockeyAppId", ["properties", "HockeyAppId"]); - _ingestionMode = BicepValue.DefineProperty(this, "IngestionMode", ["properties", "IngestionMode"]); - _isDisableIPMasking = BicepValue.DefineProperty(this, "IsDisableIPMasking", ["properties", "DisableIpMasking"]); - _isDisableLocalAuth = BicepValue.DefineProperty(this, "IsDisableLocalAuth", ["properties", "DisableLocalAuth"]); - _isForceCustomerStorageForProfiler = BicepValue.DefineProperty(this, "IsForceCustomerStorageForProfiler", ["properties", "ForceCustomerStorageForProfiler"]); - _isImmediatePurgeDataOn30Days = BicepValue.DefineProperty(this, "IsImmediatePurgeDataOn30Days", ["properties", "ImmediatePurgeDataOn30Days"]); - _publicNetworkAccessForIngestion = BicepValue.DefineProperty(this, "PublicNetworkAccessForIngestion", ["properties", "publicNetworkAccessForIngestion"]); - _publicNetworkAccessForQuery = BicepValue.DefineProperty(this, "PublicNetworkAccessForQuery", ["properties", "publicNetworkAccessForQuery"]); - _requestSource = BicepValue.DefineProperty(this, "RequestSource", ["properties", "Request_Source"]); - _retentionInDays = BicepValue.DefineProperty(this, "RetentionInDays", ["properties", "RetentionInDays"]); - _samplingPercentage = BicepValue.DefineProperty(this, "SamplingPercentage", ["properties", "SamplingPercentage"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _workspaceResourceId = BicepValue.DefineProperty(this, "WorkspaceResourceId", ["properties", "WorkspaceResourceId"]); - _appId = BicepValue.DefineProperty(this, "AppId", ["properties", "AppId"], isOutput: true); - _applicationId = BicepValue.DefineProperty(this, "ApplicationId", ["properties", "ApplicationId"], isOutput: true); - _connectionString = BicepValue.DefineProperty(this, "ConnectionString", ["properties", "ConnectionString"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "CreationDate"], isOutput: true); - _hockeyAppToken = BicepValue.DefineProperty(this, "HockeyAppToken", ["properties", "HockeyAppToken"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _instrumentationKey = BicepValue.DefineProperty(this, "InstrumentationKey", ["properties", "InstrumentationKey"], isOutput: true, isSecure: true); - _laMigrationOn = BicepValue.DefineProperty(this, "LaMigrationOn", ["properties", "LaMigrationDate"], isOutput: true); - _namePropertiesName = BicepValue.DefineProperty(this, "NamePropertiesName", ["properties", "Name"], isOutput: true); - _privateLinkScopedResources = BicepList.DefineProperty(this, "PrivateLinkScopedResources", ["properties", "PrivateLinkScopedResources"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["properties", "TenantId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ApplicationInsightsComponent. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _applicationType = DefineProperty("ApplicationType", ["properties", "Application_Type"]); + _eTag = DefineProperty("ETag", ["etag"]); + _flowType = DefineProperty("FlowType", ["properties", "Flow_Type"]); + _hockeyAppId = DefineProperty("HockeyAppId", ["properties", "HockeyAppId"]); + _ingestionMode = DefineProperty("IngestionMode", ["properties", "IngestionMode"]); + _isDisableIPMasking = DefineProperty("IsDisableIPMasking", ["properties", "DisableIpMasking"]); + _isDisableLocalAuth = DefineProperty("IsDisableLocalAuth", ["properties", "DisableLocalAuth"]); + _isForceCustomerStorageForProfiler = DefineProperty("IsForceCustomerStorageForProfiler", ["properties", "ForceCustomerStorageForProfiler"]); + _isImmediatePurgeDataOn30Days = DefineProperty("IsImmediatePurgeDataOn30Days", ["properties", "ImmediatePurgeDataOn30Days"]); + _publicNetworkAccessForIngestion = DefineProperty("PublicNetworkAccessForIngestion", ["properties", "publicNetworkAccessForIngestion"]); + _publicNetworkAccessForQuery = DefineProperty("PublicNetworkAccessForQuery", ["properties", "publicNetworkAccessForQuery"]); + _requestSource = DefineProperty("RequestSource", ["properties", "Request_Source"]); + _retentionInDays = DefineProperty("RetentionInDays", ["properties", "RetentionInDays"]); + _samplingPercentage = DefineProperty("SamplingPercentage", ["properties", "SamplingPercentage"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _workspaceResourceId = DefineProperty("WorkspaceResourceId", ["properties", "WorkspaceResourceId"]); + _appId = DefineProperty("AppId", ["properties", "AppId"], isOutput: true); + _applicationId = DefineProperty("ApplicationId", ["properties", "ApplicationId"], isOutput: true); + _connectionString = DefineProperty("ConnectionString", ["properties", "ConnectionString"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["properties", "CreationDate"], isOutput: true); + _hockeyAppToken = DefineProperty("HockeyAppToken", ["properties", "HockeyAppToken"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _instrumentationKey = DefineProperty("InstrumentationKey", ["properties", "InstrumentationKey"], isOutput: true, isSecure: true); + _laMigrationOn = DefineProperty("LaMigrationOn", ["properties", "LaMigrationDate"], isOutput: true); + _namePropertiesName = DefineProperty("NamePropertiesName", ["properties", "Name"], isOutput: true); + _privateLinkScopedResources = DefineListProperty("PrivateLinkScopedResources", ["properties", "PrivateLinkScopedResources"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _tenantId = DefineProperty("TenantId", ["properties", "TenantId"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsWebTest.cs b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsWebTest.cs index 21ea54a200b4b..13763448e16f2 100644 --- a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsWebTest.cs +++ b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsWebTest.cs @@ -21,109 +21,176 @@ public partial class ApplicationInsightsWebTest : ProvisionableResource /// /// The name of the Application Insights WebTest resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// User defined description for this WebTest. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Interval in seconds between test runs for this WebTest. Default value /// is 300. /// - public BicepValue FrequencyInSeconds { get => _frequencyInSeconds; set => _frequencyInSeconds.Assign(value); } - private readonly BicepValue _frequencyInSeconds; + public BicepValue FrequencyInSeconds + { + get { Initialize(); return _frequencyInSeconds!; } + set { Initialize(); _frequencyInSeconds!.Assign(value); } + } + private BicepValue? _frequencyInSeconds; /// /// Is the test actively being monitored. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Allow for retries should this WebTest fail. /// - public BicepValue IsRetryEnabled { get => _isRetryEnabled; set => _isRetryEnabled.Assign(value); } - private readonly BicepValue _isRetryEnabled; + public BicepValue IsRetryEnabled + { + get { Initialize(); return _isRetryEnabled!; } + set { Initialize(); _isRetryEnabled!.Assign(value); } + } + private BicepValue? _isRetryEnabled; /// /// The kind of WebTest that this web test watches. Choices are ping, /// multistep and standard. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// A list of where to physically run the tests from to give global /// coverage for accessibility of your application. /// - public BicepList Locations { get => _locations; set => _locations.Assign(value); } - private readonly BicepList _locations; + public BicepList Locations + { + get { Initialize(); return _locations!; } + set { Initialize(); _locations!.Assign(value); } + } + private BicepList? _locations; /// /// The collection of request properties. /// - public BicepValue Request { get => _request; set => _request.Assign(value); } - private readonly BicepValue _request; + public WebTestRequest Request + { + get { Initialize(); return _request!; } + set { Initialize(); AssignOrReplace(ref _request, value); } + } + private WebTestRequest? _request; /// /// Unique ID of this WebTest. This is typically the same value as the Name /// field. /// - public BicepValue SyntheticMonitorId { get => _syntheticMonitorId; set => _syntheticMonitorId.Assign(value); } - private readonly BicepValue _syntheticMonitorId; + public BicepValue SyntheticMonitorId + { + get { Initialize(); return _syntheticMonitorId!; } + set { Initialize(); _syntheticMonitorId!.Assign(value); } + } + private BicepValue? _syntheticMonitorId; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Seconds until this WebTest will timeout and fail. Default value is 30. /// - public BicepValue TimeoutInSeconds { get => _timeoutInSeconds; set => _timeoutInSeconds.Assign(value); } - private readonly BicepValue _timeoutInSeconds; + public BicepValue TimeoutInSeconds + { + get { Initialize(); return _timeoutInSeconds!; } + set { Initialize(); _timeoutInSeconds!.Assign(value); } + } + private BicepValue? _timeoutInSeconds; /// /// The collection of validation rule properties. /// - public BicepValue ValidationRules { get => _validationRules; set => _validationRules.Assign(value); } - private readonly BicepValue _validationRules; + public WebTestValidationRules ValidationRules + { + get { Initialize(); return _validationRules!; } + set { Initialize(); AssignOrReplace(ref _validationRules, value); } + } + private WebTestValidationRules? _validationRules; /// /// The XML specification of a WebTest to run against an application. /// - public BicepValue WebTest { get => _webTest; set => _webTest.Assign(value); } - private readonly BicepValue _webTest; + public BicepValue WebTest + { + get { Initialize(); return _webTest!; } + set { Initialize(); _webTest!.Assign(value); } + } + private BicepValue? _webTest; /// /// The kind of web test this is, valid choices are ping, multistep and /// standard. /// - public BicepValue WebTestKind { get => _webTestKind; set => _webTestKind.Assign(value); } - private readonly BicepValue _webTestKind; + public BicepValue WebTestKind + { + get { Initialize(); return _webTestKind!; } + set { Initialize(); _webTestKind!.Assign(value); } + } + private BicepValue? _webTestKind; /// /// User defined name if this WebTest. /// - public BicepValue WebTestName { get => _webTestName; set => _webTestName.Assign(value); } - private readonly BicepValue _webTestName; + public BicepValue WebTestName + { + get { Initialize(); return _webTestName!; } + set { Initialize(); _webTestName!.Assign(value); } + } + private BicepValue? _webTestName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Current state of this component, whether or not is has been provisioned @@ -131,14 +198,20 @@ public partial class ApplicationInsightsWebTest : ProvisionableResource /// value but are able to read from it. Values will include Succeeded, /// Deploying, Canceled, and Failed. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ApplicationInsightsWebTest. @@ -153,25 +226,32 @@ public partial class ApplicationInsightsWebTest : ProvisionableResource public ApplicationInsightsWebTest(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Insights/webtests", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "Description"]); - _frequencyInSeconds = BicepValue.DefineProperty(this, "FrequencyInSeconds", ["properties", "Frequency"]); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["properties", "Enabled"]); - _isRetryEnabled = BicepValue.DefineProperty(this, "IsRetryEnabled", ["properties", "RetryEnabled"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _locations = BicepList.DefineProperty(this, "Locations", ["properties", "Locations"]); - _request = BicepValue.DefineProperty(this, "Request", ["properties", "Request"]); - _syntheticMonitorId = BicepValue.DefineProperty(this, "SyntheticMonitorId", ["properties", "SyntheticMonitorId"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _timeoutInSeconds = BicepValue.DefineProperty(this, "TimeoutInSeconds", ["properties", "Timeout"]); - _validationRules = BicepValue.DefineProperty(this, "ValidationRules", ["properties", "ValidationRules"]); - _webTest = BicepValue.DefineProperty(this, "WebTest", ["properties", "Configuration", "WebTest"]); - _webTestKind = BicepValue.DefineProperty(this, "WebTestKind", ["properties", "Kind"]); - _webTestName = BicepValue.DefineProperty(this, "WebTestName", ["properties", "Name"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ApplicationInsightsWebTest. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _description = DefineProperty("Description", ["properties", "Description"]); + _frequencyInSeconds = DefineProperty("FrequencyInSeconds", ["properties", "Frequency"]); + _isEnabled = DefineProperty("IsEnabled", ["properties", "Enabled"]); + _isRetryEnabled = DefineProperty("IsRetryEnabled", ["properties", "RetryEnabled"]); + _kind = DefineProperty("Kind", ["kind"]); + _locations = DefineListProperty("Locations", ["properties", "Locations"]); + _request = DefineModelProperty("Request", ["properties", "Request"]); + _syntheticMonitorId = DefineProperty("SyntheticMonitorId", ["properties", "SyntheticMonitorId"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _timeoutInSeconds = DefineProperty("TimeoutInSeconds", ["properties", "Timeout"]); + _validationRules = DefineModelProperty("ValidationRules", ["properties", "ValidationRules"]); + _webTest = DefineProperty("WebTest", ["properties", "Configuration", "WebTest"]); + _webTestKind = DefineProperty("WebTestKind", ["properties", "Kind"]); + _webTestName = DefineProperty("WebTestName", ["properties", "Name"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsWorkbook.cs b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsWorkbook.cs index 45c02bf66116b..3d006b794cb6b 100644 --- a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsWorkbook.cs +++ b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsWorkbook.cs @@ -22,114 +22,181 @@ public partial class ApplicationInsightsWorkbook : ProvisionableResource /// /// The name of the workbook resource. The value must be an UUID. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Workbook category, as defined by the user at creation time. /// - public BicepValue Category { get => _category; set => _category.Assign(value); } - private readonly BicepValue _category; + public BicepValue Category + { + get { Initialize(); return _category!; } + set { Initialize(); _category!.Assign(value); } + } + private BicepValue? _category; /// /// The description of the workbook. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The user-defined name (display name) of the workbook. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// Resource etag. /// - public BicepValue ETag { get => _eTag; set => _eTag.Assign(value); } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + set { Initialize(); _eTag!.Assign(value); } + } + private BicepValue? _eTag; /// /// Identity used for BYOS. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// The kind of workbook. Only valid value is shared. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Configuration of this particular workbook. Configuration data is a /// string containing valid JSON. /// - public BicepValue SerializedData { get => _serializedData; set => _serializedData.Assign(value); } - private readonly BicepValue _serializedData; + public BicepValue SerializedData + { + get { Initialize(); return _serializedData!; } + set { Initialize(); _serializedData!.Assign(value); } + } + private BicepValue? _serializedData; /// /// Azure Resource Id that will fetch all linked workbooks. /// - public BicepValue SourceId { get => _sourceId; set => _sourceId.Assign(value); } - private readonly BicepValue _sourceId; + public BicepValue SourceId + { + get { Initialize(); return _sourceId!; } + set { Initialize(); _sourceId!.Assign(value); } + } + private BicepValue? _sourceId; /// /// The resourceId to the storage account when bring your own storage is /// used. /// - public BicepValue StorageUri { get => _storageUri; set => _storageUri.Assign(value); } - private readonly BicepValue _storageUri; + public BicepValue StorageUri + { + get { Initialize(); return _storageUri!; } + set { Initialize(); _storageUri!.Assign(value); } + } + private BicepValue? _storageUri; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Workbook schema version format, like 'Notebook/1.0', which /// should match the workbook in serializedData. /// - public BicepValue Version { get => _version; set => _version.Assign(value); } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + set { Initialize(); _version!.Assign(value); } + } + private BicepValue? _version; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Date and time in UTC of the last modification that was made to this /// workbook definition. /// - public BicepValue ModifiedOn { get => _modifiedOn; } - private readonly BicepValue _modifiedOn; + public BicepValue ModifiedOn + { + get { Initialize(); return _modifiedOn!; } + } + private BicepValue? _modifiedOn; /// /// The unique revision id for this workbook definition. /// - public BicepValue Revision { get => _revision; } - private readonly BicepValue _revision; + public BicepValue Revision + { + get { Initialize(); return _revision!; } + } + private BicepValue? _revision; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Unique user id of the specific user that owns this workbook. /// - public BicepValue UserId { get => _userId; } - private readonly BicepValue _userId; + public BicepValue UserId + { + get { Initialize(); return _userId!; } + } + private BicepValue? _userId; /// /// Creates a new ApplicationInsightsWorkbook. @@ -144,24 +211,31 @@ public partial class ApplicationInsightsWorkbook : ProvisionableResource public ApplicationInsightsWorkbook(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Insights/workbooks", resourceVersion ?? "2023-06-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _category = BicepValue.DefineProperty(this, "Category", ["properties", "category"]); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["properties", "displayName"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _serializedData = BicepValue.DefineProperty(this, "SerializedData", ["properties", "serializedData"]); - _sourceId = BicepValue.DefineProperty(this, "SourceId", ["properties", "sourceId"]); - _storageUri = BicepValue.DefineProperty(this, "StorageUri", ["properties", "storageUri"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _modifiedOn = BicepValue.DefineProperty(this, "ModifiedOn", ["properties", "timeModified"], isOutput: true); - _revision = BicepValue.DefineProperty(this, "Revision", ["properties", "revision"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _userId = BicepValue.DefineProperty(this, "UserId", ["properties", "userId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ApplicationInsightsWorkbook. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _category = DefineProperty("Category", ["properties", "category"]); + _description = DefineProperty("Description", ["properties", "description"]); + _displayName = DefineProperty("DisplayName", ["properties", "displayName"]); + _eTag = DefineProperty("ETag", ["etag"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _kind = DefineProperty("Kind", ["kind"]); + _serializedData = DefineProperty("SerializedData", ["properties", "serializedData"]); + _sourceId = DefineProperty("SourceId", ["properties", "sourceId"]); + _storageUri = DefineProperty("StorageUri", ["properties", "storageUri"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _version = DefineProperty("Version", ["properties", "version"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _modifiedOn = DefineProperty("ModifiedOn", ["properties", "timeModified"], isOutput: true); + _revision = DefineProperty("Revision", ["properties", "revision"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _userId = DefineProperty("UserId", ["properties", "userId"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsWorkbookTemplate.cs b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsWorkbookTemplate.cs index 0081de47b49a5..6c44cb548fc9c 100644 --- a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsWorkbookTemplate.cs +++ b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/ApplicationInsightsWorkbookTemplate.cs @@ -21,46 +21,74 @@ public partial class ApplicationInsightsWorkbookTemplate : ProvisionableResource /// /// The name of the Application Insights component resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Information about the author of the workbook template. /// - public BicepValue Author { get => _author; set => _author.Assign(value); } - private readonly BicepValue _author; + public BicepValue Author + { + get { Initialize(); return _author!; } + set { Initialize(); _author!.Assign(value); } + } + private BicepValue? _author; /// /// Workbook galleries supported by the template. /// - public BicepList Galleries { get => _galleries; set => _galleries.Assign(value); } - private readonly BicepList _galleries; + public BicepList Galleries + { + get { Initialize(); return _galleries!; } + set { Initialize(); _galleries!.Assign(value); } + } + private BicepList? _galleries; /// /// Key value pair of localized gallery. Each key is the locale code of /// languages supported by the Azure portal. /// - public BicepDictionary> LocalizedGalleries { get => _localizedGalleries; set => _localizedGalleries.Assign(value); } - private readonly BicepDictionary> _localizedGalleries; + public BicepDictionary> LocalizedGalleries + { + get { Initialize(); return _localizedGalleries!; } + set { Initialize(); _localizedGalleries!.Assign(value); } + } + private BicepDictionary>? _localizedGalleries; /// /// Priority of the template. Determines which template to open when a /// workbook gallery is opened in viewer mode. /// - public BicepValue Priority { get => _priority; set => _priority.Assign(value); } - private readonly BicepValue _priority; + public BicepValue Priority + { + get { Initialize(); return _priority!; } + set { Initialize(); _priority!.Assign(value); } + } + private BicepValue? _priority; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Valid JSON object containing workbook template payload. @@ -78,20 +106,30 @@ public partial class ApplicationInsightsWorkbookTemplate : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue TemplateData { get => _templateData; set => _templateData.Assign(value); } - private readonly BicepValue _templateData; + public BicepValue TemplateData + { + get { Initialize(); return _templateData!; } + set { Initialize(); _templateData!.Assign(value); } + } + private BicepValue? _templateData; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ApplicationInsightsWorkbookTemplate. @@ -106,16 +144,24 @@ public partial class ApplicationInsightsWorkbookTemplate : ProvisionableResource public ApplicationInsightsWorkbookTemplate(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Insights/workbooktemplates", resourceVersion ?? "2020-11-20") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _author = BicepValue.DefineProperty(this, "Author", ["properties", "author"]); - _galleries = BicepList.DefineProperty(this, "Galleries", ["properties", "galleries"]); - _localizedGalleries = BicepDictionary>.DefineProperty(this, "LocalizedGalleries", ["properties", "localized"]); - _priority = BicepValue.DefineProperty(this, "Priority", ["properties", "priority"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _templateData = BicepValue.DefineProperty(this, "TemplateData", ["properties", "templateData"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ApplicationInsightsWorkbookTemplate. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _author = DefineProperty("Author", ["properties", "author"]); + _galleries = DefineListProperty("Galleries", ["properties", "galleries"]); + _localizedGalleries = DefineDictionaryProperty>("LocalizedGalleries", ["properties", "localized"]); + _priority = DefineProperty("Priority", ["properties", "priority"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _templateData = DefineProperty("TemplateData", ["properties", "templateData"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/PrivateLinkScopedResourceReference.cs b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/PrivateLinkScopedResourceReference.cs index 0ce00bcb783e7..d3182603e7c8f 100644 --- a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/PrivateLinkScopedResourceReference.cs +++ b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/PrivateLinkScopedResourceReference.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,36 @@ public partial class PrivateLinkScopedResourceReference : ProvisionableConstruct /// /// The full resource Id of the private link scope resource. /// - public BicepValue ResourceId { get => _resourceId; } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + } + private BicepValue? _resourceId; /// /// The private link scope unique Identifier. /// - public BicepValue ScopeId { get => _scopeId; } - private readonly BicepValue _scopeId; + public BicepValue ScopeId + { + get { Initialize(); return _scopeId!; } + } + private BicepValue? _scopeId; /// /// Creates a new PrivateLinkScopedResourceReference. /// public PrivateLinkScopedResourceReference() { - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["ResourceId"], isOutput: true); - _scopeId = BicepValue.DefineProperty(this, "ScopeId", ["ScopeId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// PrivateLinkScopedResourceReference. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _resourceId = DefineProperty("ResourceId", ["ResourceId"], isOutput: true); + _scopeId = DefineProperty("ScopeId", ["ScopeId"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestContentValidation.cs b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestContentValidation.cs index 74a1c38ad9cd4..d0d5b421c748d 100644 --- a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestContentValidation.cs +++ b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestContentValidation.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,50 @@ public partial class WebTestContentValidation : ProvisionableConstruct /// Content to look for in the return of the WebTest. Must not be null or /// empty. /// - public BicepValue ContentMatch { get => _contentMatch; set => _contentMatch.Assign(value); } - private readonly BicepValue _contentMatch; + public BicepValue ContentMatch + { + get { Initialize(); return _contentMatch!; } + set { Initialize(); _contentMatch!.Assign(value); } + } + private BicepValue? _contentMatch; /// /// When set, this value makes the ContentMatch validation case insensitive. /// - public BicepValue IgnoreCase { get => _ignoreCase; set => _ignoreCase.Assign(value); } - private readonly BicepValue _ignoreCase; + public BicepValue IgnoreCase + { + get { Initialize(); return _ignoreCase!; } + set { Initialize(); _ignoreCase!.Assign(value); } + } + private BicepValue? _ignoreCase; /// /// When true, validation will pass if there is a match for the /// ContentMatch string. If false, validation will fail if there is a /// match. /// - public BicepValue PassIfTextFound { get => _passIfTextFound; set => _passIfTextFound.Assign(value); } - private readonly BicepValue _passIfTextFound; + public BicepValue PassIfTextFound + { + get { Initialize(); return _passIfTextFound!; } + set { Initialize(); _passIfTextFound!.Assign(value); } + } + private BicepValue? _passIfTextFound; /// /// Creates a new WebTestContentValidation. /// public WebTestContentValidation() { - _contentMatch = BicepValue.DefineProperty(this, "ContentMatch", ["ContentMatch"]); - _ignoreCase = BicepValue.DefineProperty(this, "IgnoreCase", ["IgnoreCase"]); - _passIfTextFound = BicepValue.DefineProperty(this, "PassIfTextFound", ["PassIfTextFound"]); + } + + /// + /// Define all the provisionable properties of WebTestContentValidation. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _contentMatch = DefineProperty("ContentMatch", ["ContentMatch"]); + _ignoreCase = DefineProperty("IgnoreCase", ["IgnoreCase"]); + _passIfTextFound = DefineProperty("PassIfTextFound", ["PassIfTextFound"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestGeolocation.cs b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestGeolocation.cs index a2c62af6d4590..e50b2e97edc32 100644 --- a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestGeolocation.cs +++ b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestGeolocation.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -17,14 +19,26 @@ public partial class WebTestGeolocation : ProvisionableConstruct /// /// Location ID for the WebTest to run from. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Creates a new WebTestGeolocation. /// public WebTestGeolocation() { - _location = BicepValue.DefineProperty(this, "Location", ["Id"]); + } + + /// + /// Define all the provisionable properties of WebTestGeolocation. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _location = DefineProperty("Location", ["Id"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestRequest.cs b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestRequest.cs index 44c2e0f3dc9e2..401b700888264 100644 --- a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestRequest.cs +++ b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestRequest.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,49 +19,81 @@ public partial class WebTestRequest : ProvisionableConstruct /// /// Url location to test. /// - public BicepValue RequestUri { get => _requestUri; set => _requestUri.Assign(value); } - private readonly BicepValue _requestUri; + public BicepValue RequestUri + { + get { Initialize(); return _requestUri!; } + set { Initialize(); _requestUri!.Assign(value); } + } + private BicepValue? _requestUri; /// /// List of headers and their values to add to the WebTest call. /// - public BicepList Headers { get => _headers; set => _headers.Assign(value); } - private readonly BicepList _headers; + public BicepList Headers + { + get { Initialize(); return _headers!; } + set { Initialize(); _headers!.Assign(value); } + } + private BicepList? _headers; /// /// Http verb to use for this web test. /// - public BicepValue HttpVerb { get => _httpVerb; set => _httpVerb.Assign(value); } - private readonly BicepValue _httpVerb; + public BicepValue HttpVerb + { + get { Initialize(); return _httpVerb!; } + set { Initialize(); _httpVerb!.Assign(value); } + } + private BicepValue? _httpVerb; /// /// Base64 encoded string body to send with this web test. /// - public BicepValue RequestBody { get => _requestBody; set => _requestBody.Assign(value); } - private readonly BicepValue _requestBody; + public BicepValue RequestBody + { + get { Initialize(); return _requestBody!; } + set { Initialize(); _requestBody!.Assign(value); } + } + private BicepValue? _requestBody; /// /// Parse Dependent request for this WebTest. /// - public BicepValue ParseDependentRequests { get => _parseDependentRequests; set => _parseDependentRequests.Assign(value); } - private readonly BicepValue _parseDependentRequests; + public BicepValue ParseDependentRequests + { + get { Initialize(); return _parseDependentRequests!; } + set { Initialize(); _parseDependentRequests!.Assign(value); } + } + private BicepValue? _parseDependentRequests; /// /// Follow redirects for this web test. /// - public BicepValue FollowRedirects { get => _followRedirects; set => _followRedirects.Assign(value); } - private readonly BicepValue _followRedirects; + public BicepValue FollowRedirects + { + get { Initialize(); return _followRedirects!; } + set { Initialize(); _followRedirects!.Assign(value); } + } + private BicepValue? _followRedirects; /// /// Creates a new WebTestRequest. /// public WebTestRequest() { - _requestUri = BicepValue.DefineProperty(this, "RequestUri", ["RequestUrl"]); - _headers = BicepList.DefineProperty(this, "Headers", ["Headers"]); - _httpVerb = BicepValue.DefineProperty(this, "HttpVerb", ["HttpVerb"]); - _requestBody = BicepValue.DefineProperty(this, "RequestBody", ["RequestBody"]); - _parseDependentRequests = BicepValue.DefineProperty(this, "ParseDependentRequests", ["ParseDependentRequests"]); - _followRedirects = BicepValue.DefineProperty(this, "FollowRedirects", ["FollowRedirects"]); + } + + /// + /// Define all the provisionable properties of WebTestRequest. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _requestUri = DefineProperty("RequestUri", ["RequestUrl"]); + _headers = DefineListProperty("Headers", ["Headers"]); + _httpVerb = DefineProperty("HttpVerb", ["HttpVerb"]); + _requestBody = DefineProperty("RequestBody", ["RequestBody"]); + _parseDependentRequests = DefineProperty("ParseDependentRequests", ["ParseDependentRequests"]); + _followRedirects = DefineProperty("FollowRedirects", ["FollowRedirects"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestRequestHeaderField.cs b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestRequestHeaderField.cs index 2125364cb8442..afdc7b83b9632 100644 --- a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestRequestHeaderField.cs +++ b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestRequestHeaderField.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class WebTestRequestHeaderField : ProvisionableConstruct /// /// The name of the header. /// - public BicepValue HeaderFieldName { get => _headerFieldName; set => _headerFieldName.Assign(value); } - private readonly BicepValue _headerFieldName; + public BicepValue HeaderFieldName + { + get { Initialize(); return _headerFieldName!; } + set { Initialize(); _headerFieldName!.Assign(value); } + } + private BicepValue? _headerFieldName; /// /// The value of the header. /// - public BicepValue HeaderFieldValue { get => _headerFieldValue; set => _headerFieldValue.Assign(value); } - private readonly BicepValue _headerFieldValue; + public BicepValue HeaderFieldValue + { + get { Initialize(); return _headerFieldValue!; } + set { Initialize(); _headerFieldValue!.Assign(value); } + } + private BicepValue? _headerFieldValue; /// /// Creates a new WebTestRequestHeaderField. /// public WebTestRequestHeaderField() { - _headerFieldName = BicepValue.DefineProperty(this, "HeaderFieldName", ["key"]); - _headerFieldValue = BicepValue.DefineProperty(this, "HeaderFieldValue", ["value"]); + } + + /// + /// Define all the provisionable properties of WebTestRequestHeaderField. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _headerFieldName = DefineProperty("HeaderFieldName", ["key"]); + _headerFieldValue = DefineProperty("HeaderFieldValue", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestValidationRules.cs b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestValidationRules.cs index 6747f64eb11c1..817f3e48ec20d 100644 --- a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestValidationRules.cs +++ b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WebTestValidationRules.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,43 +18,71 @@ public partial class WebTestValidationRules : ProvisionableConstruct /// /// The collection of content validation properties. /// - public BicepValue ContentValidation { get => _contentValidation; set => _contentValidation.Assign(value); } - private readonly BicepValue _contentValidation; + public WebTestContentValidation ContentValidation + { + get { Initialize(); return _contentValidation!; } + set { Initialize(); AssignOrReplace(ref _contentValidation, value); } + } + private WebTestContentValidation? _contentValidation; /// /// Checks to see if the SSL cert is still valid. /// - public BicepValue CheckSsl { get => _checkSsl; set => _checkSsl.Assign(value); } - private readonly BicepValue _checkSsl; + public BicepValue CheckSsl + { + get { Initialize(); return _checkSsl!; } + set { Initialize(); _checkSsl!.Assign(value); } + } + private BicepValue? _checkSsl; /// /// A number of days to check still remain before the the existing SSL cert /// expires. Value must be positive and the SSLCheck must be set to true. /// - public BicepValue SslCertRemainingLifetimeCheck { get => _sslCertRemainingLifetimeCheck; set => _sslCertRemainingLifetimeCheck.Assign(value); } - private readonly BicepValue _sslCertRemainingLifetimeCheck; + public BicepValue SslCertRemainingLifetimeCheck + { + get { Initialize(); return _sslCertRemainingLifetimeCheck!; } + set { Initialize(); _sslCertRemainingLifetimeCheck!.Assign(value); } + } + private BicepValue? _sslCertRemainingLifetimeCheck; /// /// Validate that the WebTest returns the http status code provided. /// - public BicepValue ExpectedHttpStatusCode { get => _expectedHttpStatusCode; set => _expectedHttpStatusCode.Assign(value); } - private readonly BicepValue _expectedHttpStatusCode; + public BicepValue ExpectedHttpStatusCode + { + get { Initialize(); return _expectedHttpStatusCode!; } + set { Initialize(); _expectedHttpStatusCode!.Assign(value); } + } + private BicepValue? _expectedHttpStatusCode; /// /// When set, validation will ignore the status code. /// - public BicepValue IgnoreHttpStatusCode { get => _ignoreHttpStatusCode; set => _ignoreHttpStatusCode.Assign(value); } - private readonly BicepValue _ignoreHttpStatusCode; + public BicepValue IgnoreHttpStatusCode + { + get { Initialize(); return _ignoreHttpStatusCode!; } + set { Initialize(); _ignoreHttpStatusCode!.Assign(value); } + } + private BicepValue? _ignoreHttpStatusCode; /// /// Creates a new WebTestValidationRules. /// public WebTestValidationRules() { - _contentValidation = BicepValue.DefineProperty(this, "ContentValidation", ["ContentValidation"]); - _checkSsl = BicepValue.DefineProperty(this, "CheckSsl", ["SSLCheck"]); - _sslCertRemainingLifetimeCheck = BicepValue.DefineProperty(this, "SslCertRemainingLifetimeCheck", ["SSLCertRemainingLifetimeCheck"]); - _expectedHttpStatusCode = BicepValue.DefineProperty(this, "ExpectedHttpStatusCode", ["ExpectedHttpStatusCode"]); - _ignoreHttpStatusCode = BicepValue.DefineProperty(this, "IgnoreHttpStatusCode", ["IgnoreHttpStatusCode"]); + } + + /// + /// Define all the provisionable properties of WebTestValidationRules. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _contentValidation = DefineModelProperty("ContentValidation", ["ContentValidation"]); + _checkSsl = DefineProperty("CheckSsl", ["SSLCheck"]); + _sslCertRemainingLifetimeCheck = DefineProperty("SslCertRemainingLifetimeCheck", ["SSLCertRemainingLifetimeCheck"]); + _expectedHttpStatusCode = DefineProperty("ExpectedHttpStatusCode", ["ExpectedHttpStatusCode"]); + _ignoreHttpStatusCode = DefineProperty("IgnoreHttpStatusCode", ["IgnoreHttpStatusCode"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WorkbookTemplateGallery.cs b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WorkbookTemplateGallery.cs index 1702c9961c56d..138d213d10e04 100644 --- a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WorkbookTemplateGallery.cs +++ b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WorkbookTemplateGallery.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,70 @@ public partial class WorkbookTemplateGallery : ProvisionableConstruct /// /// Name of the workbook template in the gallery. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Category for the gallery. /// - public BicepValue Category { get => _category; set => _category.Assign(value); } - private readonly BicepValue _category; + public BicepValue Category + { + get { Initialize(); return _category!; } + set { Initialize(); _category!.Assign(value); } + } + private BicepValue? _category; /// /// Type of workbook supported by the workbook template. /// - public BicepValue WorkbookType { get => _workbookType; set => _workbookType.Assign(value); } - private readonly BicepValue _workbookType; + public BicepValue WorkbookType + { + get { Initialize(); return _workbookType!; } + set { Initialize(); _workbookType!.Assign(value); } + } + private BicepValue? _workbookType; /// /// Order of the template within the gallery. /// - public BicepValue Order { get => _order; set => _order.Assign(value); } - private readonly BicepValue _order; + public BicepValue Order + { + get { Initialize(); return _order!; } + set { Initialize(); _order!.Assign(value); } + } + private BicepValue? _order; /// /// Azure resource type supported by the gallery. /// - public BicepValue ResourceType { get => _resourceType; set => _resourceType.Assign(value); } - private readonly BicepValue _resourceType; + public BicepValue ResourceType + { + get { Initialize(); return _resourceType!; } + set { Initialize(); _resourceType!.Assign(value); } + } + private BicepValue? _resourceType; /// /// Creates a new WorkbookTemplateGallery. /// public WorkbookTemplateGallery() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _category = BicepValue.DefineProperty(this, "Category", ["category"]); - _workbookType = BicepValue.DefineProperty(this, "WorkbookType", ["type"]); - _order = BicepValue.DefineProperty(this, "Order", ["order"]); - _resourceType = BicepValue.DefineProperty(this, "ResourceType", ["resourceType"]); + } + + /// + /// Define all the provisionable properties of WorkbookTemplateGallery. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _category = DefineProperty("Category", ["category"]); + _workbookType = DefineProperty("WorkbookType", ["type"]); + _order = DefineProperty("Order", ["order"]); + _resourceType = DefineProperty("ResourceType", ["resourceType"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WorkbookTemplateLocalizedGallery.cs b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WorkbookTemplateLocalizedGallery.cs index 43bdd2a7931a2..02e0860d50741 100644 --- a/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WorkbookTemplateLocalizedGallery.cs +++ b/sdk/provisioning/Azure.Provisioning.ApplicationInsights/src/Generated/Models/WorkbookTemplateLocalizedGallery.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -30,21 +32,38 @@ public partial class WorkbookTemplateLocalizedGallery : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue TemplateData { get => _templateData; set => _templateData.Assign(value); } - private readonly BicepValue _templateData; + public BicepValue TemplateData + { + get { Initialize(); return _templateData!; } + set { Initialize(); _templateData!.Assign(value); } + } + private BicepValue? _templateData; /// /// Workbook galleries supported by the template. /// - public BicepList Galleries { get => _galleries; set => _galleries.Assign(value); } - private readonly BicepList _galleries; + public BicepList Galleries + { + get { Initialize(); return _galleries!; } + set { Initialize(); _galleries!.Assign(value); } + } + private BicepList? _galleries; /// /// Creates a new WorkbookTemplateLocalizedGallery. /// public WorkbookTemplateLocalizedGallery() { - _templateData = BicepValue.DefineProperty(this, "TemplateData", ["templateData"]); - _galleries = BicepList.DefineProperty(this, "Galleries", ["galleries"]); + } + + /// + /// Define all the provisionable properties of + /// WorkbookTemplateLocalizedGallery. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _templateData = DefineProperty("TemplateData", ["templateData"]); + _galleries = DefineListProperty("Galleries", ["galleries"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/api/Azure.Provisioning.CognitiveServices.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/api/Azure.Provisioning.CognitiveServices.netstandard2.0.cs index 4f2e17a75181b..5a6bc291d5098 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/api/Azure.Provisioning.CognitiveServices.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/api/Azure.Provisioning.CognitiveServices.netstandard2.0.cs @@ -6,6 +6,7 @@ public AbusePenalty() { } public Azure.Provisioning.BicepValue Action { get { throw null; } } public Azure.Provisioning.BicepValue Expiration { get { throw null; } } public Azure.Provisioning.BicepValue RateLimitPercentage { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum AbusePenaltyAction { @@ -17,16 +18,17 @@ public partial class CognitiveServicesAccount : Azure.Provisioning.Primitives.Pr public CognitiveServicesAccount(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesAccountProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.CognitiveServices.CognitiveServicesBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.CognitiveServices.CognitiveServicesBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CognitiveServices.CognitiveServicesAccount FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.CognitiveServices.ServiceAccountApiKeys GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -50,9 +52,10 @@ public partial class CognitiveServicesAccountDeployment : Azure.Provisioning.Pri public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.CognitiveServices.CognitiveServicesAccount? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesAccountDeploymentProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CognitiveServices.CognitiveServicesAccountDeployment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -69,23 +72,25 @@ public static partial class ResourceVersions public partial class CognitiveServicesAccountDeploymentModel : Azure.Provisioning.Primitives.ProvisionableConstruct { public CognitiveServicesAccountDeploymentModel() { } - public Azure.Provisioning.BicepValue CallRateLimit { get { throw null; } } + public Azure.Provisioning.CognitiveServices.ServiceAccountCallRateLimit CallRateLimit { get { throw null; } } public Azure.Provisioning.BicepValue Format { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Source { get { throw null; } set { } } public Azure.Provisioning.BicepValue Version { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CognitiveServicesAccountDeploymentProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { public CognitiveServicesAccountDeploymentProperties() { } - public Azure.Provisioning.BicepValue CallRateLimit { get { throw null; } } + public Azure.Provisioning.CognitiveServices.ServiceAccountCallRateLimit CallRateLimit { get { throw null; } } public Azure.Provisioning.BicepDictionary Capabilities { get { throw null; } } - public Azure.Provisioning.BicepValue Model { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesAccountDeploymentModel Model { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue RaiPolicyName { get { throw null; } set { } } public Azure.Provisioning.BicepList RateLimits { get { throw null; } } - public Azure.Provisioning.BicepValue ScaleSettings { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesAccountDeploymentScaleSettings ScaleSettings { get { throw null; } set { } } public Azure.Provisioning.BicepValue VersionUpgradeOption { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CognitiveServicesAccountDeploymentProvisioningState { @@ -104,6 +109,7 @@ public CognitiveServicesAccountDeploymentScaleSettings() { } public Azure.Provisioning.BicepValue ActiveCapacity { get { throw null; } } public Azure.Provisioning.BicepValue Capacity { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScaleType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CognitiveServicesAccountDeploymentScaleType { @@ -113,23 +119,24 @@ public enum CognitiveServicesAccountDeploymentScaleType public partial class CognitiveServicesAccountModel : Azure.Provisioning.CognitiveServices.CognitiveServicesAccountDeploymentModel { public CognitiveServicesAccountModel() { } - public Azure.Provisioning.BicepValue BaseModel { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesAccountDeploymentModel BaseModel { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary Capabilities { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Deprecation { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.ServiceAccountModelDeprecationInfo Deprecation { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary FinetuneCapabilities { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsDefaultVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue LifecycleStatus { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxCapacity { get { throw null; } set { } } public Azure.Provisioning.BicepList Skus { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class CognitiveServicesAccountProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { public CognitiveServicesAccountProperties() { } - public Azure.Provisioning.BicepValue AbusePenalty { get { throw null; } } + public Azure.Provisioning.CognitiveServices.AbusePenalty AbusePenalty { get { throw null; } } public Azure.Provisioning.BicepList AllowedFqdnList { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ApiProperties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CallRateLimit { get { throw null; } } + public Azure.Provisioning.CognitiveServices.ServiceAccountApiProperties ApiProperties { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.ServiceAccountCallRateLimit CallRateLimit { get { throw null; } } public Azure.Provisioning.BicepList Capabilities { get { throw null; } } public Azure.Provisioning.BicepList CommitmentPlanAssociations { get { throw null; } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } @@ -137,22 +144,23 @@ public CognitiveServicesAccountProperties() { } public Azure.Provisioning.BicepValue DeletedOn { get { throw null; } } public Azure.Provisioning.BicepValue DisableLocalAuth { get { throw null; } set { } } public Azure.Provisioning.BicepValue EnableDynamicThrottling { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Encryption { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.ServiceAccountEncryptionProperties Encryption { get { throw null; } set { } } public Azure.Provisioning.BicepValue Endpoint { get { throw null; } } public Azure.Provisioning.BicepDictionary Endpoints { get { throw null; } } public Azure.Provisioning.BicepValue IsMigrated { get { throw null; } } - public Azure.Provisioning.BicepValue Locations { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesMultiRegionSettings Locations { get { throw null; } set { } } public Azure.Provisioning.BicepValue MigrationToken { get { throw null; } set { } } - public Azure.Provisioning.BicepValue NetworkAcls { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesNetworkRuleSet NetworkAcls { get { throw null; } set { } } public Azure.Provisioning.BicepList PrivateEndpointConnections { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } - public Azure.Provisioning.BicepValue QuotaLimit { get { throw null; } } + public Azure.Provisioning.CognitiveServices.ServiceAccountQuotaLimit QuotaLimit { get { throw null; } } public Azure.Provisioning.BicepValue Restore { get { throw null; } set { } } public Azure.Provisioning.BicepValue RestrictOutboundNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScheduledPurgeDate { get { throw null; } } - public Azure.Provisioning.BicepValue SkuChangeInfo { get { throw null; } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesSkuChangeInfo SkuChangeInfo { get { throw null; } } public Azure.Provisioning.BicepList UserOwnedStorage { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct CognitiveServicesBuiltInRole : System.IEquatable @@ -197,6 +205,7 @@ public CognitiveServicesCapacityConfig() { } public Azure.Provisioning.BicepValue Maximum { get { throw null; } set { } } public Azure.Provisioning.BicepValue Minimum { get { throw null; } set { } } public Azure.Provisioning.BicepValue Step { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CognitiveServicesCommitmentPlan : Azure.Provisioning.Primitives.ProvisionableResource { @@ -206,10 +215,11 @@ public partial class CognitiveServicesCommitmentPlan : Azure.Provisioning.Primit public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CognitiveServices.CommitmentPlanProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CognitiveServices.CognitiveServicesCommitmentPlan FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -222,6 +232,7 @@ public partial class CognitiveServicesIPRule : Azure.Provisioning.Primitives.Pro { public CognitiveServicesIPRule() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CognitiveServicesKeyVaultProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -230,21 +241,24 @@ public CognitiveServicesKeyVaultProperties() { } public Azure.Provisioning.BicepValue KeyName { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVaultUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVersion { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CognitiveServicesModelSku : Azure.Provisioning.Primitives.ProvisionableConstruct { public CognitiveServicesModelSku() { } - public Azure.Provisioning.BicepValue Capacity { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesCapacityConfig Capacity { get { throw null; } set { } } public Azure.Provisioning.BicepValue DeprecationOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepList RateLimits { get { throw null; } } public Azure.Provisioning.BicepValue UsageName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CognitiveServicesMultiRegionSettings : Azure.Provisioning.Primitives.ProvisionableConstruct { public CognitiveServicesMultiRegionSettings() { } public Azure.Provisioning.BicepList Regions { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoutingMethod { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CognitiveServicesNetworkRuleAction { @@ -257,11 +271,12 @@ public CognitiveServicesNetworkRuleSet() { } public Azure.Provisioning.BicepValue DefaultAction { get { throw null; } set { } } public Azure.Provisioning.BicepList IPRules { get { throw null; } set { } } public Azure.Provisioning.BicepList VirtualNetworkRules { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CognitiveServicesPrivateEndpointConnectionData : Azure.Provisioning.Primitives.ProvisionableConstruct { public CognitiveServicesPrivateEndpointConnectionData() { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepList GroupIds { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } @@ -269,7 +284,8 @@ public CognitiveServicesPrivateEndpointConnectionData() { } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum CognitiveServicesPrivateEndpointConnectionProvisioningState { @@ -290,6 +306,7 @@ public CognitiveServicesPrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CognitiveServicesRegionSetting : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -297,6 +314,7 @@ public CognitiveServicesRegionSetting() { } public Azure.Provisioning.BicepValue Customsubdomain { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CognitiveServicesRoutingMethod { @@ -312,12 +330,14 @@ public CognitiveServicesSku() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Size { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CognitiveServicesSkuCapability : Azure.Provisioning.Primitives.ProvisionableConstruct { public CognitiveServicesSkuCapability() { } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue Value { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class CognitiveServicesSkuChangeInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -325,6 +345,7 @@ public CognitiveServicesSkuChangeInfo() { } public Azure.Provisioning.BicepValue CountOfDowngrades { get { throw null; } } public Azure.Provisioning.BicepValue CountOfUpgradesAfterDowngrades { get { throw null; } } public Azure.Provisioning.BicepValue LastChangedOn { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum CognitiveServicesSkuTier { @@ -340,15 +361,17 @@ public CognitiveServicesVirtualNetworkRule() { } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } public Azure.Provisioning.BicepValue IgnoreMissingVnetServiceEndpoint { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CommitmentPeriod : Azure.Provisioning.Primitives.ProvisionableConstruct { public CommitmentPeriod() { } public Azure.Provisioning.BicepValue Count { get { throw null; } set { } } public Azure.Provisioning.BicepValue EndOn { get { throw null; } } - public Azure.Provisioning.BicepValue Quota { get { throw null; } } + public Azure.Provisioning.CognitiveServices.CommitmentQuota Quota { get { throw null; } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CommitmentPlan : Azure.Provisioning.Primitives.ProvisionableResource { @@ -359,10 +382,11 @@ public partial class CommitmentPlan : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.CognitiveServices.CognitiveServicesAccount? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CognitiveServices.CommitmentPlanProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CognitiveServices.CommitmentPlan FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -384,7 +408,8 @@ public partial class CommitmentPlanAccountAssociation : Azure.Provisioning.Primi public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.CognitiveServices.CognitiveServicesCommitmentPlan? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CognitiveServices.CommitmentPlanAccountAssociation FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -398,19 +423,21 @@ public partial class CommitmentPlanAssociation : Azure.Provisioning.Primitives.P public CommitmentPlanAssociation() { } public Azure.Provisioning.BicepValue CommitmentPlanId { get { throw null; } } public Azure.Provisioning.BicepValue CommitmentPlanLocation { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class CommitmentPlanProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { public CommitmentPlanProperties() { } public Azure.Provisioning.BicepValue AutoRenew { get { throw null; } set { } } public Azure.Provisioning.BicepValue CommitmentPlanGuid { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Current { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CommitmentPeriod Current { get { throw null; } set { } } public Azure.Provisioning.BicepValue HostingModel { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Last { get { throw null; } } - public Azure.Provisioning.BicepValue Next { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CommitmentPeriod Last { get { throw null; } } + public Azure.Provisioning.CognitiveServices.CommitmentPeriod Next { get { throw null; } set { } } public Azure.Provisioning.BicepValue PlanType { get { throw null; } set { } } public Azure.Provisioning.BicepList ProvisioningIssues { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum CommitmentPlanProvisioningState { @@ -427,6 +454,7 @@ public partial class CommitmentQuota : Azure.Provisioning.Primitives.Provisionab public CommitmentQuota() { } public Azure.Provisioning.BicepValue Quantity { get { throw null; } } public Azure.Provisioning.BicepValue Unit { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum DeploymentModelVersionUpgradeOption { @@ -444,8 +472,7 @@ public partial class ServiceAccountApiKeys : Azure.Provisioning.Primitives.Provi public ServiceAccountApiKeys() { } public Azure.Provisioning.BicepValue Key1 { get { throw null; } } public Azure.Provisioning.BicepValue Key2 { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.CognitiveServices.ServiceAccountApiKeys FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } } public partial class ServiceAccountApiProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -461,6 +488,7 @@ public ServiceAccountApiProperties() { } public Azure.Provisioning.BicepValue StorageAccountConnectionString { get { throw null; } set { } } public Azure.Provisioning.BicepValue SuperUser { get { throw null; } set { } } public Azure.Provisioning.BicepValue WebsiteName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ServiceAccountCallRateLimit : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -468,6 +496,7 @@ public ServiceAccountCallRateLimit() { } public Azure.Provisioning.BicepValue Count { get { throw null; } } public Azure.Provisioning.BicepValue RenewalPeriod { get { throw null; } } public Azure.Provisioning.BicepList Rules { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ServiceAccountEncryptionKeySource { @@ -480,7 +509,8 @@ public partial class ServiceAccountEncryptionProperties : Azure.Provisioning.Pri { public ServiceAccountEncryptionProperties() { } public Azure.Provisioning.BicepValue KeySource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue KeyVaultProperties { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesKeyVaultProperties KeyVaultProperties { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ServiceAccountHostingModel { @@ -494,6 +524,7 @@ public partial class ServiceAccountModelDeprecationInfo : Azure.Provisioning.Pri public ServiceAccountModelDeprecationInfo() { } public Azure.Provisioning.BicepValue FineTuneOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue InferenceOn { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ServiceAccountProvisioningState { @@ -517,12 +548,14 @@ public ServiceAccountQuotaLimit() { } public Azure.Provisioning.BicepValue Count { get { throw null; } } public Azure.Provisioning.BicepValue RenewalPeriod { get { throw null; } } public Azure.Provisioning.BicepList Rules { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ServiceAccountThrottlingMatchPattern : Azure.Provisioning.Primitives.ProvisionableConstruct { public ServiceAccountThrottlingMatchPattern() { } public Azure.Provisioning.BicepValue Method { get { throw null; } } public Azure.Provisioning.BicepValue Path { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ServiceAccountThrottlingRule : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -533,11 +566,13 @@ public ServiceAccountThrottlingRule() { } public Azure.Provisioning.BicepList MatchPatterns { get { throw null; } } public Azure.Provisioning.BicepValue MinCount { get { throw null; } } public Azure.Provisioning.BicepValue RenewalPeriod { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ServiceAccountUserOwnedStorage : Azure.Provisioning.Primitives.ProvisionableConstruct { public ServiceAccountUserOwnedStorage() { } public Azure.Provisioning.BicepValue IdentityClientId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccount.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccount.cs index 8e9134de65455..662325868c7b3 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccount.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccount.cs @@ -26,62 +26,99 @@ public partial class CognitiveServicesAccount : ProvisionableResource /// /// The name of Cognitive Services account. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// The Kind of the resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Properties of Cognitive Services account. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public CognitiveServicesAccountProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private CognitiveServicesAccountProperties? _properties; /// /// The resource model definition representing SKU. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public CognitiveServicesSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private CognitiveServicesSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Resource Etag. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new CognitiveServicesAccount. @@ -96,16 +133,23 @@ public partial class CognitiveServicesAccount : ProvisionableResource public CognitiveServicesAccount(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts", resourceVersion ?? "2024-10-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of CognitiveServicesAccount. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _kind = DefineProperty("Kind", ["kind"]); + _properties = DefineModelProperty("Properties", ["properties"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _eTag = DefineProperty("ETag", ["etag"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// @@ -180,9 +224,12 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this CognitiveServicesAccount resource. /// /// The keys for this CognitiveServicesAccount resource. - public ServiceAccountApiKeys GetKeys() => - ServiceAccountApiKeys.FromExpression( - new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys"))); + public ServiceAccountApiKeys GetKeys() + { + ServiceAccountApiKeys key = new(); + ((IBicepValue)key).Expression = new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")); + return key; + } /// /// Creates a role assignment for a user-assigned identity that grants diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccountDeployment.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccountDeployment.cs index 1be3fe99a0485..2db18bfaece77 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccountDeployment.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccountDeployment.cs @@ -23,44 +23,69 @@ public partial class CognitiveServicesAccountDeployment : ProvisionableResource /// The name of the deployment associated with the Cognitive Services /// Account. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Properties of Cognitive Services account deployment. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public CognitiveServicesAccountDeploymentProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private CognitiveServicesAccountDeploymentProperties? _properties; /// /// The resource model definition representing SKU. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public CognitiveServicesSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private CognitiveServicesSku? _sku; /// /// Resource Etag. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CognitiveServicesAccount. /// - public CognitiveServicesAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CognitiveServicesAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CognitiveServicesAccountDeployment. @@ -75,13 +100,21 @@ public partial class CognitiveServicesAccountDeployment : ProvisionableResource public CognitiveServicesAccountDeployment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/deployments", resourceVersion ?? "2024-10-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesAccountDeployment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _eTag = DefineProperty("ETag", ["etag"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesCommitmentPlan.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesCommitmentPlan.cs index e718a28912803..059ea58f2740b 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesCommitmentPlan.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesCommitmentPlan.cs @@ -23,56 +23,89 @@ public partial class CognitiveServicesCommitmentPlan : ProvisionableResource /// The name of the commitmentPlan associated with the Cognitive Services /// Account. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The Kind of the resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Properties of Cognitive Services account commitment plan. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public CommitmentPlanProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private CommitmentPlanProperties? _properties; /// /// The resource model definition representing SKU. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public CognitiveServicesSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private CognitiveServicesSku? _sku; /// /// Resource tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Resource Etag. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new CognitiveServicesCommitmentPlan. @@ -87,15 +120,23 @@ public partial class CognitiveServicesCommitmentPlan : ProvisionableResource public CognitiveServicesCommitmentPlan(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.CognitiveServices/commitmentPlans", resourceVersion ?? "2024-10-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _location = BicepValue.DefineProperty(this, "Location", ["location"]); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesCommitmentPlan. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"]); + _location = DefineProperty("Location", ["location"]); + _properties = DefineModelProperty("Properties", ["properties"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _eTag = DefineProperty("ETag", ["etag"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlan.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlan.cs index 8c7d3c494dc3d..7f03caebed434 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlan.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlan.cs @@ -23,62 +23,99 @@ public partial class CommitmentPlan : ProvisionableResource /// The name of the commitmentPlan associated with the Cognitive Services /// Account. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The Kind of the resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Properties of Cognitive Services account commitment plan. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public CommitmentPlanProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private CommitmentPlanProperties? _properties; /// /// The resource model definition representing SKU. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public CognitiveServicesSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private CognitiveServicesSku? _sku; /// /// Resource tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Resource Etag. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CognitiveServicesAccount. /// - public CognitiveServicesAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CognitiveServicesAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CommitmentPlan. @@ -93,16 +130,23 @@ public partial class CommitmentPlan : ProvisionableResource public CommitmentPlan(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/commitmentPlans", resourceVersion ?? "2024-10-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _location = BicepValue.DefineProperty(this, "Location", ["location"]); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CommitmentPlan. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"]); + _location = DefineProperty("Location", ["location"]); + _properties = DefineModelProperty("Properties", ["properties"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _eTag = DefineProperty("ETag", ["etag"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlanAccountAssociation.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlanAccountAssociation.cs index 68398f2acb568..9e5b132b9f30d 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlanAccountAssociation.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlanAccountAssociation.cs @@ -22,38 +22,59 @@ public partial class CommitmentPlanAccountAssociation : ProvisionableResource /// The name of the commitment plan association with the Cognitive Services /// Account. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The Azure resource id of the account. /// - public BicepValue AccountId { get => _accountId; set => _accountId.Assign(value); } - private readonly BicepValue _accountId; + public BicepValue AccountId + { + get { Initialize(); return _accountId!; } + set { Initialize(); _accountId!.Assign(value); } + } + private BicepValue? _accountId; /// /// Resource Etag. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CognitiveServicesCommitmentPlan. /// - public CognitiveServicesCommitmentPlan? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CognitiveServicesCommitmentPlan? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CommitmentPlanAccountAssociation. @@ -68,12 +89,20 @@ public partial class CommitmentPlanAccountAssociation : ProvisionableResource public CommitmentPlanAccountAssociation(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.CognitiveServices/commitmentPlans/accountAssociations", resourceVersion ?? "2024-10-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _accountId = BicepValue.DefineProperty(this, "AccountId", ["properties", "accountId"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// CommitmentPlanAccountAssociation. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _accountId = DefineProperty("AccountId", ["properties", "accountId"]); + _eTag = DefineProperty("ETag", ["etag"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AbusePenalty.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AbusePenalty.cs index 3ea717511d425..ca86ee5a91f66 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AbusePenalty.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AbusePenalty.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,45 @@ public partial class AbusePenalty : ProvisionableConstruct /// /// The action of AbusePenalty. /// - public BicepValue Action { get => _action; } - private readonly BicepValue _action; + public BicepValue Action + { + get { Initialize(); return _action!; } + } + private BicepValue? _action; /// /// The percentage of rate limit. /// - public BicepValue RateLimitPercentage { get => _rateLimitPercentage; } - private readonly BicepValue _rateLimitPercentage; + public BicepValue RateLimitPercentage + { + get { Initialize(); return _rateLimitPercentage!; } + } + private BicepValue? _rateLimitPercentage; /// /// The datetime of expiration of the AbusePenalty. /// - public BicepValue Expiration { get => _expiration; } - private readonly BicepValue _expiration; + public BicepValue Expiration + { + get { Initialize(); return _expiration!; } + } + private BicepValue? _expiration; /// /// Creates a new AbusePenalty. /// public AbusePenalty() { - _action = BicepValue.DefineProperty(this, "Action", ["action"], isOutput: true); - _rateLimitPercentage = BicepValue.DefineProperty(this, "RateLimitPercentage", ["rateLimitPercentage"], isOutput: true); - _expiration = BicepValue.DefineProperty(this, "Expiration", ["expiration"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AbusePenalty. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _action = DefineProperty("Action", ["action"], isOutput: true); + _rateLimitPercentage = DefineProperty("RateLimitPercentage", ["rateLimitPercentage"], isOutput: true); + _expiration = DefineProperty("Expiration", ["expiration"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentModel.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentModel.cs index 5facb04999c9f..8e9ddcb2a77fe 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentModel.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentModel.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,14 +19,22 @@ public partial class CognitiveServicesAccountDeploymentModel : ProvisionableCons /// /// Deployment model format. /// - public BicepValue Format { get => _format; set => _format.Assign(value); } - private readonly BicepValue _format; + public BicepValue Format + { + get { Initialize(); return _format!; } + set { Initialize(); _format!.Assign(value); } + } + private BicepValue? _format; /// /// Deployment model name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Optional. Deployment model version. If version is not specified, a @@ -33,30 +43,50 @@ public partial class CognitiveServicesAccountDeploymentModel : ProvisionableCons /// for a model. Default version for a model could be found from list /// models API. /// - public BicepValue Version { get => _version; set => _version.Assign(value); } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + set { Initialize(); _version!.Assign(value); } + } + private BicepValue? _version; /// /// Optional. Deployment model source ARM resource ID. /// - public BicepValue Source { get => _source; set => _source.Assign(value); } - private readonly BicepValue _source; + public BicepValue Source + { + get { Initialize(); return _source!; } + set { Initialize(); _source!.Assign(value); } + } + private BicepValue? _source; /// /// The call rate limit Cognitive Services account. /// - public BicepValue CallRateLimit { get => _callRateLimit; } - private readonly BicepValue _callRateLimit; + public ServiceAccountCallRateLimit CallRateLimit + { + get { Initialize(); return _callRateLimit!; } + } + private ServiceAccountCallRateLimit? _callRateLimit; /// /// Creates a new CognitiveServicesAccountDeploymentModel. /// public CognitiveServicesAccountDeploymentModel() { - _format = BicepValue.DefineProperty(this, "Format", ["format"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _version = BicepValue.DefineProperty(this, "Version", ["version"]); - _source = BicepValue.DefineProperty(this, "Source", ["source"]); - _callRateLimit = BicepValue.DefineProperty(this, "CallRateLimit", ["callRateLimit"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesAccountDeploymentModel. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _format = DefineProperty("Format", ["format"]); + _name = DefineProperty("Name", ["name"]); + _version = DefineProperty("Version", ["version"]); + _source = DefineProperty("Source", ["source"]); + _callRateLimit = DefineModelProperty("CallRateLimit", ["callRateLimit"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentProperties.cs index 8bd5267ca19b7..572b88e787b96 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,63 +19,100 @@ public partial class CognitiveServicesAccountDeploymentProperties : Provisionabl /// /// Gets the status of the resource at the time the operation was called. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Properties of Cognitive Services account deployment model. /// - public BicepValue Model { get => _model; set => _model.Assign(value); } - private readonly BicepValue _model; + public CognitiveServicesAccountDeploymentModel Model + { + get { Initialize(); return _model!; } + set { Initialize(); AssignOrReplace(ref _model, value); } + } + private CognitiveServicesAccountDeploymentModel? _model; /// /// Properties of Cognitive Services account deployment model. /// - public BicepValue ScaleSettings { get => _scaleSettings; set => _scaleSettings.Assign(value); } - private readonly BicepValue _scaleSettings; + public CognitiveServicesAccountDeploymentScaleSettings ScaleSettings + { + get { Initialize(); return _scaleSettings!; } + set { Initialize(); AssignOrReplace(ref _scaleSettings, value); } + } + private CognitiveServicesAccountDeploymentScaleSettings? _scaleSettings; /// /// The capabilities. /// - public BicepDictionary Capabilities { get => _capabilities; } - private readonly BicepDictionary _capabilities; + public BicepDictionary Capabilities + { + get { Initialize(); return _capabilities!; } + } + private BicepDictionary? _capabilities; /// /// The name of RAI policy. /// - public BicepValue RaiPolicyName { get => _raiPolicyName; set => _raiPolicyName.Assign(value); } - private readonly BicepValue _raiPolicyName; + public BicepValue RaiPolicyName + { + get { Initialize(); return _raiPolicyName!; } + set { Initialize(); _raiPolicyName!.Assign(value); } + } + private BicepValue? _raiPolicyName; /// /// The call rate limit Cognitive Services account. /// - public BicepValue CallRateLimit { get => _callRateLimit; } - private readonly BicepValue _callRateLimit; + public ServiceAccountCallRateLimit CallRateLimit + { + get { Initialize(); return _callRateLimit!; } + } + private ServiceAccountCallRateLimit? _callRateLimit; /// /// Gets the rate limits. /// - public BicepList RateLimits { get => _rateLimits; } - private readonly BicepList _rateLimits; + public BicepList RateLimits + { + get { Initialize(); return _rateLimits!; } + } + private BicepList? _rateLimits; /// /// Deployment model version upgrade option. /// - public BicepValue VersionUpgradeOption { get => _versionUpgradeOption; set => _versionUpgradeOption.Assign(value); } - private readonly BicepValue _versionUpgradeOption; + public BicepValue VersionUpgradeOption + { + get { Initialize(); return _versionUpgradeOption!; } + set { Initialize(); _versionUpgradeOption!.Assign(value); } + } + private BicepValue? _versionUpgradeOption; /// /// Creates a new CognitiveServicesAccountDeploymentProperties. /// public CognitiveServicesAccountDeploymentProperties() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); - _model = BicepValue.DefineProperty(this, "Model", ["model"]); - _scaleSettings = BicepValue.DefineProperty(this, "ScaleSettings", ["scaleSettings"]); - _capabilities = BicepDictionary.DefineProperty(this, "Capabilities", ["capabilities"], isOutput: true); - _raiPolicyName = BicepValue.DefineProperty(this, "RaiPolicyName", ["raiPolicyName"]); - _callRateLimit = BicepValue.DefineProperty(this, "CallRateLimit", ["callRateLimit"], isOutput: true); - _rateLimits = BicepList.DefineProperty(this, "RateLimits", ["rateLimits"], isOutput: true); - _versionUpgradeOption = BicepValue.DefineProperty(this, "VersionUpgradeOption", ["versionUpgradeOption"]); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesAccountDeploymentProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _model = DefineModelProperty("Model", ["model"]); + _scaleSettings = DefineModelProperty("ScaleSettings", ["scaleSettings"]); + _capabilities = DefineDictionaryProperty("Capabilities", ["capabilities"], isOutput: true); + _raiPolicyName = DefineProperty("RaiPolicyName", ["raiPolicyName"]); + _callRateLimit = DefineModelProperty("CallRateLimit", ["callRateLimit"], isOutput: true); + _rateLimits = DefineListProperty("RateLimits", ["rateLimits"], isOutput: true); + _versionUpgradeOption = DefineProperty("VersionUpgradeOption", ["versionUpgradeOption"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentScaleSettings.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentScaleSettings.cs index 731f0bb771a78..12a9d5abe19f4 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentScaleSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentScaleSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,49 @@ public partial class CognitiveServicesAccountDeploymentScaleSettings : Provision /// /// Deployment scale type. /// - public BicepValue ScaleType { get => _scaleType; set => _scaleType.Assign(value); } - private readonly BicepValue _scaleType; + public BicepValue ScaleType + { + get { Initialize(); return _scaleType!; } + set { Initialize(); _scaleType!.Assign(value); } + } + private BicepValue? _scaleType; /// /// Deployment capacity. /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// Deployment active capacity. This value might be different from /// `capacity` if customer recently updated `capacity`. /// - public BicepValue ActiveCapacity { get => _activeCapacity; } - private readonly BicepValue _activeCapacity; + public BicepValue ActiveCapacity + { + get { Initialize(); return _activeCapacity!; } + } + private BicepValue? _activeCapacity; /// /// Creates a new CognitiveServicesAccountDeploymentScaleSettings. /// public CognitiveServicesAccountDeploymentScaleSettings() { - _scaleType = BicepValue.DefineProperty(this, "ScaleType", ["scaleType"]); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); - _activeCapacity = BicepValue.DefineProperty(this, "ActiveCapacity", ["activeCapacity"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesAccountDeploymentScaleSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _scaleType = DefineProperty("ScaleType", ["scaleType"]); + _capacity = DefineProperty("Capacity", ["capacity"]); + _activeCapacity = DefineProperty("ActiveCapacity", ["activeCapacity"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountModel.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountModel.cs index d6a454814df23..a152a4707b5e9 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountModel.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountModel.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -18,70 +20,114 @@ public partial class CognitiveServicesAccountModel : CognitiveServicesAccountDep /// /// Base Model Identifier. /// - public BicepValue BaseModel { get => _baseModel; set => _baseModel.Assign(value); } - private readonly BicepValue _baseModel; + public CognitiveServicesAccountDeploymentModel BaseModel + { + get { Initialize(); return _baseModel!; } + set { Initialize(); AssignOrReplace(ref _baseModel, value); } + } + private CognitiveServicesAccountDeploymentModel? _baseModel; /// /// If the model is default version. /// - public BicepValue IsDefaultVersion { get => _isDefaultVersion; set => _isDefaultVersion.Assign(value); } - private readonly BicepValue _isDefaultVersion; + public BicepValue IsDefaultVersion + { + get { Initialize(); return _isDefaultVersion!; } + set { Initialize(); _isDefaultVersion!.Assign(value); } + } + private BicepValue? _isDefaultVersion; /// /// The list of Model Sku. /// - public BicepList Skus { get => _skus; set => _skus.Assign(value); } - private readonly BicepList _skus; + public BicepList Skus + { + get { Initialize(); return _skus!; } + set { Initialize(); _skus!.Assign(value); } + } + private BicepList? _skus; /// /// The max capacity. /// - public BicepValue MaxCapacity { get => _maxCapacity; set => _maxCapacity.Assign(value); } - private readonly BicepValue _maxCapacity; + public BicepValue MaxCapacity + { + get { Initialize(); return _maxCapacity!; } + set { Initialize(); _maxCapacity!.Assign(value); } + } + private BicepValue? _maxCapacity; /// /// The capabilities. /// - public BicepDictionary Capabilities { get => _capabilities; set => _capabilities.Assign(value); } - private readonly BicepDictionary _capabilities; + public BicepDictionary Capabilities + { + get { Initialize(); return _capabilities!; } + set { Initialize(); _capabilities!.Assign(value); } + } + private BicepDictionary? _capabilities; /// /// The capabilities for finetune models. /// - public BicepDictionary FinetuneCapabilities { get => _finetuneCapabilities; set => _finetuneCapabilities.Assign(value); } - private readonly BicepDictionary _finetuneCapabilities; + public BicepDictionary FinetuneCapabilities + { + get { Initialize(); return _finetuneCapabilities!; } + set { Initialize(); _finetuneCapabilities!.Assign(value); } + } + private BicepDictionary? _finetuneCapabilities; /// /// Cognitive Services account ModelDeprecationInfo. /// - public BicepValue Deprecation { get => _deprecation; set => _deprecation.Assign(value); } - private readonly BicepValue _deprecation; + public ServiceAccountModelDeprecationInfo Deprecation + { + get { Initialize(); return _deprecation!; } + set { Initialize(); AssignOrReplace(ref _deprecation, value); } + } + private ServiceAccountModelDeprecationInfo? _deprecation; /// /// Model lifecycle status. /// - public BicepValue LifecycleStatus { get => _lifecycleStatus; set => _lifecycleStatus.Assign(value); } - private readonly BicepValue _lifecycleStatus; + public BicepValue LifecycleStatus + { + get { Initialize(); return _lifecycleStatus!; } + set { Initialize(); _lifecycleStatus!.Assign(value); } + } + private BicepValue? _lifecycleStatus; /// /// Metadata pertaining to creation and last modification of the resource. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new CognitiveServicesAccountModel. /// public CognitiveServicesAccountModel() : base() { - _baseModel = BicepValue.DefineProperty(this, "BaseModel", ["baseModel"]); - _isDefaultVersion = BicepValue.DefineProperty(this, "IsDefaultVersion", ["isDefaultVersion"]); - _skus = BicepList.DefineProperty(this, "Skus", ["skus"]); - _maxCapacity = BicepValue.DefineProperty(this, "MaxCapacity", ["maxCapacity"]); - _capabilities = BicepDictionary.DefineProperty(this, "Capabilities", ["capabilities"]); - _finetuneCapabilities = BicepDictionary.DefineProperty(this, "FinetuneCapabilities", ["finetuneCapabilities"]); - _deprecation = BicepValue.DefineProperty(this, "Deprecation", ["deprecation"]); - _lifecycleStatus = BicepValue.DefineProperty(this, "LifecycleStatus", ["lifecycleStatus"]); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesAccountModel. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _baseModel = DefineModelProperty("BaseModel", ["baseModel"]); + _isDefaultVersion = DefineProperty("IsDefaultVersion", ["isDefaultVersion"]); + _skus = DefineListProperty("Skus", ["skus"]); + _maxCapacity = DefineProperty("MaxCapacity", ["maxCapacity"]); + _capabilities = DefineDictionaryProperty("Capabilities", ["capabilities"]); + _finetuneCapabilities = DefineDictionaryProperty("FinetuneCapabilities", ["finetuneCapabilities"]); + _deprecation = DefineModelProperty("Deprecation", ["deprecation"]); + _lifecycleStatus = DefineProperty("LifecycleStatus", ["lifecycleStatus"]); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountProperties.cs index aa9fe635bb346..e5858b1808192 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Core; using Azure.Provisioning; @@ -21,200 +23,303 @@ public partial class CognitiveServicesAccountProperties : ProvisionableConstruct /// Gets the status of the cognitive services account at the time the /// operation was called. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Endpoint of the created account. /// - public BicepValue Endpoint { get => _endpoint; } - private readonly BicepValue _endpoint; + public BicepValue Endpoint + { + get { Initialize(); return _endpoint!; } + } + private BicepValue? _endpoint; /// /// Gets the capabilities of the cognitive services account. Each item /// indicates the capability of a specific feature. The values are /// read-only and for reference only. /// - public BicepList Capabilities { get => _capabilities; } - private readonly BicepList _capabilities; + public BicepList Capabilities + { + get { Initialize(); return _capabilities!; } + } + private BicepList? _capabilities; /// /// If the resource is migrated from an existing key. /// - public BicepValue IsMigrated { get => _isMigrated; } - private readonly BicepValue _isMigrated; + public BicepValue IsMigrated + { + get { Initialize(); return _isMigrated!; } + } + private BicepValue? _isMigrated; /// /// Resource migration token. /// - public BicepValue MigrationToken { get => _migrationToken; set => _migrationToken.Assign(value); } - private readonly BicepValue _migrationToken; + public BicepValue MigrationToken + { + get { Initialize(); return _migrationToken!; } + set { Initialize(); _migrationToken!.Assign(value); } + } + private BicepValue? _migrationToken; /// /// Sku change info of account. /// - public BicepValue SkuChangeInfo { get => _skuChangeInfo; } - private readonly BicepValue _skuChangeInfo; + public CognitiveServicesSkuChangeInfo SkuChangeInfo + { + get { Initialize(); return _skuChangeInfo!; } + } + private CognitiveServicesSkuChangeInfo? _skuChangeInfo; /// /// Optional subdomain name used for token-based authentication. /// - public BicepValue CustomSubDomainName { get => _customSubDomainName; set => _customSubDomainName.Assign(value); } - private readonly BicepValue _customSubDomainName; + public BicepValue CustomSubDomainName + { + get { Initialize(); return _customSubDomainName!; } + set { Initialize(); _customSubDomainName!.Assign(value); } + } + private BicepValue? _customSubDomainName; /// /// A collection of rules governing the accessibility from specific network /// locations. /// - public BicepValue NetworkAcls { get => _networkAcls; set => _networkAcls.Assign(value); } - private readonly BicepValue _networkAcls; + public CognitiveServicesNetworkRuleSet NetworkAcls + { + get { Initialize(); return _networkAcls!; } + set { Initialize(); AssignOrReplace(ref _networkAcls, value); } + } + private CognitiveServicesNetworkRuleSet? _networkAcls; /// /// The encryption properties for this resource. /// - public BicepValue Encryption { get => _encryption; set => _encryption.Assign(value); } - private readonly BicepValue _encryption; + public ServiceAccountEncryptionProperties Encryption + { + get { Initialize(); return _encryption!; } + set { Initialize(); AssignOrReplace(ref _encryption, value); } + } + private ServiceAccountEncryptionProperties? _encryption; /// /// The storage accounts for this resource. /// - public BicepList UserOwnedStorage { get => _userOwnedStorage; set => _userOwnedStorage.Assign(value); } - private readonly BicepList _userOwnedStorage; + public BicepList UserOwnedStorage + { + get { Initialize(); return _userOwnedStorage!; } + set { Initialize(); _userOwnedStorage!.Assign(value); } + } + private BicepList? _userOwnedStorage; /// /// The private endpoint connection associated with the Cognitive Services /// account. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// Whether or not public endpoint access is allowed for this account. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// The api properties for special APIs. /// - public BicepValue ApiProperties { get => _apiProperties; set => _apiProperties.Assign(value); } - private readonly BicepValue _apiProperties; + public ServiceAccountApiProperties ApiProperties + { + get { Initialize(); return _apiProperties!; } + set { Initialize(); AssignOrReplace(ref _apiProperties, value); } + } + private ServiceAccountApiProperties? _apiProperties; /// /// Gets the date of cognitive services account creation. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// The call rate limit Cognitive Services account. /// - public BicepValue CallRateLimit { get => _callRateLimit; } - private readonly BicepValue _callRateLimit; + public ServiceAccountCallRateLimit CallRateLimit + { + get { Initialize(); return _callRateLimit!; } + } + private ServiceAccountCallRateLimit? _callRateLimit; /// /// The flag to enable dynamic throttling. /// - public BicepValue EnableDynamicThrottling { get => _enableDynamicThrottling; set => _enableDynamicThrottling.Assign(value); } - private readonly BicepValue _enableDynamicThrottling; + public BicepValue EnableDynamicThrottling + { + get { Initialize(); return _enableDynamicThrottling!; } + set { Initialize(); _enableDynamicThrottling!.Assign(value); } + } + private BicepValue? _enableDynamicThrottling; /// /// Gets the quota limit. /// - public BicepValue QuotaLimit { get => _quotaLimit; } - private readonly BicepValue _quotaLimit; + public ServiceAccountQuotaLimit QuotaLimit + { + get { Initialize(); return _quotaLimit!; } + } + private ServiceAccountQuotaLimit? _quotaLimit; /// /// Gets or sets the restrict outbound network access. /// - public BicepValue RestrictOutboundNetworkAccess { get => _restrictOutboundNetworkAccess; set => _restrictOutboundNetworkAccess.Assign(value); } - private readonly BicepValue _restrictOutboundNetworkAccess; + public BicepValue RestrictOutboundNetworkAccess + { + get { Initialize(); return _restrictOutboundNetworkAccess!; } + set { Initialize(); _restrictOutboundNetworkAccess!.Assign(value); } + } + private BicepValue? _restrictOutboundNetworkAccess; /// /// Gets the allowed fqdn list. /// - public BicepList AllowedFqdnList { get => _allowedFqdnList; set => _allowedFqdnList.Assign(value); } - private readonly BicepList _allowedFqdnList; + public BicepList AllowedFqdnList + { + get { Initialize(); return _allowedFqdnList!; } + set { Initialize(); _allowedFqdnList!.Assign(value); } + } + private BicepList? _allowedFqdnList; /// /// Gets or sets the disable local auth. /// - public BicepValue DisableLocalAuth { get => _disableLocalAuth; set => _disableLocalAuth.Assign(value); } - private readonly BicepValue _disableLocalAuth; + public BicepValue DisableLocalAuth + { + get { Initialize(); return _disableLocalAuth!; } + set { Initialize(); _disableLocalAuth!.Assign(value); } + } + private BicepValue? _disableLocalAuth; /// /// Dictionary of <string>. /// - public BicepDictionary Endpoints { get => _endpoints; } - private readonly BicepDictionary _endpoints; + public BicepDictionary Endpoints + { + get { Initialize(); return _endpoints!; } + } + private BicepDictionary? _endpoints; /// /// Gets or sets the restore. /// - public BicepValue Restore { get => _restore; set => _restore.Assign(value); } - private readonly BicepValue _restore; + public BicepValue Restore + { + get { Initialize(); return _restore!; } + set { Initialize(); _restore!.Assign(value); } + } + private BicepValue? _restore; /// /// The deletion date, only available for deleted account. /// - public BicepValue DeletedOn { get => _deletedOn; } - private readonly BicepValue _deletedOn; + public BicepValue DeletedOn + { + get { Initialize(); return _deletedOn!; } + } + private BicepValue? _deletedOn; /// /// The scheduled purge date, only available for deleted account. /// - public BicepValue ScheduledPurgeDate { get => _scheduledPurgeDate; } - private readonly BicepValue _scheduledPurgeDate; + public BicepValue ScheduledPurgeDate + { + get { Initialize(); return _scheduledPurgeDate!; } + } + private BicepValue? _scheduledPurgeDate; /// /// The multiregion settings of Cognitive Services account. /// - public BicepValue Locations { get => _locations; set => _locations.Assign(value); } - private readonly BicepValue _locations; + public CognitiveServicesMultiRegionSettings Locations + { + get { Initialize(); return _locations!; } + set { Initialize(); AssignOrReplace(ref _locations, value); } + } + private CognitiveServicesMultiRegionSettings? _locations; /// /// The commitment plan associations of Cognitive Services account. /// - public BicepList CommitmentPlanAssociations { get => _commitmentPlanAssociations; } - private readonly BicepList _commitmentPlanAssociations; + public BicepList CommitmentPlanAssociations + { + get { Initialize(); return _commitmentPlanAssociations!; } + } + private BicepList? _commitmentPlanAssociations; /// /// The abuse penalty. /// - public BicepValue AbusePenalty { get => _abusePenalty; } - private readonly BicepValue _abusePenalty; + public AbusePenalty AbusePenalty + { + get { Initialize(); return _abusePenalty!; } + } + private AbusePenalty? _abusePenalty; /// /// Creates a new CognitiveServicesAccountProperties. /// public CognitiveServicesAccountProperties() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); - _endpoint = BicepValue.DefineProperty(this, "Endpoint", ["endpoint"], isOutput: true); - _capabilities = BicepList.DefineProperty(this, "Capabilities", ["capabilities"], isOutput: true); - _isMigrated = BicepValue.DefineProperty(this, "IsMigrated", ["isMigrated"], isOutput: true); - _migrationToken = BicepValue.DefineProperty(this, "MigrationToken", ["migrationToken"]); - _skuChangeInfo = BicepValue.DefineProperty(this, "SkuChangeInfo", ["skuChangeInfo"], isOutput: true); - _customSubDomainName = BicepValue.DefineProperty(this, "CustomSubDomainName", ["customSubDomainName"]); - _networkAcls = BicepValue.DefineProperty(this, "NetworkAcls", ["networkAcls"]); - _encryption = BicepValue.DefineProperty(this, "Encryption", ["encryption"]); - _userOwnedStorage = BicepList.DefineProperty(this, "UserOwnedStorage", ["userOwnedStorage"]); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["privateEndpointConnections"], isOutput: true); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["publicNetworkAccess"]); - _apiProperties = BicepValue.DefineProperty(this, "ApiProperties", ["apiProperties"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["dateCreated"], isOutput: true); - _callRateLimit = BicepValue.DefineProperty(this, "CallRateLimit", ["callRateLimit"], isOutput: true); - _enableDynamicThrottling = BicepValue.DefineProperty(this, "EnableDynamicThrottling", ["dynamicThrottlingEnabled"]); - _quotaLimit = BicepValue.DefineProperty(this, "QuotaLimit", ["quotaLimit"], isOutput: true); - _restrictOutboundNetworkAccess = BicepValue.DefineProperty(this, "RestrictOutboundNetworkAccess", ["restrictOutboundNetworkAccess"]); - _allowedFqdnList = BicepList.DefineProperty(this, "AllowedFqdnList", ["allowedFqdnList"]); - _disableLocalAuth = BicepValue.DefineProperty(this, "DisableLocalAuth", ["disableLocalAuth"]); - _endpoints = BicepDictionary.DefineProperty(this, "Endpoints", ["endpoints"], isOutput: true); - _restore = BicepValue.DefineProperty(this, "Restore", ["restore"]); - _deletedOn = BicepValue.DefineProperty(this, "DeletedOn", ["deletionDate"], isOutput: true); - _scheduledPurgeDate = BicepValue.DefineProperty(this, "ScheduledPurgeDate", ["scheduledPurgeDate"], isOutput: true); - _locations = BicepValue.DefineProperty(this, "Locations", ["locations"]); - _commitmentPlanAssociations = BicepList.DefineProperty(this, "CommitmentPlanAssociations", ["commitmentPlanAssociations"], isOutput: true); - _abusePenalty = BicepValue.DefineProperty(this, "AbusePenalty", ["abusePenalty"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesAccountProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _endpoint = DefineProperty("Endpoint", ["endpoint"], isOutput: true); + _capabilities = DefineListProperty("Capabilities", ["capabilities"], isOutput: true); + _isMigrated = DefineProperty("IsMigrated", ["isMigrated"], isOutput: true); + _migrationToken = DefineProperty("MigrationToken", ["migrationToken"]); + _skuChangeInfo = DefineModelProperty("SkuChangeInfo", ["skuChangeInfo"], isOutput: true); + _customSubDomainName = DefineProperty("CustomSubDomainName", ["customSubDomainName"]); + _networkAcls = DefineModelProperty("NetworkAcls", ["networkAcls"]); + _encryption = DefineModelProperty("Encryption", ["encryption"]); + _userOwnedStorage = DefineListProperty("UserOwnedStorage", ["userOwnedStorage"]); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["privateEndpointConnections"], isOutput: true); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["publicNetworkAccess"]); + _apiProperties = DefineModelProperty("ApiProperties", ["apiProperties"]); + _createdOn = DefineProperty("CreatedOn", ["dateCreated"], isOutput: true); + _callRateLimit = DefineModelProperty("CallRateLimit", ["callRateLimit"], isOutput: true); + _enableDynamicThrottling = DefineProperty("EnableDynamicThrottling", ["dynamicThrottlingEnabled"]); + _quotaLimit = DefineModelProperty("QuotaLimit", ["quotaLimit"], isOutput: true); + _restrictOutboundNetworkAccess = DefineProperty("RestrictOutboundNetworkAccess", ["restrictOutboundNetworkAccess"]); + _allowedFqdnList = DefineListProperty("AllowedFqdnList", ["allowedFqdnList"]); + _disableLocalAuth = DefineProperty("DisableLocalAuth", ["disableLocalAuth"]); + _endpoints = DefineDictionaryProperty("Endpoints", ["endpoints"], isOutput: true); + _restore = DefineProperty("Restore", ["restore"]); + _deletedOn = DefineProperty("DeletedOn", ["deletionDate"], isOutput: true); + _scheduledPurgeDate = DefineProperty("ScheduledPurgeDate", ["scheduledPurgeDate"], isOutput: true); + _locations = DefineModelProperty("Locations", ["locations"]); + _commitmentPlanAssociations = DefineListProperty("CommitmentPlanAssociations", ["commitmentPlanAssociations"], isOutput: true); + _abusePenalty = DefineModelProperty("AbusePenalty", ["abusePenalty"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesCapacityConfig.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesCapacityConfig.cs index ab489f9772cdd..561914bbfb27b 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesCapacityConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesCapacityConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,60 @@ public partial class CognitiveServicesCapacityConfig : ProvisionableConstruct /// /// The minimum capacity. /// - public BicepValue Minimum { get => _minimum; set => _minimum.Assign(value); } - private readonly BicepValue _minimum; + public BicepValue Minimum + { + get { Initialize(); return _minimum!; } + set { Initialize(); _minimum!.Assign(value); } + } + private BicepValue? _minimum; /// /// The maximum capacity. /// - public BicepValue Maximum { get => _maximum; set => _maximum.Assign(value); } - private readonly BicepValue _maximum; + public BicepValue Maximum + { + get { Initialize(); return _maximum!; } + set { Initialize(); _maximum!.Assign(value); } + } + private BicepValue? _maximum; /// /// The minimal incremental between allowed values for capacity. /// - public BicepValue Step { get => _step; set => _step.Assign(value); } - private readonly BicepValue _step; + public BicepValue Step + { + get { Initialize(); return _step!; } + set { Initialize(); _step!.Assign(value); } + } + private BicepValue? _step; /// /// The default capacity. /// - public BicepValue Default { get => _default; set => _default.Assign(value); } - private readonly BicepValue _default; + public BicepValue Default + { + get { Initialize(); return _default!; } + set { Initialize(); _default!.Assign(value); } + } + private BicepValue? _default; /// /// Creates a new CognitiveServicesCapacityConfig. /// public CognitiveServicesCapacityConfig() { - _minimum = BicepValue.DefineProperty(this, "Minimum", ["minimum"]); - _maximum = BicepValue.DefineProperty(this, "Maximum", ["maximum"]); - _step = BicepValue.DefineProperty(this, "Step", ["step"]); - _default = BicepValue.DefineProperty(this, "Default", ["default"]); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesCapacityConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _minimum = DefineProperty("Minimum", ["minimum"]); + _maximum = DefineProperty("Maximum", ["maximum"]); + _step = DefineProperty("Step", ["step"]); + _default = DefineProperty("Default", ["default"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesIPRule.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesIPRule.cs index 58855f290dc8b..bafc83bd954c9 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesIPRule.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesIPRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,14 +20,26 @@ public partial class CognitiveServicesIPRule : ProvisionableConstruct /// '124.56.78.91' (simple IP address) or /// '124.56.78.0/24' (all addresses that start with 124.56.78). /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new CognitiveServicesIPRule. /// public CognitiveServicesIPRule() { - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of CognitiveServicesIPRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.cs index c3efd896970be..5bb57d764e0f4 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,60 @@ public partial class CognitiveServicesKeyVaultProperties : ProvisionableConstruc /// /// Name of the Key from KeyVault. /// - public BicepValue KeyName { get => _keyName; set => _keyName.Assign(value); } - private readonly BicepValue _keyName; + public BicepValue KeyName + { + get { Initialize(); return _keyName!; } + set { Initialize(); _keyName!.Assign(value); } + } + private BicepValue? _keyName; /// /// Version of the Key from KeyVault. /// - public BicepValue KeyVersion { get => _keyVersion; set => _keyVersion.Assign(value); } - private readonly BicepValue _keyVersion; + public BicepValue KeyVersion + { + get { Initialize(); return _keyVersion!; } + set { Initialize(); _keyVersion!.Assign(value); } + } + private BicepValue? _keyVersion; /// /// Uri of KeyVault. /// - public BicepValue KeyVaultUri { get => _keyVaultUri; set => _keyVaultUri.Assign(value); } - private readonly BicepValue _keyVaultUri; + public BicepValue KeyVaultUri + { + get { Initialize(); return _keyVaultUri!; } + set { Initialize(); _keyVaultUri!.Assign(value); } + } + private BicepValue? _keyVaultUri; /// /// Gets or sets the identity client id. /// - public BicepValue IdentityClientId { get => _identityClientId; set => _identityClientId.Assign(value); } - private readonly BicepValue _identityClientId; + public BicepValue IdentityClientId + { + get { Initialize(); return _identityClientId!; } + set { Initialize(); _identityClientId!.Assign(value); } + } + private BicepValue? _identityClientId; /// /// Creates a new CognitiveServicesKeyVaultProperties. /// public CognitiveServicesKeyVaultProperties() { - _keyName = BicepValue.DefineProperty(this, "KeyName", ["keyName"]); - _keyVersion = BicepValue.DefineProperty(this, "KeyVersion", ["keyVersion"]); - _keyVaultUri = BicepValue.DefineProperty(this, "KeyVaultUri", ["keyVaultUri"]); - _identityClientId = BicepValue.DefineProperty(this, "IdentityClientId", ["identityClientId"]); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesKeyVaultProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyName = DefineProperty("KeyName", ["keyName"]); + _keyVersion = DefineProperty("KeyVersion", ["keyVersion"]); + _keyVaultUri = DefineProperty("KeyVaultUri", ["keyVaultUri"]); + _identityClientId = DefineProperty("IdentityClientId", ["identityClientId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesModelSku.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesModelSku.cs index 814f4e7ab5080..fcfd0ac9d4033 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesModelSku.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesModelSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,42 +19,69 @@ public partial class CognitiveServicesModelSku : ProvisionableConstruct /// /// The name of the model SKU. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The usage name of the model SKU. /// - public BicepValue UsageName { get => _usageName; set => _usageName.Assign(value); } - private readonly BicepValue _usageName; + public BicepValue UsageName + { + get { Initialize(); return _usageName!; } + set { Initialize(); _usageName!.Assign(value); } + } + private BicepValue? _usageName; /// /// The datetime of deprecation of the model SKU. /// - public BicepValue DeprecationOn { get => _deprecationOn; set => _deprecationOn.Assign(value); } - private readonly BicepValue _deprecationOn; + public BicepValue DeprecationOn + { + get { Initialize(); return _deprecationOn!; } + set { Initialize(); _deprecationOn!.Assign(value); } + } + private BicepValue? _deprecationOn; /// /// The capacity configuration. /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public CognitiveServicesCapacityConfig Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); AssignOrReplace(ref _capacity, value); } + } + private CognitiveServicesCapacityConfig? _capacity; /// /// The list of rateLimit. /// - public BicepList RateLimits { get => _rateLimits; } - private readonly BicepList _rateLimits; + public BicepList RateLimits + { + get { Initialize(); return _rateLimits!; } + } + private BicepList? _rateLimits; /// /// Creates a new CognitiveServicesModelSku. /// public CognitiveServicesModelSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _usageName = BicepValue.DefineProperty(this, "UsageName", ["usageName"]); - _deprecationOn = BicepValue.DefineProperty(this, "DeprecationOn", ["deprecationDate"]); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); - _rateLimits = BicepList.DefineProperty(this, "RateLimits", ["rateLimits"], isOutput: true); + } + + /// + /// Define all the provisionable properties of CognitiveServicesModelSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _usageName = DefineProperty("UsageName", ["usageName"]); + _deprecationOn = DefineProperty("DeprecationOn", ["deprecationDate"]); + _capacity = DefineModelProperty("Capacity", ["capacity"]); + _rateLimits = DefineListProperty("RateLimits", ["rateLimits"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesMultiRegionSettings.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesMultiRegionSettings.cs index ffaed4c5d9d66..fba98326a05ef 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesMultiRegionSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesMultiRegionSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class CognitiveServicesMultiRegionSettings : ProvisionableConstru /// /// Multiregion routing methods. /// - public BicepValue RoutingMethod { get => _routingMethod; set => _routingMethod.Assign(value); } - private readonly BicepValue _routingMethod; + public BicepValue RoutingMethod + { + get { Initialize(); return _routingMethod!; } + set { Initialize(); _routingMethod!.Assign(value); } + } + private BicepValue? _routingMethod; /// /// Gets the regions. /// - public BicepList Regions { get => _regions; set => _regions.Assign(value); } - private readonly BicepList _regions; + public BicepList Regions + { + get { Initialize(); return _regions!; } + set { Initialize(); _regions!.Assign(value); } + } + private BicepList? _regions; /// /// Creates a new CognitiveServicesMultiRegionSettings. /// public CognitiveServicesMultiRegionSettings() { - _routingMethod = BicepValue.DefineProperty(this, "RoutingMethod", ["routingMethod"]); - _regions = BicepList.DefineProperty(this, "Regions", ["regions"]); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesMultiRegionSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _routingMethod = DefineProperty("RoutingMethod", ["routingMethod"]); + _regions = DefineListProperty("Regions", ["regions"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.cs index 4cf543d105ead..57a2992da9058 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -20,28 +22,49 @@ public partial class CognitiveServicesNetworkRuleSet : ProvisionableConstruct /// virtualNetworkRules match. This is only used after the bypass property /// has been evaluated. /// - public BicepValue DefaultAction { get => _defaultAction; set => _defaultAction.Assign(value); } - private readonly BicepValue _defaultAction; + public BicepValue DefaultAction + { + get { Initialize(); return _defaultAction!; } + set { Initialize(); _defaultAction!.Assign(value); } + } + private BicepValue? _defaultAction; /// /// The list of IP address rules. /// - public BicepList IPRules { get => _iPRules; set => _iPRules.Assign(value); } - private readonly BicepList _iPRules; + public BicepList IPRules + { + get { Initialize(); return _iPRules!; } + set { Initialize(); _iPRules!.Assign(value); } + } + private BicepList? _iPRules; /// /// The list of virtual network rules. /// - public BicepList VirtualNetworkRules { get => _virtualNetworkRules; set => _virtualNetworkRules.Assign(value); } - private readonly BicepList _virtualNetworkRules; + public BicepList VirtualNetworkRules + { + get { Initialize(); return _virtualNetworkRules!; } + set { Initialize(); _virtualNetworkRules!.Assign(value); } + } + private BicepList? _virtualNetworkRules; /// /// Creates a new CognitiveServicesNetworkRuleSet. /// public CognitiveServicesNetworkRuleSet() { - _defaultAction = BicepValue.DefineProperty(this, "DefaultAction", ["defaultAction"]); - _iPRules = BicepList.DefineProperty(this, "IPRules", ["ipRules"]); - _virtualNetworkRules = BicepList.DefineProperty(this, "VirtualNetworkRules", ["virtualNetworkRules"]); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesNetworkRuleSet. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _defaultAction = DefineProperty("DefaultAction", ["defaultAction"]); + _iPRules = DefineListProperty("IPRules", ["ipRules"]); + _virtualNetworkRules = DefineListProperty("VirtualNetworkRules", ["virtualNetworkRules"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateEndpointConnectionData.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateEndpointConnectionData.cs index 0986f9ec0410f..322de1e985936 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateEndpointConnectionData.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateEndpointConnectionData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Core; using Azure.Provisioning; @@ -21,71 +23,110 @@ public partial class CognitiveServicesPrivateEndpointConnectionData : Provisiona /// /// The location of the private endpoint connection. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// A collection of information about the state of the connection between /// service consumer and provider. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public CognitiveServicesPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private CognitiveServicesPrivateLinkServiceConnectionState? _connectionState; /// /// The provisioning state of the private endpoint connection resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The private link resource group ids. /// - public BicepList GroupIds { get => _groupIds; set => _groupIds.Assign(value); } - private readonly BicepList _groupIds; + public BicepList GroupIds + { + get { Initialize(); return _groupIds!; } + set { Initialize(); _groupIds!.Assign(value); } + } + private BicepList? _groupIds; /// /// Resource Etag. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new CognitiveServicesPrivateEndpointConnectionData. /// public CognitiveServicesPrivateEndpointConnectionData() { - _location = BicepValue.DefineProperty(this, "Location", ["location"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _groupIds = BicepList.DefineProperty(this, "GroupIds", ["properties", "groupIds"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesPrivateEndpointConnectionData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _location = DefineProperty("Location", ["location"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _groupIds = DefineListProperty("GroupIds", ["properties", "groupIds"]); + _eTag = DefineProperty("ETag", ["etag"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateLinkServiceConnectionState.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateLinkServiceConnectionState.cs index 10ff6d06e50ec..7a42e1f5cd166 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateLinkServiceConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateLinkServiceConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,29 +20,50 @@ public partial class CognitiveServicesPrivateLinkServiceConnectionState : Provis /// Indicates whether the connection has been Approved/Rejected/Removed by /// the owner of the service. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The reason for approval/rejection of the connection. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// A message indicating if changes on the service provider require any /// updates on the consumer. /// - public BicepValue ActionsRequired { get => _actionsRequired; set => _actionsRequired.Assign(value); } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + set { Initialize(); _actionsRequired!.Assign(value); } + } + private BicepValue? _actionsRequired; /// /// Creates a new CognitiveServicesPrivateLinkServiceConnectionState. /// public CognitiveServicesPrivateLinkServiceConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"]); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesPrivateLinkServiceConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesRegionSetting.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesRegionSetting.cs index 23edf6b69f51f..0c46fa50d1415 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesRegionSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesRegionSetting.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,49 @@ public partial class CognitiveServicesRegionSetting : ProvisionableConstruct /// /// Name of the region. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// A value for priority or weighted routing methods. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Maps the region to the regional custom subdomain. /// - public BicepValue Customsubdomain { get => _customsubdomain; set => _customsubdomain.Assign(value); } - private readonly BicepValue _customsubdomain; + public BicepValue Customsubdomain + { + get { Initialize(); return _customsubdomain!; } + set { Initialize(); _customsubdomain!.Assign(value); } + } + private BicepValue? _customsubdomain; /// /// Creates a new CognitiveServicesRegionSetting. /// public CognitiveServicesRegionSetting() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _customsubdomain = BicepValue.DefineProperty(this, "Customsubdomain", ["customsubdomain"]); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesRegionSetting. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _value = DefineProperty("Value", ["value"]); + _customsubdomain = DefineProperty("Customsubdomain", ["customsubdomain"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesSku.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesSku.cs index dadbf7a9d2b82..fe60bb0729ee1 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesSku.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,47 +18,75 @@ public partial class CognitiveServicesSku : ProvisionableConstruct /// /// The name of the SKU. Ex - P3. It is typically a letter+number code. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// This field is required to be implemented by the Resource Provider if /// the service has more than one tier, but is not required on a PUT. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// The SKU size. When the name field is the combination of tier and some /// other value, this would be the standalone code. /// - public BicepValue Size { get => _size; set => _size.Assign(value); } - private readonly BicepValue _size; + public BicepValue Size + { + get { Initialize(); return _size!; } + set { Initialize(); _size!.Assign(value); } + } + private BicepValue? _size; /// /// If the service has different generations of hardware, for the same SKU, /// then that can be captured here. /// - public BicepValue Family { get => _family; set => _family.Assign(value); } - private readonly BicepValue _family; + public BicepValue Family + { + get { Initialize(); return _family!; } + set { Initialize(); _family!.Assign(value); } + } + private BicepValue? _family; /// /// If the SKU supports scale out/in then the capacity integer should be /// included. If scale out/in is not possible for the resource this may be /// omitted. /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// Creates a new CognitiveServicesSku. /// public CognitiveServicesSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); - _size = BicepValue.DefineProperty(this, "Size", ["size"]); - _family = BicepValue.DefineProperty(this, "Family", ["family"]); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); + } + + /// + /// Define all the provisionable properties of CognitiveServicesSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"]); + _size = DefineProperty("Size", ["size"]); + _family = DefineProperty("Family", ["family"]); + _capacity = DefineProperty("Capacity", ["capacity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesSkuCapability.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesSkuCapability.cs index 577afa0d5c1c8..dec5b7ec9f10a 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesSkuCapability.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesSkuCapability.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,36 @@ public partial class CognitiveServicesSkuCapability : ProvisionableConstruct /// /// The name of the SkuCapability. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The value of the SkuCapability. /// - public BicepValue Value { get => _value; } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + } + private BicepValue? _value; /// /// Creates a new CognitiveServicesSkuCapability. /// public CognitiveServicesSkuCapability() { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _value = BicepValue.DefineProperty(this, "Value", ["value"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesSkuCapability. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isOutput: true); + _value = DefineProperty("Value", ["value"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesSkuChangeInfo.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesSkuChangeInfo.cs index e553cbfdfa4c2..f90fe63d4cc80 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesSkuChangeInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesSkuChangeInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,46 @@ public partial class CognitiveServicesSkuChangeInfo : ProvisionableConstruct /// /// Gets the count of downgrades. /// - public BicepValue CountOfDowngrades { get => _countOfDowngrades; } - private readonly BicepValue _countOfDowngrades; + public BicepValue CountOfDowngrades + { + get { Initialize(); return _countOfDowngrades!; } + } + private BicepValue? _countOfDowngrades; /// /// Gets the count of upgrades after downgrades. /// - public BicepValue CountOfUpgradesAfterDowngrades { get => _countOfUpgradesAfterDowngrades; } - private readonly BicepValue _countOfUpgradesAfterDowngrades; + public BicepValue CountOfUpgradesAfterDowngrades + { + get { Initialize(); return _countOfUpgradesAfterDowngrades!; } + } + private BicepValue? _countOfUpgradesAfterDowngrades; /// /// Gets the last change date. /// - public BicepValue LastChangedOn { get => _lastChangedOn; } - private readonly BicepValue _lastChangedOn; + public BicepValue LastChangedOn + { + get { Initialize(); return _lastChangedOn!; } + } + private BicepValue? _lastChangedOn; /// /// Creates a new CognitiveServicesSkuChangeInfo. /// public CognitiveServicesSkuChangeInfo() { - _countOfDowngrades = BicepValue.DefineProperty(this, "CountOfDowngrades", ["countOfDowngrades"], isOutput: true); - _countOfUpgradesAfterDowngrades = BicepValue.DefineProperty(this, "CountOfUpgradesAfterDowngrades", ["countOfUpgradesAfterDowngrades"], isOutput: true); - _lastChangedOn = BicepValue.DefineProperty(this, "LastChangedOn", ["lastChangeDate"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesSkuChangeInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _countOfDowngrades = DefineProperty("CountOfDowngrades", ["countOfDowngrades"], isOutput: true); + _countOfUpgradesAfterDowngrades = DefineProperty("CountOfUpgradesAfterDowngrades", ["countOfUpgradesAfterDowngrades"], isOutput: true); + _lastChangedOn = DefineProperty("LastChangedOn", ["lastChangeDate"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesVirtualNetworkRule.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesVirtualNetworkRule.cs index 53f9eba37cf42..2bbba829cc6a7 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesVirtualNetworkRule.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesVirtualNetworkRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -18,28 +20,49 @@ public partial class CognitiveServicesVirtualNetworkRule : ProvisionableConstruc /// Full resource id of a vnet subnet, such as /// '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// Gets the state of virtual network rule. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Ignore missing vnet service endpoint or not. /// - public BicepValue IgnoreMissingVnetServiceEndpoint { get => _ignoreMissingVnetServiceEndpoint; set => _ignoreMissingVnetServiceEndpoint.Assign(value); } - private readonly BicepValue _ignoreMissingVnetServiceEndpoint; + public BicepValue IgnoreMissingVnetServiceEndpoint + { + get { Initialize(); return _ignoreMissingVnetServiceEndpoint!; } + set { Initialize(); _ignoreMissingVnetServiceEndpoint!.Assign(value); } + } + private BicepValue? _ignoreMissingVnetServiceEndpoint; /// /// Creates a new CognitiveServicesVirtualNetworkRule. /// public CognitiveServicesVirtualNetworkRule() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _state = BicepValue.DefineProperty(this, "State", ["state"]); - _ignoreMissingVnetServiceEndpoint = BicepValue.DefineProperty(this, "IgnoreMissingVnetServiceEndpoint", ["ignoreMissingVnetServiceEndpoint"]); + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesVirtualNetworkRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _state = DefineProperty("State", ["state"]); + _ignoreMissingVnetServiceEndpoint = DefineProperty("IgnoreMissingVnetServiceEndpoint", ["ignoreMissingVnetServiceEndpoint"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentPeriod.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentPeriod.cs index 748f27c22c7d8..ce4b152aba17d 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentPeriod.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentPeriod.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,67 @@ public partial class CommitmentPeriod : ProvisionableConstruct /// /// Commitment period commitment tier. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// Commitment period commitment count. /// - public BicepValue Count { get => _count; set => _count.Assign(value); } - private readonly BicepValue _count; + public BicepValue Count + { + get { Initialize(); return _count!; } + set { Initialize(); _count!.Assign(value); } + } + private BicepValue? _count; /// /// Cognitive Services account commitment quota. /// - public BicepValue Quota { get => _quota; } - private readonly BicepValue _quota; + public CommitmentQuota Quota + { + get { Initialize(); return _quota!; } + } + private CommitmentQuota? _quota; /// /// Commitment period start date. /// - public BicepValue StartOn { get => _startOn; } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + } + private BicepValue? _startOn; /// /// Commitment period end date. /// - public BicepValue EndOn { get => _endOn; } - private readonly BicepValue _endOn; + public BicepValue EndOn + { + get { Initialize(); return _endOn!; } + } + private BicepValue? _endOn; /// /// Creates a new CommitmentPeriod. /// public CommitmentPeriod() { - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); - _count = BicepValue.DefineProperty(this, "Count", ["count"]); - _quota = BicepValue.DefineProperty(this, "Quota", ["quota"], isOutput: true); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["startDate"], isOutput: true); - _endOn = BicepValue.DefineProperty(this, "EndOn", ["endDate"], isOutput: true); + } + + /// + /// Define all the provisionable properties of CommitmentPeriod. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tier = DefineProperty("Tier", ["tier"]); + _count = DefineProperty("Count", ["count"]); + _quota = DefineModelProperty("Quota", ["quota"], isOutput: true); + _startOn = DefineProperty("StartOn", ["startDate"], isOutput: true); + _endOn = DefineProperty("EndOn", ["endDate"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentPlanAssociation.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentPlanAssociation.cs index 15443c09b7704..b14188e5603b4 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentPlanAssociation.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentPlanAssociation.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,35 @@ public partial class CommitmentPlanAssociation : ProvisionableConstruct /// /// The Azure resource id of the commitment plan. /// - public BicepValue CommitmentPlanId { get => _commitmentPlanId; } - private readonly BicepValue _commitmentPlanId; + public BicepValue CommitmentPlanId + { + get { Initialize(); return _commitmentPlanId!; } + } + private BicepValue? _commitmentPlanId; /// /// The location of of the commitment plan. /// - public BicepValue CommitmentPlanLocation { get => _commitmentPlanLocation; } - private readonly BicepValue _commitmentPlanLocation; + public BicepValue CommitmentPlanLocation + { + get { Initialize(); return _commitmentPlanLocation!; } + } + private BicepValue? _commitmentPlanLocation; /// /// Creates a new CommitmentPlanAssociation. /// public CommitmentPlanAssociation() { - _commitmentPlanId = BicepValue.DefineProperty(this, "CommitmentPlanId", ["commitmentPlanId"], isOutput: true); - _commitmentPlanLocation = BicepValue.DefineProperty(this, "CommitmentPlanLocation", ["commitmentPlanLocation"], isOutput: true); + } + + /// + /// Define all the provisionable properties of CommitmentPlanAssociation. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _commitmentPlanId = DefineProperty("CommitmentPlanId", ["commitmentPlanId"], isOutput: true); + _commitmentPlanLocation = DefineProperty("CommitmentPlanLocation", ["commitmentPlanLocation"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentPlanProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentPlanProperties.cs index 3fa2dcba0756e..8b836c6da6c68 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentPlanProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentPlanProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,70 +19,111 @@ public partial class CommitmentPlanProperties : ProvisionableConstruct /// /// Gets the status of the resource at the time the operation was called. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Commitment plan guid. /// - public BicepValue CommitmentPlanGuid { get => _commitmentPlanGuid; set => _commitmentPlanGuid.Assign(value); } - private readonly BicepValue _commitmentPlanGuid; + public BicepValue CommitmentPlanGuid + { + get { Initialize(); return _commitmentPlanGuid!; } + set { Initialize(); _commitmentPlanGuid!.Assign(value); } + } + private BicepValue? _commitmentPlanGuid; /// /// Account hosting model. /// - public BicepValue HostingModel { get => _hostingModel; set => _hostingModel.Assign(value); } - private readonly BicepValue _hostingModel; + public BicepValue HostingModel + { + get { Initialize(); return _hostingModel!; } + set { Initialize(); _hostingModel!.Assign(value); } + } + private BicepValue? _hostingModel; /// /// Commitment plan type. /// - public BicepValue PlanType { get => _planType; set => _planType.Assign(value); } - private readonly BicepValue _planType; + public BicepValue PlanType + { + get { Initialize(); return _planType!; } + set { Initialize(); _planType!.Assign(value); } + } + private BicepValue? _planType; /// /// Cognitive Services account commitment period. /// - public BicepValue Current { get => _current; set => _current.Assign(value); } - private readonly BicepValue _current; + public CommitmentPeriod Current + { + get { Initialize(); return _current!; } + set { Initialize(); AssignOrReplace(ref _current, value); } + } + private CommitmentPeriod? _current; /// /// AutoRenew commitment plan. /// - public BicepValue AutoRenew { get => _autoRenew; set => _autoRenew.Assign(value); } - private readonly BicepValue _autoRenew; + public BicepValue AutoRenew + { + get { Initialize(); return _autoRenew!; } + set { Initialize(); _autoRenew!.Assign(value); } + } + private BicepValue? _autoRenew; /// /// Cognitive Services account commitment period. /// - public BicepValue Next { get => _next; set => _next.Assign(value); } - private readonly BicepValue _next; + public CommitmentPeriod Next + { + get { Initialize(); return _next!; } + set { Initialize(); AssignOrReplace(ref _next, value); } + } + private CommitmentPeriod? _next; /// /// Cognitive Services account commitment period. /// - public BicepValue Last { get => _last; } - private readonly BicepValue _last; + public CommitmentPeriod Last + { + get { Initialize(); return _last!; } + } + private CommitmentPeriod? _last; /// /// The list of ProvisioningIssue. /// - public BicepList ProvisioningIssues { get => _provisioningIssues; } - private readonly BicepList _provisioningIssues; + public BicepList ProvisioningIssues + { + get { Initialize(); return _provisioningIssues!; } + } + private BicepList? _provisioningIssues; /// /// Creates a new CommitmentPlanProperties. /// public CommitmentPlanProperties() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); - _commitmentPlanGuid = BicepValue.DefineProperty(this, "CommitmentPlanGuid", ["commitmentPlanGuid"]); - _hostingModel = BicepValue.DefineProperty(this, "HostingModel", ["hostingModel"]); - _planType = BicepValue.DefineProperty(this, "PlanType", ["planType"]); - _current = BicepValue.DefineProperty(this, "Current", ["current"]); - _autoRenew = BicepValue.DefineProperty(this, "AutoRenew", ["autoRenew"]); - _next = BicepValue.DefineProperty(this, "Next", ["next"]); - _last = BicepValue.DefineProperty(this, "Last", ["last"], isOutput: true); - _provisioningIssues = BicepList.DefineProperty(this, "ProvisioningIssues", ["provisioningIssues"], isOutput: true); + } + + /// + /// Define all the provisionable properties of CommitmentPlanProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _commitmentPlanGuid = DefineProperty("CommitmentPlanGuid", ["commitmentPlanGuid"]); + _hostingModel = DefineProperty("HostingModel", ["hostingModel"]); + _planType = DefineProperty("PlanType", ["planType"]); + _current = DefineModelProperty("Current", ["current"]); + _autoRenew = DefineProperty("AutoRenew", ["autoRenew"]); + _next = DefineModelProperty("Next", ["next"]); + _last = DefineModelProperty("Last", ["last"], isOutput: true); + _provisioningIssues = DefineListProperty("ProvisioningIssues", ["provisioningIssues"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentQuota.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentQuota.cs index c8fa955af2f04..712048654fd4a 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentQuota.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CommitmentQuota.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,35 @@ public partial class CommitmentQuota : ProvisionableConstruct /// /// Commitment quota quantity. /// - public BicepValue Quantity { get => _quantity; } - private readonly BicepValue _quantity; + public BicepValue Quantity + { + get { Initialize(); return _quantity!; } + } + private BicepValue? _quantity; /// /// Commitment quota unit. /// - public BicepValue Unit { get => _unit; } - private readonly BicepValue _unit; + public BicepValue Unit + { + get { Initialize(); return _unit!; } + } + private BicepValue? _unit; /// /// Creates a new CommitmentQuota. /// public CommitmentQuota() { - _quantity = BicepValue.DefineProperty(this, "Quantity", ["quantity"], isOutput: true); - _unit = BicepValue.DefineProperty(this, "Unit", ["unit"], isOutput: true); + } + + /// + /// Define all the provisionable properties of CommitmentQuota. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _quantity = DefineProperty("Quantity", ["quantity"], isOutput: true); + _unit = DefineProperty("Unit", ["unit"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountApiKeys.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountApiKeys.cs index a532ceb34b875..200271cbf9373 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountApiKeys.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountApiKeys.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Expressions; using Azure.Provisioning.Primitives; using System; @@ -18,37 +20,35 @@ public partial class ServiceAccountApiKeys : ProvisionableConstruct /// /// Gets the value of key 1. /// - public BicepValue Key1 { get => _key1; } - private readonly BicepValue _key1; + public BicepValue Key1 + { + get { Initialize(); return _key1!; } + } + private BicepValue? _key1; /// /// Gets the value of key 2. /// - public BicepValue Key2 { get => _key2; } - private readonly BicepValue _key2; + public BicepValue Key2 + { + get { Initialize(); return _key2!; } + } + private BicepValue? _key2; /// /// Creates a new ServiceAccountApiKeys. /// public ServiceAccountApiKeys() { - _key1 = BicepValue.DefineProperty(this, "Key1", ["key1"], isOutput: true, isSecure: true); - _key2 = BicepValue.DefineProperty(this, "Key2", ["key2"], isOutput: true, isSecure: true); } /// - /// Creates a new ServiceAccountApiKeys resource from a Bicep expression - /// that evaluates to a ServiceAccountApiKeys. + /// Define all the provisionable properties of ServiceAccountApiKeys. /// - /// - /// A Bicep expression that evaluates to a ServiceAccountApiKeys resource. - /// - /// A ServiceAccountApiKeys resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static ServiceAccountApiKeys FromExpression(BicepExpression expression) + protected override void DefineProvisionableProperties() { - ServiceAccountApiKeys resource = new(); - resource.OverrideWithExpression(expression); - return resource; + base.DefineProvisionableProperties(); + _key1 = DefineProperty("Key1", ["key1"], isOutput: true, isSecure: true); + _key2 = DefineProperty("Key2", ["key2"], isOutput: true, isSecure: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountApiProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountApiProperties.cs index 3bf4dc4eadf06..8f0ecff632fc0 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountApiProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountApiProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,62 +20,102 @@ public partial class ServiceAccountApiProperties : ProvisionableConstruct /// /// (QnAMaker Only) The runtime endpoint of QnAMaker. /// - public BicepValue QnaRuntimeEndpoint { get => _qnaRuntimeEndpoint; set => _qnaRuntimeEndpoint.Assign(value); } - private readonly BicepValue _qnaRuntimeEndpoint; + public BicepValue QnaRuntimeEndpoint + { + get { Initialize(); return _qnaRuntimeEndpoint!; } + set { Initialize(); _qnaRuntimeEndpoint!.Assign(value); } + } + private BicepValue? _qnaRuntimeEndpoint; /// /// (QnAMaker Only) The Azure Search endpoint key of QnAMaker. /// - public BicepValue QnaAzureSearchEndpointKey { get => _qnaAzureSearchEndpointKey; set => _qnaAzureSearchEndpointKey.Assign(value); } - private readonly BicepValue _qnaAzureSearchEndpointKey; + public BicepValue QnaAzureSearchEndpointKey + { + get { Initialize(); return _qnaAzureSearchEndpointKey!; } + set { Initialize(); _qnaAzureSearchEndpointKey!.Assign(value); } + } + private BicepValue? _qnaAzureSearchEndpointKey; /// /// (QnAMaker Only) The Azure Search endpoint id of QnAMaker. /// - public BicepValue QnaAzureSearchEndpointId { get => _qnaAzureSearchEndpointId; set => _qnaAzureSearchEndpointId.Assign(value); } - private readonly BicepValue _qnaAzureSearchEndpointId; + public BicepValue QnaAzureSearchEndpointId + { + get { Initialize(); return _qnaAzureSearchEndpointId!; } + set { Initialize(); _qnaAzureSearchEndpointId!.Assign(value); } + } + private BicepValue? _qnaAzureSearchEndpointId; /// /// (Bing Search Only) The flag to enable statistics of Bing Search. /// - public BicepValue EnableStatistics { get => _enableStatistics; set => _enableStatistics.Assign(value); } - private readonly BicepValue _enableStatistics; + public BicepValue EnableStatistics + { + get { Initialize(); return _enableStatistics!; } + set { Initialize(); _enableStatistics!.Assign(value); } + } + private BicepValue? _enableStatistics; /// /// (Personalization Only) The flag to enable statistics of Bing Search. /// - public BicepValue EventHubConnectionString { get => _eventHubConnectionString; set => _eventHubConnectionString.Assign(value); } - private readonly BicepValue _eventHubConnectionString; + public BicepValue EventHubConnectionString + { + get { Initialize(); return _eventHubConnectionString!; } + set { Initialize(); _eventHubConnectionString!.Assign(value); } + } + private BicepValue? _eventHubConnectionString; /// /// (Personalization Only) The storage account connection string. /// - public BicepValue StorageAccountConnectionString { get => _storageAccountConnectionString; set => _storageAccountConnectionString.Assign(value); } - private readonly BicepValue _storageAccountConnectionString; + public BicepValue StorageAccountConnectionString + { + get { Initialize(); return _storageAccountConnectionString!; } + set { Initialize(); _storageAccountConnectionString!.Assign(value); } + } + private BicepValue? _storageAccountConnectionString; /// /// (Metrics Advisor Only) The Azure AD Client Id (Application Id). /// - public BicepValue AadClientId { get => _aadClientId; set => _aadClientId.Assign(value); } - private readonly BicepValue _aadClientId; + public BicepValue AadClientId + { + get { Initialize(); return _aadClientId!; } + set { Initialize(); _aadClientId!.Assign(value); } + } + private BicepValue? _aadClientId; /// /// (Metrics Advisor Only) The Azure AD Tenant Id. /// - public BicepValue AadTenantId { get => _aadTenantId; set => _aadTenantId.Assign(value); } - private readonly BicepValue _aadTenantId; + public BicepValue AadTenantId + { + get { Initialize(); return _aadTenantId!; } + set { Initialize(); _aadTenantId!.Assign(value); } + } + private BicepValue? _aadTenantId; /// /// (Metrics Advisor Only) The super user of Metrics Advisor. /// - public BicepValue SuperUser { get => _superUser; set => _superUser.Assign(value); } - private readonly BicepValue _superUser; + public BicepValue SuperUser + { + get { Initialize(); return _superUser!; } + set { Initialize(); _superUser!.Assign(value); } + } + private BicepValue? _superUser; /// /// (Metrics Advisor Only) The website name of Metrics Advisor. /// - public BicepValue WebsiteName { get => _websiteName; set => _websiteName.Assign(value); } - private readonly BicepValue _websiteName; + public BicepValue WebsiteName + { + get { Initialize(); return _websiteName!; } + set { Initialize(); _websiteName!.Assign(value); } + } + private BicepValue? _websiteName; /// /// Additional Properties To assign an object to @@ -91,24 +133,36 @@ public partial class ServiceAccountApiProperties : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepDictionary AdditionalProperties { get => _additionalProperties; set => _additionalProperties.Assign(value); } - private readonly BicepDictionary _additionalProperties; + public BicepDictionary AdditionalProperties + { + get { Initialize(); return _additionalProperties!; } + set { Initialize(); _additionalProperties!.Assign(value); } + } + private BicepDictionary? _additionalProperties; /// /// Creates a new ServiceAccountApiProperties. /// public ServiceAccountApiProperties() { - _qnaRuntimeEndpoint = BicepValue.DefineProperty(this, "QnaRuntimeEndpoint", ["qnaRuntimeEndpoint"]); - _qnaAzureSearchEndpointKey = BicepValue.DefineProperty(this, "QnaAzureSearchEndpointKey", ["qnaAzureSearchEndpointKey"]); - _qnaAzureSearchEndpointId = BicepValue.DefineProperty(this, "QnaAzureSearchEndpointId", ["qnaAzureSearchEndpointId"]); - _enableStatistics = BicepValue.DefineProperty(this, "EnableStatistics", ["statisticsEnabled"]); - _eventHubConnectionString = BicepValue.DefineProperty(this, "EventHubConnectionString", ["eventHubConnectionString"]); - _storageAccountConnectionString = BicepValue.DefineProperty(this, "StorageAccountConnectionString", ["storageAccountConnectionString"]); - _aadClientId = BicepValue.DefineProperty(this, "AadClientId", ["aadClientId"]); - _aadTenantId = BicepValue.DefineProperty(this, "AadTenantId", ["aadTenantId"]); - _superUser = BicepValue.DefineProperty(this, "SuperUser", ["superUser"]); - _websiteName = BicepValue.DefineProperty(this, "WebsiteName", ["websiteName"]); - _additionalProperties = BicepDictionary.DefineProperty(this, "AdditionalProperties", ["AdditionalProperties"]); + } + + /// + /// Define all the provisionable properties of ServiceAccountApiProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _qnaRuntimeEndpoint = DefineProperty("QnaRuntimeEndpoint", ["qnaRuntimeEndpoint"]); + _qnaAzureSearchEndpointKey = DefineProperty("QnaAzureSearchEndpointKey", ["qnaAzureSearchEndpointKey"]); + _qnaAzureSearchEndpointId = DefineProperty("QnaAzureSearchEndpointId", ["qnaAzureSearchEndpointId"]); + _enableStatistics = DefineProperty("EnableStatistics", ["statisticsEnabled"]); + _eventHubConnectionString = DefineProperty("EventHubConnectionString", ["eventHubConnectionString"]); + _storageAccountConnectionString = DefineProperty("StorageAccountConnectionString", ["storageAccountConnectionString"]); + _aadClientId = DefineProperty("AadClientId", ["aadClientId"]); + _aadTenantId = DefineProperty("AadTenantId", ["aadTenantId"]); + _superUser = DefineProperty("SuperUser", ["superUser"]); + _websiteName = DefineProperty("WebsiteName", ["websiteName"]); + _additionalProperties = DefineDictionaryProperty("AdditionalProperties", ["AdditionalProperties"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountCallRateLimit.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountCallRateLimit.cs index 783dd4d9ed9b2..467050a7408aa 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountCallRateLimit.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountCallRateLimit.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,45 @@ public partial class ServiceAccountCallRateLimit : ProvisionableConstruct /// /// The count value of Call Rate Limit. /// - public BicepValue Count { get => _count; } - private readonly BicepValue _count; + public BicepValue Count + { + get { Initialize(); return _count!; } + } + private BicepValue? _count; /// /// The renewal period in seconds of Call Rate Limit. /// - public BicepValue RenewalPeriod { get => _renewalPeriod; } - private readonly BicepValue _renewalPeriod; + public BicepValue RenewalPeriod + { + get { Initialize(); return _renewalPeriod!; } + } + private BicepValue? _renewalPeriod; /// /// Gets the rules. /// - public BicepList Rules { get => _rules; } - private readonly BicepList _rules; + public BicepList Rules + { + get { Initialize(); return _rules!; } + } + private BicepList? _rules; /// /// Creates a new ServiceAccountCallRateLimit. /// public ServiceAccountCallRateLimit() { - _count = BicepValue.DefineProperty(this, "Count", ["count"], isOutput: true); - _renewalPeriod = BicepValue.DefineProperty(this, "RenewalPeriod", ["renewalPeriod"], isOutput: true); - _rules = BicepList.DefineProperty(this, "Rules", ["rules"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ServiceAccountCallRateLimit. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _count = DefineProperty("Count", ["count"], isOutput: true); + _renewalPeriod = DefineProperty("RenewalPeriod", ["renewalPeriod"], isOutput: true); + _rules = DefineListProperty("Rules", ["rules"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountEncryptionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountEncryptionProperties.cs index 8f4ae2afb0e7d..b3078f47d2137 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountEncryptionProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountEncryptionProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class ServiceAccountEncryptionProperties : ProvisionableConstruct /// /// Properties of KeyVault. /// - public BicepValue KeyVaultProperties { get => _keyVaultProperties; set => _keyVaultProperties.Assign(value); } - private readonly BicepValue _keyVaultProperties; + public CognitiveServicesKeyVaultProperties KeyVaultProperties + { + get { Initialize(); return _keyVaultProperties!; } + set { Initialize(); AssignOrReplace(ref _keyVaultProperties, value); } + } + private CognitiveServicesKeyVaultProperties? _keyVaultProperties; /// /// Enumerates the possible value of keySource for Encryption. /// - public BicepValue KeySource { get => _keySource; set => _keySource.Assign(value); } - private readonly BicepValue _keySource; + public BicepValue KeySource + { + get { Initialize(); return _keySource!; } + set { Initialize(); _keySource!.Assign(value); } + } + private BicepValue? _keySource; /// /// Creates a new ServiceAccountEncryptionProperties. /// public ServiceAccountEncryptionProperties() { - _keyVaultProperties = BicepValue.DefineProperty(this, "KeyVaultProperties", ["keyVaultProperties"]); - _keySource = BicepValue.DefineProperty(this, "KeySource", ["keySource"]); + } + + /// + /// Define all the provisionable properties of + /// ServiceAccountEncryptionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyVaultProperties = DefineModelProperty("KeyVaultProperties", ["keyVaultProperties"]); + _keySource = DefineProperty("KeySource", ["keySource"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountModelDeprecationInfo.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountModelDeprecationInfo.cs index 09d049771f8aa..383c3221d00bf 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountModelDeprecationInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountModelDeprecationInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class ServiceAccountModelDeprecationInfo : ProvisionableConstruct /// /// The datetime of deprecation of the fineTune Model. /// - public BicepValue FineTuneOn { get => _fineTuneOn; set => _fineTuneOn.Assign(value); } - private readonly BicepValue _fineTuneOn; + public BicepValue FineTuneOn + { + get { Initialize(); return _fineTuneOn!; } + set { Initialize(); _fineTuneOn!.Assign(value); } + } + private BicepValue? _fineTuneOn; /// /// The datetime of deprecation of the inference Model. /// - public BicepValue InferenceOn { get => _inferenceOn; set => _inferenceOn.Assign(value); } - private readonly BicepValue _inferenceOn; + public BicepValue InferenceOn + { + get { Initialize(); return _inferenceOn!; } + set { Initialize(); _inferenceOn!.Assign(value); } + } + private BicepValue? _inferenceOn; /// /// Creates a new ServiceAccountModelDeprecationInfo. /// public ServiceAccountModelDeprecationInfo() { - _fineTuneOn = BicepValue.DefineProperty(this, "FineTuneOn", ["fineTune"]); - _inferenceOn = BicepValue.DefineProperty(this, "InferenceOn", ["inference"]); + } + + /// + /// Define all the provisionable properties of + /// ServiceAccountModelDeprecationInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _fineTuneOn = DefineProperty("FineTuneOn", ["fineTune"]); + _inferenceOn = DefineProperty("InferenceOn", ["inference"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountQuotaLimit.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountQuotaLimit.cs index 0a939788b53ef..4ab93f14c702d 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountQuotaLimit.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountQuotaLimit.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,45 @@ public partial class ServiceAccountQuotaLimit : ProvisionableConstruct /// /// Gets the count. /// - public BicepValue Count { get => _count; } - private readonly BicepValue _count; + public BicepValue Count + { + get { Initialize(); return _count!; } + } + private BicepValue? _count; /// /// Gets the renewal period. /// - public BicepValue RenewalPeriod { get => _renewalPeriod; } - private readonly BicepValue _renewalPeriod; + public BicepValue RenewalPeriod + { + get { Initialize(); return _renewalPeriod!; } + } + private BicepValue? _renewalPeriod; /// /// Gets the rules. /// - public BicepList Rules { get => _rules; } - private readonly BicepList _rules; + public BicepList Rules + { + get { Initialize(); return _rules!; } + } + private BicepList? _rules; /// /// Creates a new ServiceAccountQuotaLimit. /// public ServiceAccountQuotaLimit() { - _count = BicepValue.DefineProperty(this, "Count", ["count"], isOutput: true); - _renewalPeriod = BicepValue.DefineProperty(this, "RenewalPeriod", ["renewalPeriod"], isOutput: true); - _rules = BicepList.DefineProperty(this, "Rules", ["rules"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ServiceAccountQuotaLimit. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _count = DefineProperty("Count", ["count"], isOutput: true); + _renewalPeriod = DefineProperty("RenewalPeriod", ["renewalPeriod"], isOutput: true); + _rules = DefineListProperty("Rules", ["rules"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountThrottlingMatchPattern.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountThrottlingMatchPattern.cs index c2db70fe8edfb..2707ca3fa5757 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountThrottlingMatchPattern.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountThrottlingMatchPattern.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,36 @@ public partial class ServiceAccountThrottlingMatchPattern : ProvisionableConstru /// /// Gets the path. /// - public BicepValue Path { get => _path; } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + } + private BicepValue? _path; /// /// Gets the method. /// - public BicepValue Method { get => _method; } - private readonly BicepValue _method; + public BicepValue Method + { + get { Initialize(); return _method!; } + } + private BicepValue? _method; /// /// Creates a new ServiceAccountThrottlingMatchPattern. /// public ServiceAccountThrottlingMatchPattern() { - _path = BicepValue.DefineProperty(this, "Path", ["path"], isOutput: true); - _method = BicepValue.DefineProperty(this, "Method", ["method"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ServiceAccountThrottlingMatchPattern. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _path = DefineProperty("Path", ["path"], isOutput: true); + _method = DefineProperty("Method", ["method"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountThrottlingRule.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountThrottlingRule.cs index 5757b0c5d8647..365f0d6795be9 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountThrottlingRule.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountThrottlingRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,49 +19,75 @@ public partial class ServiceAccountThrottlingRule : ProvisionableConstruct /// /// Gets the key. /// - public BicepValue Key { get => _key; } - private readonly BicepValue _key; + public BicepValue Key + { + get { Initialize(); return _key!; } + } + private BicepValue? _key; /// /// Gets the renewal period. /// - public BicepValue RenewalPeriod { get => _renewalPeriod; } - private readonly BicepValue _renewalPeriod; + public BicepValue RenewalPeriod + { + get { Initialize(); return _renewalPeriod!; } + } + private BicepValue? _renewalPeriod; /// /// Gets the count. /// - public BicepValue Count { get => _count; } - private readonly BicepValue _count; + public BicepValue Count + { + get { Initialize(); return _count!; } + } + private BicepValue? _count; /// /// Gets the min count. /// - public BicepValue MinCount { get => _minCount; } - private readonly BicepValue _minCount; + public BicepValue MinCount + { + get { Initialize(); return _minCount!; } + } + private BicepValue? _minCount; /// /// Gets the is dynamic throttling enabled. /// - public BicepValue IsDynamicThrottlingEnabled { get => _isDynamicThrottlingEnabled; } - private readonly BicepValue _isDynamicThrottlingEnabled; + public BicepValue IsDynamicThrottlingEnabled + { + get { Initialize(); return _isDynamicThrottlingEnabled!; } + } + private BicepValue? _isDynamicThrottlingEnabled; /// /// Gets the match patterns. /// - public BicepList MatchPatterns { get => _matchPatterns; } - private readonly BicepList _matchPatterns; + public BicepList MatchPatterns + { + get { Initialize(); return _matchPatterns!; } + } + private BicepList? _matchPatterns; /// /// Creates a new ServiceAccountThrottlingRule. /// public ServiceAccountThrottlingRule() { - _key = BicepValue.DefineProperty(this, "Key", ["key"], isOutput: true); - _renewalPeriod = BicepValue.DefineProperty(this, "RenewalPeriod", ["renewalPeriod"], isOutput: true); - _count = BicepValue.DefineProperty(this, "Count", ["count"], isOutput: true); - _minCount = BicepValue.DefineProperty(this, "MinCount", ["minCount"], isOutput: true); - _isDynamicThrottlingEnabled = BicepValue.DefineProperty(this, "IsDynamicThrottlingEnabled", ["dynamicThrottlingEnabled"], isOutput: true); - _matchPatterns = BicepList.DefineProperty(this, "MatchPatterns", ["matchPatterns"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ServiceAccountThrottlingRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _key = DefineProperty("Key", ["key"], isOutput: true); + _renewalPeriod = DefineProperty("RenewalPeriod", ["renewalPeriod"], isOutput: true); + _count = DefineProperty("Count", ["count"], isOutput: true); + _minCount = DefineProperty("MinCount", ["minCount"], isOutput: true); + _isDynamicThrottlingEnabled = DefineProperty("IsDynamicThrottlingEnabled", ["dynamicThrottlingEnabled"], isOutput: true); + _matchPatterns = DefineListProperty("MatchPatterns", ["matchPatterns"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountUserOwnedStorage.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountUserOwnedStorage.cs index e69584471e086..fdf631ea385d6 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountUserOwnedStorage.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountUserOwnedStorage.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class ServiceAccountUserOwnedStorage : ProvisionableConstruct /// /// Full resource id of a Microsoft.Storage resource. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// Gets or sets the identity client id. /// - public BicepValue IdentityClientId { get => _identityClientId; set => _identityClientId.Assign(value); } - private readonly BicepValue _identityClientId; + public BicepValue IdentityClientId + { + get { Initialize(); return _identityClientId!; } + set { Initialize(); _identityClientId!.Assign(value); } + } + private BicepValue? _identityClientId; /// /// Creates a new ServiceAccountUserOwnedStorage. /// public ServiceAccountUserOwnedStorage() { - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["resourceId"]); - _identityClientId = BicepValue.DefineProperty(this, "IdentityClientId", ["identityClientId"]); + } + + /// + /// Define all the provisionable properties of + /// ServiceAccountUserOwnedStorage. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _resourceId = DefineProperty("ResourceId", ["resourceId"]); + _identityClientId = DefineProperty("IdentityClientId", ["identityClientId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Communication/api/Azure.Provisioning.Communication.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.Communication/api/Azure.Provisioning.Communication.netstandard2.0.cs index a5a418b792ffd..fb08aecb7892e 100644 --- a/sdk/provisioning/Azure.Provisioning.Communication/api/Azure.Provisioning.Communication.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.Communication/api/Azure.Provisioning.Communication.netstandard2.0.cs @@ -12,11 +12,12 @@ public partial class CommunicationDomain : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Communication.EmailService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserEngagementTracking { get { throw null; } set { } } - public Azure.Provisioning.BicepValue VerificationRecords { get { throw null; } } - public Azure.Provisioning.BicepValue VerificationStates { get { throw null; } } + public Azure.Provisioning.Communication.DomainPropertiesVerificationRecords VerificationRecords { get { throw null; } } + public Azure.Provisioning.Communication.DomainPropertiesVerificationStates VerificationStates { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Communication.CommunicationDomain FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -30,16 +31,17 @@ public partial class CommunicationService : Azure.Provisioning.Primitives.Provis public Azure.Provisioning.BicepValue DataLocation { get { throw null; } set { } } public Azure.Provisioning.BicepValue HostName { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue ImmutableResourceId { get { throw null; } } public Azure.Provisioning.BicepList LinkedDomains { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue NotificationHubId { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue Version { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Communication.CommunicationService FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.Communication.CommunicationServiceKeys GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -58,8 +60,7 @@ public CommunicationServiceKeys() { } public Azure.Provisioning.BicepValue PrimaryKey { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryConnectionString { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryKey { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.Communication.CommunicationServiceKeys FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } } public enum CommunicationServiceProvisioningState { @@ -94,20 +95,22 @@ public enum DomainManagement public partial class DomainPropertiesVerificationRecords : Azure.Provisioning.Primitives.ProvisionableConstruct { public DomainPropertiesVerificationRecords() { } - public Azure.Provisioning.BicepValue Dkim { get { throw null; } } - public Azure.Provisioning.BicepValue Dkim2 { get { throw null; } } - public Azure.Provisioning.BicepValue Dmarc { get { throw null; } } - public Azure.Provisioning.BicepValue Domain { get { throw null; } } - public Azure.Provisioning.BicepValue Spf { get { throw null; } } + public Azure.Provisioning.Communication.VerificationDnsRecord Dkim { get { throw null; } } + public Azure.Provisioning.Communication.VerificationDnsRecord Dkim2 { get { throw null; } } + public Azure.Provisioning.Communication.VerificationDnsRecord Dmarc { get { throw null; } } + public Azure.Provisioning.Communication.VerificationDnsRecord Domain { get { throw null; } } + public Azure.Provisioning.Communication.VerificationDnsRecord Spf { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class DomainPropertiesVerificationStates : Azure.Provisioning.Primitives.ProvisionableConstruct { public DomainPropertiesVerificationStates() { } - public Azure.Provisioning.BicepValue Dkim { get { throw null; } } - public Azure.Provisioning.BicepValue Dkim2 { get { throw null; } } - public Azure.Provisioning.BicepValue Dmarc { get { throw null; } } - public Azure.Provisioning.BicepValue Domain { get { throw null; } } - public Azure.Provisioning.BicepValue Spf { get { throw null; } } + public Azure.Provisioning.Communication.DomainVerificationStatusRecord Dkim { get { throw null; } } + public Azure.Provisioning.Communication.DomainVerificationStatusRecord Dkim2 { get { throw null; } } + public Azure.Provisioning.Communication.DomainVerificationStatusRecord Dmarc { get { throw null; } } + public Azure.Provisioning.Communication.DomainVerificationStatusRecord Domain { get { throw null; } } + public Azure.Provisioning.Communication.DomainVerificationStatusRecord Spf { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum DomainProvisioningState { @@ -135,6 +138,7 @@ public partial class DomainVerificationStatusRecord : Azure.Provisioning.Primiti public DomainVerificationStatusRecord() { } public Azure.Provisioning.BicepValue ErrorCode { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class EmailService : Azure.Provisioning.Primitives.ProvisionableResource { @@ -144,8 +148,9 @@ public partial class EmailService : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Communication.EmailService FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -174,8 +179,9 @@ public partial class SenderUsername : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Communication.CommunicationDomain? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Username { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Communication.SenderUsername FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -195,5 +201,6 @@ public VerificationDnsRecord() { } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue TimeToLiveInSeconds { get { throw null; } } public Azure.Provisioning.BicepValue Value { get { throw null; } } + protected override void DefineProvisionableProperties() { } } } diff --git a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/CommunicationDomain.cs b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/CommunicationDomain.cs index 5f612df4e7633..de884cd6c632b 100644 --- a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/CommunicationDomain.cs +++ b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/CommunicationDomain.cs @@ -21,86 +21,134 @@ public partial class CommunicationDomain : ProvisionableResource /// /// The name of the Domains resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Describes how a Domains resource is being managed. /// - public BicepValue DomainManagement { get => _domainManagement; set => _domainManagement.Assign(value); } - private readonly BicepValue _domainManagement; + public BicepValue DomainManagement + { + get { Initialize(); return _domainManagement!; } + set { Initialize(); _domainManagement!.Assign(value); } + } + private BicepValue? _domainManagement; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Describes whether user engagement tracking is enabled or disabled. /// - public BicepValue UserEngagementTracking { get => _userEngagementTracking; set => _userEngagementTracking.Assign(value); } - private readonly BicepValue _userEngagementTracking; + public BicepValue UserEngagementTracking + { + get { Initialize(); return _userEngagementTracking!; } + set { Initialize(); _userEngagementTracking!.Assign(value); } + } + private BicepValue? _userEngagementTracking; /// /// The location where the Domains resource data is stored at rest. /// - public BicepValue DataLocation { get => _dataLocation; } - private readonly BicepValue _dataLocation; + public BicepValue DataLocation + { + get { Initialize(); return _dataLocation!; } + } + private BicepValue? _dataLocation; /// /// P2 sender domain that is displayed to the email recipients [RFC 5322]. /// - public BicepValue FromSenderDomain { get => _fromSenderDomain; } - private readonly BicepValue _fromSenderDomain; + public BicepValue FromSenderDomain + { + get { Initialize(); return _fromSenderDomain!; } + } + private BicepValue? _fromSenderDomain; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// P1 sender domain that is present on the email envelope [RFC 5321]. /// - public BicepValue MailFromSenderDomain { get => _mailFromSenderDomain; } - private readonly BicepValue _mailFromSenderDomain; + public BicepValue MailFromSenderDomain + { + get { Initialize(); return _mailFromSenderDomain!; } + } + private BicepValue? _mailFromSenderDomain; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// List of DnsRecord. /// - public BicepValue VerificationRecords { get => _verificationRecords; } - private readonly BicepValue _verificationRecords; + public DomainPropertiesVerificationRecords VerificationRecords + { + get { Initialize(); return _verificationRecords!; } + } + private DomainPropertiesVerificationRecords? _verificationRecords; /// /// List of VerificationStatusRecord. /// - public BicepValue VerificationStates { get => _verificationStates; } - private readonly BicepValue _verificationStates; + public DomainPropertiesVerificationStates VerificationStates + { + get { Initialize(); return _verificationStates!; } + } + private DomainPropertiesVerificationStates? _verificationStates; /// /// Gets or sets a reference to the parent EmailService. /// - public EmailService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EmailService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CommunicationDomain. @@ -115,20 +163,27 @@ public partial class CommunicationDomain : ProvisionableResource public CommunicationDomain(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Communication/emailServices/domains", resourceVersion ?? "2023-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _domainManagement = BicepValue.DefineProperty(this, "DomainManagement", ["properties", "domainManagement"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _userEngagementTracking = BicepValue.DefineProperty(this, "UserEngagementTracking", ["properties", "userEngagementTracking"]); - _dataLocation = BicepValue.DefineProperty(this, "DataLocation", ["properties", "dataLocation"], isOutput: true); - _fromSenderDomain = BicepValue.DefineProperty(this, "FromSenderDomain", ["properties", "fromSenderDomain"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _mailFromSenderDomain = BicepValue.DefineProperty(this, "MailFromSenderDomain", ["properties", "mailFromSenderDomain"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _verificationRecords = BicepValue.DefineProperty(this, "VerificationRecords", ["properties", "verificationRecords"], isOutput: true); - _verificationStates = BicepValue.DefineProperty(this, "VerificationStates", ["properties", "verificationStates"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CommunicationDomain. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _domainManagement = DefineProperty("DomainManagement", ["properties", "domainManagement"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _userEngagementTracking = DefineProperty("UserEngagementTracking", ["properties", "userEngagementTracking"]); + _dataLocation = DefineProperty("DataLocation", ["properties", "dataLocation"], isOutput: true); + _fromSenderDomain = DefineProperty("FromSenderDomain", ["properties", "fromSenderDomain"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _mailFromSenderDomain = DefineProperty("MailFromSenderDomain", ["properties", "mailFromSenderDomain"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _verificationRecords = DefineModelProperty("VerificationRecords", ["properties", "verificationRecords"], isOutput: true); + _verificationStates = DefineModelProperty("VerificationStates", ["properties", "verificationStates"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/CommunicationService.cs b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/CommunicationService.cs index 8535a954201a2..e491306aa08d3 100644 --- a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/CommunicationService.cs +++ b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/CommunicationService.cs @@ -23,82 +23,127 @@ public partial class CommunicationService : ProvisionableResource /// /// The name of the CommunicationService resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The location where the communication service stores its data at rest. /// - public BicepValue DataLocation { get => _dataLocation; set => _dataLocation.Assign(value); } - private readonly BicepValue _dataLocation; + public BicepValue DataLocation + { + get { Initialize(); return _dataLocation!; } + set { Initialize(); _dataLocation!.Assign(value); } + } + private BicepValue? _dataLocation; /// /// Managed service identity (system assigned and/or user assigned /// identities). /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// List of email Domain resource Ids. /// - public BicepList LinkedDomains { get => _linkedDomains; set => _linkedDomains.Assign(value); } - private readonly BicepList _linkedDomains; + public BicepList LinkedDomains + { + get { Initialize(); return _linkedDomains!; } + set { Initialize(); _linkedDomains!.Assign(value); } + } + private BicepList? _linkedDomains; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// FQDN of the CommunicationService instance. /// - public BicepValue HostName { get => _hostName; } - private readonly BicepValue _hostName; + public BicepValue HostName + { + get { Initialize(); return _hostName!; } + } + private BicepValue? _hostName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The immutable resource Id of the communication service. /// - public BicepValue ImmutableResourceId { get => _immutableResourceId; } - private readonly BicepValue _immutableResourceId; + public BicepValue ImmutableResourceId + { + get { Initialize(); return _immutableResourceId!; } + } + private BicepValue? _immutableResourceId; /// /// Resource ID of an Azure Notification Hub linked to this resource. /// - public BicepValue NotificationHubId { get => _notificationHubId; } - private readonly BicepValue _notificationHubId; + public BicepValue NotificationHubId + { + get { Initialize(); return _notificationHubId!; } + } + private BicepValue? _notificationHubId; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Version of the CommunicationService resource. Probably you need the /// same or higher version of client SDKs. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// Creates a new CommunicationService. @@ -113,19 +158,26 @@ public partial class CommunicationService : ProvisionableResource public CommunicationService(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Communication/communicationServices", resourceVersion ?? "2023-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _dataLocation = BicepValue.DefineProperty(this, "DataLocation", ["properties", "dataLocation"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _linkedDomains = BicepList.DefineProperty(this, "LinkedDomains", ["properties", "linkedDomains"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _hostName = BicepValue.DefineProperty(this, "HostName", ["properties", "hostName"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _immutableResourceId = BicepValue.DefineProperty(this, "ImmutableResourceId", ["properties", "immutableResourceId"], isOutput: true); - _notificationHubId = BicepValue.DefineProperty(this, "NotificationHubId", ["properties", "notificationHubId"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"], isOutput: true); + } + + /// + /// Define all the provisionable properties of CommunicationService. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _dataLocation = DefineProperty("DataLocation", ["properties", "dataLocation"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _linkedDomains = DefineListProperty("LinkedDomains", ["properties", "linkedDomains"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _hostName = DefineProperty("HostName", ["properties", "hostName"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _immutableResourceId = DefineProperty("ImmutableResourceId", ["properties", "immutableResourceId"], isOutput: true); + _notificationHubId = DefineProperty("NotificationHubId", ["properties", "notificationHubId"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _version = DefineProperty("Version", ["properties", "version"], isOutput: true); } /// @@ -175,7 +227,10 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this CommunicationService resource. /// /// The keys for this CommunicationService resource. - public CommunicationServiceKeys GetKeys() => - CommunicationServiceKeys.FromExpression( - new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys"))); + public CommunicationServiceKeys GetKeys() + { + CommunicationServiceKeys key = new(); + ((IBicepValue)key).Expression = new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")); + return key; + } } diff --git a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/EmailService.cs b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/EmailService.cs index 73c4a4615f4db..6c9e2412ae88d 100644 --- a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/EmailService.cs +++ b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/EmailService.cs @@ -21,44 +21,69 @@ public partial class EmailService : ProvisionableResource /// /// The name of the EmailService resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The location where the email service stores its data at rest. /// - public BicepValue DataLocation { get => _dataLocation; set => _dataLocation.Assign(value); } - private readonly BicepValue _dataLocation; + public BicepValue DataLocation + { + get { Initialize(); return _dataLocation!; } + set { Initialize(); _dataLocation!.Assign(value); } + } + private BicepValue? _dataLocation; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new EmailService. @@ -73,13 +98,20 @@ public partial class EmailService : ProvisionableResource public EmailService(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Communication/emailServices", resourceVersion ?? "2023-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _dataLocation = BicepValue.DefineProperty(this, "DataLocation", ["properties", "dataLocation"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of EmailService. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _dataLocation = DefineProperty("DataLocation", ["properties", "dataLocation"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/CommunicationServiceKeys.cs b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/CommunicationServiceKeys.cs index 248a906881047..90c7d3a60441c 100644 --- a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/CommunicationServiceKeys.cs +++ b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/CommunicationServiceKeys.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Expressions; using Azure.Provisioning.Primitives; using System; @@ -18,52 +20,55 @@ public partial class CommunicationServiceKeys : ProvisionableConstruct /// /// The primary access key. /// - public BicepValue PrimaryKey { get => _primaryKey; } - private readonly BicepValue _primaryKey; + public BicepValue PrimaryKey + { + get { Initialize(); return _primaryKey!; } + } + private BicepValue? _primaryKey; /// /// The secondary access key. /// - public BicepValue SecondaryKey { get => _secondaryKey; } - private readonly BicepValue _secondaryKey; + public BicepValue SecondaryKey + { + get { Initialize(); return _secondaryKey!; } + } + private BicepValue? _secondaryKey; /// /// CommunicationService connection string constructed via the primaryKey. /// - public BicepValue PrimaryConnectionString { get => _primaryConnectionString; } - private readonly BicepValue _primaryConnectionString; + public BicepValue PrimaryConnectionString + { + get { Initialize(); return _primaryConnectionString!; } + } + private BicepValue? _primaryConnectionString; /// /// CommunicationService connection string constructed via the secondaryKey. /// - public BicepValue SecondaryConnectionString { get => _secondaryConnectionString; } - private readonly BicepValue _secondaryConnectionString; + public BicepValue SecondaryConnectionString + { + get { Initialize(); return _secondaryConnectionString!; } + } + private BicepValue? _secondaryConnectionString; /// /// Creates a new CommunicationServiceKeys. /// public CommunicationServiceKeys() { - _primaryKey = BicepValue.DefineProperty(this, "PrimaryKey", ["primaryKey"], isOutput: true, isSecure: true); - _secondaryKey = BicepValue.DefineProperty(this, "SecondaryKey", ["secondaryKey"], isOutput: true, isSecure: true); - _primaryConnectionString = BicepValue.DefineProperty(this, "PrimaryConnectionString", ["primaryConnectionString"], isOutput: true, isSecure: true); - _secondaryConnectionString = BicepValue.DefineProperty(this, "SecondaryConnectionString", ["secondaryConnectionString"], isOutput: true, isSecure: true); } /// - /// Creates a new CommunicationServiceKeys resource from a Bicep expression - /// that evaluates to a CommunicationServiceKeys. + /// Define all the provisionable properties of CommunicationServiceKeys. /// - /// - /// A Bicep expression that evaluates to a CommunicationServiceKeys - /// resource. - /// - /// A CommunicationServiceKeys resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static CommunicationServiceKeys FromExpression(BicepExpression expression) + protected override void DefineProvisionableProperties() { - CommunicationServiceKeys resource = new(); - resource.OverrideWithExpression(expression); - return resource; + base.DefineProvisionableProperties(); + _primaryKey = DefineProperty("PrimaryKey", ["primaryKey"], isOutput: true, isSecure: true); + _secondaryKey = DefineProperty("SecondaryKey", ["secondaryKey"], isOutput: true, isSecure: true); + _primaryConnectionString = DefineProperty("PrimaryConnectionString", ["primaryConnectionString"], isOutput: true, isSecure: true); + _secondaryConnectionString = DefineProperty("SecondaryConnectionString", ["secondaryConnectionString"], isOutput: true, isSecure: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/DomainPropertiesVerificationRecords.cs b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/DomainPropertiesVerificationRecords.cs index 537f18cd24414..0bcd0ef2c435f 100644 --- a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/DomainPropertiesVerificationRecords.cs +++ b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/DomainPropertiesVerificationRecords.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,66 @@ public partial class DomainPropertiesVerificationRecords : ProvisionableConstruc /// /// A class that represents a VerificationStatus record. /// - public BicepValue Domain { get => _domain; } - private readonly BicepValue _domain; + public VerificationDnsRecord Domain + { + get { Initialize(); return _domain!; } + } + private VerificationDnsRecord? _domain; /// /// A class that represents a VerificationStatus record. /// - public BicepValue Spf { get => _spf; } - private readonly BicepValue _spf; + public VerificationDnsRecord Spf + { + get { Initialize(); return _spf!; } + } + private VerificationDnsRecord? _spf; /// /// A class that represents a VerificationStatus record. /// - public BicepValue Dkim { get => _dkim; } - private readonly BicepValue _dkim; + public VerificationDnsRecord Dkim + { + get { Initialize(); return _dkim!; } + } + private VerificationDnsRecord? _dkim; /// /// A class that represents a VerificationStatus record. /// - public BicepValue Dkim2 { get => _dkim2; } - private readonly BicepValue _dkim2; + public VerificationDnsRecord Dkim2 + { + get { Initialize(); return _dkim2!; } + } + private VerificationDnsRecord? _dkim2; /// /// A class that represents a VerificationStatus record. /// - public BicepValue Dmarc { get => _dmarc; } - private readonly BicepValue _dmarc; + public VerificationDnsRecord Dmarc + { + get { Initialize(); return _dmarc!; } + } + private VerificationDnsRecord? _dmarc; /// /// Creates a new DomainPropertiesVerificationRecords. /// public DomainPropertiesVerificationRecords() { - _domain = BicepValue.DefineProperty(this, "Domain", ["Domain"], isOutput: true); - _spf = BicepValue.DefineProperty(this, "Spf", ["SPF"], isOutput: true); - _dkim = BicepValue.DefineProperty(this, "Dkim", ["DKIM"], isOutput: true); - _dkim2 = BicepValue.DefineProperty(this, "Dkim2", ["DKIM2"], isOutput: true); - _dmarc = BicepValue.DefineProperty(this, "Dmarc", ["DMARC"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// DomainPropertiesVerificationRecords. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _domain = DefineModelProperty("Domain", ["Domain"], isOutput: true); + _spf = DefineModelProperty("Spf", ["SPF"], isOutput: true); + _dkim = DefineModelProperty("Dkim", ["DKIM"], isOutput: true); + _dkim2 = DefineModelProperty("Dkim2", ["DKIM2"], isOutput: true); + _dmarc = DefineModelProperty("Dmarc", ["DMARC"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/DomainPropertiesVerificationStates.cs b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/DomainPropertiesVerificationStates.cs index 69d1d04cbfa8a..fee3b8cf1f5b2 100644 --- a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/DomainPropertiesVerificationStates.cs +++ b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/DomainPropertiesVerificationStates.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,66 @@ public partial class DomainPropertiesVerificationStates : ProvisionableConstruct /// /// A class that represents a VerificationStatus record. /// - public BicepValue Domain { get => _domain; } - private readonly BicepValue _domain; + public DomainVerificationStatusRecord Domain + { + get { Initialize(); return _domain!; } + } + private DomainVerificationStatusRecord? _domain; /// /// A class that represents a VerificationStatus record. /// - public BicepValue Spf { get => _spf; } - private readonly BicepValue _spf; + public DomainVerificationStatusRecord Spf + { + get { Initialize(); return _spf!; } + } + private DomainVerificationStatusRecord? _spf; /// /// A class that represents a VerificationStatus record. /// - public BicepValue Dkim { get => _dkim; } - private readonly BicepValue _dkim; + public DomainVerificationStatusRecord Dkim + { + get { Initialize(); return _dkim!; } + } + private DomainVerificationStatusRecord? _dkim; /// /// A class that represents a VerificationStatus record. /// - public BicepValue Dkim2 { get => _dkim2; } - private readonly BicepValue _dkim2; + public DomainVerificationStatusRecord Dkim2 + { + get { Initialize(); return _dkim2!; } + } + private DomainVerificationStatusRecord? _dkim2; /// /// A class that represents a VerificationStatus record. /// - public BicepValue Dmarc { get => _dmarc; } - private readonly BicepValue _dmarc; + public DomainVerificationStatusRecord Dmarc + { + get { Initialize(); return _dmarc!; } + } + private DomainVerificationStatusRecord? _dmarc; /// /// Creates a new DomainPropertiesVerificationStates. /// public DomainPropertiesVerificationStates() { - _domain = BicepValue.DefineProperty(this, "Domain", ["Domain"], isOutput: true); - _spf = BicepValue.DefineProperty(this, "Spf", ["SPF"], isOutput: true); - _dkim = BicepValue.DefineProperty(this, "Dkim", ["DKIM"], isOutput: true); - _dkim2 = BicepValue.DefineProperty(this, "Dkim2", ["DKIM2"], isOutput: true); - _dmarc = BicepValue.DefineProperty(this, "Dmarc", ["DMARC"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// DomainPropertiesVerificationStates. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _domain = DefineModelProperty("Domain", ["Domain"], isOutput: true); + _spf = DefineModelProperty("Spf", ["SPF"], isOutput: true); + _dkim = DefineModelProperty("Dkim", ["DKIM"], isOutput: true); + _dkim2 = DefineModelProperty("Dkim2", ["DKIM2"], isOutput: true); + _dmarc = DefineModelProperty("Dmarc", ["DMARC"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/DomainVerificationStatusRecord.cs b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/DomainVerificationStatusRecord.cs index ee982f83d6bef..34204f8d32953 100644 --- a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/DomainVerificationStatusRecord.cs +++ b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/DomainVerificationStatusRecord.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,37 @@ public partial class DomainVerificationStatusRecord : ProvisionableConstruct /// /// Status of the verification operation. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Error code. This property will only be present if the status is /// UnableToVerify. /// - public BicepValue ErrorCode { get => _errorCode; } - private readonly BicepValue _errorCode; + public BicepValue ErrorCode + { + get { Initialize(); return _errorCode!; } + } + private BicepValue? _errorCode; /// /// Creates a new DomainVerificationStatusRecord. /// public DomainVerificationStatusRecord() { - _status = BicepValue.DefineProperty(this, "Status", ["status"], isOutput: true); - _errorCode = BicepValue.DefineProperty(this, "ErrorCode", ["errorCode"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// DomainVerificationStatusRecord. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"], isOutput: true); + _errorCode = DefineProperty("ErrorCode", ["errorCode"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/VerificationDnsRecord.cs b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/VerificationDnsRecord.cs index 2e042d293b116..9e9b6f8d358c7 100644 --- a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/VerificationDnsRecord.cs +++ b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/Models/VerificationDnsRecord.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,36 +18,56 @@ public partial class VerificationDnsRecord : ProvisionableConstruct /// /// Type of the DNS record. Example: TXT. /// - public BicepValue DnsRecordType { get => _dnsRecordType; } - private readonly BicepValue _dnsRecordType; + public BicepValue DnsRecordType + { + get { Initialize(); return _dnsRecordType!; } + } + private BicepValue? _dnsRecordType; /// /// Name of the DNS record. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Value of the DNS record. /// - public BicepValue Value { get => _value; } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + } + private BicepValue? _value; /// /// Represents an expiry time in seconds to represent how long this entry /// can be cached by the resolver, default = 3600sec. /// - public BicepValue TimeToLiveInSeconds { get => _timeToLiveInSeconds; } - private readonly BicepValue _timeToLiveInSeconds; + public BicepValue TimeToLiveInSeconds + { + get { Initialize(); return _timeToLiveInSeconds!; } + } + private BicepValue? _timeToLiveInSeconds; /// /// Creates a new VerificationDnsRecord. /// public VerificationDnsRecord() { - _dnsRecordType = BicepValue.DefineProperty(this, "DnsRecordType", ["type"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _value = BicepValue.DefineProperty(this, "Value", ["value"], isOutput: true); - _timeToLiveInSeconds = BicepValue.DefineProperty(this, "TimeToLiveInSeconds", ["ttl"], isOutput: true); + } + + /// + /// Define all the provisionable properties of VerificationDnsRecord. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _dnsRecordType = DefineProperty("DnsRecordType", ["type"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _value = DefineProperty("Value", ["value"], isOutput: true); + _timeToLiveInSeconds = DefineProperty("TimeToLiveInSeconds", ["ttl"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/SenderUsername.cs b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/SenderUsername.cs index e9329b3b64494..29cbe5de04cb4 100644 --- a/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/SenderUsername.cs +++ b/sdk/provisioning/Azure.Provisioning.Communication/src/Generated/SenderUsername.cs @@ -20,51 +20,79 @@ public partial class SenderUsername : ProvisionableResource /// /// The valid sender Username. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The display name for the senderUsername. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// A sender senderUsername to be used when sending emails. /// - public BicepValue Username { get => _username; set => _username.Assign(value); } - private readonly BicepValue _username; + public BicepValue Username + { + get { Initialize(); return _username!; } + set { Initialize(); _username!.Assign(value); } + } + private BicepValue? _username; /// /// The location where the SenderUsername resource data is stored at rest. /// - public BicepValue DataLocation { get => _dataLocation; } - private readonly BicepValue _dataLocation; + public BicepValue DataLocation + { + get { Initialize(); return _dataLocation!; } + } + private BicepValue? _dataLocation; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the resource. Unknown is the default state for /// Communication Services. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CommunicationDomain. /// - public CommunicationDomain? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CommunicationDomain? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SenderUsername. @@ -79,14 +107,21 @@ public partial class SenderUsername : ProvisionableResource public SenderUsername(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Communication/emailServices/domains/senderUsernames", resourceVersion ?? "2023-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["properties", "displayName"]); - _username = BicepValue.DefineProperty(this, "Username", ["properties", "username"]); - _dataLocation = BicepValue.DefineProperty(this, "DataLocation", ["properties", "dataLocation"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SenderUsername. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _displayName = DefineProperty("DisplayName", ["properties", "displayName"]); + _username = DefineProperty("Username", ["properties", "username"]); + _dataLocation = DefineProperty("DataLocation", ["properties", "dataLocation"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/api/Azure.Provisioning.ContainerRegistry.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/api/Azure.Provisioning.ContainerRegistry.netstandard2.0.cs index 08674ed5354ff..cd3bc16828056 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/api/Azure.Provisioning.ContainerRegistry.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/api/Azure.Provisioning.ContainerRegistry.netstandard2.0.cs @@ -15,10 +15,11 @@ public partial class ContainerRegistryAgentPool : Azure.Provisioning.Primitives. public Azure.Provisioning.BicepValue OS { get { throw null; } set { } } public Azure.Provisioning.ContainerRegistry.ContainerRegistryService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } public Azure.Provisioning.BicepValue VirtualNetworkSubnetResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerRegistry.ContainerRegistryAgentPool FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -38,6 +39,7 @@ public ContainerRegistryBaseImageDependency() { } public Azure.Provisioning.BicepValue Registry { get { throw null; } } public Azure.Provisioning.BicepValue Repository { get { throw null; } } public Azure.Provisioning.BicepValue Tag { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryBaseImageDependencyType { @@ -52,6 +54,7 @@ public ContainerRegistryBaseImageTrigger() { } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } public Azure.Provisioning.BicepValue UpdateTriggerEndpoint { get { throw null; } set { } } public Azure.Provisioning.BicepValue UpdateTriggerPayloadType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryBaseImageTriggerType { @@ -96,21 +99,23 @@ public partial class ContainerRegistryCredentials : Azure.Provisioning.Primitive public ContainerRegistryCredentials() { } public Azure.Provisioning.BicepDictionary CustomRegistries { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceRegistryLoginMode { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryDockerBuildContent : Azure.Provisioning.ContainerRegistry.ContainerRegistryRunContent { public ContainerRegistryDockerBuildContent() { } public Azure.Provisioning.BicepValue AgentCpu { get { throw null; } set { } } public Azure.Provisioning.BicepList Arguments { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Credentials { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryCredentials Credentials { get { throw null; } set { } } public Azure.Provisioning.BicepValue DockerFilePath { get { throw null; } set { } } public Azure.Provisioning.BicepList ImageNames { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsPushEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue NoCache { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Platform { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryPlatformProperties Platform { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceLocation { get { throw null; } set { } } public Azure.Provisioning.BicepValue Target { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeoutInSeconds { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryDockerBuildStep : Azure.Provisioning.ContainerRegistry.ContainerRegistryTaskStepProperties { @@ -121,18 +126,20 @@ public ContainerRegistryDockerBuildStep() { } public Azure.Provisioning.BicepValue IsPushEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue NoCache { get { throw null; } set { } } public Azure.Provisioning.BicepValue Target { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryEncodedTaskRunContent : Azure.Provisioning.ContainerRegistry.ContainerRegistryRunContent { public ContainerRegistryEncodedTaskRunContent() { } public Azure.Provisioning.BicepValue AgentCpu { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Credentials { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryCredentials Credentials { get { throw null; } set { } } public Azure.Provisioning.BicepValue EncodedTaskContent { get { throw null; } set { } } public Azure.Provisioning.BicepValue EncodedValuesContent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Platform { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryPlatformProperties Platform { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceLocation { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeoutInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryEncodedTaskStep : Azure.Provisioning.ContainerRegistry.ContainerRegistryTaskStepProperties { @@ -140,12 +147,14 @@ public ContainerRegistryEncodedTaskStep() { } public Azure.Provisioning.BicepValue EncodedTaskContent { get { throw null; } set { } } public Azure.Provisioning.BicepValue EncodedValuesContent { get { throw null; } set { } } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryEncryption : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerRegistryEncryption() { } - public Azure.Provisioning.BicepValue KeyVaultProperties { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryKeyVaultProperties KeyVaultProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryEncryptionStatus { @@ -165,13 +174,14 @@ public partial class ContainerRegistryFileTaskRunContent : Azure.Provisioning.Co { public ContainerRegistryFileTaskRunContent() { } public Azure.Provisioning.BicepValue AgentCpu { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Credentials { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Platform { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryCredentials Credentials { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryPlatformProperties Platform { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceLocation { get { throw null; } set { } } public Azure.Provisioning.BicepValue TaskFilePath { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeoutInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } public Azure.Provisioning.BicepValue ValuesFilePath { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryFileTaskStep : Azure.Provisioning.ContainerRegistry.ContainerRegistryTaskStepProperties { @@ -179,6 +189,7 @@ public ContainerRegistryFileTaskStep() { } public Azure.Provisioning.BicepValue TaskFilePath { get { throw null; } set { } } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } public Azure.Provisioning.BicepValue ValuesFilePath { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryImageDescriptor : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -187,6 +198,7 @@ public ContainerRegistryImageDescriptor() { } public Azure.Provisioning.BicepValue Registry { get { throw null; } set { } } public Azure.Provisioning.BicepValue Repository { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tag { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryImageUpdateTrigger : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -194,12 +206,14 @@ public ContainerRegistryImageUpdateTrigger() { } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } public Azure.Provisioning.BicepList Images { get { throw null; } set { } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryIPRule : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerRegistryIPRule() { } public Azure.Provisioning.BicepValue Action { get { throw null; } set { } } public Azure.Provisioning.BicepValue IPAddressOrRange { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryIPRuleAction { @@ -213,6 +227,7 @@ public ContainerRegistryKeyVaultProperties() { } public Azure.Provisioning.BicepValue KeyIdentifier { get { throw null; } set { } } public Azure.Provisioning.BicepValue LastKeyRotationTimestamp { get { throw null; } } public Azure.Provisioning.BicepValue VersionedKeyIdentifier { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryNetworkRuleBypassOption { @@ -229,6 +244,7 @@ public partial class ContainerRegistryNetworkRuleSet : Azure.Provisioning.Primit public ContainerRegistryNetworkRuleSet() { } public Azure.Provisioning.BicepValue DefaultAction { get { throw null; } set { } } public Azure.Provisioning.BicepList IPRules { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryOS { @@ -257,6 +273,7 @@ public ContainerRegistryOverrideTaskStepProperties() { } public Azure.Provisioning.BicepValue Target { get { throw null; } set { } } public Azure.Provisioning.BicepValue UpdateTriggerToken { get { throw null; } set { } } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryPlatformProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -264,14 +281,16 @@ public ContainerRegistryPlatformProperties() { } public Azure.Provisioning.BicepValue Architecture { get { throw null; } set { } } public Azure.Provisioning.BicepValue OS { get { throw null; } set { } } public Azure.Provisioning.BicepValue Variant { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryPolicies : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerRegistryPolicies() { } public Azure.Provisioning.BicepValue ExportStatus { get { throw null; } set { } } public Azure.Provisioning.BicepValue QuarantineStatus { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RetentionPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TrustPolicy { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryRetentionPolicy RetentionPolicy { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryTrustPolicy TrustPolicy { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryPolicyStatus { @@ -283,13 +302,14 @@ public enum ContainerRegistryPolicyStatus public partial class ContainerRegistryPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public ContainerRegistryPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.ContainerRegistry.ContainerRegistryService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerRegistry.ContainerRegistryPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -301,12 +321,13 @@ public static partial class ResourceVersions public partial class ContainerRegistryPrivateEndpointConnectionData : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerRegistryPrivateEndpointConnectionData() { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryPrivateLinkServiceConnectionState : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -314,6 +335,7 @@ public ContainerRegistryPrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryPrivateLinkServiceConnectionStatus { @@ -345,10 +367,11 @@ public partial class ContainerRegistryReplication : Azure.Provisioning.Primitive public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.ContainerRegistry.ContainerRegistryService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryResourceStatus Status { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue ZoneRedundancy { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerRegistry.ContainerRegistryReplication FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -367,6 +390,7 @@ public ContainerRegistryResourceStatus() { } public Azure.Provisioning.BicepValue DisplayStatus { get { throw null; } } public Azure.Provisioning.BicepValue Message { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryRetentionPolicy : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -374,6 +398,7 @@ public ContainerRegistryRetentionPolicy() { } public Azure.Provisioning.BicepValue Days { get { throw null; } set { } } public Azure.Provisioning.BicepValue LastUpdatedOn { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryRunArgument : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -381,6 +406,7 @@ public ContainerRegistryRunArgument() { } public Azure.Provisioning.BicepValue IsSecret { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryRunContent : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -388,6 +414,7 @@ public ContainerRegistryRunContent() { } public Azure.Provisioning.BicepValue AgentPoolName { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsArchiveEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue LogTemplate { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryRunData : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -398,25 +425,26 @@ public ContainerRegistryRunData() { } public Azure.Provisioning.BicepList CustomRegistries { get { throw null; } set { } } public Azure.Provisioning.BicepValue FinishOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue ImageUpdateTrigger { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryImageUpdateTrigger ImageUpdateTrigger { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsArchiveEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue LastUpdatedOn { get { throw null; } set { } } - public Azure.Provisioning.BicepValue LogArtifact { get { throw null; } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryImageDescriptor LogArtifact { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepList OutputImages { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Platform { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryPlatformProperties Platform { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } public Azure.Provisioning.BicepValue RunErrorMessage { get { throw null; } } public Azure.Provisioning.BicepValue RunId { get { throw null; } set { } } public Azure.Provisioning.BicepValue RunType { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceRegistryAuth { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SourceTrigger { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistrySourceTriggerDescriptor SourceTrigger { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Task { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TimerTrigger { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryTimerTriggerDescriptor TimerTrigger { get { throw null; } set { } } public Azure.Provisioning.BicepValue UpdateTriggerToken { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryRunStatus { @@ -441,6 +469,7 @@ public partial class ContainerRegistrySecretObject : Azure.Provisioning.Primitiv public ContainerRegistrySecretObject() { } public Azure.Provisioning.BicepValue ObjectType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistrySecretObjectType { @@ -453,27 +482,28 @@ public partial class ContainerRegistryService : Azure.Provisioning.Primitives.Pr public ContainerRegistryService(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepList DataEndpointHostNames { get { throw null; } } - public Azure.Provisioning.BicepValue Encryption { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryEncryption Encryption { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsAdminUserEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsDataEndpointEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue LoginServer { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue NetworkRuleBypassOptions { get { throw null; } set { } } - public Azure.Provisioning.BicepValue NetworkRuleSet { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Policies { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryNetworkRuleSet NetworkRuleSet { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryPolicies Policies { get { throw null; } set { } } public Azure.Provisioning.BicepList PrivateEndpointConnections { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistrySku Sku { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryResourceStatus Status { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue ZoneRedundancy { get { throw null; } set { } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.ContainerRegistry.ContainerRegistryBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.ContainerRegistry.ContainerRegistryBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerRegistry.ContainerRegistryService FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -492,6 +522,7 @@ public partial class ContainerRegistrySku : Azure.Provisioning.Primitives.Provis public ContainerRegistrySku() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistrySkuName { @@ -511,9 +542,10 @@ public partial class ContainerRegistrySourceTrigger : Azure.Provisioning.Primiti { public ContainerRegistrySourceTrigger() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SourceRepository { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.SourceCodeRepoProperties SourceRepository { get { throw null; } set { } } public Azure.Provisioning.BicepList SourceTriggerEvents { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistrySourceTriggerDescriptor : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -525,6 +557,7 @@ public ContainerRegistrySourceTriggerDescriptor() { } public Azure.Provisioning.BicepValue ProviderType { get { throw null; } set { } } public Azure.Provisioning.BicepValue PullRequestId { get { throw null; } set { } } public Azure.Provisioning.BicepValue RepositoryUri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistrySourceTriggerEvent { @@ -539,22 +572,23 @@ public partial class ContainerRegistryTask : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepValue AgentCpu { get { throw null; } set { } } public Azure.Provisioning.BicepValue AgentPoolName { get { throw null; } set { } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } - public Azure.Provisioning.BicepValue Credentials { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryCredentials Credentials { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsSystemTask { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue LogTemplate { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.ContainerRegistry.ContainerRegistryService? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Platform { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryPlatformProperties Platform { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Step { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryTaskStepProperties Step { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeoutInSeconds { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Trigger { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryTriggerProperties Trigger { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerRegistry.ContainerRegistryTask FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -570,20 +604,22 @@ public ContainerRegistryTaskOverridableValue() { } public Azure.Provisioning.BicepValue IsSecret { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryTaskRun : Azure.Provisioning.Primitives.ProvisionableResource { public ContainerRegistryTaskRun(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue ForceUpdateTag { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.ContainerRegistry.ContainerRegistryService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue RunRequest { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RunResult { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryRunContent RunRequest { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryRunData RunResult { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerRegistry.ContainerRegistryTaskRun FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -598,8 +634,9 @@ public static partial class ResourceVersions public partial class ContainerRegistryTaskRunContent : Azure.Provisioning.ContainerRegistry.ContainerRegistryRunContent { public ContainerRegistryTaskRunContent() { } - public Azure.Provisioning.BicepValue OverrideTaskStepProperties { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryOverrideTaskStepProperties OverrideTaskStepProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue TaskId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryTaskStatus { @@ -612,6 +649,7 @@ public ContainerRegistryTaskStepProperties() { } public Azure.Provisioning.BicepList BaseImageDependencies { get { throw null; } } public Azure.Provisioning.BicepValue ContextAccessToken { get { throw null; } set { } } public Azure.Provisioning.BicepValue ContextPath { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryTimerTrigger : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -619,25 +657,28 @@ public ContainerRegistryTimerTrigger() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Schedule { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryTimerTriggerDescriptor : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerRegistryTimerTriggerDescriptor() { } public Azure.Provisioning.BicepValue ScheduleOccurrence { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimerTriggerName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryToken : Azure.Provisioning.Primitives.ProvisionableResource { public ContainerRegistryToken(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } - public Azure.Provisioning.BicepValue Credentials { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryTokenCredentials Credentials { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.ContainerRegistry.ContainerRegistryService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue ScopeMapId { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerRegistry.ContainerRegistryToken FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -654,6 +695,7 @@ public ContainerRegistryTokenCertificate() { } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Thumbprint { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryTokenCertificateName { @@ -667,6 +709,7 @@ public partial class ContainerRegistryTokenCredentials : Azure.Provisioning.Prim public ContainerRegistryTokenCredentials() { } public Azure.Provisioning.BicepList Certificates { get { throw null; } set { } } public Azure.Provisioning.BicepList Passwords { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerRegistryTokenPassword : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -675,6 +718,7 @@ public ContainerRegistryTokenPassword() { } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryTokenPasswordName { @@ -693,9 +737,10 @@ public enum ContainerRegistryTokenStatus public partial class ContainerRegistryTriggerProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerRegistryTriggerProperties() { } - public Azure.Provisioning.BicepValue BaseImageTrigger { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistryBaseImageTrigger BaseImageTrigger { get { throw null; } set { } } public Azure.Provisioning.BicepList SourceTriggers { get { throw null; } set { } } public Azure.Provisioning.BicepList TimerTriggers { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryTriggerStatus { @@ -707,6 +752,7 @@ public partial class ContainerRegistryTrustPolicy : Azure.Provisioning.Primitive public ContainerRegistryTrustPolicy() { } public Azure.Provisioning.BicepValue PolicyType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerRegistryTrustPolicyType { @@ -730,8 +776,9 @@ public partial class ContainerRegistryWebhook : Azure.Provisioning.Primitives.Pr public Azure.Provisioning.BicepValue Scope { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServiceUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerRegistry.ContainerRegistryWebhook FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -773,8 +820,9 @@ public partial class CustomRegistryCredentials : Azure.Provisioning.Primitives.P { public CustomRegistryCredentials() { } public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Password { get { throw null; } set { } } - public Azure.Provisioning.BicepValue UserName { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistrySecretObject Password { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.ContainerRegistrySecretObject UserName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ScopeMap : Azure.Provisioning.Primitives.ProvisionableResource { @@ -787,7 +835,8 @@ public partial class ScopeMap : Azure.Provisioning.Primitives.ProvisionableResou public Azure.Provisioning.ContainerRegistry.ContainerRegistryService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue ScopeMapType { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerRegistry.ScopeMap FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -805,6 +854,7 @@ public SourceCodeRepoAuthInfo() { } public Azure.Provisioning.BicepValue Scope { get { throw null; } set { } } public Azure.Provisioning.BicepValue Token { get { throw null; } set { } } public Azure.Provisioning.BicepValue TokenType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SourceCodeRepoAuthTokenType { @@ -817,8 +867,9 @@ public partial class SourceCodeRepoProperties : Azure.Provisioning.Primitives.Pr public SourceCodeRepoProperties() { } public Azure.Provisioning.BicepValue Branch { get { throw null; } set { } } public Azure.Provisioning.BicepValue RepositoryUri { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SourceControlAuthProperties { get { throw null; } set { } } + public Azure.Provisioning.ContainerRegistry.SourceCodeRepoAuthInfo SourceControlAuthProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceControlType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SourceControlType { diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryAgentPool.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryAgentPool.cs index 5a48df65b9615..2f6dfb94882b2 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryAgentPool.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryAgentPool.cs @@ -21,68 +21,109 @@ public partial class ContainerRegistryAgentPool : ProvisionableResource /// /// The name of the agent pool. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The count of agent machine. /// - public BicepValue Count { get => _count; set => _count.Assign(value); } - private readonly BicepValue _count; + public BicepValue Count + { + get { Initialize(); return _count!; } + set { Initialize(); _count!.Assign(value); } + } + private BicepValue? _count; /// /// The OS of agent machine. /// - public BicepValue OS { get => _oS; set => _oS.Assign(value); } - private readonly BicepValue _oS; + public BicepValue OS + { + get { Initialize(); return _oS!; } + set { Initialize(); _oS!.Assign(value); } + } + private BicepValue? _oS; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The Tier of agent machine. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// The Virtual Network Subnet Resource Id of the agent machine. /// - public BicepValue VirtualNetworkSubnetResourceId { get => _virtualNetworkSubnetResourceId; set => _virtualNetworkSubnetResourceId.Assign(value); } - private readonly BicepValue _virtualNetworkSubnetResourceId; + public BicepValue VirtualNetworkSubnetResourceId + { + get { Initialize(); return _virtualNetworkSubnetResourceId!; } + set { Initialize(); _virtualNetworkSubnetResourceId!.Assign(value); } + } + private BicepValue? _virtualNetworkSubnetResourceId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning state of this agent pool. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerRegistryService. /// - public ContainerRegistryService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerRegistryService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerRegistryAgentPool. @@ -97,17 +138,24 @@ public partial class ContainerRegistryAgentPool : ProvisionableResource public ContainerRegistryAgentPool(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerRegistry/registries/agentPools", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _count = BicepValue.DefineProperty(this, "Count", ["properties", "count"]); - _oS = BicepValue.DefineProperty(this, "OS", ["properties", "os"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["properties", "tier"]); - _virtualNetworkSubnetResourceId = BicepValue.DefineProperty(this, "VirtualNetworkSubnetResourceId", ["properties", "virtualNetworkSubnetResourceId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ContainerRegistryAgentPool. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _count = DefineProperty("Count", ["properties", "count"]); + _oS = DefineProperty("OS", ["properties", "os"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _tier = DefineProperty("Tier", ["properties", "tier"]); + _virtualNetworkSubnetResourceId = DefineProperty("VirtualNetworkSubnetResourceId", ["properties", "virtualNetworkSubnetResourceId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryPrivateEndpointConnection.cs index 3b71f7f02944b..0e28432f10ab8 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryPrivateEndpointConnection.cs @@ -20,45 +20,70 @@ public partial class ContainerRegistryPrivateEndpointConnection : ProvisionableR /// /// The name of the private endpoint connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// A collection of information about the state of the connection between /// service consumer and provider. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public ContainerRegistryPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private ContainerRegistryPrivateLinkServiceConnectionState? _connectionState; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning state of private endpoint connection resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerRegistryService. /// - public ContainerRegistryService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerRegistryService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerRegistryPrivateEndpointConnection. @@ -74,13 +99,21 @@ public partial class ContainerRegistryPrivateEndpointConnection : ProvisionableR public ContainerRegistryPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerRegistry/registries/privateEndpointConnections", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryReplication.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryReplication.cs index b3c8086f162ef..05ca5da2a0658 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryReplication.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryReplication.cs @@ -22,14 +22,22 @@ public partial class ContainerRegistryReplication : ProvisionableResource /// /// The name of the replication. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Specifies whether the replication's regional endpoint is enabled. @@ -37,52 +45,80 @@ public partial class ContainerRegistryReplication : ProvisionableResource /// is disabled, however its data will continue to be synced with other /// replications. /// - public BicepValue IsRegionEndpointEnabled { get => _isRegionEndpointEnabled; set => _isRegionEndpointEnabled.Assign(value); } - private readonly BicepValue _isRegionEndpointEnabled; + public BicepValue IsRegionEndpointEnabled + { + get { Initialize(); return _isRegionEndpointEnabled!; } + set { Initialize(); _isRegionEndpointEnabled!.Assign(value); } + } + private BicepValue? _isRegionEndpointEnabled; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Whether or not zone redundancy is enabled for this container registry /// replication. /// - public BicepValue ZoneRedundancy { get => _zoneRedundancy; set => _zoneRedundancy.Assign(value); } - private readonly BicepValue _zoneRedundancy; + public BicepValue ZoneRedundancy + { + get { Initialize(); return _zoneRedundancy!; } + set { Initialize(); _zoneRedundancy!.Assign(value); } + } + private BicepValue? _zoneRedundancy; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning state of the replication at the time the operation was /// called. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The status of the replication at the time the operation was called. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public ContainerRegistryResourceStatus Status + { + get { Initialize(); return _status!; } + } + private ContainerRegistryResourceStatus? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerRegistryService. /// - public ContainerRegistryService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerRegistryService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerRegistryReplication. @@ -97,16 +133,23 @@ public partial class ContainerRegistryReplication : ProvisionableResource public ContainerRegistryReplication(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerRegistry/registries/replications", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _isRegionEndpointEnabled = BicepValue.DefineProperty(this, "IsRegionEndpointEnabled", ["properties", "regionEndpointEnabled"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _zoneRedundancy = BicepValue.DefineProperty(this, "ZoneRedundancy", ["properties", "zoneRedundancy"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ContainerRegistryReplication. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _isRegionEndpointEnabled = DefineProperty("IsRegionEndpointEnabled", ["properties", "regionEndpointEnabled"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _zoneRedundancy = DefineProperty("ZoneRedundancy", ["properties", "zoneRedundancy"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _status = DefineModelProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryService.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryService.cs index d0e324372e0b1..46a8b2553cee9 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryService.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryService.cs @@ -25,133 +25,209 @@ public partial class ContainerRegistryService : ProvisionableResource /// /// The name of the container registry. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The SKU of the container registry. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public ContainerRegistrySku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private ContainerRegistrySku? _sku; /// /// The encryption settings of container registry. /// - public BicepValue Encryption { get => _encryption; set => _encryption.Assign(value); } - private readonly BicepValue _encryption; + public ContainerRegistryEncryption Encryption + { + get { Initialize(); return _encryption!; } + set { Initialize(); AssignOrReplace(ref _encryption, value); } + } + private ContainerRegistryEncryption? _encryption; /// /// The identity of the container registry. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// The value that indicates whether the admin user is enabled. /// - public BicepValue IsAdminUserEnabled { get => _isAdminUserEnabled; set => _isAdminUserEnabled.Assign(value); } - private readonly BicepValue _isAdminUserEnabled; + public BicepValue IsAdminUserEnabled + { + get { Initialize(); return _isAdminUserEnabled!; } + set { Initialize(); _isAdminUserEnabled!.Assign(value); } + } + private BicepValue? _isAdminUserEnabled; /// /// Enable a single data endpoint per region for serving data. /// - public BicepValue IsDataEndpointEnabled { get => _isDataEndpointEnabled; set => _isDataEndpointEnabled.Assign(value); } - private readonly BicepValue _isDataEndpointEnabled; + public BicepValue IsDataEndpointEnabled + { + get { Initialize(); return _isDataEndpointEnabled!; } + set { Initialize(); _isDataEndpointEnabled!.Assign(value); } + } + private BicepValue? _isDataEndpointEnabled; /// /// Whether to allow trusted Azure services to access a network restricted /// registry. /// - public BicepValue NetworkRuleBypassOptions { get => _networkRuleBypassOptions; set => _networkRuleBypassOptions.Assign(value); } - private readonly BicepValue _networkRuleBypassOptions; + public BicepValue NetworkRuleBypassOptions + { + get { Initialize(); return _networkRuleBypassOptions!; } + set { Initialize(); _networkRuleBypassOptions!.Assign(value); } + } + private BicepValue? _networkRuleBypassOptions; /// /// The network rule set for a container registry. /// - public BicepValue NetworkRuleSet { get => _networkRuleSet; set => _networkRuleSet.Assign(value); } - private readonly BicepValue _networkRuleSet; + public ContainerRegistryNetworkRuleSet NetworkRuleSet + { + get { Initialize(); return _networkRuleSet!; } + set { Initialize(); AssignOrReplace(ref _networkRuleSet, value); } + } + private ContainerRegistryNetworkRuleSet? _networkRuleSet; /// /// The policies for a container registry. /// - public BicepValue Policies { get => _policies; set => _policies.Assign(value); } - private readonly BicepValue _policies; + public ContainerRegistryPolicies Policies + { + get { Initialize(); return _policies!; } + set { Initialize(); AssignOrReplace(ref _policies, value); } + } + private ContainerRegistryPolicies? _policies; /// /// Whether or not public network access is allowed for the container /// registry. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Whether or not zone redundancy is enabled for this container registry. /// - public BicepValue ZoneRedundancy { get => _zoneRedundancy; set => _zoneRedundancy.Assign(value); } - private readonly BicepValue _zoneRedundancy; + public BicepValue ZoneRedundancy + { + get { Initialize(); return _zoneRedundancy!; } + set { Initialize(); _zoneRedundancy!.Assign(value); } + } + private BicepValue? _zoneRedundancy; /// /// The creation date of the container registry in ISO8601 format. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// List of host names that will serve data when dataEndpointEnabled is /// true. /// - public BicepList DataEndpointHostNames { get => _dataEndpointHostNames; } - private readonly BicepList _dataEndpointHostNames; + public BicepList DataEndpointHostNames + { + get { Initialize(); return _dataEndpointHostNames!; } + } + private BicepList? _dataEndpointHostNames; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The URL that can be used to log into the container registry. /// - public BicepValue LoginServer { get => _loginServer; } - private readonly BicepValue _loginServer; + public BicepValue LoginServer + { + get { Initialize(); return _loginServer!; } + } + private BicepValue? _loginServer; /// /// List of private endpoint connections for a container registry. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// The provisioning state of the container registry at the time the /// operation was called. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The status of the container registry at the time the operation was /// called. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public ContainerRegistryResourceStatus Status + { + get { Initialize(); return _status!; } + } + private ContainerRegistryResourceStatus? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ContainerRegistryService. @@ -166,27 +242,34 @@ public partial class ContainerRegistryService : ProvisionableResource public ContainerRegistryService(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerRegistry/registries", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"], isRequired: true); - _encryption = BicepValue.DefineProperty(this, "Encryption", ["properties", "encryption"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _isAdminUserEnabled = BicepValue.DefineProperty(this, "IsAdminUserEnabled", ["properties", "adminUserEnabled"]); - _isDataEndpointEnabled = BicepValue.DefineProperty(this, "IsDataEndpointEnabled", ["properties", "dataEndpointEnabled"]); - _networkRuleBypassOptions = BicepValue.DefineProperty(this, "NetworkRuleBypassOptions", ["properties", "networkRuleBypassOptions"]); - _networkRuleSet = BicepValue.DefineProperty(this, "NetworkRuleSet", ["properties", "networkRuleSet"]); - _policies = BicepValue.DefineProperty(this, "Policies", ["properties", "policies"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _zoneRedundancy = BicepValue.DefineProperty(this, "ZoneRedundancy", ["properties", "zoneRedundancy"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationDate"], isOutput: true); - _dataEndpointHostNames = BicepList.DefineProperty(this, "DataEndpointHostNames", ["properties", "dataEndpointHostNames"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _loginServer = BicepValue.DefineProperty(this, "LoginServer", ["properties", "loginServer"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ContainerRegistryService. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _sku = DefineModelProperty("Sku", ["sku"], isRequired: true); + _encryption = DefineModelProperty("Encryption", ["properties", "encryption"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _isAdminUserEnabled = DefineProperty("IsAdminUserEnabled", ["properties", "adminUserEnabled"]); + _isDataEndpointEnabled = DefineProperty("IsDataEndpointEnabled", ["properties", "dataEndpointEnabled"]); + _networkRuleBypassOptions = DefineProperty("NetworkRuleBypassOptions", ["properties", "networkRuleBypassOptions"]); + _networkRuleSet = DefineModelProperty("NetworkRuleSet", ["properties", "networkRuleSet"]); + _policies = DefineModelProperty("Policies", ["properties", "policies"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _zoneRedundancy = DefineProperty("ZoneRedundancy", ["properties", "zoneRedundancy"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationDate"], isOutput: true); + _dataEndpointHostNames = DefineListProperty("DataEndpointHostNames", ["properties", "dataEndpointHostNames"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _loginServer = DefineProperty("LoginServer", ["properties", "loginServer"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _status = DefineModelProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryTask.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryTask.cs index 44985c8397eb1..600043ff16018 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryTask.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryTask.cs @@ -22,65 +22,105 @@ public partial class ContainerRegistryTask : ProvisionableResource /// /// The name of the container registry task. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The CPU configuration in terms of number of cores required for the run. /// - public BicepValue AgentCpu { get => _agentCpu; set => _agentCpu.Assign(value); } - private readonly BicepValue _agentCpu; + public BicepValue AgentCpu + { + get { Initialize(); return _agentCpu!; } + set { Initialize(); _agentCpu!.Assign(value); } + } + private BicepValue? _agentCpu; /// /// The dedicated agent pool for the task. /// - public BicepValue AgentPoolName { get => _agentPoolName; set => _agentPoolName.Assign(value); } - private readonly BicepValue _agentPoolName; + public BicepValue AgentPoolName + { + get { Initialize(); return _agentPoolName!; } + set { Initialize(); _agentPoolName!.Assign(value); } + } + private BicepValue? _agentPoolName; /// /// The properties that describes a set of credentials that will be used /// when this run is invoked. /// - public BicepValue Credentials { get => _credentials; set => _credentials.Assign(value); } - private readonly BicepValue _credentials; + public ContainerRegistryCredentials Credentials + { + get { Initialize(); return _credentials!; } + set { Initialize(); AssignOrReplace(ref _credentials, value); } + } + private ContainerRegistryCredentials? _credentials; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// The value of this property indicates whether the task resource is /// system task or not. /// - public BicepValue IsSystemTask { get => _isSystemTask; set => _isSystemTask.Assign(value); } - private readonly BicepValue _isSystemTask; + public BicepValue IsSystemTask + { + get { Initialize(); return _isSystemTask!; } + set { Initialize(); _isSystemTask!.Assign(value); } + } + private BicepValue? _isSystemTask; /// /// The template that describes the repository and tag information for run /// log artifact. /// - public BicepValue LogTemplate { get => _logTemplate; set => _logTemplate.Assign(value); } - private readonly BicepValue _logTemplate; + public BicepValue LogTemplate + { + get { Initialize(); return _logTemplate!; } + set { Initialize(); _logTemplate!.Assign(value); } + } + private BicepValue? _logTemplate; /// /// The platform properties against which the run has to happen. /// - public BicepValue Platform { get => _platform; set => _platform.Assign(value); } - private readonly BicepValue _platform; + public ContainerRegistryPlatformProperties Platform + { + get { Initialize(); return _platform!; } + set { Initialize(); AssignOrReplace(ref _platform, value); } + } + private ContainerRegistryPlatformProperties? _platform; /// /// The current status of task. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The properties of a task step. Please note @@ -94,56 +134,88 @@ public partial class ContainerRegistryTask : ProvisionableResource /// and /// Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryFileTaskStep. /// - public BicepValue Step { get => _step; set => _step.Assign(value); } - private readonly BicepValue _step; + public ContainerRegistryTaskStepProperties Step + { + get { Initialize(); return _step!; } + set { Initialize(); AssignOrReplace(ref _step, value); } + } + private ContainerRegistryTaskStepProperties? _step; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Run timeout in seconds. /// - public BicepValue TimeoutInSeconds { get => _timeoutInSeconds; set => _timeoutInSeconds.Assign(value); } - private readonly BicepValue _timeoutInSeconds; + public BicepValue TimeoutInSeconds + { + get { Initialize(); return _timeoutInSeconds!; } + set { Initialize(); _timeoutInSeconds!.Assign(value); } + } + private BicepValue? _timeoutInSeconds; /// /// The properties that describe all triggers for the task. /// - public BicepValue Trigger { get => _trigger; set => _trigger.Assign(value); } - private readonly BicepValue _trigger; + public ContainerRegistryTriggerProperties Trigger + { + get { Initialize(); return _trigger!; } + set { Initialize(); AssignOrReplace(ref _trigger, value); } + } + private ContainerRegistryTriggerProperties? _trigger; /// /// The creation date of task. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning state of the task. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerRegistryService. /// - public ContainerRegistryService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerRegistryService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerRegistryTask. @@ -158,25 +230,32 @@ public partial class ContainerRegistryTask : ProvisionableResource public ContainerRegistryTask(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerRegistry/registries/tasks", resourceVersion ?? "2019-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _agentCpu = BicepValue.DefineProperty(this, "AgentCpu", ["properties", "agentConfiguration", "cpu"]); - _agentPoolName = BicepValue.DefineProperty(this, "AgentPoolName", ["properties", "agentPoolName"]); - _credentials = BicepValue.DefineProperty(this, "Credentials", ["properties", "credentials"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _isSystemTask = BicepValue.DefineProperty(this, "IsSystemTask", ["properties", "isSystemTask"]); - _logTemplate = BicepValue.DefineProperty(this, "LogTemplate", ["properties", "logTemplate"]); - _platform = BicepValue.DefineProperty(this, "Platform", ["properties", "platform"]); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"]); - _step = BicepValue.DefineProperty(this, "Step", ["properties", "step"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _timeoutInSeconds = BicepValue.DefineProperty(this, "TimeoutInSeconds", ["properties", "timeout"]); - _trigger = BicepValue.DefineProperty(this, "Trigger", ["properties", "trigger"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationDate"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ContainerRegistryTask. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _agentCpu = DefineProperty("AgentCpu", ["properties", "agentConfiguration", "cpu"]); + _agentPoolName = DefineProperty("AgentPoolName", ["properties", "agentPoolName"]); + _credentials = DefineModelProperty("Credentials", ["properties", "credentials"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _isSystemTask = DefineProperty("IsSystemTask", ["properties", "isSystemTask"]); + _logTemplate = DefineProperty("LogTemplate", ["properties", "logTemplate"]); + _platform = DefineModelProperty("Platform", ["properties", "platform"]); + _status = DefineProperty("Status", ["properties", "status"]); + _step = DefineModelProperty("Step", ["properties", "step"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _timeoutInSeconds = DefineProperty("TimeoutInSeconds", ["properties", "timeout"]); + _trigger = DefineModelProperty("Trigger", ["properties", "trigger"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationDate"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryTaskRun.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryTaskRun.cs index 09e465c281ba5..1a1eab347ec8e 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryTaskRun.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryTaskRun.cs @@ -21,27 +21,43 @@ public partial class ContainerRegistryTaskRun : ProvisionableResource /// /// The name of the task run. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// How the run should be forced to rerun even if the run request /// configuration has not changed. /// - public BicepValue ForceUpdateTag { get => _forceUpdateTag; set => _forceUpdateTag.Assign(value); } - private readonly BicepValue _forceUpdateTag; + public BicepValue ForceUpdateTag + { + get { Initialize(); return _forceUpdateTag!; } + set { Initialize(); _forceUpdateTag!.Assign(value); } + } + private BicepValue? _forceUpdateTag; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// The location of the resource. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The request (parameters) for the run Please note @@ -56,38 +72,58 @@ public partial class ContainerRegistryTaskRun : ProvisionableResource /// and /// Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTaskRunContent. /// - public BicepValue RunRequest { get => _runRequest; set => _runRequest.Assign(value); } - private readonly BicepValue _runRequest; + public ContainerRegistryRunContent RunRequest + { + get { Initialize(); return _runRequest!; } + set { Initialize(); AssignOrReplace(ref _runRequest, value); } + } + private ContainerRegistryRunContent? _runRequest; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning state of this task run. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The result of this task run. /// - public BicepValue RunResult { get => _runResult; } - private readonly BicepValue _runResult; + public ContainerRegistryRunData RunResult + { + get { Initialize(); return _runResult!; } + } + private ContainerRegistryRunData? _runResult; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerRegistryService. /// - public ContainerRegistryService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerRegistryService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerRegistryTaskRun. @@ -102,16 +138,23 @@ public partial class ContainerRegistryTaskRun : ProvisionableResource public ContainerRegistryTaskRun(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerRegistry/registries/taskRuns", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _forceUpdateTag = BicepValue.DefineProperty(this, "ForceUpdateTag", ["properties", "forceUpdateTag"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _location = BicepValue.DefineProperty(this, "Location", ["location"]); - _runRequest = BicepValue.DefineProperty(this, "RunRequest", ["properties", "runRequest"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _runResult = BicepValue.DefineProperty(this, "RunResult", ["properties", "runResult"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ContainerRegistryTaskRun. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _forceUpdateTag = DefineProperty("ForceUpdateTag", ["properties", "forceUpdateTag"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _location = DefineProperty("Location", ["location"]); + _runRequest = DefineModelProperty("RunRequest", ["properties", "runRequest"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _runResult = DefineModelProperty("RunResult", ["properties", "runResult"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryToken.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryToken.cs index ab464b306344d..a4e09a9c2236f 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryToken.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryToken.cs @@ -22,57 +22,89 @@ public partial class ContainerRegistryToken : ProvisionableResource /// /// The name of the token. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The credentials that can be used for authenticating the token. /// - public BicepValue Credentials { get => _credentials; set => _credentials.Assign(value); } - private readonly BicepValue _credentials; + public ContainerRegistryTokenCredentials Credentials + { + get { Initialize(); return _credentials!; } + set { Initialize(); AssignOrReplace(ref _credentials, value); } + } + private ContainerRegistryTokenCredentials? _credentials; /// /// The resource ID of the scope map to which the token will be associated /// with. /// - public BicepValue ScopeMapId { get => _scopeMapId; set => _scopeMapId.Assign(value); } - private readonly BicepValue _scopeMapId; + public BicepValue ScopeMapId + { + get { Initialize(); return _scopeMapId!; } + set { Initialize(); _scopeMapId!.Assign(value); } + } + private BicepValue? _scopeMapId; /// /// The status of the token example enabled or disabled. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The creation date of scope map. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerRegistryService. /// - public ContainerRegistryService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerRegistryService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerRegistryToken. @@ -87,15 +119,22 @@ public partial class ContainerRegistryToken : ProvisionableResource public ContainerRegistryToken(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerRegistry/registries/tokens", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _credentials = BicepValue.DefineProperty(this, "Credentials", ["properties", "credentials"]); - _scopeMapId = BicepValue.DefineProperty(this, "ScopeMapId", ["properties", "scopeMapId"]); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationDate"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ContainerRegistryToken. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _credentials = DefineModelProperty("Credentials", ["properties", "credentials"]); + _scopeMapId = DefineProperty("ScopeMapId", ["properties", "scopeMapId"]); + _status = DefineProperty("Status", ["properties", "status"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationDate"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryWebhook.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryWebhook.cs index 32f6c2d67b4af..710cec7b481f4 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryWebhook.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ContainerRegistryWebhook.cs @@ -22,27 +22,43 @@ public partial class ContainerRegistryWebhook : ProvisionableResource /// /// The name of the webhook. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The location of the webhook. This cannot be changed after the resource /// is created. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The list of actions that trigger the webhook to post notifications. /// - public BicepList Actions { get => _actions; set => _actions.Assign(value); } - private readonly BicepList _actions; + public BicepList Actions + { + get { Initialize(); return _actions!; } + set { Initialize(); _actions!.Assign(value); } + } + private BicepList? _actions; /// /// Custom headers that will be added to the webhook notifications. /// - public BicepDictionary CustomHeaders { get => _customHeaders; set => _customHeaders.Assign(value); } - private readonly BicepDictionary _customHeaders; + public BicepDictionary CustomHeaders + { + get { Initialize(); return _customHeaders!; } + set { Initialize(); _customHeaders!.Assign(value); } + } + private BicepDictionary? _customHeaders; /// /// The scope of repositories where the event can be triggered. For @@ -51,51 +67,80 @@ public partial class ContainerRegistryWebhook : ProvisionableResource /// 'foo:bar' only. 'foo' is equivalent to /// 'foo:latest'. Empty means all events. /// - public BicepValue Scope { get => _scope; set => _scope.Assign(value); } - private readonly BicepValue _scope; + public BicepValue Scope + { + get { Initialize(); return _scope!; } + set { Initialize(); _scope!.Assign(value); } + } + private BicepValue? _scope; /// /// The service URI for the webhook to post notifications. /// - public BicepValue ServiceUri { get => _serviceUri; set => _serviceUri.Assign(value); } - private readonly BicepValue _serviceUri; + public BicepValue ServiceUri + { + get { Initialize(); return _serviceUri!; } + set { Initialize(); _serviceUri!.Assign(value); } + } + private BicepValue? _serviceUri; /// /// The status of the webhook at the time the operation was called. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The tags for the webhook. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning state of the webhook at the time the operation was /// called. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerRegistryService. /// - public ContainerRegistryService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerRegistryService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerRegistryWebhook. @@ -110,18 +155,25 @@ public partial class ContainerRegistryWebhook : ProvisionableResource public ContainerRegistryWebhook(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerRegistry/registries/webhooks", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _actions = BicepList.DefineProperty(this, "Actions", ["properties", "actions"]); - _customHeaders = BicepDictionary.DefineProperty(this, "CustomHeaders", ["properties", "customHeaders"]); - _scope = BicepValue.DefineProperty(this, "Scope", ["properties", "scope"]); - _serviceUri = BicepValue.DefineProperty(this, "ServiceUri", ["properties", "serviceUri"]); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ContainerRegistryWebhook. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _actions = DefineListProperty("Actions", ["properties", "actions"]); + _customHeaders = DefineDictionaryProperty("CustomHeaders", ["properties", "customHeaders"]); + _scope = DefineProperty("Scope", ["properties", "scope"]); + _serviceUri = DefineProperty("ServiceUri", ["properties", "serviceUri"]); + _status = DefineProperty("Status", ["properties", "status"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryBaseImageDependency.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryBaseImageDependency.cs index 2a5e7e7c74bb6..b6b5459f9112d 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryBaseImageDependency.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryBaseImageDependency.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,66 @@ public partial class ContainerRegistryBaseImageDependency : ProvisionableConstru /// /// The type of the base image dependency. /// - public BicepValue DependencyType { get => _dependencyType; } - private readonly BicepValue _dependencyType; + public BicepValue DependencyType + { + get { Initialize(); return _dependencyType!; } + } + private BicepValue? _dependencyType; /// /// The registry login server. /// - public BicepValue Registry { get => _registry; } - private readonly BicepValue _registry; + public BicepValue Registry + { + get { Initialize(); return _registry!; } + } + private BicepValue? _registry; /// /// The repository name. /// - public BicepValue Repository { get => _repository; } - private readonly BicepValue _repository; + public BicepValue Repository + { + get { Initialize(); return _repository!; } + } + private BicepValue? _repository; /// /// The tag name. /// - public BicepValue Tag { get => _tag; } - private readonly BicepValue _tag; + public BicepValue Tag + { + get { Initialize(); return _tag!; } + } + private BicepValue? _tag; /// /// The sha256-based digest of the image manifest. /// - public BicepValue Digest { get => _digest; } - private readonly BicepValue _digest; + public BicepValue Digest + { + get { Initialize(); return _digest!; } + } + private BicepValue? _digest; /// /// Creates a new ContainerRegistryBaseImageDependency. /// public ContainerRegistryBaseImageDependency() { - _dependencyType = BicepValue.DefineProperty(this, "DependencyType", ["type"], isOutput: true); - _registry = BicepValue.DefineProperty(this, "Registry", ["registry"], isOutput: true); - _repository = BicepValue.DefineProperty(this, "Repository", ["repository"], isOutput: true); - _tag = BicepValue.DefineProperty(this, "Tag", ["tag"], isOutput: true); - _digest = BicepValue.DefineProperty(this, "Digest", ["digest"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryBaseImageDependency. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _dependencyType = DefineProperty("DependencyType", ["type"], isOutput: true); + _registry = DefineProperty("Registry", ["registry"], isOutput: true); + _repository = DefineProperty("Repository", ["repository"], isOutput: true); + _tag = DefineProperty("Tag", ["tag"], isOutput: true); + _digest = DefineProperty("Digest", ["digest"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryBaseImageTrigger.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryBaseImageTrigger.cs index 2a13b1e6af469..9f52399bd3348 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryBaseImageTrigger.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryBaseImageTrigger.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,71 @@ public partial class ContainerRegistryBaseImageTrigger : ProvisionableConstruct /// /// The type of the auto trigger for base image dependency updates. /// - public BicepValue BaseImageTriggerType { get => _baseImageTriggerType; set => _baseImageTriggerType.Assign(value); } - private readonly BicepValue _baseImageTriggerType; + public BicepValue BaseImageTriggerType + { + get { Initialize(); return _baseImageTriggerType!; } + set { Initialize(); _baseImageTriggerType!.Assign(value); } + } + private BicepValue? _baseImageTriggerType; /// /// The endpoint URL for receiving update triggers. /// - public BicepValue UpdateTriggerEndpoint { get => _updateTriggerEndpoint; set => _updateTriggerEndpoint.Assign(value); } - private readonly BicepValue _updateTriggerEndpoint; + public BicepValue UpdateTriggerEndpoint + { + get { Initialize(); return _updateTriggerEndpoint!; } + set { Initialize(); _updateTriggerEndpoint!.Assign(value); } + } + private BicepValue? _updateTriggerEndpoint; /// /// Type of Payload body for Base image update triggers. /// - public BicepValue UpdateTriggerPayloadType { get => _updateTriggerPayloadType; set => _updateTriggerPayloadType.Assign(value); } - private readonly BicepValue _updateTriggerPayloadType; + public BicepValue UpdateTriggerPayloadType + { + get { Initialize(); return _updateTriggerPayloadType!; } + set { Initialize(); _updateTriggerPayloadType!.Assign(value); } + } + private BicepValue? _updateTriggerPayloadType; /// /// The current status of trigger. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The name of the trigger. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new ContainerRegistryBaseImageTrigger. /// public ContainerRegistryBaseImageTrigger() { - _baseImageTriggerType = BicepValue.DefineProperty(this, "BaseImageTriggerType", ["baseImageTriggerType"]); - _updateTriggerEndpoint = BicepValue.DefineProperty(this, "UpdateTriggerEndpoint", ["updateTriggerEndpoint"]); - _updateTriggerPayloadType = BicepValue.DefineProperty(this, "UpdateTriggerPayloadType", ["updateTriggerPayloadType"]); - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryBaseImageTrigger. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _baseImageTriggerType = DefineProperty("BaseImageTriggerType", ["baseImageTriggerType"]); + _updateTriggerEndpoint = DefineProperty("UpdateTriggerEndpoint", ["updateTriggerEndpoint"]); + _updateTriggerPayloadType = DefineProperty("UpdateTriggerPayloadType", ["updateTriggerPayloadType"]); + _status = DefineProperty("Status", ["status"]); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryCredentials.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryCredentials.cs index e2e477de3f241..041f110686ab5 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryCredentials.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryCredentials.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -21,8 +23,12 @@ public partial class ContainerRegistryCredentials : ProvisionableConstruct /// generated using the given scope. These credentials will be used to /// login to the source registry during the run. /// - public BicepValue SourceRegistryLoginMode { get => _sourceRegistryLoginMode; set => _sourceRegistryLoginMode.Assign(value); } - private readonly BicepValue _sourceRegistryLoginMode; + public BicepValue SourceRegistryLoginMode + { + get { Initialize(); return _sourceRegistryLoginMode!; } + set { Initialize(); _sourceRegistryLoginMode!.Assign(value); } + } + private BicepValue? _sourceRegistryLoginMode; /// /// Describes the credential parameters for accessing other custom @@ -31,15 +37,27 @@ public partial class ContainerRegistryCredentials : ProvisionableConstruct /// value of the item will be the registry credentials for accessing the /// registry. /// - public BicepDictionary CustomRegistries { get => _customRegistries; set => _customRegistries.Assign(value); } - private readonly BicepDictionary _customRegistries; + public BicepDictionary CustomRegistries + { + get { Initialize(); return _customRegistries!; } + set { Initialize(); _customRegistries!.Assign(value); } + } + private BicepDictionary? _customRegistries; /// /// Creates a new ContainerRegistryCredentials. /// public ContainerRegistryCredentials() { - _sourceRegistryLoginMode = BicepValue.DefineProperty(this, "SourceRegistryLoginMode", ["sourceRegistry", "loginMode"]); - _customRegistries = BicepDictionary.DefineProperty(this, "CustomRegistries", ["customRegistries"]); + } + + /// + /// Define all the provisionable properties of ContainerRegistryCredentials. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _sourceRegistryLoginMode = DefineProperty("SourceRegistryLoginMode", ["sourceRegistry", "loginMode"]); + _customRegistries = DefineDictionaryProperty("CustomRegistries", ["customRegistries"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildContent.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildContent.cs index 4a0ea44b6fccf..df9f75501c9dd 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildContent.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildContent.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,58 +19,94 @@ public partial class ContainerRegistryDockerBuildContent : ContainerRegistryRunC /// /// The fully qualified image names including the repository and tag. /// - public BicepList ImageNames { get => _imageNames; set => _imageNames.Assign(value); } - private readonly BicepList _imageNames; + public BicepList ImageNames + { + get { Initialize(); return _imageNames!; } + set { Initialize(); _imageNames!.Assign(value); } + } + private BicepList? _imageNames; /// /// The value of this property indicates whether the image built should be /// pushed to the registry or not. /// - public BicepValue IsPushEnabled { get => _isPushEnabled; set => _isPushEnabled.Assign(value); } - private readonly BicepValue _isPushEnabled; + public BicepValue IsPushEnabled + { + get { Initialize(); return _isPushEnabled!; } + set { Initialize(); _isPushEnabled!.Assign(value); } + } + private BicepValue? _isPushEnabled; /// /// The value of this property indicates whether the image cache is enabled /// or not. /// - public BicepValue NoCache { get => _noCache; set => _noCache.Assign(value); } - private readonly BicepValue _noCache; + public BicepValue NoCache + { + get { Initialize(); return _noCache!; } + set { Initialize(); _noCache!.Assign(value); } + } + private BicepValue? _noCache; /// /// The Docker file path relative to the source location. /// - public BicepValue DockerFilePath { get => _dockerFilePath; set => _dockerFilePath.Assign(value); } - private readonly BicepValue _dockerFilePath; + public BicepValue DockerFilePath + { + get { Initialize(); return _dockerFilePath!; } + set { Initialize(); _dockerFilePath!.Assign(value); } + } + private BicepValue? _dockerFilePath; /// /// The name of the target build stage for the docker build. /// - public BicepValue Target { get => _target; set => _target.Assign(value); } - private readonly BicepValue _target; + public BicepValue Target + { + get { Initialize(); return _target!; } + set { Initialize(); _target!.Assign(value); } + } + private BicepValue? _target; /// /// The collection of override arguments to be used when executing the run. /// - public BicepList Arguments { get => _arguments; set => _arguments.Assign(value); } - private readonly BicepList _arguments; + public BicepList Arguments + { + get { Initialize(); return _arguments!; } + set { Initialize(); _arguments!.Assign(value); } + } + private BicepList? _arguments; /// /// Run timeout in seconds. /// - public BicepValue TimeoutInSeconds { get => _timeoutInSeconds; set => _timeoutInSeconds.Assign(value); } - private readonly BicepValue _timeoutInSeconds; + public BicepValue TimeoutInSeconds + { + get { Initialize(); return _timeoutInSeconds!; } + set { Initialize(); _timeoutInSeconds!.Assign(value); } + } + private BicepValue? _timeoutInSeconds; /// /// The platform properties against which the run has to happen. /// - public BicepValue Platform { get => _platform; set => _platform.Assign(value); } - private readonly BicepValue _platform; + public ContainerRegistryPlatformProperties Platform + { + get { Initialize(); return _platform!; } + set { Initialize(); AssignOrReplace(ref _platform, value); } + } + private ContainerRegistryPlatformProperties? _platform; /// /// The CPU configuration in terms of number of cores required for the run. /// - public BicepValue AgentCpu { get => _agentCpu; set => _agentCpu.Assign(value); } - private readonly BicepValue _agentCpu; + public BicepValue AgentCpu + { + get { Initialize(); return _agentCpu!; } + set { Initialize(); _agentCpu!.Assign(value); } + } + private BicepValue? _agentCpu; /// /// The URL(absolute or relative) of the source context. It can be an URL @@ -76,32 +114,49 @@ public partial class ContainerRegistryDockerBuildContent : ContainerRegistryRunC /// relative path should be obtained from calling listBuildSourceUploadUrl /// API. /// - public BicepValue SourceLocation { get => _sourceLocation; set => _sourceLocation.Assign(value); } - private readonly BicepValue _sourceLocation; + public BicepValue SourceLocation + { + get { Initialize(); return _sourceLocation!; } + set { Initialize(); _sourceLocation!.Assign(value); } + } + private BicepValue? _sourceLocation; /// /// The properties that describes a set of credentials that will be used /// when this run is invoked. /// - public BicepValue Credentials { get => _credentials; set => _credentials.Assign(value); } - private readonly BicepValue _credentials; + public ContainerRegistryCredentials Credentials + { + get { Initialize(); return _credentials!; } + set { Initialize(); AssignOrReplace(ref _credentials, value); } + } + private ContainerRegistryCredentials? _credentials; /// /// Creates a new ContainerRegistryDockerBuildContent. /// public ContainerRegistryDockerBuildContent() : base() { - BicepValue.DefineProperty(this, "type", ["type"], defaultValue: "DockerBuildRequest"); - _imageNames = BicepList.DefineProperty(this, "ImageNames", ["imageNames"]); - _isPushEnabled = BicepValue.DefineProperty(this, "IsPushEnabled", ["isPushEnabled"]); - _noCache = BicepValue.DefineProperty(this, "NoCache", ["noCache"]); - _dockerFilePath = BicepValue.DefineProperty(this, "DockerFilePath", ["dockerFilePath"]); - _target = BicepValue.DefineProperty(this, "Target", ["target"]); - _arguments = BicepList.DefineProperty(this, "Arguments", ["arguments"]); - _timeoutInSeconds = BicepValue.DefineProperty(this, "TimeoutInSeconds", ["timeout"]); - _platform = BicepValue.DefineProperty(this, "Platform", ["platform"]); - _agentCpu = BicepValue.DefineProperty(this, "AgentCpu", ["agentConfiguration", "cpu"]); - _sourceLocation = BicepValue.DefineProperty(this, "SourceLocation", ["sourceLocation"]); - _credentials = BicepValue.DefineProperty(this, "Credentials", ["credentials"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryDockerBuildContent. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("type", ["type"], defaultValue: "DockerBuildRequest"); + _imageNames = DefineListProperty("ImageNames", ["imageNames"]); + _isPushEnabled = DefineProperty("IsPushEnabled", ["isPushEnabled"]); + _noCache = DefineProperty("NoCache", ["noCache"]); + _dockerFilePath = DefineProperty("DockerFilePath", ["dockerFilePath"]); + _target = DefineProperty("Target", ["target"]); + _arguments = DefineListProperty("Arguments", ["arguments"]); + _timeoutInSeconds = DefineProperty("TimeoutInSeconds", ["timeout"]); + _platform = DefineModelProperty("Platform", ["platform"]); + _agentCpu = DefineProperty("AgentCpu", ["agentConfiguration", "cpu"]); + _sourceLocation = DefineProperty("SourceLocation", ["sourceLocation"]); + _credentials = DefineModelProperty("Credentials", ["credentials"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.cs index b311ca96f8094..bb8049cd132fe 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,53 +19,86 @@ public partial class ContainerRegistryDockerBuildStep : ContainerRegistryTaskSte /// /// The fully qualified image names including the repository and tag. /// - public BicepList ImageNames { get => _imageNames; set => _imageNames.Assign(value); } - private readonly BicepList _imageNames; + public BicepList ImageNames + { + get { Initialize(); return _imageNames!; } + set { Initialize(); _imageNames!.Assign(value); } + } + private BicepList? _imageNames; /// /// The value of this property indicates whether the image built should be /// pushed to the registry or not. /// - public BicepValue IsPushEnabled { get => _isPushEnabled; set => _isPushEnabled.Assign(value); } - private readonly BicepValue _isPushEnabled; + public BicepValue IsPushEnabled + { + get { Initialize(); return _isPushEnabled!; } + set { Initialize(); _isPushEnabled!.Assign(value); } + } + private BicepValue? _isPushEnabled; /// /// The value of this property indicates whether the image cache is enabled /// or not. /// - public BicepValue NoCache { get => _noCache; set => _noCache.Assign(value); } - private readonly BicepValue _noCache; + public BicepValue NoCache + { + get { Initialize(); return _noCache!; } + set { Initialize(); _noCache!.Assign(value); } + } + private BicepValue? _noCache; /// /// The Docker file path relative to the source context. /// - public BicepValue DockerFilePath { get => _dockerFilePath; set => _dockerFilePath.Assign(value); } - private readonly BicepValue _dockerFilePath; + public BicepValue DockerFilePath + { + get { Initialize(); return _dockerFilePath!; } + set { Initialize(); _dockerFilePath!.Assign(value); } + } + private BicepValue? _dockerFilePath; /// /// The name of the target build stage for the docker build. /// - public BicepValue Target { get => _target; set => _target.Assign(value); } - private readonly BicepValue _target; + public BicepValue Target + { + get { Initialize(); return _target!; } + set { Initialize(); _target!.Assign(value); } + } + private BicepValue? _target; /// /// The collection of override arguments to be used when executing this /// build step. /// - public BicepList Arguments { get => _arguments; set => _arguments.Assign(value); } - private readonly BicepList _arguments; + public BicepList Arguments + { + get { Initialize(); return _arguments!; } + set { Initialize(); _arguments!.Assign(value); } + } + private BicepList? _arguments; /// /// Creates a new ContainerRegistryDockerBuildStep. /// public ContainerRegistryDockerBuildStep() : base() { - BicepValue.DefineProperty(this, "type", ["type"], defaultValue: "Docker"); - _imageNames = BicepList.DefineProperty(this, "ImageNames", ["imageNames"]); - _isPushEnabled = BicepValue.DefineProperty(this, "IsPushEnabled", ["isPushEnabled"]); - _noCache = BicepValue.DefineProperty(this, "NoCache", ["noCache"]); - _dockerFilePath = BicepValue.DefineProperty(this, "DockerFilePath", ["dockerFilePath"]); - _target = BicepValue.DefineProperty(this, "Target", ["target"]); - _arguments = BicepList.DefineProperty(this, "Arguments", ["arguments"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryDockerBuildStep. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("type", ["type"], defaultValue: "Docker"); + _imageNames = DefineListProperty("ImageNames", ["imageNames"]); + _isPushEnabled = DefineProperty("IsPushEnabled", ["isPushEnabled"]); + _noCache = DefineProperty("NoCache", ["noCache"]); + _dockerFilePath = DefineProperty("DockerFilePath", ["dockerFilePath"]); + _target = DefineProperty("Target", ["target"]); + _arguments = DefineListProperty("Arguments", ["arguments"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskRunContent.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskRunContent.cs index 82250f49f0be1..7eac7ae2d98aa 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskRunContent.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskRunContent.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,39 +19,63 @@ public partial class ContainerRegistryEncodedTaskRunContent : ContainerRegistryR /// /// Base64 encoded value of the template/definition file content. /// - public BicepValue EncodedTaskContent { get => _encodedTaskContent; set => _encodedTaskContent.Assign(value); } - private readonly BicepValue _encodedTaskContent; + public BicepValue EncodedTaskContent + { + get { Initialize(); return _encodedTaskContent!; } + set { Initialize(); _encodedTaskContent!.Assign(value); } + } + private BicepValue? _encodedTaskContent; /// /// Base64 encoded value of the parameters/values file content. /// - public BicepValue EncodedValuesContent { get => _encodedValuesContent; set => _encodedValuesContent.Assign(value); } - private readonly BicepValue _encodedValuesContent; + public BicepValue EncodedValuesContent + { + get { Initialize(); return _encodedValuesContent!; } + set { Initialize(); _encodedValuesContent!.Assign(value); } + } + private BicepValue? _encodedValuesContent; /// /// The collection of overridable values that can be passed when running a /// task. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Run timeout in seconds. /// - public BicepValue TimeoutInSeconds { get => _timeoutInSeconds; set => _timeoutInSeconds.Assign(value); } - private readonly BicepValue _timeoutInSeconds; + public BicepValue TimeoutInSeconds + { + get { Initialize(); return _timeoutInSeconds!; } + set { Initialize(); _timeoutInSeconds!.Assign(value); } + } + private BicepValue? _timeoutInSeconds; /// /// The platform properties against which the run has to happen. /// - public BicepValue Platform { get => _platform; set => _platform.Assign(value); } - private readonly BicepValue _platform; + public ContainerRegistryPlatformProperties Platform + { + get { Initialize(); return _platform!; } + set { Initialize(); AssignOrReplace(ref _platform, value); } + } + private ContainerRegistryPlatformProperties? _platform; /// /// The CPU configuration in terms of number of cores required for the run. /// - public BicepValue AgentCpu { get => _agentCpu; set => _agentCpu.Assign(value); } - private readonly BicepValue _agentCpu; + public BicepValue AgentCpu + { + get { Initialize(); return _agentCpu!; } + set { Initialize(); _agentCpu!.Assign(value); } + } + private BicepValue? _agentCpu; /// /// The URL(absolute or relative) of the source context. It can be an URL @@ -57,29 +83,46 @@ public partial class ContainerRegistryEncodedTaskRunContent : ContainerRegistryR /// relative path should be obtained from calling listBuildSourceUploadUrl /// API. /// - public BicepValue SourceLocation { get => _sourceLocation; set => _sourceLocation.Assign(value); } - private readonly BicepValue _sourceLocation; + public BicepValue SourceLocation + { + get { Initialize(); return _sourceLocation!; } + set { Initialize(); _sourceLocation!.Assign(value); } + } + private BicepValue? _sourceLocation; /// /// The properties that describes a set of credentials that will be used /// when this run is invoked. /// - public BicepValue Credentials { get => _credentials; set => _credentials.Assign(value); } - private readonly BicepValue _credentials; + public ContainerRegistryCredentials Credentials + { + get { Initialize(); return _credentials!; } + set { Initialize(); AssignOrReplace(ref _credentials, value); } + } + private ContainerRegistryCredentials? _credentials; /// /// Creates a new ContainerRegistryEncodedTaskRunContent. /// public ContainerRegistryEncodedTaskRunContent() : base() { - BicepValue.DefineProperty(this, "type", ["type"], defaultValue: "EncodedTaskRunRequest"); - _encodedTaskContent = BicepValue.DefineProperty(this, "EncodedTaskContent", ["encodedTaskContent"]); - _encodedValuesContent = BicepValue.DefineProperty(this, "EncodedValuesContent", ["encodedValuesContent"]); - _values = BicepList.DefineProperty(this, "Values", ["values"]); - _timeoutInSeconds = BicepValue.DefineProperty(this, "TimeoutInSeconds", ["timeout"]); - _platform = BicepValue.DefineProperty(this, "Platform", ["platform"]); - _agentCpu = BicepValue.DefineProperty(this, "AgentCpu", ["agentConfiguration", "cpu"]); - _sourceLocation = BicepValue.DefineProperty(this, "SourceLocation", ["sourceLocation"]); - _credentials = BicepValue.DefineProperty(this, "Credentials", ["credentials"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryEncodedTaskRunContent. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("type", ["type"], defaultValue: "EncodedTaskRunRequest"); + _encodedTaskContent = DefineProperty("EncodedTaskContent", ["encodedTaskContent"]); + _encodedValuesContent = DefineProperty("EncodedValuesContent", ["encodedValuesContent"]); + _values = DefineListProperty("Values", ["values"]); + _timeoutInSeconds = DefineProperty("TimeoutInSeconds", ["timeout"]); + _platform = DefineModelProperty("Platform", ["platform"]); + _agentCpu = DefineProperty("AgentCpu", ["agentConfiguration", "cpu"]); + _sourceLocation = DefineProperty("SourceLocation", ["sourceLocation"]); + _credentials = DefineModelProperty("Credentials", ["credentials"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.cs index c31e6a1c0aa89..c093b5a2e2ecd 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,51 @@ public partial class ContainerRegistryEncodedTaskStep : ContainerRegistryTaskSte /// /// Base64 encoded value of the template/definition file content. /// - public BicepValue EncodedTaskContent { get => _encodedTaskContent; set => _encodedTaskContent.Assign(value); } - private readonly BicepValue _encodedTaskContent; + public BicepValue EncodedTaskContent + { + get { Initialize(); return _encodedTaskContent!; } + set { Initialize(); _encodedTaskContent!.Assign(value); } + } + private BicepValue? _encodedTaskContent; /// /// Base64 encoded value of the parameters/values file content. /// - public BicepValue EncodedValuesContent { get => _encodedValuesContent; set => _encodedValuesContent.Assign(value); } - private readonly BicepValue _encodedValuesContent; + public BicepValue EncodedValuesContent + { + get { Initialize(); return _encodedValuesContent!; } + set { Initialize(); _encodedValuesContent!.Assign(value); } + } + private BicepValue? _encodedValuesContent; /// /// The collection of overridable values that can be passed when running a /// task. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new ContainerRegistryEncodedTaskStep. /// public ContainerRegistryEncodedTaskStep() : base() { - BicepValue.DefineProperty(this, "type", ["type"], defaultValue: "EncodedTask"); - _encodedTaskContent = BicepValue.DefineProperty(this, "EncodedTaskContent", ["encodedTaskContent"]); - _encodedValuesContent = BicepValue.DefineProperty(this, "EncodedValuesContent", ["encodedValuesContent"]); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryEncodedTaskStep. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("type", ["type"], defaultValue: "EncodedTask"); + _encodedTaskContent = DefineProperty("EncodedTaskContent", ["encodedTaskContent"]); + _encodedValuesContent = DefineProperty("EncodedValuesContent", ["encodedValuesContent"]); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryEncryption.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryEncryption.cs index cca29eefc074f..1c960e4e6ae86 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryEncryption.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryEncryption.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class ContainerRegistryEncryption : ProvisionableConstruct /// Indicates whether or not the encryption is enabled for container /// registry. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Key vault properties. /// - public BicepValue KeyVaultProperties { get => _keyVaultProperties; set => _keyVaultProperties.Assign(value); } - private readonly BicepValue _keyVaultProperties; + public ContainerRegistryKeyVaultProperties KeyVaultProperties + { + get { Initialize(); return _keyVaultProperties!; } + set { Initialize(); AssignOrReplace(ref _keyVaultProperties, value); } + } + private ContainerRegistryKeyVaultProperties? _keyVaultProperties; /// /// Creates a new ContainerRegistryEncryption. /// public ContainerRegistryEncryption() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _keyVaultProperties = BicepValue.DefineProperty(this, "KeyVaultProperties", ["keyVaultProperties"]); + } + + /// + /// Define all the provisionable properties of ContainerRegistryEncryption. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _keyVaultProperties = DefineModelProperty("KeyVaultProperties", ["keyVaultProperties"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskRunContent.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskRunContent.cs index b3dbdcd6f9e4f..e07dec8f81ef0 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskRunContent.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskRunContent.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,39 +19,63 @@ public partial class ContainerRegistryFileTaskRunContent : ContainerRegistryRunC /// /// The template/definition file path relative to the source. /// - public BicepValue TaskFilePath { get => _taskFilePath; set => _taskFilePath.Assign(value); } - private readonly BicepValue _taskFilePath; + public BicepValue TaskFilePath + { + get { Initialize(); return _taskFilePath!; } + set { Initialize(); _taskFilePath!.Assign(value); } + } + private BicepValue? _taskFilePath; /// /// The values/parameters file path relative to the source. /// - public BicepValue ValuesFilePath { get => _valuesFilePath; set => _valuesFilePath.Assign(value); } - private readonly BicepValue _valuesFilePath; + public BicepValue ValuesFilePath + { + get { Initialize(); return _valuesFilePath!; } + set { Initialize(); _valuesFilePath!.Assign(value); } + } + private BicepValue? _valuesFilePath; /// /// The collection of overridable values that can be passed when running a /// task. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Run timeout in seconds. /// - public BicepValue TimeoutInSeconds { get => _timeoutInSeconds; set => _timeoutInSeconds.Assign(value); } - private readonly BicepValue _timeoutInSeconds; + public BicepValue TimeoutInSeconds + { + get { Initialize(); return _timeoutInSeconds!; } + set { Initialize(); _timeoutInSeconds!.Assign(value); } + } + private BicepValue? _timeoutInSeconds; /// /// The platform properties against which the run has to happen. /// - public BicepValue Platform { get => _platform; set => _platform.Assign(value); } - private readonly BicepValue _platform; + public ContainerRegistryPlatformProperties Platform + { + get { Initialize(); return _platform!; } + set { Initialize(); AssignOrReplace(ref _platform, value); } + } + private ContainerRegistryPlatformProperties? _platform; /// /// The CPU configuration in terms of number of cores required for the run. /// - public BicepValue AgentCpu { get => _agentCpu; set => _agentCpu.Assign(value); } - private readonly BicepValue _agentCpu; + public BicepValue AgentCpu + { + get { Initialize(); return _agentCpu!; } + set { Initialize(); _agentCpu!.Assign(value); } + } + private BicepValue? _agentCpu; /// /// The URL(absolute or relative) of the source context. It can be an URL @@ -57,29 +83,46 @@ public partial class ContainerRegistryFileTaskRunContent : ContainerRegistryRunC /// relative path should be obtained from calling listBuildSourceUploadUrl /// API. /// - public BicepValue SourceLocation { get => _sourceLocation; set => _sourceLocation.Assign(value); } - private readonly BicepValue _sourceLocation; + public BicepValue SourceLocation + { + get { Initialize(); return _sourceLocation!; } + set { Initialize(); _sourceLocation!.Assign(value); } + } + private BicepValue? _sourceLocation; /// /// The properties that describes a set of credentials that will be used /// when this run is invoked. /// - public BicepValue Credentials { get => _credentials; set => _credentials.Assign(value); } - private readonly BicepValue _credentials; + public ContainerRegistryCredentials Credentials + { + get { Initialize(); return _credentials!; } + set { Initialize(); AssignOrReplace(ref _credentials, value); } + } + private ContainerRegistryCredentials? _credentials; /// /// Creates a new ContainerRegistryFileTaskRunContent. /// public ContainerRegistryFileTaskRunContent() : base() { - BicepValue.DefineProperty(this, "type", ["type"], defaultValue: "FileTaskRunRequest"); - _taskFilePath = BicepValue.DefineProperty(this, "TaskFilePath", ["taskFilePath"]); - _valuesFilePath = BicepValue.DefineProperty(this, "ValuesFilePath", ["valuesFilePath"]); - _values = BicepList.DefineProperty(this, "Values", ["values"]); - _timeoutInSeconds = BicepValue.DefineProperty(this, "TimeoutInSeconds", ["timeout"]); - _platform = BicepValue.DefineProperty(this, "Platform", ["platform"]); - _agentCpu = BicepValue.DefineProperty(this, "AgentCpu", ["agentConfiguration", "cpu"]); - _sourceLocation = BicepValue.DefineProperty(this, "SourceLocation", ["sourceLocation"]); - _credentials = BicepValue.DefineProperty(this, "Credentials", ["credentials"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryFileTaskRunContent. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("type", ["type"], defaultValue: "FileTaskRunRequest"); + _taskFilePath = DefineProperty("TaskFilePath", ["taskFilePath"]); + _valuesFilePath = DefineProperty("ValuesFilePath", ["valuesFilePath"]); + _values = DefineListProperty("Values", ["values"]); + _timeoutInSeconds = DefineProperty("TimeoutInSeconds", ["timeout"]); + _platform = DefineModelProperty("Platform", ["platform"]); + _agentCpu = DefineProperty("AgentCpu", ["agentConfiguration", "cpu"]); + _sourceLocation = DefineProperty("SourceLocation", ["sourceLocation"]); + _credentials = DefineModelProperty("Credentials", ["credentials"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.cs index 34bd34ef11338..274b0a55a2c1c 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,51 @@ public partial class ContainerRegistryFileTaskStep : ContainerRegistryTaskStepPr /// /// The task template/definition file path relative to the source context. /// - public BicepValue TaskFilePath { get => _taskFilePath; set => _taskFilePath.Assign(value); } - private readonly BicepValue _taskFilePath; + public BicepValue TaskFilePath + { + get { Initialize(); return _taskFilePath!; } + set { Initialize(); _taskFilePath!.Assign(value); } + } + private BicepValue? _taskFilePath; /// /// The task values/parameters file path relative to the source context. /// - public BicepValue ValuesFilePath { get => _valuesFilePath; set => _valuesFilePath.Assign(value); } - private readonly BicepValue _valuesFilePath; + public BicepValue ValuesFilePath + { + get { Initialize(); return _valuesFilePath!; } + set { Initialize(); _valuesFilePath!.Assign(value); } + } + private BicepValue? _valuesFilePath; /// /// The collection of overridable values that can be passed when running a /// task. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new ContainerRegistryFileTaskStep. /// public ContainerRegistryFileTaskStep() : base() { - BicepValue.DefineProperty(this, "type", ["type"], defaultValue: "FileTask"); - _taskFilePath = BicepValue.DefineProperty(this, "TaskFilePath", ["taskFilePath"]); - _valuesFilePath = BicepValue.DefineProperty(this, "ValuesFilePath", ["valuesFilePath"]); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryFileTaskStep. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("type", ["type"], defaultValue: "FileTask"); + _taskFilePath = DefineProperty("TaskFilePath", ["taskFilePath"]); + _valuesFilePath = DefineProperty("ValuesFilePath", ["valuesFilePath"]); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryIPRule.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryIPRule.cs index 4ed5f317a9968..79ef2b0da2746 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryIPRule.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryIPRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,38 @@ public partial class ContainerRegistryIPRule : ProvisionableConstruct /// /// The action of IP ACL rule. /// - public BicepValue Action { get => _action; set => _action.Assign(value); } - private readonly BicepValue _action; + public BicepValue Action + { + get { Initialize(); return _action!; } + set { Initialize(); _action!.Assign(value); } + } + private BicepValue? _action; /// /// Specifies the IP or IP range in CIDR format. Only IPV4 address is /// allowed. /// - public BicepValue IPAddressOrRange { get => _iPAddressOrRange; set => _iPAddressOrRange.Assign(value); } - private readonly BicepValue _iPAddressOrRange; + public BicepValue IPAddressOrRange + { + get { Initialize(); return _iPAddressOrRange!; } + set { Initialize(); _iPAddressOrRange!.Assign(value); } + } + private BicepValue? _iPAddressOrRange; /// /// Creates a new ContainerRegistryIPRule. /// public ContainerRegistryIPRule() { - _action = BicepValue.DefineProperty(this, "Action", ["action"]); - _iPAddressOrRange = BicepValue.DefineProperty(this, "IPAddressOrRange", ["value"]); + } + + /// + /// Define all the provisionable properties of ContainerRegistryIPRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _action = DefineProperty("Action", ["action"]); + _iPAddressOrRange = DefineProperty("IPAddressOrRange", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryImageDescriptor.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryImageDescriptor.cs index 006579b85a24d..43b09372b82f1 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryImageDescriptor.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryImageDescriptor.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,60 @@ public partial class ContainerRegistryImageDescriptor : ProvisionableConstruct /// /// The registry login server. /// - public BicepValue Registry { get => _registry; set => _registry.Assign(value); } - private readonly BicepValue _registry; + public BicepValue Registry + { + get { Initialize(); return _registry!; } + set { Initialize(); _registry!.Assign(value); } + } + private BicepValue? _registry; /// /// The repository name. /// - public BicepValue Repository { get => _repository; set => _repository.Assign(value); } - private readonly BicepValue _repository; + public BicepValue Repository + { + get { Initialize(); return _repository!; } + set { Initialize(); _repository!.Assign(value); } + } + private BicepValue? _repository; /// /// The tag name. /// - public BicepValue Tag { get => _tag; set => _tag.Assign(value); } - private readonly BicepValue _tag; + public BicepValue Tag + { + get { Initialize(); return _tag!; } + set { Initialize(); _tag!.Assign(value); } + } + private BicepValue? _tag; /// /// The sha256-based digest of the image manifest. /// - public BicepValue Digest { get => _digest; set => _digest.Assign(value); } - private readonly BicepValue _digest; + public BicepValue Digest + { + get { Initialize(); return _digest!; } + set { Initialize(); _digest!.Assign(value); } + } + private BicepValue? _digest; /// /// Creates a new ContainerRegistryImageDescriptor. /// public ContainerRegistryImageDescriptor() { - _registry = BicepValue.DefineProperty(this, "Registry", ["registry"]); - _repository = BicepValue.DefineProperty(this, "Repository", ["repository"]); - _tag = BicepValue.DefineProperty(this, "Tag", ["tag"]); - _digest = BicepValue.DefineProperty(this, "Digest", ["digest"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryImageDescriptor. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _registry = DefineProperty("Registry", ["registry"]); + _repository = DefineProperty("Repository", ["repository"]); + _tag = DefineProperty("Tag", ["tag"]); + _digest = DefineProperty("Digest", ["digest"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryImageUpdateTrigger.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryImageUpdateTrigger.cs index bf651d4cd8a7f..53b91864115ad 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryImageUpdateTrigger.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryImageUpdateTrigger.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,49 @@ public partial class ContainerRegistryImageUpdateTrigger : ProvisionableConstruc /// /// The unique ID of the trigger. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// The timestamp when the image update happened. /// - public BicepValue Timestamp { get => _timestamp; set => _timestamp.Assign(value); } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + set { Initialize(); _timestamp!.Assign(value); } + } + private BicepValue? _timestamp; /// /// The list of image updates that caused the build. /// - public BicepList Images { get => _images; set => _images.Assign(value); } - private readonly BicepList _images; + public BicepList Images + { + get { Initialize(); return _images!; } + set { Initialize(); _images!.Assign(value); } + } + private BicepList? _images; /// /// Creates a new ContainerRegistryImageUpdateTrigger. /// public ContainerRegistryImageUpdateTrigger() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["timestamp"]); - _images = BicepList.DefineProperty(this, "Images", ["images"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryImageUpdateTrigger. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _timestamp = DefineProperty("Timestamp", ["timestamp"]); + _images = DefineListProperty("Images", ["images"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryKeyVaultProperties.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryKeyVaultProperties.cs index af1e9ea4e9610..e643fff237cfa 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryKeyVaultProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryKeyVaultProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,43 +18,69 @@ public partial class ContainerRegistryKeyVaultProperties : ProvisionableConstruc /// /// Key vault uri to access the encryption key. /// - public BicepValue KeyIdentifier { get => _keyIdentifier; set => _keyIdentifier.Assign(value); } - private readonly BicepValue _keyIdentifier; + public BicepValue KeyIdentifier + { + get { Initialize(); return _keyIdentifier!; } + set { Initialize(); _keyIdentifier!.Assign(value); } + } + private BicepValue? _keyIdentifier; /// /// The fully qualified key identifier that includes the version of the key /// that is actually used for encryption. /// - public BicepValue VersionedKeyIdentifier { get => _versionedKeyIdentifier; } - private readonly BicepValue _versionedKeyIdentifier; + public BicepValue VersionedKeyIdentifier + { + get { Initialize(); return _versionedKeyIdentifier!; } + } + private BicepValue? _versionedKeyIdentifier; /// /// The client id of the identity which will be used to access key vault. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public BicepValue Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); _identity!.Assign(value); } + } + private BicepValue? _identity; /// /// Auto key rotation status for a CMK enabled registry. /// - public BicepValue IsKeyRotationEnabled { get => _isKeyRotationEnabled; } - private readonly BicepValue _isKeyRotationEnabled; + public BicepValue IsKeyRotationEnabled + { + get { Initialize(); return _isKeyRotationEnabled!; } + } + private BicepValue? _isKeyRotationEnabled; /// /// Timestamp of the last successful key rotation. /// - public BicepValue LastKeyRotationTimestamp { get => _lastKeyRotationTimestamp; } - private readonly BicepValue _lastKeyRotationTimestamp; + public BicepValue LastKeyRotationTimestamp + { + get { Initialize(); return _lastKeyRotationTimestamp!; } + } + private BicepValue? _lastKeyRotationTimestamp; /// /// Creates a new ContainerRegistryKeyVaultProperties. /// public ContainerRegistryKeyVaultProperties() { - _keyIdentifier = BicepValue.DefineProperty(this, "KeyIdentifier", ["keyIdentifier"]); - _versionedKeyIdentifier = BicepValue.DefineProperty(this, "VersionedKeyIdentifier", ["versionedKeyIdentifier"], isOutput: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _isKeyRotationEnabled = BicepValue.DefineProperty(this, "IsKeyRotationEnabled", ["keyRotationEnabled"], isOutput: true); - _lastKeyRotationTimestamp = BicepValue.DefineProperty(this, "LastKeyRotationTimestamp", ["lastKeyRotationTimestamp"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryKeyVaultProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyIdentifier = DefineProperty("KeyIdentifier", ["keyIdentifier"]); + _versionedKeyIdentifier = DefineProperty("VersionedKeyIdentifier", ["versionedKeyIdentifier"], isOutput: true); + _identity = DefineProperty("Identity", ["identity"]); + _isKeyRotationEnabled = DefineProperty("IsKeyRotationEnabled", ["keyRotationEnabled"], isOutput: true); + _lastKeyRotationTimestamp = DefineProperty("LastKeyRotationTimestamp", ["lastKeyRotationTimestamp"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryNetworkRuleSet.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryNetworkRuleSet.cs index 529299b43244e..f6bd1ddd7b9a8 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryNetworkRuleSet.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryNetworkRuleSet.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class ContainerRegistryNetworkRuleSet : ProvisionableConstruct /// /// The default action of allow or deny when no other rules match. /// - public BicepValue DefaultAction { get => _defaultAction; set => _defaultAction.Assign(value); } - private readonly BicepValue _defaultAction; + public BicepValue DefaultAction + { + get { Initialize(); return _defaultAction!; } + set { Initialize(); _defaultAction!.Assign(value); } + } + private BicepValue? _defaultAction; /// /// The IP ACL rules. /// - public BicepList IPRules { get => _iPRules; set => _iPRules.Assign(value); } - private readonly BicepList _iPRules; + public BicepList IPRules + { + get { Initialize(); return _iPRules!; } + set { Initialize(); _iPRules!.Assign(value); } + } + private BicepList? _iPRules; /// /// Creates a new ContainerRegistryNetworkRuleSet. /// public ContainerRegistryNetworkRuleSet() { - _defaultAction = BicepValue.DefineProperty(this, "DefaultAction", ["defaultAction"]); - _iPRules = BicepList.DefineProperty(this, "IPRules", ["ipRules"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryNetworkRuleSet. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _defaultAction = DefineProperty("DefaultAction", ["defaultAction"]); + _iPRules = DefineListProperty("IPRules", ["ipRules"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryOverrideTaskStepProperties.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryOverrideTaskStepProperties.cs index 98db231974c56..1a36af5ba48ef 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryOverrideTaskStepProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryOverrideTaskStepProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,52 +19,85 @@ public partial class ContainerRegistryOverrideTaskStepProperties : Provisionable /// /// The source context against which run has to be queued. /// - public BicepValue ContextPath { get => _contextPath; set => _contextPath.Assign(value); } - private readonly BicepValue _contextPath; + public BicepValue ContextPath + { + get { Initialize(); return _contextPath!; } + set { Initialize(); _contextPath!.Assign(value); } + } + private BicepValue? _contextPath; /// /// The file against which run has to be queued. /// - public BicepValue File { get => _file; set => _file.Assign(value); } - private readonly BicepValue _file; + public BicepValue File + { + get { Initialize(); return _file!; } + set { Initialize(); _file!.Assign(value); } + } + private BicepValue? _file; /// /// Gets or sets the collection of override arguments to be used when /// executing a build step. /// - public BicepList Arguments { get => _arguments; set => _arguments.Assign(value); } - private readonly BicepList _arguments; + public BicepList Arguments + { + get { Initialize(); return _arguments!; } + set { Initialize(); _arguments!.Assign(value); } + } + private BicepList? _arguments; /// /// The name of the target build stage for the docker build. /// - public BicepValue Target { get => _target; set => _target.Assign(value); } - private readonly BicepValue _target; + public BicepValue Target + { + get { Initialize(); return _target!; } + set { Initialize(); _target!.Assign(value); } + } + private BicepValue? _target; /// /// The collection of overridable values that can be passed when running a /// Task. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Base64 encoded update trigger token that will be attached with the base /// image trigger webhook. /// - public BicepValue UpdateTriggerToken { get => _updateTriggerToken; set => _updateTriggerToken.Assign(value); } - private readonly BicepValue _updateTriggerToken; + public BicepValue UpdateTriggerToken + { + get { Initialize(); return _updateTriggerToken!; } + set { Initialize(); _updateTriggerToken!.Assign(value); } + } + private BicepValue? _updateTriggerToken; /// /// Creates a new ContainerRegistryOverrideTaskStepProperties. /// public ContainerRegistryOverrideTaskStepProperties() { - _contextPath = BicepValue.DefineProperty(this, "ContextPath", ["contextPath"]); - _file = BicepValue.DefineProperty(this, "File", ["file"]); - _arguments = BicepList.DefineProperty(this, "Arguments", ["arguments"]); - _target = BicepValue.DefineProperty(this, "Target", ["target"]); - _values = BicepList.DefineProperty(this, "Values", ["values"]); - _updateTriggerToken = BicepValue.DefineProperty(this, "UpdateTriggerToken", ["updateTriggerToken"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryOverrideTaskStepProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _contextPath = DefineProperty("ContextPath", ["contextPath"]); + _file = DefineProperty("File", ["file"]); + _arguments = DefineListProperty("Arguments", ["arguments"]); + _target = DefineProperty("Target", ["target"]); + _values = DefineListProperty("Values", ["values"]); + _updateTriggerToken = DefineProperty("UpdateTriggerToken", ["updateTriggerToken"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPlatformProperties.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPlatformProperties.cs index a54a61352084b..091da689c8a1b 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPlatformProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPlatformProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.ContainerRegistry; @@ -15,28 +17,49 @@ public partial class ContainerRegistryPlatformProperties : ProvisionableConstruc /// /// The operating system type required for the run. /// - public BicepValue OS { get => _oS; set => _oS.Assign(value); } - private readonly BicepValue _oS; + public BicepValue OS + { + get { Initialize(); return _oS!; } + set { Initialize(); _oS!.Assign(value); } + } + private BicepValue? _oS; /// /// The OS architecture. /// - public BicepValue Architecture { get => _architecture; set => _architecture.Assign(value); } - private readonly BicepValue _architecture; + public BicepValue Architecture + { + get { Initialize(); return _architecture!; } + set { Initialize(); _architecture!.Assign(value); } + } + private BicepValue? _architecture; /// /// Variant of the CPU. /// - public BicepValue Variant { get => _variant; set => _variant.Assign(value); } - private readonly BicepValue _variant; + public BicepValue Variant + { + get { Initialize(); return _variant!; } + set { Initialize(); _variant!.Assign(value); } + } + private BicepValue? _variant; /// /// Creates a new ContainerRegistryPlatformProperties. /// public ContainerRegistryPlatformProperties() { - _oS = BicepValue.DefineProperty(this, "OS", ["os"]); - _architecture = BicepValue.DefineProperty(this, "Architecture", ["architecture"]); - _variant = BicepValue.DefineProperty(this, "Variant", ["variant"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryPlatformProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _oS = DefineProperty("OS", ["os"]); + _architecture = DefineProperty("Architecture", ["architecture"]); + _variant = DefineProperty("Variant", ["variant"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPolicies.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPolicies.cs index 01e740aa821fb..b6f3a67c5daa9 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPolicies.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPolicies.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class ContainerRegistryPolicies : ProvisionableConstruct /// /// The value that indicates whether the policy is enabled or not. /// - public BicepValue QuarantineStatus { get => _quarantineStatus; set => _quarantineStatus.Assign(value); } - private readonly BicepValue _quarantineStatus; + public BicepValue QuarantineStatus + { + get { Initialize(); return _quarantineStatus!; } + set { Initialize(); _quarantineStatus!.Assign(value); } + } + private BicepValue? _quarantineStatus; /// /// The content trust policy for a container registry. /// - public BicepValue TrustPolicy { get => _trustPolicy; set => _trustPolicy.Assign(value); } - private readonly BicepValue _trustPolicy; + public ContainerRegistryTrustPolicy TrustPolicy + { + get { Initialize(); return _trustPolicy!; } + set { Initialize(); AssignOrReplace(ref _trustPolicy, value); } + } + private ContainerRegistryTrustPolicy? _trustPolicy; /// /// The retention policy for a container registry. /// - public BicepValue RetentionPolicy { get => _retentionPolicy; set => _retentionPolicy.Assign(value); } - private readonly BicepValue _retentionPolicy; + public ContainerRegistryRetentionPolicy RetentionPolicy + { + get { Initialize(); return _retentionPolicy!; } + set { Initialize(); AssignOrReplace(ref _retentionPolicy, value); } + } + private ContainerRegistryRetentionPolicy? _retentionPolicy; /// /// The value that indicates whether the policy is enabled or not. /// - public BicepValue ExportStatus { get => _exportStatus; set => _exportStatus.Assign(value); } - private readonly BicepValue _exportStatus; + public BicepValue ExportStatus + { + get { Initialize(); return _exportStatus!; } + set { Initialize(); _exportStatus!.Assign(value); } + } + private BicepValue? _exportStatus; /// /// Creates a new ContainerRegistryPolicies. /// public ContainerRegistryPolicies() { - _quarantineStatus = BicepValue.DefineProperty(this, "QuarantineStatus", ["quarantinePolicy", "status"]); - _trustPolicy = BicepValue.DefineProperty(this, "TrustPolicy", ["trustPolicy"]); - _retentionPolicy = BicepValue.DefineProperty(this, "RetentionPolicy", ["retentionPolicy"]); - _exportStatus = BicepValue.DefineProperty(this, "ExportStatus", ["exportPolicy", "status"]); + } + + /// + /// Define all the provisionable properties of ContainerRegistryPolicies. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _quarantineStatus = DefineProperty("QuarantineStatus", ["quarantinePolicy", "status"]); + _trustPolicy = DefineModelProperty("TrustPolicy", ["trustPolicy"]); + _retentionPolicy = DefineModelProperty("RetentionPolicy", ["retentionPolicy"]); + _exportStatus = DefineProperty("ExportStatus", ["exportPolicy", "status"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateEndpointConnectionData.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateEndpointConnectionData.cs index a94e6e3e34cbd..b7fbb39365086 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateEndpointConnectionData.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateEndpointConnectionData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -20,50 +22,79 @@ public partial class ContainerRegistryPrivateEndpointConnectionData : Provisiona /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// A collection of information about the state of the connection between /// service consumer and provider. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public ContainerRegistryPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private ContainerRegistryPrivateLinkServiceConnectionState? _connectionState; /// /// The provisioning state of private endpoint connection resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ContainerRegistryPrivateEndpointConnectionData. /// public ContainerRegistryPrivateEndpointConnectionData() { - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryPrivateEndpointConnectionData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateLinkServiceConnectionState.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateLinkServiceConnectionState.cs index fd391835a0328..eed2dcdc7c13e 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateLinkServiceConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateLinkServiceConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,30 +18,51 @@ public partial class ContainerRegistryPrivateLinkServiceConnectionState : Provis /// /// The private link service connection status. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The description for connection status. For example if connection is /// rejected it can indicate reason for rejection. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// A message indicating if changes on the service provider require any /// updates on the consumer. /// - public BicepValue ActionsRequired { get => _actionsRequired; set => _actionsRequired.Assign(value); } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + set { Initialize(); _actionsRequired!.Assign(value); } + } + private BicepValue? _actionsRequired; /// /// Creates a new ContainerRegistryPrivateLinkServiceConnectionState. /// public ContainerRegistryPrivateLinkServiceConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryPrivateLinkServiceConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryResourceStatus.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryResourceStatus.cs index 6b49d39c263ac..eadf0f275c3e2 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryResourceStatus.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryResourceStatus.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,47 @@ public partial class ContainerRegistryResourceStatus : ProvisionableConstruct /// /// The short label for the status. /// - public BicepValue DisplayStatus { get => _displayStatus; } - private readonly BicepValue _displayStatus; + public BicepValue DisplayStatus + { + get { Initialize(); return _displayStatus!; } + } + private BicepValue? _displayStatus; /// /// The detailed message for the status, including alerts and error /// messages. /// - public BicepValue Message { get => _message; } - private readonly BicepValue _message; + public BicepValue Message + { + get { Initialize(); return _message!; } + } + private BicepValue? _message; /// /// The timestamp when the status was changed to the current value. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// Creates a new ContainerRegistryResourceStatus. /// public ContainerRegistryResourceStatus() { - _displayStatus = BicepValue.DefineProperty(this, "DisplayStatus", ["displayStatus"], isOutput: true); - _message = BicepValue.DefineProperty(this, "Message", ["message"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["timestamp"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryResourceStatus. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _displayStatus = DefineProperty("DisplayStatus", ["displayStatus"], isOutput: true); + _message = DefineProperty("Message", ["message"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["timestamp"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRetentionPolicy.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRetentionPolicy.cs index 1e11416ae51dc..fad8eda68d29a 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRetentionPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRetentionPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,48 @@ public partial class ContainerRegistryRetentionPolicy : ProvisionableConstruct /// The number of days to retain an untagged manifest after which it gets /// purged. /// - public BicepValue Days { get => _days; set => _days.Assign(value); } - private readonly BicepValue _days; + public BicepValue Days + { + get { Initialize(); return _days!; } + set { Initialize(); _days!.Assign(value); } + } + private BicepValue? _days; /// /// The timestamp when the policy was last updated. /// - public BicepValue LastUpdatedOn { get => _lastUpdatedOn; } - private readonly BicepValue _lastUpdatedOn; + public BicepValue LastUpdatedOn + { + get { Initialize(); return _lastUpdatedOn!; } + } + private BicepValue? _lastUpdatedOn; /// /// The value that indicates whether the policy is enabled or not. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Creates a new ContainerRegistryRetentionPolicy. /// public ContainerRegistryRetentionPolicy() { - _days = BicepValue.DefineProperty(this, "Days", ["days"]); - _lastUpdatedOn = BicepValue.DefineProperty(this, "LastUpdatedOn", ["lastUpdatedTime"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["status"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryRetentionPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _days = DefineProperty("Days", ["days"]); + _lastUpdatedOn = DefineProperty("LastUpdatedOn", ["lastUpdatedTime"], isOutput: true); + _status = DefineProperty("Status", ["status"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRunArgument.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRunArgument.cs index a550aa8acc357..1aa5dbd47d518 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRunArgument.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRunArgument.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,49 @@ public partial class ContainerRegistryRunArgument : ProvisionableConstruct /// /// The name of the argument. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The value of the argument. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Flag to indicate whether the argument represents a secret and want to /// be removed from build logs. /// - public BicepValue IsSecret { get => _isSecret; set => _isSecret.Assign(value); } - private readonly BicepValue _isSecret; + public BicepValue IsSecret + { + get { Initialize(); return _isSecret!; } + set { Initialize(); _isSecret!.Assign(value); } + } + private BicepValue? _isSecret; /// /// Creates a new ContainerRegistryRunArgument. /// public ContainerRegistryRunArgument() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _isSecret = BicepValue.DefineProperty(this, "IsSecret", ["isSecret"]); + } + + /// + /// Define all the provisionable properties of ContainerRegistryRunArgument. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _value = DefineProperty("Value", ["value"]); + _isSecret = DefineProperty("IsSecret", ["isSecret"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRunContent.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRunContent.cs index 3bcf7c9fe26e6..d6d9e957412df 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRunContent.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRunContent.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -27,29 +29,49 @@ public partial class ContainerRegistryRunContent : ProvisionableConstruct /// The value that indicates whether archiving is enabled for the run or /// not. /// - public BicepValue IsArchiveEnabled { get => _isArchiveEnabled; set => _isArchiveEnabled.Assign(value); } - private readonly BicepValue _isArchiveEnabled; + public BicepValue IsArchiveEnabled + { + get { Initialize(); return _isArchiveEnabled!; } + set { Initialize(); _isArchiveEnabled!.Assign(value); } + } + private BicepValue? _isArchiveEnabled; /// /// The dedicated agent pool for the run. /// - public BicepValue AgentPoolName { get => _agentPoolName; set => _agentPoolName.Assign(value); } - private readonly BicepValue _agentPoolName; + public BicepValue AgentPoolName + { + get { Initialize(); return _agentPoolName!; } + set { Initialize(); _agentPoolName!.Assign(value); } + } + private BicepValue? _agentPoolName; /// /// The template that describes the repository and tag information for run /// log artifact. /// - public BicepValue LogTemplate { get => _logTemplate; set => _logTemplate.Assign(value); } - private readonly BicepValue _logTemplate; + public BicepValue LogTemplate + { + get { Initialize(); return _logTemplate!; } + set { Initialize(); _logTemplate!.Assign(value); } + } + private BicepValue? _logTemplate; /// /// Creates a new ContainerRegistryRunContent. /// public ContainerRegistryRunContent() { - _isArchiveEnabled = BicepValue.DefineProperty(this, "IsArchiveEnabled", ["isArchiveEnabled"]); - _agentPoolName = BicepValue.DefineProperty(this, "AgentPoolName", ["agentPoolName"]); - _logTemplate = BicepValue.DefineProperty(this, "LogTemplate", ["logTemplate"]); + } + + /// + /// Define all the provisionable properties of ContainerRegistryRunContent. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isArchiveEnabled = DefineProperty("IsArchiveEnabled", ["isArchiveEnabled"]); + _agentPoolName = DefineProperty("AgentPoolName", ["agentPoolName"]); + _logTemplate = DefineProperty("LogTemplate", ["logTemplate"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRunData.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRunData.cs index 03b0f42703abd..fb1a06bfe1d46 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRunData.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryRunData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -20,186 +22,289 @@ public partial class ContainerRegistryRunData : ProvisionableConstruct /// /// The unique identifier for the run. /// - public BicepValue RunId { get => _runId; set => _runId.Assign(value); } - private readonly BicepValue _runId; + public BicepValue RunId + { + get { Initialize(); return _runId!; } + set { Initialize(); _runId!.Assign(value); } + } + private BicepValue? _runId; /// /// The current status of the run. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The last updated time for the run. /// - public BicepValue LastUpdatedOn { get => _lastUpdatedOn; set => _lastUpdatedOn.Assign(value); } - private readonly BicepValue _lastUpdatedOn; + public BicepValue LastUpdatedOn + { + get { Initialize(); return _lastUpdatedOn!; } + set { Initialize(); _lastUpdatedOn!.Assign(value); } + } + private BicepValue? _lastUpdatedOn; /// /// The type of run. /// - public BicepValue RunType { get => _runType; set => _runType.Assign(value); } - private readonly BicepValue _runType; + public BicepValue RunType + { + get { Initialize(); return _runType!; } + set { Initialize(); _runType!.Assign(value); } + } + private BicepValue? _runType; /// /// The dedicated agent pool for the run. /// - public BicepValue AgentPoolName { get => _agentPoolName; set => _agentPoolName.Assign(value); } - private readonly BicepValue _agentPoolName; + public BicepValue AgentPoolName + { + get { Initialize(); return _agentPoolName!; } + set { Initialize(); _agentPoolName!.Assign(value); } + } + private BicepValue? _agentPoolName; /// /// The time the run was scheduled. /// - public BicepValue CreatedOn { get => _createdOn; set => _createdOn.Assign(value); } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + set { Initialize(); _createdOn!.Assign(value); } + } + private BicepValue? _createdOn; /// /// The time the run started. /// - public BicepValue StartOn { get => _startOn; set => _startOn.Assign(value); } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + set { Initialize(); _startOn!.Assign(value); } + } + private BicepValue? _startOn; /// /// The time the run finished. /// - public BicepValue FinishOn { get => _finishOn; set => _finishOn.Assign(value); } - private readonly BicepValue _finishOn; + public BicepValue FinishOn + { + get { Initialize(); return _finishOn!; } + set { Initialize(); _finishOn!.Assign(value); } + } + private BicepValue? _finishOn; /// /// The list of all images that were generated from the run. This is /// applicable if the run generates base image dependencies. /// - public BicepList OutputImages { get => _outputImages; set => _outputImages.Assign(value); } - private readonly BicepList _outputImages; + public BicepList OutputImages + { + get { Initialize(); return _outputImages!; } + set { Initialize(); _outputImages!.Assign(value); } + } + private BicepList? _outputImages; /// /// The task against which run was scheduled. /// - public BicepValue Task { get => _task; set => _task.Assign(value); } - private readonly BicepValue _task; + public BicepValue Task + { + get { Initialize(); return _task!; } + set { Initialize(); _task!.Assign(value); } + } + private BicepValue? _task; /// /// The image update trigger that caused the run. This is applicable if the /// task has base image trigger configured. /// - public BicepValue ImageUpdateTrigger { get => _imageUpdateTrigger; set => _imageUpdateTrigger.Assign(value); } - private readonly BicepValue _imageUpdateTrigger; + public ContainerRegistryImageUpdateTrigger ImageUpdateTrigger + { + get { Initialize(); return _imageUpdateTrigger!; } + set { Initialize(); AssignOrReplace(ref _imageUpdateTrigger, value); } + } + private ContainerRegistryImageUpdateTrigger? _imageUpdateTrigger; /// /// The source trigger that caused the run. /// - public BicepValue SourceTrigger { get => _sourceTrigger; set => _sourceTrigger.Assign(value); } - private readonly BicepValue _sourceTrigger; + public ContainerRegistrySourceTriggerDescriptor SourceTrigger + { + get { Initialize(); return _sourceTrigger!; } + set { Initialize(); AssignOrReplace(ref _sourceTrigger, value); } + } + private ContainerRegistrySourceTriggerDescriptor? _sourceTrigger; /// /// The timer trigger that caused the run. /// - public BicepValue TimerTrigger { get => _timerTrigger; set => _timerTrigger.Assign(value); } - private readonly BicepValue _timerTrigger; + public ContainerRegistryTimerTriggerDescriptor TimerTrigger + { + get { Initialize(); return _timerTrigger!; } + set { Initialize(); AssignOrReplace(ref _timerTrigger, value); } + } + private ContainerRegistryTimerTriggerDescriptor? _timerTrigger; /// /// The platform properties against which the run will happen. /// - public BicepValue Platform { get => _platform; set => _platform.Assign(value); } - private readonly BicepValue _platform; + public ContainerRegistryPlatformProperties Platform + { + get { Initialize(); return _platform!; } + set { Initialize(); AssignOrReplace(ref _platform, value); } + } + private ContainerRegistryPlatformProperties? _platform; /// /// The CPU configuration in terms of number of cores required for the run. /// - public BicepValue AgentCpu { get => _agentCpu; set => _agentCpu.Assign(value); } - private readonly BicepValue _agentCpu; + public BicepValue AgentCpu + { + get { Initialize(); return _agentCpu!; } + set { Initialize(); _agentCpu!.Assign(value); } + } + private BicepValue? _agentCpu; /// /// The scope of the credentials that were used to login to the source /// registry during this run. /// - public BicepValue SourceRegistryAuth { get => _sourceRegistryAuth; set => _sourceRegistryAuth.Assign(value); } - private readonly BicepValue _sourceRegistryAuth; + public BicepValue SourceRegistryAuth + { + get { Initialize(); return _sourceRegistryAuth!; } + set { Initialize(); _sourceRegistryAuth!.Assign(value); } + } + private BicepValue? _sourceRegistryAuth; /// /// The list of custom registries that were logged in during this run. /// - public BicepList CustomRegistries { get => _customRegistries; set => _customRegistries.Assign(value); } - private readonly BicepList _customRegistries; + public BicepList CustomRegistries + { + get { Initialize(); return _customRegistries!; } + set { Initialize(); _customRegistries!.Assign(value); } + } + private BicepList? _customRegistries; /// /// The error message received from backend systems after the run is /// scheduled. /// - public BicepValue RunErrorMessage { get => _runErrorMessage; } - private readonly BicepValue _runErrorMessage; + public BicepValue RunErrorMessage + { + get { Initialize(); return _runErrorMessage!; } + } + private BicepValue? _runErrorMessage; /// /// The update trigger token passed for the Run. /// - public BicepValue UpdateTriggerToken { get => _updateTriggerToken; set => _updateTriggerToken.Assign(value); } - private readonly BicepValue _updateTriggerToken; + public BicepValue UpdateTriggerToken + { + get { Initialize(); return _updateTriggerToken!; } + set { Initialize(); _updateTriggerToken!.Assign(value); } + } + private BicepValue? _updateTriggerToken; /// /// The image description for the log artifact. /// - public BicepValue LogArtifact { get => _logArtifact; } - private readonly BicepValue _logArtifact; + public ContainerRegistryImageDescriptor LogArtifact + { + get { Initialize(); return _logArtifact!; } + } + private ContainerRegistryImageDescriptor? _logArtifact; /// /// The provisioning state of a run. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// The value that indicates whether archiving is enabled or not. /// - public BicepValue IsArchiveEnabled { get => _isArchiveEnabled; set => _isArchiveEnabled.Assign(value); } - private readonly BicepValue _isArchiveEnabled; + public BicepValue IsArchiveEnabled + { + get { Initialize(); return _isArchiveEnabled!; } + set { Initialize(); _isArchiveEnabled!.Assign(value); } + } + private BicepValue? _isArchiveEnabled; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ContainerRegistryRunData. /// public ContainerRegistryRunData() { - _runId = BicepValue.DefineProperty(this, "RunId", ["properties", "runId"]); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"]); - _lastUpdatedOn = BicepValue.DefineProperty(this, "LastUpdatedOn", ["properties", "lastUpdatedTime"]); - _runType = BicepValue.DefineProperty(this, "RunType", ["properties", "runType"]); - _agentPoolName = BicepValue.DefineProperty(this, "AgentPoolName", ["properties", "agentPoolName"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createTime"]); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["properties", "startTime"]); - _finishOn = BicepValue.DefineProperty(this, "FinishOn", ["properties", "finishTime"]); - _outputImages = BicepList.DefineProperty(this, "OutputImages", ["properties", "outputImages"]); - _task = BicepValue.DefineProperty(this, "Task", ["properties", "task"]); - _imageUpdateTrigger = BicepValue.DefineProperty(this, "ImageUpdateTrigger", ["properties", "imageUpdateTrigger"]); - _sourceTrigger = BicepValue.DefineProperty(this, "SourceTrigger", ["properties", "sourceTrigger"]); - _timerTrigger = BicepValue.DefineProperty(this, "TimerTrigger", ["properties", "timerTrigger"]); - _platform = BicepValue.DefineProperty(this, "Platform", ["properties", "platform"]); - _agentCpu = BicepValue.DefineProperty(this, "AgentCpu", ["properties", "agentConfiguration", "cpu"]); - _sourceRegistryAuth = BicepValue.DefineProperty(this, "SourceRegistryAuth", ["properties", "sourceRegistryAuth"]); - _customRegistries = BicepList.DefineProperty(this, "CustomRegistries", ["properties", "customRegistries"]); - _runErrorMessage = BicepValue.DefineProperty(this, "RunErrorMessage", ["properties", "runErrorMessage"], isOutput: true); - _updateTriggerToken = BicepValue.DefineProperty(this, "UpdateTriggerToken", ["properties", "updateTriggerToken"]); - _logArtifact = BicepValue.DefineProperty(this, "LogArtifact", ["properties", "logArtifact"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _isArchiveEnabled = BicepValue.DefineProperty(this, "IsArchiveEnabled", ["properties", "isArchiveEnabled"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ContainerRegistryRunData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _runId = DefineProperty("RunId", ["properties", "runId"]); + _status = DefineProperty("Status", ["properties", "status"]); + _lastUpdatedOn = DefineProperty("LastUpdatedOn", ["properties", "lastUpdatedTime"]); + _runType = DefineProperty("RunType", ["properties", "runType"]); + _agentPoolName = DefineProperty("AgentPoolName", ["properties", "agentPoolName"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createTime"]); + _startOn = DefineProperty("StartOn", ["properties", "startTime"]); + _finishOn = DefineProperty("FinishOn", ["properties", "finishTime"]); + _outputImages = DefineListProperty("OutputImages", ["properties", "outputImages"]); + _task = DefineProperty("Task", ["properties", "task"]); + _imageUpdateTrigger = DefineModelProperty("ImageUpdateTrigger", ["properties", "imageUpdateTrigger"]); + _sourceTrigger = DefineModelProperty("SourceTrigger", ["properties", "sourceTrigger"]); + _timerTrigger = DefineModelProperty("TimerTrigger", ["properties", "timerTrigger"]); + _platform = DefineModelProperty("Platform", ["properties", "platform"]); + _agentCpu = DefineProperty("AgentCpu", ["properties", "agentConfiguration", "cpu"]); + _sourceRegistryAuth = DefineProperty("SourceRegistryAuth", ["properties", "sourceRegistryAuth"]); + _customRegistries = DefineListProperty("CustomRegistries", ["properties", "customRegistries"]); + _runErrorMessage = DefineProperty("RunErrorMessage", ["properties", "runErrorMessage"], isOutput: true); + _updateTriggerToken = DefineProperty("UpdateTriggerToken", ["properties", "updateTriggerToken"]); + _logArtifact = DefineModelProperty("LogArtifact", ["properties", "logArtifact"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _isArchiveEnabled = DefineProperty("IsArchiveEnabled", ["properties", "isArchiveEnabled"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySecretObject.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySecretObject.cs index 4c7f5dbb50e58..b80a3a64cab0d 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySecretObject.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySecretObject.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,22 +21,39 @@ public partial class ContainerRegistrySecretObject : ProvisionableConstruct /// Opaque, the value will be used as is without any /// modification. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// The type of the secret object which determines how the value of the /// secret object has to be interpreted. /// - public BicepValue ObjectType { get => _objectType; set => _objectType.Assign(value); } - private readonly BicepValue _objectType; + public BicepValue ObjectType + { + get { Initialize(); return _objectType!; } + set { Initialize(); _objectType!.Assign(value); } + } + private BicepValue? _objectType; /// /// Creates a new ContainerRegistrySecretObject. /// public ContainerRegistrySecretObject() { - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _objectType = BicepValue.DefineProperty(this, "ObjectType", ["type"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistrySecretObject. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _value = DefineProperty("Value", ["value"]); + _objectType = DefineProperty("ObjectType", ["type"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySku.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySku.cs index e946b2040554a..a1de2b4e05dc3 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySku.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.ContainerRegistry; @@ -15,21 +17,36 @@ public partial class ContainerRegistrySku : ProvisionableConstruct /// /// The SKU name of the container registry. Required for registry creation. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The SKU tier based on the SKU name. /// - public BicepValue Tier { get => _tier; } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + } + private BicepValue? _tier; /// /// Creates a new ContainerRegistrySku. /// public ContainerRegistrySku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ContainerRegistrySku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySourceTrigger.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySourceTrigger.cs index 8fe0bb4e0ba8d..4c9842d5572d3 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySourceTrigger.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySourceTrigger.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,60 @@ public partial class ContainerRegistrySourceTrigger : ProvisionableConstruct /// /// The properties that describes the source(code) for the task. /// - public BicepValue SourceRepository { get => _sourceRepository; set => _sourceRepository.Assign(value); } - private readonly BicepValue _sourceRepository; + public SourceCodeRepoProperties SourceRepository + { + get { Initialize(); return _sourceRepository!; } + set { Initialize(); AssignOrReplace(ref _sourceRepository, value); } + } + private SourceCodeRepoProperties? _sourceRepository; /// /// The source event corresponding to the trigger. /// - public BicepList SourceTriggerEvents { get => _sourceTriggerEvents; set => _sourceTriggerEvents.Assign(value); } - private readonly BicepList _sourceTriggerEvents; + public BicepList SourceTriggerEvents + { + get { Initialize(); return _sourceTriggerEvents!; } + set { Initialize(); _sourceTriggerEvents!.Assign(value); } + } + private BicepList? _sourceTriggerEvents; /// /// The current status of trigger. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The name of the trigger. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new ContainerRegistrySourceTrigger. /// public ContainerRegistrySourceTrigger() { - _sourceRepository = BicepValue.DefineProperty(this, "SourceRepository", ["sourceRepository"]); - _sourceTriggerEvents = BicepList.DefineProperty(this, "SourceTriggerEvents", ["sourceTriggerEvents"]); - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistrySourceTrigger. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _sourceRepository = DefineModelProperty("SourceRepository", ["sourceRepository"]); + _sourceTriggerEvents = DefineListProperty("SourceTriggerEvents", ["sourceTriggerEvents"]); + _status = DefineProperty("Status", ["status"]); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySourceTriggerDescriptor.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySourceTriggerDescriptor.cs index cd593b6a5966f..49988a97eea60 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySourceTriggerDescriptor.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistrySourceTriggerDescriptor.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,56 +18,93 @@ public partial class ContainerRegistrySourceTriggerDescriptor : ProvisionableCon /// /// The unique ID of the trigger. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// The event type of the trigger. /// - public BicepValue EventType { get => _eventType; set => _eventType.Assign(value); } - private readonly BicepValue _eventType; + public BicepValue EventType + { + get { Initialize(); return _eventType!; } + set { Initialize(); _eventType!.Assign(value); } + } + private BicepValue? _eventType; /// /// The unique ID that identifies a commit. /// - public BicepValue CommitId { get => _commitId; set => _commitId.Assign(value); } - private readonly BicepValue _commitId; + public BicepValue CommitId + { + get { Initialize(); return _commitId!; } + set { Initialize(); _commitId!.Assign(value); } + } + private BicepValue? _commitId; /// /// The unique ID that identifies pull request. /// - public BicepValue PullRequestId { get => _pullRequestId; set => _pullRequestId.Assign(value); } - private readonly BicepValue _pullRequestId; + public BicepValue PullRequestId + { + get { Initialize(); return _pullRequestId!; } + set { Initialize(); _pullRequestId!.Assign(value); } + } + private BicepValue? _pullRequestId; /// /// The repository URL. /// - public BicepValue RepositoryUri { get => _repositoryUri; set => _repositoryUri.Assign(value); } - private readonly BicepValue _repositoryUri; + public BicepValue RepositoryUri + { + get { Initialize(); return _repositoryUri!; } + set { Initialize(); _repositoryUri!.Assign(value); } + } + private BicepValue? _repositoryUri; /// /// The branch name in the repository. /// - public BicepValue BranchName { get => _branchName; set => _branchName.Assign(value); } - private readonly BicepValue _branchName; + public BicepValue BranchName + { + get { Initialize(); return _branchName!; } + set { Initialize(); _branchName!.Assign(value); } + } + private BicepValue? _branchName; /// /// The source control provider type. /// - public BicepValue ProviderType { get => _providerType; set => _providerType.Assign(value); } - private readonly BicepValue _providerType; + public BicepValue ProviderType + { + get { Initialize(); return _providerType!; } + set { Initialize(); _providerType!.Assign(value); } + } + private BicepValue? _providerType; /// /// Creates a new ContainerRegistrySourceTriggerDescriptor. /// public ContainerRegistrySourceTriggerDescriptor() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _eventType = BicepValue.DefineProperty(this, "EventType", ["eventType"]); - _commitId = BicepValue.DefineProperty(this, "CommitId", ["commitId"]); - _pullRequestId = BicepValue.DefineProperty(this, "PullRequestId", ["pullRequestId"]); - _repositoryUri = BicepValue.DefineProperty(this, "RepositoryUri", ["repositoryUrl"]); - _branchName = BicepValue.DefineProperty(this, "BranchName", ["branchName"]); - _providerType = BicepValue.DefineProperty(this, "ProviderType", ["providerType"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistrySourceTriggerDescriptor. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _eventType = DefineProperty("EventType", ["eventType"]); + _commitId = DefineProperty("CommitId", ["commitId"]); + _pullRequestId = DefineProperty("PullRequestId", ["pullRequestId"]); + _repositoryUri = DefineProperty("RepositoryUri", ["repositoryUrl"]); + _branchName = DefineProperty("BranchName", ["branchName"]); + _providerType = DefineProperty("ProviderType", ["providerType"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskOverridableValue.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskOverridableValue.cs index 1eccd5f963153..211f76389a3e0 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskOverridableValue.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskOverridableValue.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,49 @@ public partial class ContainerRegistryTaskOverridableValue : ProvisionableConstr /// /// The name of the overridable value. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The overridable value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Flag to indicate whether the value represents a secret or not. /// - public BicepValue IsSecret { get => _isSecret; set => _isSecret.Assign(value); } - private readonly BicepValue _isSecret; + public BicepValue IsSecret + { + get { Initialize(); return _isSecret!; } + set { Initialize(); _isSecret!.Assign(value); } + } + private BicepValue? _isSecret; /// /// Creates a new ContainerRegistryTaskOverridableValue. /// public ContainerRegistryTaskOverridableValue() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _isSecret = BicepValue.DefineProperty(this, "IsSecret", ["isSecret"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryTaskOverridableValue. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _value = DefineProperty("Value", ["value"]); + _isSecret = DefineProperty("IsSecret", ["isSecret"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskRunContent.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskRunContent.cs index 8cacea8bb5abe..a366ec4ada388 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskRunContent.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskRunContent.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,22 +20,39 @@ public partial class ContainerRegistryTaskRunContent : ContainerRegistryRunConte /// /// The resource ID of task against which run has to be queued. /// - public BicepValue TaskId { get => _taskId; set => _taskId.Assign(value); } - private readonly BicepValue _taskId; + public BicepValue TaskId + { + get { Initialize(); return _taskId!; } + set { Initialize(); _taskId!.Assign(value); } + } + private BicepValue? _taskId; /// /// Set of overridable parameters that can be passed when running a Task. /// - public BicepValue OverrideTaskStepProperties { get => _overrideTaskStepProperties; set => _overrideTaskStepProperties.Assign(value); } - private readonly BicepValue _overrideTaskStepProperties; + public ContainerRegistryOverrideTaskStepProperties OverrideTaskStepProperties + { + get { Initialize(); return _overrideTaskStepProperties!; } + set { Initialize(); AssignOrReplace(ref _overrideTaskStepProperties, value); } + } + private ContainerRegistryOverrideTaskStepProperties? _overrideTaskStepProperties; /// /// Creates a new ContainerRegistryTaskRunContent. /// public ContainerRegistryTaskRunContent() : base() { - BicepValue.DefineProperty(this, "type", ["type"], defaultValue: "TaskRunRequest"); - _taskId = BicepValue.DefineProperty(this, "TaskId", ["taskId"]); - _overrideTaskStepProperties = BicepValue.DefineProperty(this, "OverrideTaskStepProperties", ["overrideTaskStepProperties"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryTaskRunContent. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("type", ["type"], defaultValue: "TaskRunRequest"); + _taskId = DefineProperty("TaskId", ["taskId"]); + _overrideTaskStepProperties = DefineModelProperty("OverrideTaskStepProperties", ["overrideTaskStepProperties"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.cs index 1454bf6e52903..6eff501446663 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -26,29 +28,49 @@ public partial class ContainerRegistryTaskStepProperties : ProvisionableConstruc /// /// List of base image dependencies for a step. /// - public BicepList BaseImageDependencies { get => _baseImageDependencies; } - private readonly BicepList _baseImageDependencies; + public BicepList BaseImageDependencies + { + get { Initialize(); return _baseImageDependencies!; } + } + private BicepList? _baseImageDependencies; /// /// The URL(absolute or relative) of the source context for the task step. /// - public BicepValue ContextPath { get => _contextPath; set => _contextPath.Assign(value); } - private readonly BicepValue _contextPath; + public BicepValue ContextPath + { + get { Initialize(); return _contextPath!; } + set { Initialize(); _contextPath!.Assign(value); } + } + private BicepValue? _contextPath; /// /// The token (git PAT or SAS token of storage account blob) associated /// with the context for a step. /// - public BicepValue ContextAccessToken { get => _contextAccessToken; set => _contextAccessToken.Assign(value); } - private readonly BicepValue _contextAccessToken; + public BicepValue ContextAccessToken + { + get { Initialize(); return _contextAccessToken!; } + set { Initialize(); _contextAccessToken!.Assign(value); } + } + private BicepValue? _contextAccessToken; /// /// Creates a new ContainerRegistryTaskStepProperties. /// public ContainerRegistryTaskStepProperties() { - _baseImageDependencies = BicepList.DefineProperty(this, "BaseImageDependencies", ["baseImageDependencies"], isOutput: true); - _contextPath = BicepValue.DefineProperty(this, "ContextPath", ["contextPath"]); - _contextAccessToken = BicepValue.DefineProperty(this, "ContextAccessToken", ["contextAccessToken"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryTaskStepProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _baseImageDependencies = DefineListProperty("BaseImageDependencies", ["baseImageDependencies"], isOutput: true); + _contextPath = DefineProperty("ContextPath", ["contextPath"]); + _contextAccessToken = DefineProperty("ContextAccessToken", ["contextAccessToken"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTimerTrigger.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTimerTrigger.cs index 31d7fa6994e19..59d2f295b505b 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTimerTrigger.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTimerTrigger.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,49 @@ public partial class ContainerRegistryTimerTrigger : ProvisionableConstruct /// /// The CRON expression for the task schedule. /// - public BicepValue Schedule { get => _schedule; set => _schedule.Assign(value); } - private readonly BicepValue _schedule; + public BicepValue Schedule + { + get { Initialize(); return _schedule!; } + set { Initialize(); _schedule!.Assign(value); } + } + private BicepValue? _schedule; /// /// The current status of trigger. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The name of the trigger. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new ContainerRegistryTimerTrigger. /// public ContainerRegistryTimerTrigger() { - _schedule = BicepValue.DefineProperty(this, "Schedule", ["schedule"]); - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryTimerTrigger. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _schedule = DefineProperty("Schedule", ["schedule"]); + _status = DefineProperty("Status", ["status"]); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTimerTriggerDescriptor.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTimerTriggerDescriptor.cs index 954acfb5cf489..00328bbd99a49 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTimerTriggerDescriptor.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTimerTriggerDescriptor.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class ContainerRegistryTimerTriggerDescriptor : ProvisionableCons /// /// The timer trigger name that caused the run. /// - public BicepValue TimerTriggerName { get => _timerTriggerName; set => _timerTriggerName.Assign(value); } - private readonly BicepValue _timerTriggerName; + public BicepValue TimerTriggerName + { + get { Initialize(); return _timerTriggerName!; } + set { Initialize(); _timerTriggerName!.Assign(value); } + } + private BicepValue? _timerTriggerName; /// /// The occurrence that triggered the run. /// - public BicepValue ScheduleOccurrence { get => _scheduleOccurrence; set => _scheduleOccurrence.Assign(value); } - private readonly BicepValue _scheduleOccurrence; + public BicepValue ScheduleOccurrence + { + get { Initialize(); return _scheduleOccurrence!; } + set { Initialize(); _scheduleOccurrence!.Assign(value); } + } + private BicepValue? _scheduleOccurrence; /// /// Creates a new ContainerRegistryTimerTriggerDescriptor. /// public ContainerRegistryTimerTriggerDescriptor() { - _timerTriggerName = BicepValue.DefineProperty(this, "TimerTriggerName", ["timerTriggerName"]); - _scheduleOccurrence = BicepValue.DefineProperty(this, "ScheduleOccurrence", ["scheduleOccurrence"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryTimerTriggerDescriptor. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _timerTriggerName = DefineProperty("TimerTriggerName", ["timerTriggerName"]); + _scheduleOccurrence = DefineProperty("ScheduleOccurrence", ["scheduleOccurrence"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenCertificate.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenCertificate.cs index d787dc95eed66..8ad570b494e7f 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenCertificate.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenCertificate.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,36 +18,61 @@ public partial class ContainerRegistryTokenCertificate : ProvisionableConstruct /// /// Gets or sets the name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The expiry datetime of the certificate. /// - public BicepValue ExpireOn { get => _expireOn; set => _expireOn.Assign(value); } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + set { Initialize(); _expireOn!.Assign(value); } + } + private BicepValue? _expireOn; /// /// The thumbprint of the certificate. /// - public BicepValue Thumbprint { get => _thumbprint; set => _thumbprint.Assign(value); } - private readonly BicepValue _thumbprint; + public BicepValue Thumbprint + { + get { Initialize(); return _thumbprint!; } + set { Initialize(); _thumbprint!.Assign(value); } + } + private BicepValue? _thumbprint; /// /// Base 64 encoded string of the public certificate1 in PEM format that /// will be used for authenticating the token. /// - public BicepValue EncodedPemCertificate { get => _encodedPemCertificate; set => _encodedPemCertificate.Assign(value); } - private readonly BicepValue _encodedPemCertificate; + public BicepValue EncodedPemCertificate + { + get { Initialize(); return _encodedPemCertificate!; } + set { Initialize(); _encodedPemCertificate!.Assign(value); } + } + private BicepValue? _encodedPemCertificate; /// /// Creates a new ContainerRegistryTokenCertificate. /// public ContainerRegistryTokenCertificate() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["expiry"]); - _thumbprint = BicepValue.DefineProperty(this, "Thumbprint", ["thumbprint"]); - _encodedPemCertificate = BicepValue.DefineProperty(this, "EncodedPemCertificate", ["encodedPemCertificate"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryTokenCertificate. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _expireOn = DefineProperty("ExpireOn", ["expiry"]); + _thumbprint = DefineProperty("Thumbprint", ["thumbprint"]); + _encodedPemCertificate = DefineProperty("EncodedPemCertificate", ["encodedPemCertificate"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenCredentials.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenCredentials.cs index 3553aab51be5c..0d017e9848d3f 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenCredentials.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenCredentials.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,38 @@ public partial class ContainerRegistryTokenCredentials : ProvisionableConstruct /// /// Gets the certificates. /// - public BicepList Certificates { get => _certificates; set => _certificates.Assign(value); } - private readonly BicepList _certificates; + public BicepList Certificates + { + get { Initialize(); return _certificates!; } + set { Initialize(); _certificates!.Assign(value); } + } + private BicepList? _certificates; /// /// Gets the passwords. /// - public BicepList Passwords { get => _passwords; set => _passwords.Assign(value); } - private readonly BicepList _passwords; + public BicepList Passwords + { + get { Initialize(); return _passwords!; } + set { Initialize(); _passwords!.Assign(value); } + } + private BicepList? _passwords; /// /// Creates a new ContainerRegistryTokenCredentials. /// public ContainerRegistryTokenCredentials() { - _certificates = BicepList.DefineProperty(this, "Certificates", ["certificates"]); - _passwords = BicepList.DefineProperty(this, "Passwords", ["passwords"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryTokenCredentials. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _certificates = DefineListProperty("Certificates", ["certificates"]); + _passwords = DefineListProperty("Passwords", ["passwords"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenPassword.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenPassword.cs index 978a6cb94e2e4..b723cfeef3ea3 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenPassword.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenPassword.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,59 @@ public partial class ContainerRegistryTokenPassword : ProvisionableConstruct /// /// The creation datetime of the password. /// - public BicepValue CreatedOn { get => _createdOn; set => _createdOn.Assign(value); } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + set { Initialize(); _createdOn!.Assign(value); } + } + private BicepValue? _createdOn; /// /// The expiry datetime of the password. /// - public BicepValue ExpireOn { get => _expireOn; set => _expireOn.Assign(value); } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + set { Initialize(); _expireOn!.Assign(value); } + } + private BicepValue? _expireOn; /// /// The password name "password1" or "password2". /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The password value. /// - public BicepValue Value { get => _value; } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + } + private BicepValue? _value; /// /// Creates a new ContainerRegistryTokenPassword. /// public ContainerRegistryTokenPassword() { - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["creationTime"]); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["expiry"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryTokenPassword. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _createdOn = DefineProperty("CreatedOn", ["creationTime"]); + _expireOn = DefineProperty("ExpireOn", ["expiry"]); + _name = DefineProperty("Name", ["name"]); + _value = DefineProperty("Value", ["value"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTriggerProperties.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTriggerProperties.cs index 5d290bbe69711..7120052b7606b 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTriggerProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTriggerProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,49 @@ public partial class ContainerRegistryTriggerProperties : ProvisionableConstruct /// /// The collection of timer triggers. /// - public BicepList TimerTriggers { get => _timerTriggers; set => _timerTriggers.Assign(value); } - private readonly BicepList _timerTriggers; + public BicepList TimerTriggers + { + get { Initialize(); return _timerTriggers!; } + set { Initialize(); _timerTriggers!.Assign(value); } + } + private BicepList? _timerTriggers; /// /// The collection of triggers based on source code repository. /// - public BicepList SourceTriggers { get => _sourceTriggers; set => _sourceTriggers.Assign(value); } - private readonly BicepList _sourceTriggers; + public BicepList SourceTriggers + { + get { Initialize(); return _sourceTriggers!; } + set { Initialize(); _sourceTriggers!.Assign(value); } + } + private BicepList? _sourceTriggers; /// /// The trigger based on base image dependencies. /// - public BicepValue BaseImageTrigger { get => _baseImageTrigger; set => _baseImageTrigger.Assign(value); } - private readonly BicepValue _baseImageTrigger; + public ContainerRegistryBaseImageTrigger BaseImageTrigger + { + get { Initialize(); return _baseImageTrigger!; } + set { Initialize(); AssignOrReplace(ref _baseImageTrigger, value); } + } + private ContainerRegistryBaseImageTrigger? _baseImageTrigger; /// /// Creates a new ContainerRegistryTriggerProperties. /// public ContainerRegistryTriggerProperties() { - _timerTriggers = BicepList.DefineProperty(this, "TimerTriggers", ["timerTriggers"]); - _sourceTriggers = BicepList.DefineProperty(this, "SourceTriggers", ["sourceTriggers"]); - _baseImageTrigger = BicepValue.DefineProperty(this, "BaseImageTrigger", ["baseImageTrigger"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerRegistryTriggerProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _timerTriggers = DefineListProperty("TimerTriggers", ["timerTriggers"]); + _sourceTriggers = DefineListProperty("SourceTriggers", ["sourceTriggers"]); + _baseImageTrigger = DefineModelProperty("BaseImageTrigger", ["baseImageTrigger"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTrustPolicy.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTrustPolicy.cs index 6e1eb08281955..1ef833ea2c8c6 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTrustPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/ContainerRegistryTrustPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.ContainerRegistry; @@ -15,21 +17,37 @@ public partial class ContainerRegistryTrustPolicy : ProvisionableConstruct /// /// The type of trust policy. /// - public BicepValue PolicyType { get => _policyType; set => _policyType.Assign(value); } - private readonly BicepValue _policyType; + public BicepValue PolicyType + { + get { Initialize(); return _policyType!; } + set { Initialize(); _policyType!.Assign(value); } + } + private BicepValue? _policyType; /// /// The value that indicates whether the policy is enabled or not. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Creates a new ContainerRegistryTrustPolicy. /// public ContainerRegistryTrustPolicy() { - _policyType = BicepValue.DefineProperty(this, "PolicyType", ["type"]); - _status = BicepValue.DefineProperty(this, "Status", ["status"]); + } + + /// + /// Define all the provisionable properties of ContainerRegistryTrustPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _policyType = DefineProperty("PolicyType", ["type"]); + _status = DefineProperty("Status", ["status"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/CustomRegistryCredentials.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/CustomRegistryCredentials.cs index 0cefd6b45294b..50210051e908d 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/CustomRegistryCredentials.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/CustomRegistryCredentials.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,16 +19,24 @@ public partial class CustomRegistryCredentials : ProvisionableConstruct /// /// The username for logging into the custom registry. /// - public BicepValue UserName { get => _userName; set => _userName.Assign(value); } - private readonly BicepValue _userName; + public ContainerRegistrySecretObject UserName + { + get { Initialize(); return _userName!; } + set { Initialize(); AssignOrReplace(ref _userName, value); } + } + private ContainerRegistrySecretObject? _userName; /// /// The password for logging into the custom registry. The password is a /// secret object that allows multiple ways of providing the /// value for it. /// - public BicepValue Password { get => _password; set => _password.Assign(value); } - private readonly BicepValue _password; + public ContainerRegistrySecretObject Password + { + get { Initialize(); return _password!; } + set { Initialize(); AssignOrReplace(ref _password, value); } + } + private ContainerRegistrySecretObject? _password; /// /// Indicates the managed identity assigned to the custom credential. If a @@ -38,16 +48,28 @@ public partial class CustomRegistryCredentials : ProvisionableConstruct /// only source of authentication used for accessing the /// registry. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public BicepValue Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); _identity!.Assign(value); } + } + private BicepValue? _identity; /// /// Creates a new CustomRegistryCredentials. /// public CustomRegistryCredentials() { - _userName = BicepValue.DefineProperty(this, "UserName", ["userName"]); - _password = BicepValue.DefineProperty(this, "Password", ["password"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); + } + + /// + /// Define all the provisionable properties of CustomRegistryCredentials. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _userName = DefineModelProperty("UserName", ["userName"]); + _password = DefineModelProperty("Password", ["password"]); + _identity = DefineProperty("Identity", ["identity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/SourceCodeRepoAuthInfo.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/SourceCodeRepoAuthInfo.cs index a41a68c7f8cab..b3baf920a08c4 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/SourceCodeRepoAuthInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/SourceCodeRepoAuthInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,70 @@ public partial class SourceCodeRepoAuthInfo : ProvisionableConstruct /// /// The type of Auth token. /// - public BicepValue TokenType { get => _tokenType; set => _tokenType.Assign(value); } - private readonly BicepValue _tokenType; + public BicepValue TokenType + { + get { Initialize(); return _tokenType!; } + set { Initialize(); _tokenType!.Assign(value); } + } + private BicepValue? _tokenType; /// /// The access token used to access the source control provider. /// - public BicepValue Token { get => _token; set => _token.Assign(value); } - private readonly BicepValue _token; + public BicepValue Token + { + get { Initialize(); return _token!; } + set { Initialize(); _token!.Assign(value); } + } + private BicepValue? _token; /// /// The refresh token used to refresh the access token. /// - public BicepValue RefreshToken { get => _refreshToken; set => _refreshToken.Assign(value); } - private readonly BicepValue _refreshToken; + public BicepValue RefreshToken + { + get { Initialize(); return _refreshToken!; } + set { Initialize(); _refreshToken!.Assign(value); } + } + private BicepValue? _refreshToken; /// /// The scope of the access token. /// - public BicepValue Scope { get => _scope; set => _scope.Assign(value); } - private readonly BicepValue _scope; + public BicepValue Scope + { + get { Initialize(); return _scope!; } + set { Initialize(); _scope!.Assign(value); } + } + private BicepValue? _scope; /// /// Time in seconds that the token remains valid. /// - public BicepValue ExpireInSeconds { get => _expireInSeconds; set => _expireInSeconds.Assign(value); } - private readonly BicepValue _expireInSeconds; + public BicepValue ExpireInSeconds + { + get { Initialize(); return _expireInSeconds!; } + set { Initialize(); _expireInSeconds!.Assign(value); } + } + private BicepValue? _expireInSeconds; /// /// Creates a new SourceCodeRepoAuthInfo. /// public SourceCodeRepoAuthInfo() { - _tokenType = BicepValue.DefineProperty(this, "TokenType", ["tokenType"]); - _token = BicepValue.DefineProperty(this, "Token", ["token"]); - _refreshToken = BicepValue.DefineProperty(this, "RefreshToken", ["refreshToken"]); - _scope = BicepValue.DefineProperty(this, "Scope", ["scope"]); - _expireInSeconds = BicepValue.DefineProperty(this, "ExpireInSeconds", ["expiresIn"]); + } + + /// + /// Define all the provisionable properties of SourceCodeRepoAuthInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tokenType = DefineProperty("TokenType", ["tokenType"]); + _token = DefineProperty("Token", ["token"]); + _refreshToken = DefineProperty("RefreshToken", ["refreshToken"]); + _scope = DefineProperty("Scope", ["scope"]); + _expireInSeconds = DefineProperty("ExpireInSeconds", ["expiresIn"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/SourceCodeRepoProperties.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/SourceCodeRepoProperties.cs index f0a619a49498c..aa72145979cb0 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/SourceCodeRepoProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/Models/SourceCodeRepoProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,36 +18,60 @@ public partial class SourceCodeRepoProperties : ProvisionableConstruct /// /// The type of source control service. /// - public BicepValue SourceControlType { get => _sourceControlType; set => _sourceControlType.Assign(value); } - private readonly BicepValue _sourceControlType; + public BicepValue SourceControlType + { + get { Initialize(); return _sourceControlType!; } + set { Initialize(); _sourceControlType!.Assign(value); } + } + private BicepValue? _sourceControlType; /// /// The full URL to the source code repository. /// - public BicepValue RepositoryUri { get => _repositoryUri; set => _repositoryUri.Assign(value); } - private readonly BicepValue _repositoryUri; + public BicepValue RepositoryUri + { + get { Initialize(); return _repositoryUri!; } + set { Initialize(); _repositoryUri!.Assign(value); } + } + private BicepValue? _repositoryUri; /// /// The branch name of the source code. /// - public BicepValue Branch { get => _branch; set => _branch.Assign(value); } - private readonly BicepValue _branch; + public BicepValue Branch + { + get { Initialize(); return _branch!; } + set { Initialize(); _branch!.Assign(value); } + } + private BicepValue? _branch; /// /// The authorization properties for accessing the source code repository /// and to set up webhooks for notifications. /// - public BicepValue SourceControlAuthProperties { get => _sourceControlAuthProperties; set => _sourceControlAuthProperties.Assign(value); } - private readonly BicepValue _sourceControlAuthProperties; + public SourceCodeRepoAuthInfo SourceControlAuthProperties + { + get { Initialize(); return _sourceControlAuthProperties!; } + set { Initialize(); AssignOrReplace(ref _sourceControlAuthProperties, value); } + } + private SourceCodeRepoAuthInfo? _sourceControlAuthProperties; /// /// Creates a new SourceCodeRepoProperties. /// public SourceCodeRepoProperties() { - _sourceControlType = BicepValue.DefineProperty(this, "SourceControlType", ["sourceControlType"]); - _repositoryUri = BicepValue.DefineProperty(this, "RepositoryUri", ["repositoryUrl"]); - _branch = BicepValue.DefineProperty(this, "Branch", ["branch"]); - _sourceControlAuthProperties = BicepValue.DefineProperty(this, "SourceControlAuthProperties", ["sourceControlAuthProperties"]); + } + + /// + /// Define all the provisionable properties of SourceCodeRepoProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _sourceControlType = DefineProperty("SourceControlType", ["sourceControlType"]); + _repositoryUri = DefineProperty("RepositoryUri", ["repositoryUrl"]); + _branch = DefineProperty("Branch", ["branch"]); + _sourceControlAuthProperties = DefineModelProperty("SourceControlAuthProperties", ["sourceControlAuthProperties"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ScopeMap.cs b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ScopeMap.cs index acf4f9ade8c86..a13e6e53ecf24 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ScopeMap.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerRegistry/src/Generated/ScopeMap.cs @@ -22,58 +22,89 @@ public partial class ScopeMap : ProvisionableResource /// /// The name of the scope map. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The list of scoped permissions for registry artifacts. E.g. /// repositories/repository-name/content/read, /// repositories/repository-name/metadata/write /// - public BicepList Actions { get => _actions; set => _actions.Assign(value); } - private readonly BicepList _actions; + public BicepList Actions + { + get { Initialize(); return _actions!; } + set { Initialize(); _actions!.Assign(value); } + } + private BicepList? _actions; /// /// The user friendly description of the scope map. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The creation date of scope map. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The type of the scope map. E.g. BuildIn scope map. /// - public BicepValue ScopeMapType { get => _scopeMapType; } - private readonly BicepValue _scopeMapType; + public BicepValue ScopeMapType + { + get { Initialize(); return _scopeMapType!; } + } + private BicepValue? _scopeMapType; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerRegistryService. /// - public ContainerRegistryService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerRegistryService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ScopeMap. @@ -88,15 +119,22 @@ public partial class ScopeMap : ProvisionableResource public ScopeMap(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerRegistry/registries/scopeMaps", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _actions = BicepList.DefineProperty(this, "Actions", ["properties", "actions"]); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationDate"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _scopeMapType = BicepValue.DefineProperty(this, "ScopeMapType", ["properties", "type"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ScopeMap. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _actions = DefineListProperty("Actions", ["properties", "actions"]); + _description = DefineProperty("Description", ["properties", "description"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationDate"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _scopeMapType = DefineProperty("ScopeMapType", ["properties", "type"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/api/Azure.Provisioning.ContainerService.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/api/Azure.Provisioning.ContainerService.netstandard2.0.cs index 51a6307fcf36b..fe00bb2b29dae 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/api/Azure.Provisioning.ContainerService.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/api/Azure.Provisioning.ContainerService.netstandard2.0.cs @@ -18,6 +18,7 @@ public AgentPoolNetworkPortRange() { } public Azure.Provisioning.BicepValue PortEnd { get { throw null; } set { } } public Azure.Provisioning.BicepValue PortStart { get { throw null; } set { } } public Azure.Provisioning.BicepValue Protocol { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AgentPoolNetworkProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -25,6 +26,7 @@ public AgentPoolNetworkProfile() { } public Azure.Provisioning.BicepList AllowedHostPorts { get { throw null; } set { } } public Azure.Provisioning.BicepList ApplicationSecurityGroups { get { throw null; } set { } } public Azure.Provisioning.BicepList NodePublicIPTags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AgentPoolSnapshot : Azure.Provisioning.Primitives.ProvisionableResource { @@ -39,9 +41,10 @@ public partial class AgentPoolSnapshot : Azure.Provisioning.Primitives.Provision public Azure.Provisioning.BicepValue OSSku { get { throw null; } } public Azure.Provisioning.BicepValue OSType { get { throw null; } } public Azure.Provisioning.BicepValue SnapshotType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue VmSize { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerService.AgentPoolSnapshot FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -86,6 +89,7 @@ public partial class AgentPoolUpgradeSettings : Azure.Provisioning.Primitives.Pr public AgentPoolUpgradeSettings() { } public Azure.Provisioning.BicepValue DrainTimeoutInMinutes { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxSurge { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum AutoScaleExpander { @@ -114,15 +118,15 @@ public partial class ContainerServiceAgentPool : Azure.Provisioning.Primitives.P public Azure.Provisioning.BicepValue GpuInstanceProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue HostGroupId { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue KubeletConfig { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.KubeletConfig KubeletConfig { get { throw null; } set { } } public Azure.Provisioning.BicepValue KubeletDiskType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue LinuxOSConfig { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.LinuxOSConfig LinuxOSConfig { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxPods { get { throw null; } set { } } public Azure.Provisioning.BicepValue MinCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue Mode { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue NetworkProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.AgentPoolNetworkProfile NetworkProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue NodeImageVersion { get { throw null; } } public Azure.Provisioning.BicepDictionary NodeLabels { get { throw null; } set { } } public Azure.Provisioning.BicepValue NodePublicIPPrefixId { get { throw null; } set { } } @@ -141,13 +145,14 @@ public partial class ContainerServiceAgentPool : Azure.Provisioning.Primitives.P public Azure.Provisioning.BicepValue ScaleSetEvictionPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScaleSetPriority { get { throw null; } set { } } public Azure.Provisioning.BicepValue SpotMaxPrice { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TypePropertiesType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue UpgradeSettings { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.AgentPoolUpgradeSettings UpgradeSettings { get { throw null; } set { } } public Azure.Provisioning.BicepValue VmSize { get { throw null; } set { } } public Azure.Provisioning.BicepValue VnetSubnetId { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkloadRuntime { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerService.ContainerServiceAgentPool FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -236,18 +241,21 @@ public partial class ContainerServiceDateSpan : Azure.Provisioning.Primitives.Pr public ContainerServiceDateSpan() { } public Azure.Provisioning.BicepValue End { get { throw null; } set { } } public Azure.Provisioning.BicepValue Start { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerServiceIPTag : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerServiceIPTag() { } public Azure.Provisioning.BicepValue IPTagType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tag { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerServiceLinuxProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerServiceLinuxProfile() { } public Azure.Provisioning.BicepValue AdminUsername { get { throw null; } set { } } public Azure.Provisioning.BicepList SshPublicKeys { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerServiceLoadBalancerSku { @@ -261,17 +269,19 @@ public partial class ContainerServiceMaintenanceAbsoluteMonthlySchedule : Azure. public ContainerServiceMaintenanceAbsoluteMonthlySchedule() { } public Azure.Provisioning.BicepValue DayOfMonth { get { throw null; } set { } } public Azure.Provisioning.BicepValue IntervalMonths { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerServiceMaintenanceConfiguration : Azure.Provisioning.Primitives.ProvisionableResource { public ContainerServiceMaintenanceConfiguration(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue MaintenanceWindow { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ContainerServiceMaintenanceWindow MaintenanceWindow { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepList NotAllowedTimes { get { throw null; } set { } } public Azure.Provisioning.ContainerService.ContainerServiceManagedCluster? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepList TimesInWeek { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerService.ContainerServiceMaintenanceConfiguration FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -333,6 +343,7 @@ public ContainerServiceMaintenanceRelativeMonthlySchedule() { } public Azure.Provisioning.BicepValue DayOfWeek { get { throw null; } set { } } public Azure.Provisioning.BicepValue IntervalMonths { get { throw null; } set { } } public Azure.Provisioning.BicepValue WeekIndex { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex { @@ -345,79 +356,83 @@ public enum ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex public partial class ContainerServiceMaintenanceSchedule : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerServiceMaintenanceSchedule() { } - public Azure.Provisioning.BicepValue AbsoluteMonthly { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ContainerServiceMaintenanceAbsoluteMonthlySchedule AbsoluteMonthly { get { throw null; } set { } } public Azure.Provisioning.BicepValue DailyIntervalDays { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RelativeMonthly { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Weekly { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ContainerServiceMaintenanceRelativeMonthlySchedule RelativeMonthly { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ContainerServiceMaintenanceWeeklySchedule Weekly { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerServiceMaintenanceWeeklySchedule : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerServiceMaintenanceWeeklySchedule() { } public Azure.Provisioning.BicepValue DayOfWeek { get { throw null; } set { } } public Azure.Provisioning.BicepValue IntervalWeeks { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerServiceMaintenanceWindow : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerServiceMaintenanceWindow() { } public Azure.Provisioning.BicepValue DurationHours { get { throw null; } set { } } public Azure.Provisioning.BicepList NotAllowedDates { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Schedule { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ContainerServiceMaintenanceSchedule Schedule { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartDate { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartTime { get { throw null; } set { } } public Azure.Provisioning.BicepValue UtcOffset { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerServiceManagedCluster : Azure.Provisioning.Primitives.ProvisionableResource { public ContainerServiceManagedCluster(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue AadProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterAadProfile AadProfile { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary AddonProfiles { get { throw null; } set { } } public Azure.Provisioning.BicepList AgentPoolProfiles { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ApiServerAccessProfile { get { throw null; } set { } } - public Azure.Provisioning.BicepValue AutoScalerProfile { get { throw null; } set { } } - public Azure.Provisioning.BicepValue AutoUpgradeProfile { get { throw null; } set { } } - public Azure.Provisioning.BicepValue AzureMonitorMetrics { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterApiServerAccessProfile ApiServerAccessProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterAutoScalerProfile AutoScalerProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterAutoUpgradeProfile AutoUpgradeProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterMonitorProfileMetrics AzureMonitorMetrics { get { throw null; } set { } } public Azure.Provisioning.BicepValue AzurePortalFqdn { get { throw null; } } - public Azure.Provisioning.BicepValue ClusterIdentity { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterIdentity ClusterIdentity { get { throw null; } set { } } public Azure.Provisioning.BicepValue CurrentKubernetesVersion { get { throw null; } } public Azure.Provisioning.BicepValue DisableLocalAccounts { get { throw null; } set { } } public Azure.Provisioning.BicepValue DiskEncryptionSetId { get { throw null; } set { } } public Azure.Provisioning.BicepValue DnsPrefix { get { throw null; } set { } } public Azure.Provisioning.BicepValue EnablePodSecurityPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue EnableRbac { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ExtendedLocation { get { throw null; } set { } } + public Azure.Provisioning.Resources.ExtendedAzureLocation ExtendedLocation { get { throw null; } set { } } public Azure.Provisioning.BicepValue Fqdn { get { throw null; } } public Azure.Provisioning.BicepValue FqdnSubdomain { get { throw null; } set { } } - public Azure.Provisioning.BicepValue HttpProxyConfig { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterHttpProxyConfig HttpProxyConfig { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepDictionary IdentityProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue KubernetesVersion { get { throw null; } set { } } - public Azure.Provisioning.BicepValue LinuxProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ContainerServiceLinuxProfile LinuxProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxAgentPools { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue NetworkProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ContainerServiceNetworkProfile NetworkProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue NodeResourceGroup { get { throw null; } set { } } - public Azure.Provisioning.BicepValue OidcIssuerProfile { get { throw null; } set { } } - public Azure.Provisioning.BicepValue PodIdentityProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterOidcIssuerProfile OidcIssuerProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterPodIdentityProfile PodIdentityProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue PowerStateCode { get { throw null; } } public Azure.Provisioning.BicepValue PrivateFqdn { get { throw null; } } public Azure.Provisioning.BicepList PrivateLinkResources { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } } - public Azure.Provisioning.BicepValue SecurityProfile { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ServiceMeshProfile { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ServicePrincipalProfile { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue StorageProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterSecurityProfile SecurityProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ServiceMeshProfile ServiceMeshProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterServicePrincipalProfile ServicePrincipalProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterSku Sku { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterStorageProfile StorageProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue SupportPlan { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } - public Azure.Provisioning.BicepValue UpgradeOverrideSettings { get { throw null; } set { } } - public Azure.Provisioning.BicepValue WindowsProfile { get { throw null; } set { } } - public Azure.Provisioning.BicepValue WorkloadAutoScalerProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.UpgradeOverrideSettings UpgradeOverrideSettings { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterWindowsProfile WindowsProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterWorkloadAutoScalerProfile WorkloadAutoScalerProfile { get { throw null; } set { } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.ContainerService.ContainerServiceBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.ContainerService.ContainerServiceBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerService.ContainerServiceManagedCluster FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -510,9 +525,9 @@ public partial class ContainerServiceNetworkProfile : Azure.Provisioning.Primiti public ContainerServiceNetworkProfile() { } public Azure.Provisioning.BicepValue DnsServiceIP { get { throw null; } set { } } public Azure.Provisioning.BicepList IPFamilies { get { throw null; } set { } } - public Azure.Provisioning.BicepValue LoadBalancerProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterLoadBalancerProfile LoadBalancerProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue LoadBalancerSku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue NatGatewayProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterNatGatewayProfile NatGatewayProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue NetworkDataplane { get { throw null; } set { } } public Azure.Provisioning.BicepValue NetworkMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue NetworkPlugin { get { throw null; } set { } } @@ -523,6 +538,7 @@ public ContainerServiceNetworkProfile() { } public Azure.Provisioning.BicepList PodCidrs { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServiceCidr { get { throw null; } set { } } public Azure.Provisioning.BicepList ServiceCidrs { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerServiceOSDiskType { @@ -557,13 +573,14 @@ public enum ContainerServiceOutboundType public partial class ContainerServicePrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public ContainerServicePrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ContainerServicePrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.ContainerService.ContainerServiceManagedCluster? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerService.ContainerServicePrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -636,12 +653,14 @@ public ContainerServicePrivateLinkResourceData() { } public Azure.Provisioning.BicepValue PrivateLinkServiceId { get { throw null; } } public Azure.Provisioning.BicepList RequiredMembers { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerServicePrivateLinkServiceConnectionState : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerServicePrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerServicePrivateLinkServiceConnectionStatus { @@ -659,6 +678,7 @@ public partial class ContainerServiceSshPublicKey : Azure.Provisioning.Primitive { public ContainerServiceSshPublicKey() { } public Azure.Provisioning.BicepValue KeyData { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerServiceStateCode { @@ -670,12 +690,14 @@ public partial class ContainerServiceTimeInWeek : Azure.Provisioning.Primitives. public ContainerServiceTimeInWeek() { } public Azure.Provisioning.BicepValue Day { get { throw null; } set { } } public Azure.Provisioning.BicepList HourSlots { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerServiceTimeSpan : Azure.Provisioning.Primitives.ProvisionableConstruct { public ContainerServiceTimeSpan() { } public Azure.Provisioning.BicepValue EndOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContainerServiceTrustedAccessRoleBinding : Azure.Provisioning.Primitives.ProvisionableResource { @@ -686,7 +708,8 @@ public partial class ContainerServiceTrustedAccessRoleBinding : Azure.Provisioni public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepList Roles { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceResourceId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ContainerService.ContainerServiceTrustedAccessRoleBinding FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -756,6 +779,7 @@ public ContainerServiceUserAssignedIdentity() { } public Azure.Provisioning.BicepValue ClientId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ObjectId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContainerServiceWeekDay { @@ -790,18 +814,21 @@ public partial class IstioComponents : Azure.Provisioning.Primitives.Provisionab public IstioComponents() { } public Azure.Provisioning.BicepList EgressGateways { get { throw null; } set { } } public Azure.Provisioning.BicepList IngressGateways { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class IstioEgressGateway : Azure.Provisioning.Primitives.ProvisionableConstruct { public IstioEgressGateway() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary NodeSelector { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class IstioIngressGateway : Azure.Provisioning.Primitives.ProvisionableConstruct { public IstioIngressGateway() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Mode { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum IstioIngressGatewayMode { @@ -816,13 +843,15 @@ public IstioPluginCertificateAuthority() { } public Azure.Provisioning.BicepValue KeyObjectName { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVaultId { get { throw null; } set { } } public Azure.Provisioning.BicepValue RootCertObjectName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class IstioServiceMesh : Azure.Provisioning.Primitives.ProvisionableConstruct { public IstioServiceMesh() { } - public Azure.Provisioning.BicepValue CertificateAuthorityPlugin { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Components { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.IstioPluginCertificateAuthority CertificateAuthorityPlugin { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.IstioComponents Components { get { throw null; } set { } } public Azure.Provisioning.BicepList Revisions { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class KubeletConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -838,6 +867,7 @@ public KubeletConfig() { } public Azure.Provisioning.BicepValue IsCpuCfsQuotaEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue PodMaxPids { get { throw null; } set { } } public Azure.Provisioning.BicepValue TopologyManagerPolicy { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum KubeletDiskType { @@ -853,9 +883,10 @@ public partial class LinuxOSConfig : Azure.Provisioning.Primitives.Provisionable { public LinuxOSConfig() { } public Azure.Provisioning.BicepValue SwapFileSizeInMB { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sysctls { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.SysctlConfig Sysctls { get { throw null; } set { } } public Azure.Provisioning.BicepValue TransparentHugePageDefrag { get { throw null; } set { } } public Azure.Provisioning.BicepValue TransparentHugePageEnabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterAadProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -867,17 +898,20 @@ public ManagedClusterAadProfile() { } public Azure.Provisioning.BicepValue ServerAppId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServerAppSecret { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterAddonProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedClusterAddonProfile() { } public Azure.Provisioning.BicepDictionary Config { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } } + public Azure.Provisioning.ContainerService.ManagedClusterAddonProfileIdentity Identity { get { throw null; } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterAddonProfileIdentity : Azure.Provisioning.ContainerService.ContainerServiceUserAssignedIdentity { public ManagedClusterAddonProfileIdentity() { } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterAgentPoolProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -895,15 +929,15 @@ public ManagedClusterAgentPoolProfile() { } public Azure.Provisioning.BicepValue EnableUltraSsd { get { throw null; } set { } } public Azure.Provisioning.BicepValue GpuInstanceProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue HostGroupId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue KubeletConfig { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.KubeletConfig KubeletConfig { get { throw null; } set { } } public Azure.Provisioning.BicepValue KubeletDiskType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue LinuxOSConfig { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.LinuxOSConfig LinuxOSConfig { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxPods { get { throw null; } set { } } public Azure.Provisioning.BicepValue MinCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue Mode { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue NetworkProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.AgentPoolNetworkProfile NetworkProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue NodeImageVersion { get { throw null; } } public Azure.Provisioning.BicepDictionary NodeLabels { get { throw null; } set { } } public Azure.Provisioning.BicepValue NodePublicIPPrefixId { get { throw null; } set { } } @@ -922,10 +956,11 @@ public ManagedClusterAgentPoolProfile() { } public Azure.Provisioning.BicepValue ScaleSetPriority { get { throw null; } set { } } public Azure.Provisioning.BicepValue SpotMaxPrice { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } - public Azure.Provisioning.BicepValue UpgradeSettings { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.AgentPoolUpgradeSettings UpgradeSettings { get { throw null; } set { } } public Azure.Provisioning.BicepValue VmSize { get { throw null; } set { } } public Azure.Provisioning.BicepValue VnetSubnetId { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkloadRuntime { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterApiServerAccessProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -935,6 +970,7 @@ public ManagedClusterApiServerAccessProfile() { } public Azure.Provisioning.BicepValue EnablePrivateCluster { get { throw null; } set { } } public Azure.Provisioning.BicepValue EnablePrivateClusterPublicFqdn { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateDnsZone { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterAutoScalerProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -956,12 +992,14 @@ public ManagedClusterAutoScalerProfile() { } public Azure.Provisioning.BicepValue ScanIntervalInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue SkipNodesWithLocalStorage { get { throw null; } set { } } public Azure.Provisioning.BicepValue SkipNodesWithSystemPods { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterAutoUpgradeProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedClusterAutoUpgradeProfile() { } public Azure.Provisioning.BicepValue NodeOSUpgradeChannel { get { throw null; } set { } } public Azure.Provisioning.BicepValue UpgradeChannel { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterDelegatedIdentity : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -970,6 +1008,7 @@ public ManagedClusterDelegatedIdentity() { } public Azure.Provisioning.BicepValue ReferralResource { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterHttpProxyConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -978,6 +1017,7 @@ public ManagedClusterHttpProxyConfig() { } public Azure.Provisioning.BicepValue HttpsProxy { get { throw null; } set { } } public Azure.Provisioning.BicepList NoProxy { get { throw null; } set { } } public Azure.Provisioning.BicepValue TrustedCA { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterIdentity : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -987,6 +1027,7 @@ public ManagedClusterIdentity() { } public Azure.Provisioning.BicepValue ResourceIdentityType { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } public Azure.Provisioning.BicepDictionary UserAssignedIdentities { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ManagedClusterKeyVaultNetworkAccessType { @@ -1006,27 +1047,31 @@ public ManagedClusterLoadBalancerProfile() { } public Azure.Provisioning.BicepList EffectiveOutboundIPs { get { throw null; } set { } } public Azure.Provisioning.BicepValue EnableMultipleStandardLoadBalancers { get { throw null; } set { } } public Azure.Provisioning.BicepValue IdleTimeoutInMinutes { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ManagedOutboundIPs { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterLoadBalancerProfileManagedOutboundIPs ManagedOutboundIPs { get { throw null; } set { } } public Azure.Provisioning.BicepList OutboundPublicIPPrefixes { get { throw null; } set { } } public Azure.Provisioning.BicepList OutboundPublicIPs { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterLoadBalancerProfileManagedOutboundIPs : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedClusterLoadBalancerProfileManagedOutboundIPs() { } public Azure.Provisioning.BicepValue Count { get { throw null; } set { } } public Azure.Provisioning.BicepValue CountIPv6 { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterMonitorProfileKubeStateMetrics : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedClusterMonitorProfileKubeStateMetrics() { } public Azure.Provisioning.BicepValue MetricAnnotationsAllowList { get { throw null; } set { } } public Azure.Provisioning.BicepValue MetricLabelsAllowlist { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterMonitorProfileMetrics : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedClusterMonitorProfileMetrics() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } - public Azure.Provisioning.BicepValue KubeStateMetrics { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterMonitorProfileKubeStateMetrics KubeStateMetrics { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterNatGatewayProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1034,6 +1079,7 @@ public ManagedClusterNatGatewayProfile() { } public Azure.Provisioning.BicepList EffectiveOutboundIPs { get { throw null; } set { } } public Azure.Provisioning.BicepValue IdleTimeoutInMinutes { get { throw null; } set { } } public Azure.Provisioning.BicepValue ManagedOutboundIPCount { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ManagedClusterNodeOSUpgradeChannel { @@ -1046,16 +1092,18 @@ public partial class ManagedClusterOidcIssuerProfile : Azure.Provisioning.Primit public ManagedClusterOidcIssuerProfile() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IssuerUriInfo { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterPodIdentity : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedClusterPodIdentity() { } public Azure.Provisioning.BicepValue BindingSelector { get { throw null; } set { } } public Azure.Provisioning.BicepValue ErrorDetail { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ContainerServiceUserAssignedIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Namespace { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterPodIdentityException : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1063,6 +1111,7 @@ public ManagedClusterPodIdentityException() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Namespace { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary PodLabels { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterPodIdentityProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1071,6 +1120,7 @@ public ManagedClusterPodIdentityProfile() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepList UserAssignedIdentities { get { throw null; } set { } } public Azure.Provisioning.BicepList UserAssignedIdentityExceptions { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ManagedClusterPodIdentityProvisioningState { @@ -1084,22 +1134,25 @@ public enum ManagedClusterPodIdentityProvisioningState public partial class ManagedClusterSecurityProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedClusterSecurityProfile() { } - public Azure.Provisioning.BicepValue AzureKeyVaultKms { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Defender { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ImageCleaner { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterSecurityProfileKeyVaultKms AzureKeyVaultKms { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterSecurityProfileDefender Defender { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.ManagedClusterSecurityProfileImageCleaner ImageCleaner { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsWorkloadIdentityEnabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterSecurityProfileDefender : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedClusterSecurityProfileDefender() { } public Azure.Provisioning.BicepValue IsSecurityMonitoringEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue LogAnalyticsWorkspaceResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterSecurityProfileImageCleaner : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedClusterSecurityProfileImageCleaner() { } public Azure.Provisioning.BicepValue IntervalHours { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterSecurityProfileKeyVaultKms : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1108,18 +1161,21 @@ public ManagedClusterSecurityProfileKeyVaultKms() { } public Azure.Provisioning.BicepValue KeyId { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVaultNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVaultResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterServicePrincipalProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedClusterServicePrincipalProfile() { } public Azure.Provisioning.BicepValue ClientId { get { throw null; } set { } } public Azure.Provisioning.BicepValue Secret { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterSku : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedClusterSku() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ManagedClusterSkuName { @@ -1140,21 +1196,24 @@ public ManagedClusterStorageProfile() { } public Azure.Provisioning.BicepValue IsDiskCsiDriverEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsFileCsiDriverEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsSnapshotControllerEnabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterWindowsProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedClusterWindowsProfile() { } public Azure.Provisioning.BicepValue AdminPassword { get { throw null; } set { } } public Azure.Provisioning.BicepValue AdminUsername { get { throw null; } set { } } - public Azure.Provisioning.BicepValue GmsaProfile { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.WindowsGmsaProfile GmsaProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsCsiProxyEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue LicenseType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedClusterWorkloadAutoScalerProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedClusterWorkloadAutoScalerProfile() { } public Azure.Provisioning.BicepValue IsKedaEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsVpaEnabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum NetworkDataplane { @@ -1186,8 +1245,9 @@ public enum ServiceMeshMode public partial class ServiceMeshProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { public ServiceMeshProfile() { } - public Azure.Provisioning.BicepValue Istio { get { throw null; } set { } } + public Azure.Provisioning.ContainerService.IstioServiceMesh Istio { get { throw null; } set { } } public Azure.Provisioning.BicepValue Mode { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SnapshotType { @@ -1224,6 +1284,7 @@ public SysctlConfig() { } public Azure.Provisioning.BicepValue VmMaxMapCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue VmSwappiness { get { throw null; } set { } } public Azure.Provisioning.BicepValue VmVfsCachePressure { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum UpgradeChannel { @@ -1243,6 +1304,7 @@ public partial class UpgradeOverrideSettings : Azure.Provisioning.Primitives.Pro public UpgradeOverrideSettings() { } public Azure.Provisioning.BicepValue ForceUpgrade { get { throw null; } set { } } public Azure.Provisioning.BicepValue Until { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class WindowsGmsaProfile : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1250,6 +1312,7 @@ public WindowsGmsaProfile() { } public Azure.Provisioning.BicepValue DnsServer { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue RootDomainName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum WindowsVmLicenseType { diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/AgentPoolSnapshot.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/AgentPoolSnapshot.cs index 7c976c238f521..36aa156847fb3 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/AgentPoolSnapshot.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/AgentPoolSnapshot.cs @@ -21,83 +21,127 @@ public partial class AgentPoolSnapshot : ProvisionableResource /// /// The name of the managed cluster resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// This is the ARM ID of the source object to be used to create the target /// object. /// - public BicepValue CreationDataSourceResourceId { get => _creationDataSourceResourceId; set => _creationDataSourceResourceId.Assign(value); } - private readonly BicepValue _creationDataSourceResourceId; + public BicepValue CreationDataSourceResourceId + { + get { Initialize(); return _creationDataSourceResourceId!; } + set { Initialize(); _creationDataSourceResourceId!.Assign(value); } + } + private BicepValue? _creationDataSourceResourceId; /// /// The type of a snapshot. The default is NodePool. /// - public BicepValue SnapshotType { get => _snapshotType; set => _snapshotType.Assign(value); } - private readonly BicepValue _snapshotType; + public BicepValue SnapshotType + { + get { Initialize(); return _snapshotType!; } + set { Initialize(); _snapshotType!.Assign(value); } + } + private BicepValue? _snapshotType; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Whether to use a FIPS-enabled OS. /// - public BicepValue EnableFips { get => _enableFips; } - private readonly BicepValue _enableFips; + public BicepValue EnableFips + { + get { Initialize(); return _enableFips!; } + } + private BicepValue? _enableFips; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The version of Kubernetes. /// - public BicepValue KubernetesVersion { get => _kubernetesVersion; } - private readonly BicepValue _kubernetesVersion; + public BicepValue KubernetesVersion + { + get { Initialize(); return _kubernetesVersion!; } + } + private BicepValue? _kubernetesVersion; /// /// The version of node image. /// - public BicepValue NodeImageVersion { get => _nodeImageVersion; } - private readonly BicepValue _nodeImageVersion; + public BicepValue NodeImageVersion + { + get { Initialize(); return _nodeImageVersion!; } + } + private BicepValue? _nodeImageVersion; /// /// Specifies the OS SKU used by the agent pool. The default is Ubuntu if /// OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 /// or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. /// - public BicepValue OSSku { get => _oSSku; } - private readonly BicepValue _oSSku; + public BicepValue OSSku + { + get { Initialize(); return _oSSku!; } + } + private BicepValue? _oSSku; /// /// The operating system type. The default is Linux. /// - public BicepValue OSType { get => _oSType; } - private readonly BicepValue _oSType; + public BicepValue OSType + { + get { Initialize(); return _oSType!; } + } + private BicepValue? _oSType; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The size of the VM. /// - public BicepValue VmSize { get => _vmSize; } - private readonly BicepValue _vmSize; + public BicepValue VmSize + { + get { Initialize(); return _vmSize!; } + } + private BicepValue? _vmSize; /// /// Creates a new AgentPoolSnapshot. @@ -112,19 +156,26 @@ public partial class AgentPoolSnapshot : ProvisionableResource public AgentPoolSnapshot(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerService/snapshots", resourceVersion ?? "2024-08-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _creationDataSourceResourceId = BicepValue.DefineProperty(this, "CreationDataSourceResourceId", ["properties", "creationData", "sourceResourceId"]); - _snapshotType = BicepValue.DefineProperty(this, "SnapshotType", ["properties", "snapshotType"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _enableFips = BicepValue.DefineProperty(this, "EnableFips", ["properties", "enableFIPS"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _kubernetesVersion = BicepValue.DefineProperty(this, "KubernetesVersion", ["properties", "kubernetesVersion"], isOutput: true); - _nodeImageVersion = BicepValue.DefineProperty(this, "NodeImageVersion", ["properties", "nodeImageVersion"], isOutput: true); - _oSSku = BicepValue.DefineProperty(this, "OSSku", ["properties", "osSku"], isOutput: true); - _oSType = BicepValue.DefineProperty(this, "OSType", ["properties", "osType"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _vmSize = BicepValue.DefineProperty(this, "VmSize", ["properties", "vmSize"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AgentPoolSnapshot. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _creationDataSourceResourceId = DefineProperty("CreationDataSourceResourceId", ["properties", "creationData", "sourceResourceId"]); + _snapshotType = DefineProperty("SnapshotType", ["properties", "snapshotType"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _enableFips = DefineProperty("EnableFips", ["properties", "enableFIPS"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _kubernetesVersion = DefineProperty("KubernetesVersion", ["properties", "kubernetesVersion"], isOutput: true); + _nodeImageVersion = DefineProperty("NodeImageVersion", ["properties", "nodeImageVersion"], isOutput: true); + _oSSku = DefineProperty("OSSku", ["properties", "osSku"], isOutput: true); + _oSType = DefineProperty("OSType", ["properties", "osType"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _vmSize = DefineProperty("VmSize", ["properties", "vmSize"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceAgentPool.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceAgentPool.cs index 8933967cf4c55..3775b2cc85dca 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceAgentPool.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceAgentPool.cs @@ -22,23 +22,35 @@ public partial class ContainerServiceAgentPool : ProvisionableResource /// /// The name of the agent pool. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The list of Availability zones to use for nodes. This can only be /// specified if the AgentPoolType property is /// 'VirtualMachineScaleSets'. /// - public BicepList AvailabilityZones { get => _availabilityZones; set => _availabilityZones.Assign(value); } - private readonly BicepList _availabilityZones; + public BicepList AvailabilityZones + { + get { Initialize(); return _availabilityZones!; } + set { Initialize(); _availabilityZones!.Assign(value); } + } + private BicepList? _availabilityZones; /// /// AKS will associate the specified agent pool with the Capacity /// Reservation Group. /// - public BicepValue CapacityReservationGroupId { get => _capacityReservationGroupId; set => _capacityReservationGroupId.Assign(value); } - private readonly BicepValue _capacityReservationGroupId; + public BicepValue CapacityReservationGroupId + { + get { Initialize(); return _capacityReservationGroupId!; } + set { Initialize(); _capacityReservationGroupId!.Assign(value); } + } + private BicepValue? _capacityReservationGroupId; /// /// Number of agents (VMs) to host docker containers. Allowed values must @@ -46,37 +58,57 @@ public partial class ContainerServiceAgentPool : ProvisionableResource /// range of 1 to 1000 (inclusive) for system pools. The default value is /// 1. /// - public BicepValue Count { get => _count; set => _count.Assign(value); } - private readonly BicepValue _count; + public BicepValue Count + { + get { Initialize(); return _count!; } + set { Initialize(); _count!.Assign(value); } + } + private BicepValue? _count; /// /// This is the ARM ID of the source object to be used to create the target /// object. /// - public BicepValue CreationDataSourceResourceId { get => _creationDataSourceResourceId; set => _creationDataSourceResourceId.Assign(value); } - private readonly BicepValue _creationDataSourceResourceId; + public BicepValue CreationDataSourceResourceId + { + get { Initialize(); return _creationDataSourceResourceId!; } + set { Initialize(); _creationDataSourceResourceId!.Assign(value); } + } + private BicepValue? _creationDataSourceResourceId; /// /// Whether to enable auto-scaler. /// - public BicepValue EnableAutoScaling { get => _enableAutoScaling; set => _enableAutoScaling.Assign(value); } - private readonly BicepValue _enableAutoScaling; + public BicepValue EnableAutoScaling + { + get { Initialize(); return _enableAutoScaling!; } + set { Initialize(); _enableAutoScaling!.Assign(value); } + } + private BicepValue? _enableAutoScaling; /// /// This is only supported on certain VM sizes and in certain Azure /// regions. For more information, see: /// https://docs.microsoft.com/azure/aks/enable-host-encryption. /// - public BicepValue EnableEncryptionAtHost { get => _enableEncryptionAtHost; set => _enableEncryptionAtHost.Assign(value); } - private readonly BicepValue _enableEncryptionAtHost; + public BicepValue EnableEncryptionAtHost + { + get { Initialize(); return _enableEncryptionAtHost!; } + set { Initialize(); _enableEncryptionAtHost!.Assign(value); } + } + private BicepValue? _enableEncryptionAtHost; /// /// See [Add a FIPS-enabled node /// pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) /// for more details. /// - public BicepValue EnableFips { get => _enableFips; set => _enableFips.Assign(value); } - private readonly BicepValue _enableFips; + public BicepValue EnableFips + { + get { Initialize(); return _enableFips!; } + set { Initialize(); _enableFips!.Assign(value); } + } + private BicepValue? _enableFips; /// /// Some scenarios may require nodes in a node pool to receive their own @@ -87,21 +119,33 @@ public partial class ContainerServiceAgentPool : ProvisionableResource /// node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). /// The default is false. /// - public BicepValue EnableNodePublicIP { get => _enableNodePublicIP; set => _enableNodePublicIP.Assign(value); } - private readonly BicepValue _enableNodePublicIP; + public BicepValue EnableNodePublicIP + { + get { Initialize(); return _enableNodePublicIP!; } + set { Initialize(); _enableNodePublicIP!.Assign(value); } + } + private BicepValue? _enableNodePublicIP; /// /// Whether to enable UltraSSD. /// - public BicepValue EnableUltraSsd { get => _enableUltraSsd; set => _enableUltraSsd.Assign(value); } - private readonly BicepValue _enableUltraSsd; + public BicepValue EnableUltraSsd + { + get { Initialize(); return _enableUltraSsd!; } + set { Initialize(); _enableUltraSsd!.Assign(value); } + } + private BicepValue? _enableUltraSsd; /// /// GPUInstanceProfile to be used to specify GPU MIG instance profile for /// supported GPU VM SKU. /// - public BicepValue GpuInstanceProfile { get => _gpuInstanceProfile; set => _gpuInstanceProfile.Assign(value); } - private readonly BicepValue _gpuInstanceProfile; + public BicepValue GpuInstanceProfile + { + get { Initialize(); return _gpuInstanceProfile!; } + set { Initialize(); _gpuInstanceProfile!.Assign(value); } + } + private BicepValue? _gpuInstanceProfile; /// /// This is of the form: @@ -109,79 +153,127 @@ public partial class ContainerServiceAgentPool : ProvisionableResource /// For more information see [Azure dedicated /// hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). /// - public BicepValue HostGroupId { get => _hostGroupId; set => _hostGroupId.Assign(value); } - private readonly BicepValue _hostGroupId; + public BicepValue HostGroupId + { + get { Initialize(); return _hostGroupId!; } + set { Initialize(); _hostGroupId!.Assign(value); } + } + private BicepValue? _hostGroupId; /// /// The Kubelet configuration on the agent pool nodes. /// - public BicepValue KubeletConfig { get => _kubeletConfig; set => _kubeletConfig.Assign(value); } - private readonly BicepValue _kubeletConfig; + public KubeletConfig KubeletConfig + { + get { Initialize(); return _kubeletConfig!; } + set { Initialize(); AssignOrReplace(ref _kubeletConfig, value); } + } + private KubeletConfig? _kubeletConfig; /// /// Determines the placement of emptyDir volumes, container runtime data /// root, and Kubelet ephemeral storage. /// - public BicepValue KubeletDiskType { get => _kubeletDiskType; set => _kubeletDiskType.Assign(value); } - private readonly BicepValue _kubeletDiskType; + public BicepValue KubeletDiskType + { + get { Initialize(); return _kubeletDiskType!; } + set { Initialize(); _kubeletDiskType!.Assign(value); } + } + private BicepValue? _kubeletDiskType; /// /// The OS configuration of Linux agent nodes. /// - public BicepValue LinuxOSConfig { get => _linuxOSConfig; set => _linuxOSConfig.Assign(value); } - private readonly BicepValue _linuxOSConfig; + public LinuxOSConfig LinuxOSConfig + { + get { Initialize(); return _linuxOSConfig!; } + set { Initialize(); AssignOrReplace(ref _linuxOSConfig, value); } + } + private LinuxOSConfig? _linuxOSConfig; /// /// The maximum number of nodes for auto-scaling. /// - public BicepValue MaxCount { get => _maxCount; set => _maxCount.Assign(value); } - private readonly BicepValue _maxCount; + public BicepValue MaxCount + { + get { Initialize(); return _maxCount!; } + set { Initialize(); _maxCount!.Assign(value); } + } + private BicepValue? _maxCount; /// /// The maximum number of pods that can run on a node. /// - public BicepValue MaxPods { get => _maxPods; set => _maxPods.Assign(value); } - private readonly BicepValue _maxPods; + public BicepValue MaxPods + { + get { Initialize(); return _maxPods!; } + set { Initialize(); _maxPods!.Assign(value); } + } + private BicepValue? _maxPods; /// /// The minimum number of nodes for auto-scaling. /// - public BicepValue MinCount { get => _minCount; set => _minCount.Assign(value); } - private readonly BicepValue _minCount; + public BicepValue MinCount + { + get { Initialize(); return _minCount!; } + set { Initialize(); _minCount!.Assign(value); } + } + private BicepValue? _minCount; /// /// A cluster must have at least one 'System' Agent Pool at all /// times. For additional information on agent pool restrictions and best /// practices, see: https://docs.microsoft.com/azure/aks/use-system-pools. /// - public BicepValue Mode { get => _mode; set => _mode.Assign(value); } - private readonly BicepValue _mode; + public BicepValue Mode + { + get { Initialize(); return _mode!; } + set { Initialize(); _mode!.Assign(value); } + } + private BicepValue? _mode; /// /// Network-related settings of an agent pool. /// - public BicepValue NetworkProfile { get => _networkProfile; set => _networkProfile.Assign(value); } - private readonly BicepValue _networkProfile; + public AgentPoolNetworkProfile NetworkProfile + { + get { Initialize(); return _networkProfile!; } + set { Initialize(); AssignOrReplace(ref _networkProfile, value); } + } + private AgentPoolNetworkProfile? _networkProfile; /// /// The node labels to be persisted across all nodes in agent pool. /// - public BicepDictionary NodeLabels { get => _nodeLabels; set => _nodeLabels.Assign(value); } - private readonly BicepDictionary _nodeLabels; + public BicepDictionary NodeLabels + { + get { Initialize(); return _nodeLabels!; } + set { Initialize(); _nodeLabels!.Assign(value); } + } + private BicepDictionary? _nodeLabels; /// /// This is of the form: /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. /// - public BicepValue NodePublicIPPrefixId { get => _nodePublicIPPrefixId; set => _nodePublicIPPrefixId.Assign(value); } - private readonly BicepValue _nodePublicIPPrefixId; + public BicepValue NodePublicIPPrefixId + { + get { Initialize(); return _nodePublicIPPrefixId!; } + set { Initialize(); _nodePublicIPPrefixId!.Assign(value); } + } + private BicepValue? _nodePublicIPPrefixId; /// /// The taints added to new nodes during node pool create and scale. For /// example, key=value:NoSchedule. /// - public BicepList NodeTaints { get => _nodeTaints; set => _nodeTaints.Assign(value); } - private readonly BicepList _nodeTaints; + public BicepList NodeTaints + { + get { Initialize(); return _nodeTaints!; } + set { Initialize(); _nodeTaints!.Assign(value); } + } + private BicepList? _nodeTaints; /// /// Both patch version <major.minor.patch> (e.g. 1.20.13) and @@ -198,16 +290,24 @@ public partial class ContainerServiceAgentPool : ProvisionableResource /// plane version. For more information see [upgrading a node /// pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). /// - public BicepValue OrchestratorVersion { get => _orchestratorVersion; set => _orchestratorVersion.Assign(value); } - private readonly BicepValue _orchestratorVersion; + public BicepValue OrchestratorVersion + { + get { Initialize(); return _orchestratorVersion!; } + set { Initialize(); _orchestratorVersion!.Assign(value); } + } + private BicepValue? _orchestratorVersion; /// /// OS Disk Size in GB to be used to specify the disk size for every /// machine in the master/agent pool. If you specify 0, it will apply the /// default osDisk size according to the vmSize specified. /// - public BicepValue OSDiskSizeInGB { get => _oSDiskSizeInGB; set => _oSDiskSizeInGB.Assign(value); } - private readonly BicepValue _oSDiskSizeInGB; + public BicepValue OSDiskSizeInGB + { + get { Initialize(); return _oSDiskSizeInGB!; } + set { Initialize(); _oSDiskSizeInGB!.Assign(value); } + } + private BicepValue? _oSDiskSizeInGB; /// /// The default is 'Ephemeral' if the VM supports it and has a @@ -216,63 +316,99 @@ public partial class ContainerServiceAgentPool : ProvisionableResource /// information see [Ephemeral /// OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os). /// - public BicepValue OSDiskType { get => _oSDiskType; set => _oSDiskType.Assign(value); } - private readonly BicepValue _oSDiskType; + public BicepValue OSDiskType + { + get { Initialize(); return _oSDiskType!; } + set { Initialize(); _oSDiskType!.Assign(value); } + } + private BicepValue? _oSDiskType; /// /// Specifies the OS SKU used by the agent pool. The default is Ubuntu if /// OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 /// or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. /// - public BicepValue OSSku { get => _oSSku; set => _oSSku.Assign(value); } - private readonly BicepValue _oSSku; + public BicepValue OSSku + { + get { Initialize(); return _oSSku!; } + set { Initialize(); _oSSku!.Assign(value); } + } + private BicepValue? _oSSku; /// /// The operating system type. The default is Linux. /// - public BicepValue OSType { get => _oSType; set => _oSType.Assign(value); } - private readonly BicepValue _oSType; + public BicepValue OSType + { + get { Initialize(); return _oSType!; } + set { Initialize(); _oSType!.Assign(value); } + } + private BicepValue? _oSType; /// /// If omitted, pod IPs are statically assigned on the node subnet (see /// vnetSubnetID for more details). This is of the form: /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. /// - public BicepValue PodSubnetId { get => _podSubnetId; set => _podSubnetId.Assign(value); } - private readonly BicepValue _podSubnetId; + public BicepValue PodSubnetId + { + get { Initialize(); return _podSubnetId!; } + set { Initialize(); _podSubnetId!.Assign(value); } + } + private BicepValue? _podSubnetId; /// /// Tells whether the cluster is Running or Stopped. /// - public BicepValue PowerStateCode { get => _powerStateCode; set => _powerStateCode.Assign(value); } - private readonly BicepValue _powerStateCode; + public BicepValue PowerStateCode + { + get { Initialize(); return _powerStateCode!; } + set { Initialize(); _powerStateCode!.Assign(value); } + } + private BicepValue? _powerStateCode; /// /// The ID for Proximity Placement Group. /// - public BicepValue ProximityPlacementGroupId { get => _proximityPlacementGroupId; set => _proximityPlacementGroupId.Assign(value); } - private readonly BicepValue _proximityPlacementGroupId; + public BicepValue ProximityPlacementGroupId + { + get { Initialize(); return _proximityPlacementGroupId!; } + set { Initialize(); _proximityPlacementGroupId!.Assign(value); } + } + private BicepValue? _proximityPlacementGroupId; /// /// This also effects the cluster autoscaler behavior. If not specified, it /// defaults to Delete. /// - public BicepValue ScaleDownMode { get => _scaleDownMode; set => _scaleDownMode.Assign(value); } - private readonly BicepValue _scaleDownMode; + public BicepValue ScaleDownMode + { + get { Initialize(); return _scaleDownMode!; } + set { Initialize(); _scaleDownMode!.Assign(value); } + } + private BicepValue? _scaleDownMode; /// /// This cannot be specified unless the scaleSetPriority is /// 'Spot'. If not specified, the default is 'Delete'. /// - public BicepValue ScaleSetEvictionPolicy { get => _scaleSetEvictionPolicy; set => _scaleSetEvictionPolicy.Assign(value); } - private readonly BicepValue _scaleSetEvictionPolicy; + public BicepValue ScaleSetEvictionPolicy + { + get { Initialize(); return _scaleSetEvictionPolicy!; } + set { Initialize(); _scaleSetEvictionPolicy!.Assign(value); } + } + private BicepValue? _scaleSetEvictionPolicy; /// /// The Virtual Machine Scale Set priority. If not specified, the default /// is 'Regular'. /// - public BicepValue ScaleSetPriority { get => _scaleSetPriority; set => _scaleSetPriority.Assign(value); } - private readonly BicepValue _scaleSetPriority; + public BicepValue ScaleSetPriority + { + get { Initialize(); return _scaleSetPriority!; } + set { Initialize(); _scaleSetPriority!.Assign(value); } + } + private BicepValue? _scaleSetPriority; /// /// Possible values are any decimal value greater than zero or -1 which @@ -280,26 +416,42 @@ public partial class ContainerServiceAgentPool : ProvisionableResource /// on spot pricing, see [spot VMs /// pricing](https://docs.microsoft.com/azure/virtual-machines/spot-vms#pricing). /// - public BicepValue SpotMaxPrice { get => _spotMaxPrice; set => _spotMaxPrice.Assign(value); } - private readonly BicepValue _spotMaxPrice; + public BicepValue SpotMaxPrice + { + get { Initialize(); return _spotMaxPrice!; } + set { Initialize(); _spotMaxPrice!.Assign(value); } + } + private BicepValue? _spotMaxPrice; /// /// The tags to be persisted on the agent pool virtual machine scale set. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The type of Agent Pool. /// - public BicepValue TypePropertiesType { get => _typePropertiesType; set => _typePropertiesType.Assign(value); } - private readonly BicepValue _typePropertiesType; + public BicepValue TypePropertiesType + { + get { Initialize(); return _typePropertiesType!; } + set { Initialize(); _typePropertiesType!.Assign(value); } + } + private BicepValue? _typePropertiesType; /// /// Settings for upgrading the agentpool. /// - public BicepValue UpgradeSettings { get => _upgradeSettings; set => _upgradeSettings.Assign(value); } - private readonly BicepValue _upgradeSettings; + public AgentPoolUpgradeSettings UpgradeSettings + { + get { Initialize(); return _upgradeSettings!; } + set { Initialize(); AssignOrReplace(ref _upgradeSettings, value); } + } + private AgentPoolUpgradeSettings? _upgradeSettings; /// /// VM size availability varies by region. If a node contains insufficient @@ -307,8 +459,12 @@ public partial class ContainerServiceAgentPool : ProvisionableResource /// For more details on restricted VM sizes, see: /// https://docs.microsoft.com/azure/aks/quotas-skus-regions. /// - public BicepValue VmSize { get => _vmSize; set => _vmSize.Assign(value); } - private readonly BicepValue _vmSize; + public BicepValue VmSize + { + get { Initialize(); return _vmSize!; } + set { Initialize(); _vmSize!.Assign(value); } + } + private BicepValue? _vmSize; /// /// If this is not specified, a VNET and subnet will be generated and used. @@ -316,14 +472,22 @@ public partial class ContainerServiceAgentPool : ProvisionableResource /// otherwise it applies to just nodes. This is of the form: /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. /// - public BicepValue VnetSubnetId { get => _vnetSubnetId; set => _vnetSubnetId.Assign(value); } - private readonly BicepValue _vnetSubnetId; + public BicepValue VnetSubnetId + { + get { Initialize(); return _vnetSubnetId!; } + set { Initialize(); _vnetSubnetId!.Assign(value); } + } + private BicepValue? _vnetSubnetId; /// /// Determines the type of workload a node can run. /// - public BicepValue WorkloadRuntime { get => _workloadRuntime; set => _workloadRuntime.Assign(value); } - private readonly BicepValue _workloadRuntime; + public BicepValue WorkloadRuntime + { + get { Initialize(); return _workloadRuntime!; } + set { Initialize(); _workloadRuntime!.Assign(value); } + } + private BicepValue? _workloadRuntime; /// /// If orchestratorVersion is a fully specified version @@ -331,38 +495,57 @@ public partial class ContainerServiceAgentPool : ProvisionableResource /// orchestratorVersion is <major.minor>, this field will contain /// the full <major.minor.patch> version being used. /// - public BicepValue CurrentOrchestratorVersion { get => _currentOrchestratorVersion; } - private readonly BicepValue _currentOrchestratorVersion; + public BicepValue CurrentOrchestratorVersion + { + get { Initialize(); return _currentOrchestratorVersion!; } + } + private BicepValue? _currentOrchestratorVersion; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The version of node image. /// - public BicepValue NodeImageVersion { get => _nodeImageVersion; } - private readonly BicepValue _nodeImageVersion; + public BicepValue NodeImageVersion + { + get { Initialize(); return _nodeImageVersion!; } + } + private BicepValue? _nodeImageVersion; /// /// The current deployment or provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerServiceManagedCluster. /// - public ContainerServiceManagedCluster? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerServiceManagedCluster? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerServiceAgentPool. @@ -377,53 +560,60 @@ public partial class ContainerServiceAgentPool : ProvisionableResource public ContainerServiceAgentPool(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerService/managedClusters/agentPools", resourceVersion ?? "2024-08-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _availabilityZones = BicepList.DefineProperty(this, "AvailabilityZones", ["properties", "availabilityZones"]); - _capacityReservationGroupId = BicepValue.DefineProperty(this, "CapacityReservationGroupId", ["properties", "capacityReservationGroupID"]); - _count = BicepValue.DefineProperty(this, "Count", ["properties", "count"]); - _creationDataSourceResourceId = BicepValue.DefineProperty(this, "CreationDataSourceResourceId", ["properties", "creationData", "sourceResourceId"]); - _enableAutoScaling = BicepValue.DefineProperty(this, "EnableAutoScaling", ["properties", "enableAutoScaling"]); - _enableEncryptionAtHost = BicepValue.DefineProperty(this, "EnableEncryptionAtHost", ["properties", "enableEncryptionAtHost"]); - _enableFips = BicepValue.DefineProperty(this, "EnableFips", ["properties", "enableFIPS"]); - _enableNodePublicIP = BicepValue.DefineProperty(this, "EnableNodePublicIP", ["properties", "enableNodePublicIP"]); - _enableUltraSsd = BicepValue.DefineProperty(this, "EnableUltraSsd", ["properties", "enableUltraSSD"]); - _gpuInstanceProfile = BicepValue.DefineProperty(this, "GpuInstanceProfile", ["properties", "gpuInstanceProfile"]); - _hostGroupId = BicepValue.DefineProperty(this, "HostGroupId", ["properties", "hostGroupID"]); - _kubeletConfig = BicepValue.DefineProperty(this, "KubeletConfig", ["properties", "kubeletConfig"]); - _kubeletDiskType = BicepValue.DefineProperty(this, "KubeletDiskType", ["properties", "kubeletDiskType"]); - _linuxOSConfig = BicepValue.DefineProperty(this, "LinuxOSConfig", ["properties", "linuxOSConfig"]); - _maxCount = BicepValue.DefineProperty(this, "MaxCount", ["properties", "maxCount"]); - _maxPods = BicepValue.DefineProperty(this, "MaxPods", ["properties", "maxPods"]); - _minCount = BicepValue.DefineProperty(this, "MinCount", ["properties", "minCount"]); - _mode = BicepValue.DefineProperty(this, "Mode", ["properties", "mode"]); - _networkProfile = BicepValue.DefineProperty(this, "NetworkProfile", ["properties", "networkProfile"]); - _nodeLabels = BicepDictionary.DefineProperty(this, "NodeLabels", ["properties", "nodeLabels"]); - _nodePublicIPPrefixId = BicepValue.DefineProperty(this, "NodePublicIPPrefixId", ["properties", "nodePublicIPPrefixID"]); - _nodeTaints = BicepList.DefineProperty(this, "NodeTaints", ["properties", "nodeTaints"]); - _orchestratorVersion = BicepValue.DefineProperty(this, "OrchestratorVersion", ["properties", "orchestratorVersion"]); - _oSDiskSizeInGB = BicepValue.DefineProperty(this, "OSDiskSizeInGB", ["properties", "osDiskSizeGB"]); - _oSDiskType = BicepValue.DefineProperty(this, "OSDiskType", ["properties", "osDiskType"]); - _oSSku = BicepValue.DefineProperty(this, "OSSku", ["properties", "osSKU"]); - _oSType = BicepValue.DefineProperty(this, "OSType", ["properties", "osType"]); - _podSubnetId = BicepValue.DefineProperty(this, "PodSubnetId", ["properties", "podSubnetID"]); - _powerStateCode = BicepValue.DefineProperty(this, "PowerStateCode", ["properties", "powerState", "code"]); - _proximityPlacementGroupId = BicepValue.DefineProperty(this, "ProximityPlacementGroupId", ["properties", "proximityPlacementGroupID"]); - _scaleDownMode = BicepValue.DefineProperty(this, "ScaleDownMode", ["properties", "scaleDownMode"]); - _scaleSetEvictionPolicy = BicepValue.DefineProperty(this, "ScaleSetEvictionPolicy", ["properties", "scaleSetEvictionPolicy"]); - _scaleSetPriority = BicepValue.DefineProperty(this, "ScaleSetPriority", ["properties", "scaleSetPriority"]); - _spotMaxPrice = BicepValue.DefineProperty(this, "SpotMaxPrice", ["properties", "spotMaxPrice"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["properties", "tags"]); - _typePropertiesType = BicepValue.DefineProperty(this, "TypePropertiesType", ["properties", "type"]); - _upgradeSettings = BicepValue.DefineProperty(this, "UpgradeSettings", ["properties", "upgradeSettings"]); - _vmSize = BicepValue.DefineProperty(this, "VmSize", ["properties", "vmSize"]); - _vnetSubnetId = BicepValue.DefineProperty(this, "VnetSubnetId", ["properties", "vnetSubnetID"]); - _workloadRuntime = BicepValue.DefineProperty(this, "WorkloadRuntime", ["properties", "workloadRuntime"]); - _currentOrchestratorVersion = BicepValue.DefineProperty(this, "CurrentOrchestratorVersion", ["properties", "currentOrchestratorVersion"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _nodeImageVersion = BicepValue.DefineProperty(this, "NodeImageVersion", ["properties", "nodeImageVersion"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ContainerServiceAgentPool. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _availabilityZones = DefineListProperty("AvailabilityZones", ["properties", "availabilityZones"]); + _capacityReservationGroupId = DefineProperty("CapacityReservationGroupId", ["properties", "capacityReservationGroupID"]); + _count = DefineProperty("Count", ["properties", "count"]); + _creationDataSourceResourceId = DefineProperty("CreationDataSourceResourceId", ["properties", "creationData", "sourceResourceId"]); + _enableAutoScaling = DefineProperty("EnableAutoScaling", ["properties", "enableAutoScaling"]); + _enableEncryptionAtHost = DefineProperty("EnableEncryptionAtHost", ["properties", "enableEncryptionAtHost"]); + _enableFips = DefineProperty("EnableFips", ["properties", "enableFIPS"]); + _enableNodePublicIP = DefineProperty("EnableNodePublicIP", ["properties", "enableNodePublicIP"]); + _enableUltraSsd = DefineProperty("EnableUltraSsd", ["properties", "enableUltraSSD"]); + _gpuInstanceProfile = DefineProperty("GpuInstanceProfile", ["properties", "gpuInstanceProfile"]); + _hostGroupId = DefineProperty("HostGroupId", ["properties", "hostGroupID"]); + _kubeletConfig = DefineModelProperty("KubeletConfig", ["properties", "kubeletConfig"]); + _kubeletDiskType = DefineProperty("KubeletDiskType", ["properties", "kubeletDiskType"]); + _linuxOSConfig = DefineModelProperty("LinuxOSConfig", ["properties", "linuxOSConfig"]); + _maxCount = DefineProperty("MaxCount", ["properties", "maxCount"]); + _maxPods = DefineProperty("MaxPods", ["properties", "maxPods"]); + _minCount = DefineProperty("MinCount", ["properties", "minCount"]); + _mode = DefineProperty("Mode", ["properties", "mode"]); + _networkProfile = DefineModelProperty("NetworkProfile", ["properties", "networkProfile"]); + _nodeLabels = DefineDictionaryProperty("NodeLabels", ["properties", "nodeLabels"]); + _nodePublicIPPrefixId = DefineProperty("NodePublicIPPrefixId", ["properties", "nodePublicIPPrefixID"]); + _nodeTaints = DefineListProperty("NodeTaints", ["properties", "nodeTaints"]); + _orchestratorVersion = DefineProperty("OrchestratorVersion", ["properties", "orchestratorVersion"]); + _oSDiskSizeInGB = DefineProperty("OSDiskSizeInGB", ["properties", "osDiskSizeGB"]); + _oSDiskType = DefineProperty("OSDiskType", ["properties", "osDiskType"]); + _oSSku = DefineProperty("OSSku", ["properties", "osSKU"]); + _oSType = DefineProperty("OSType", ["properties", "osType"]); + _podSubnetId = DefineProperty("PodSubnetId", ["properties", "podSubnetID"]); + _powerStateCode = DefineProperty("PowerStateCode", ["properties", "powerState", "code"]); + _proximityPlacementGroupId = DefineProperty("ProximityPlacementGroupId", ["properties", "proximityPlacementGroupID"]); + _scaleDownMode = DefineProperty("ScaleDownMode", ["properties", "scaleDownMode"]); + _scaleSetEvictionPolicy = DefineProperty("ScaleSetEvictionPolicy", ["properties", "scaleSetEvictionPolicy"]); + _scaleSetPriority = DefineProperty("ScaleSetPriority", ["properties", "scaleSetPriority"]); + _spotMaxPrice = DefineProperty("SpotMaxPrice", ["properties", "spotMaxPrice"]); + _tags = DefineDictionaryProperty("Tags", ["properties", "tags"]); + _typePropertiesType = DefineProperty("TypePropertiesType", ["properties", "type"]); + _upgradeSettings = DefineModelProperty("UpgradeSettings", ["properties", "upgradeSettings"]); + _vmSize = DefineProperty("VmSize", ["properties", "vmSize"]); + _vnetSubnetId = DefineProperty("VnetSubnetId", ["properties", "vnetSubnetID"]); + _workloadRuntime = DefineProperty("WorkloadRuntime", ["properties", "workloadRuntime"]); + _currentOrchestratorVersion = DefineProperty("CurrentOrchestratorVersion", ["properties", "currentOrchestratorVersion"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _nodeImageVersion = DefineProperty("NodeImageVersion", ["properties", "nodeImageVersion"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceMaintenanceConfiguration.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceMaintenanceConfiguration.cs index 29b83b9303624..91f80e9cec267 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceMaintenanceConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceMaintenanceConfiguration.cs @@ -21,45 +21,71 @@ public partial class ContainerServiceMaintenanceConfiguration : ProvisionableRes /// /// The name of the maintenance configuration. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Maintenance window for the maintenance configuration. /// - public BicepValue MaintenanceWindow { get => _maintenanceWindow; set => _maintenanceWindow.Assign(value); } - private readonly BicepValue _maintenanceWindow; + public ContainerServiceMaintenanceWindow MaintenanceWindow + { + get { Initialize(); return _maintenanceWindow!; } + set { Initialize(); AssignOrReplace(ref _maintenanceWindow, value); } + } + private ContainerServiceMaintenanceWindow? _maintenanceWindow; /// /// Time slots on which upgrade is not allowed. /// - public BicepList NotAllowedTimes { get => _notAllowedTimes; set => _notAllowedTimes.Assign(value); } - private readonly BicepList _notAllowedTimes; + public BicepList NotAllowedTimes + { + get { Initialize(); return _notAllowedTimes!; } + set { Initialize(); _notAllowedTimes!.Assign(value); } + } + private BicepList? _notAllowedTimes; /// /// If two array entries specify the same day of the week, the applied /// configuration is the union of times in both entries. /// - public BicepList TimesInWeek { get => _timesInWeek; set => _timesInWeek.Assign(value); } - private readonly BicepList _timesInWeek; + public BicepList TimesInWeek + { + get { Initialize(); return _timesInWeek!; } + set { Initialize(); _timesInWeek!.Assign(value); } + } + private BicepList? _timesInWeek; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerServiceManagedCluster. /// - public ContainerServiceManagedCluster? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerServiceManagedCluster? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerServiceMaintenanceConfiguration. @@ -75,13 +101,21 @@ public partial class ContainerServiceMaintenanceConfiguration : ProvisionableRes public ContainerServiceMaintenanceConfiguration(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerService/managedClusters/maintenanceConfigurations", resourceVersion ?? "2024-08-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _maintenanceWindow = BicepValue.DefineProperty(this, "MaintenanceWindow", ["properties", "maintenanceWindow"]); - _notAllowedTimes = BicepList.DefineProperty(this, "NotAllowedTimes", ["properties", "notAllowedTime"]); - _timesInWeek = BicepList.DefineProperty(this, "TimesInWeek", ["properties", "timeInWeek"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerServiceMaintenanceConfiguration. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _maintenanceWindow = DefineModelProperty("MaintenanceWindow", ["properties", "maintenanceWindow"]); + _notAllowedTimes = DefineListProperty("NotAllowedTimes", ["properties", "notAllowedTime"]); + _timesInWeek = DefineListProperty("TimesInWeek", ["properties", "timeInWeek"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceManagedCluster.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceManagedCluster.cs index 0f8db93be4439..14a70b1f1adb9 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceManagedCluster.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceManagedCluster.cs @@ -26,50 +26,82 @@ public partial class ContainerServiceManagedCluster : ProvisionableResource /// /// The name of the managed cluster resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The Azure Active Directory configuration. /// - public BicepValue AadProfile { get => _aadProfile; set => _aadProfile.Assign(value); } - private readonly BicepValue _aadProfile; + public ManagedClusterAadProfile AadProfile + { + get { Initialize(); return _aadProfile!; } + set { Initialize(); AssignOrReplace(ref _aadProfile, value); } + } + private ManagedClusterAadProfile? _aadProfile; /// /// The profile of managed cluster add-on. /// - public BicepDictionary AddonProfiles { get => _addonProfiles; set => _addonProfiles.Assign(value); } - private readonly BicepDictionary _addonProfiles; + public BicepDictionary AddonProfiles + { + get { Initialize(); return _addonProfiles!; } + set { Initialize(); _addonProfiles!.Assign(value); } + } + private BicepDictionary? _addonProfiles; /// /// The agent pool properties. /// - public BicepList AgentPoolProfiles { get => _agentPoolProfiles; set => _agentPoolProfiles.Assign(value); } - private readonly BicepList _agentPoolProfiles; + public BicepList AgentPoolProfiles + { + get { Initialize(); return _agentPoolProfiles!; } + set { Initialize(); _agentPoolProfiles!.Assign(value); } + } + private BicepList? _agentPoolProfiles; /// /// The access profile for managed cluster API server. /// - public BicepValue ApiServerAccessProfile { get => _apiServerAccessProfile; set => _apiServerAccessProfile.Assign(value); } - private readonly BicepValue _apiServerAccessProfile; + public ManagedClusterApiServerAccessProfile ApiServerAccessProfile + { + get { Initialize(); return _apiServerAccessProfile!; } + set { Initialize(); AssignOrReplace(ref _apiServerAccessProfile, value); } + } + private ManagedClusterApiServerAccessProfile? _apiServerAccessProfile; /// /// Parameters to be applied to the cluster-autoscaler when enabled. /// - public BicepValue AutoScalerProfile { get => _autoScalerProfile; set => _autoScalerProfile.Assign(value); } - private readonly BicepValue _autoScalerProfile; + public ManagedClusterAutoScalerProfile AutoScalerProfile + { + get { Initialize(); return _autoScalerProfile!; } + set { Initialize(); AssignOrReplace(ref _autoScalerProfile, value); } + } + private ManagedClusterAutoScalerProfile? _autoScalerProfile; /// /// The auto upgrade configuration. /// - public BicepValue AutoUpgradeProfile { get => _autoUpgradeProfile; set => _autoUpgradeProfile.Assign(value); } - private readonly BicepValue _autoUpgradeProfile; + public ManagedClusterAutoUpgradeProfile AutoUpgradeProfile + { + get { Initialize(); return _autoUpgradeProfile!; } + set { Initialize(); AssignOrReplace(ref _autoUpgradeProfile, value); } + } + private ManagedClusterAutoUpgradeProfile? _autoUpgradeProfile; /// /// Metrics profile for the Azure Monitor managed service for Prometheus @@ -77,14 +109,22 @@ public partial class ContainerServiceManagedCluster : ProvisionableResource /// send to an Azure Monitor Workspace and configure additional scraping /// for custom targets. See aka.ms/AzureManagedPrometheus for an overview. /// - public BicepValue AzureMonitorMetrics { get => _azureMonitorMetrics; set => _azureMonitorMetrics.Assign(value); } - private readonly BicepValue _azureMonitorMetrics; + public ManagedClusterMonitorProfileMetrics AzureMonitorMetrics + { + get { Initialize(); return _azureMonitorMetrics!; } + set { Initialize(); AssignOrReplace(ref _azureMonitorMetrics, value); } + } + private ManagedClusterMonitorProfileMetrics? _azureMonitorMetrics; /// /// The identity of the managed cluster, if configured. /// - public BicepValue ClusterIdentity { get => _clusterIdentity; set => _clusterIdentity.Assign(value); } - private readonly BicepValue _clusterIdentity; + public ManagedClusterIdentity ClusterIdentity + { + get { Initialize(); return _clusterIdentity!; } + set { Initialize(); AssignOrReplace(ref _clusterIdentity, value); } + } + private ManagedClusterIdentity? _clusterIdentity; /// /// If set to true, getting static credentials will be disabled for this @@ -92,21 +132,33 @@ public partial class ContainerServiceManagedCluster : ProvisionableResource /// enabled. For more details see [disable local /// accounts](https://docs.microsoft.com/azure/aks/managed-aad#disable-local-accounts-preview). /// - public BicepValue DisableLocalAccounts { get => _disableLocalAccounts; set => _disableLocalAccounts.Assign(value); } - private readonly BicepValue _disableLocalAccounts; + public BicepValue DisableLocalAccounts + { + get { Initialize(); return _disableLocalAccounts!; } + set { Initialize(); _disableLocalAccounts!.Assign(value); } + } + private BicepValue? _disableLocalAccounts; /// /// This is of the form: /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{encryptionSetName}'. /// - public BicepValue DiskEncryptionSetId { get => _diskEncryptionSetId; set => _diskEncryptionSetId.Assign(value); } - private readonly BicepValue _diskEncryptionSetId; + public BicepValue DiskEncryptionSetId + { + get { Initialize(); return _diskEncryptionSetId!; } + set { Initialize(); _diskEncryptionSetId!.Assign(value); } + } + private BicepValue? _diskEncryptionSetId; /// /// This cannot be updated once the Managed Cluster has been created. /// - public BicepValue DnsPrefix { get => _dnsPrefix; set => _dnsPrefix.Assign(value); } - private readonly BicepValue _dnsPrefix; + public BicepValue DnsPrefix + { + get { Initialize(); return _dnsPrefix!; } + set { Initialize(); _dnsPrefix!.Assign(value); } + } + private BicepValue? _dnsPrefix; /// /// (DEPRECATED) Whether to enable Kubernetes pod security policy @@ -114,38 +166,62 @@ public partial class ContainerServiceManagedCluster : ProvisionableResource /// removed from Kubernetes in v1.25. Learn more at https://aka.ms/k8s/psp /// and https://aka.ms/aks/psp. /// - public BicepValue EnablePodSecurityPolicy { get => _enablePodSecurityPolicy; set => _enablePodSecurityPolicy.Assign(value); } - private readonly BicepValue _enablePodSecurityPolicy; + public BicepValue EnablePodSecurityPolicy + { + get { Initialize(); return _enablePodSecurityPolicy!; } + set { Initialize(); _enablePodSecurityPolicy!.Assign(value); } + } + private BicepValue? _enablePodSecurityPolicy; /// /// Whether to enable Kubernetes Role-Based Access Control. /// - public BicepValue EnableRbac { get => _enableRbac; set => _enableRbac.Assign(value); } - private readonly BicepValue _enableRbac; + public BicepValue EnableRbac + { + get { Initialize(); return _enableRbac!; } + set { Initialize(); _enableRbac!.Assign(value); } + } + private BicepValue? _enableRbac; /// /// The extended location of the Virtual Machine. /// - public BicepValue ExtendedLocation { get => _extendedLocation; set => _extendedLocation.Assign(value); } - private readonly BicepValue _extendedLocation; + public ExtendedAzureLocation ExtendedLocation + { + get { Initialize(); return _extendedLocation!; } + set { Initialize(); AssignOrReplace(ref _extendedLocation, value); } + } + private ExtendedAzureLocation? _extendedLocation; /// /// This cannot be updated once the Managed Cluster has been created. /// - public BicepValue FqdnSubdomain { get => _fqdnSubdomain; set => _fqdnSubdomain.Assign(value); } - private readonly BicepValue _fqdnSubdomain; + public BicepValue FqdnSubdomain + { + get { Initialize(); return _fqdnSubdomain!; } + set { Initialize(); _fqdnSubdomain!.Assign(value); } + } + private BicepValue? _fqdnSubdomain; /// /// Configurations for provisioning the cluster with HTTP proxy servers. /// - public BicepValue HttpProxyConfig { get => _httpProxyConfig; set => _httpProxyConfig.Assign(value); } - private readonly BicepValue _httpProxyConfig; + public ManagedClusterHttpProxyConfig HttpProxyConfig + { + get { Initialize(); return _httpProxyConfig!; } + set { Initialize(); AssignOrReplace(ref _httpProxyConfig, value); } + } + private ManagedClusterHttpProxyConfig? _httpProxyConfig; /// /// Identities associated with the cluster. /// - public BicepDictionary IdentityProfile { get => _identityProfile; set => _identityProfile.Assign(value); } - private readonly BicepDictionary _identityProfile; + public BicepDictionary IdentityProfile + { + get { Initialize(); return _identityProfile!; } + set { Initialize(); _identityProfile!.Assign(value); } + } + private BicepDictionary? _identityProfile; /// /// Both patch version <major.minor.patch> (e.g. 1.20.13) and @@ -162,114 +238,186 @@ public partial class ContainerServiceManagedCluster : ProvisionableResource /// cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for /// more details. /// - public BicepValue KubernetesVersion { get => _kubernetesVersion; set => _kubernetesVersion.Assign(value); } - private readonly BicepValue _kubernetesVersion; + public BicepValue KubernetesVersion + { + get { Initialize(); return _kubernetesVersion!; } + set { Initialize(); _kubernetesVersion!.Assign(value); } + } + private BicepValue? _kubernetesVersion; /// /// The profile for Linux VMs in the Managed Cluster. /// - public BicepValue LinuxProfile { get => _linuxProfile; set => _linuxProfile.Assign(value); } - private readonly BicepValue _linuxProfile; + public ContainerServiceLinuxProfile LinuxProfile + { + get { Initialize(); return _linuxProfile!; } + set { Initialize(); AssignOrReplace(ref _linuxProfile, value); } + } + private ContainerServiceLinuxProfile? _linuxProfile; /// /// The network configuration profile. /// - public BicepValue NetworkProfile { get => _networkProfile; set => _networkProfile.Assign(value); } - private readonly BicepValue _networkProfile; + public ContainerServiceNetworkProfile NetworkProfile + { + get { Initialize(); return _networkProfile!; } + set { Initialize(); AssignOrReplace(ref _networkProfile, value); } + } + private ContainerServiceNetworkProfile? _networkProfile; /// /// The name of the resource group containing agent pool nodes. /// - public BicepValue NodeResourceGroup { get => _nodeResourceGroup; set => _nodeResourceGroup.Assign(value); } - private readonly BicepValue _nodeResourceGroup; + public BicepValue NodeResourceGroup + { + get { Initialize(); return _nodeResourceGroup!; } + set { Initialize(); _nodeResourceGroup!.Assign(value); } + } + private BicepValue? _nodeResourceGroup; /// /// The OIDC issuer profile of the Managed Cluster. /// - public BicepValue OidcIssuerProfile { get => _oidcIssuerProfile; set => _oidcIssuerProfile.Assign(value); } - private readonly BicepValue _oidcIssuerProfile; + public ManagedClusterOidcIssuerProfile OidcIssuerProfile + { + get { Initialize(); return _oidcIssuerProfile!; } + set { Initialize(); AssignOrReplace(ref _oidcIssuerProfile, value); } + } + private ManagedClusterOidcIssuerProfile? _oidcIssuerProfile; /// /// See [use AAD pod /// identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity) /// for more details on AAD pod identity integration. /// - public BicepValue PodIdentityProfile { get => _podIdentityProfile; set => _podIdentityProfile.Assign(value); } - private readonly BicepValue _podIdentityProfile; + public ManagedClusterPodIdentityProfile PodIdentityProfile + { + get { Initialize(); return _podIdentityProfile!; } + set { Initialize(); AssignOrReplace(ref _podIdentityProfile, value); } + } + private ManagedClusterPodIdentityProfile? _podIdentityProfile; /// /// Private link resources associated with the cluster. /// - public BicepList PrivateLinkResources { get => _privateLinkResources; set => _privateLinkResources.Assign(value); } - private readonly BicepList _privateLinkResources; + public BicepList PrivateLinkResources + { + get { Initialize(); return _privateLinkResources!; } + set { Initialize(); _privateLinkResources!.Assign(value); } + } + private BicepList? _privateLinkResources; /// /// Allow or deny public network access for AKS. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Security profile for the managed cluster. /// - public BicepValue SecurityProfile { get => _securityProfile; set => _securityProfile.Assign(value); } - private readonly BicepValue _securityProfile; + public ManagedClusterSecurityProfile SecurityProfile + { + get { Initialize(); return _securityProfile!; } + set { Initialize(); AssignOrReplace(ref _securityProfile, value); } + } + private ManagedClusterSecurityProfile? _securityProfile; /// /// Service mesh profile for a managed cluster. /// - public BicepValue ServiceMeshProfile { get => _serviceMeshProfile; set => _serviceMeshProfile.Assign(value); } - private readonly BicepValue _serviceMeshProfile; + public ServiceMeshProfile ServiceMeshProfile + { + get { Initialize(); return _serviceMeshProfile!; } + set { Initialize(); AssignOrReplace(ref _serviceMeshProfile, value); } + } + private ServiceMeshProfile? _serviceMeshProfile; /// /// Information about a service principal identity for the cluster to use /// for manipulating Azure APIs. /// - public BicepValue ServicePrincipalProfile { get => _servicePrincipalProfile; set => _servicePrincipalProfile.Assign(value); } - private readonly BicepValue _servicePrincipalProfile; + public ManagedClusterServicePrincipalProfile ServicePrincipalProfile + { + get { Initialize(); return _servicePrincipalProfile!; } + set { Initialize(); AssignOrReplace(ref _servicePrincipalProfile, value); } + } + private ManagedClusterServicePrincipalProfile? _servicePrincipalProfile; /// /// The managed cluster SKU. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public ManagedClusterSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private ManagedClusterSku? _sku; /// /// Storage profile for the managed cluster. /// - public BicepValue StorageProfile { get => _storageProfile; set => _storageProfile.Assign(value); } - private readonly BicepValue _storageProfile; + public ManagedClusterStorageProfile StorageProfile + { + get { Initialize(); return _storageProfile!; } + set { Initialize(); AssignOrReplace(ref _storageProfile, value); } + } + private ManagedClusterStorageProfile? _storageProfile; /// /// The support plan for the Managed Cluster. If unspecified, the default /// is 'KubernetesOfficial'. /// - public BicepValue SupportPlan { get => _supportPlan; set => _supportPlan.Assign(value); } - private readonly BicepValue _supportPlan; + public BicepValue SupportPlan + { + get { Initialize(); return _supportPlan!; } + set { Initialize(); _supportPlan!.Assign(value); } + } + private BicepValue? _supportPlan; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Settings for overrides. /// - public BicepValue UpgradeOverrideSettings { get => _upgradeOverrideSettings; set => _upgradeOverrideSettings.Assign(value); } - private readonly BicepValue _upgradeOverrideSettings; + public UpgradeOverrideSettings UpgradeOverrideSettings + { + get { Initialize(); return _upgradeOverrideSettings!; } + set { Initialize(); AssignOrReplace(ref _upgradeOverrideSettings, value); } + } + private UpgradeOverrideSettings? _upgradeOverrideSettings; /// /// The profile for Windows VMs in the Managed Cluster. /// - public BicepValue WindowsProfile { get => _windowsProfile; set => _windowsProfile.Assign(value); } - private readonly BicepValue _windowsProfile; + public ManagedClusterWindowsProfile WindowsProfile + { + get { Initialize(); return _windowsProfile!; } + set { Initialize(); AssignOrReplace(ref _windowsProfile, value); } + } + private ManagedClusterWindowsProfile? _windowsProfile; /// /// Workload Auto-scaler profile for the managed cluster. /// - public BicepValue WorkloadAutoScalerProfile { get => _workloadAutoScalerProfile; set => _workloadAutoScalerProfile.Assign(value); } - private readonly BicepValue _workloadAutoScalerProfile; + public ManagedClusterWorkloadAutoScalerProfile WorkloadAutoScalerProfile + { + get { Initialize(); return _workloadAutoScalerProfile!; } + set { Initialize(); AssignOrReplace(ref _workloadAutoScalerProfile, value); } + } + private ManagedClusterWorkloadAutoScalerProfile? _workloadAutoScalerProfile; /// /// The Azure Portal requires certain Cross-Origin Resource Sharing (CORS) @@ -277,8 +425,11 @@ public partial class ContainerServiceManagedCluster : ProvisionableResource /// doesn't handle by default. This special FQDN supports CORS, /// allowing the Azure Portal to function properly. /// - public BicepValue AzurePortalFqdn { get => _azurePortalFqdn; } - private readonly BicepValue _azurePortalFqdn; + public BicepValue AzurePortalFqdn + { + get { Initialize(); return _azurePortalFqdn!; } + } + private BicepValue? _azurePortalFqdn; /// /// If kubernetesVersion was a fully specified version @@ -286,57 +437,84 @@ public partial class ContainerServiceManagedCluster : ProvisionableResource /// kubernetesVersion was <major.minor>, this field will contain the /// full <major.minor.patch> version being used. /// - public BicepValue CurrentKubernetesVersion { get => _currentKubernetesVersion; } - private readonly BicepValue _currentKubernetesVersion; + public BicepValue CurrentKubernetesVersion + { + get { Initialize(); return _currentKubernetesVersion!; } + } + private BicepValue? _currentKubernetesVersion; /// /// The FQDN of the master pool. /// - public BicepValue Fqdn { get => _fqdn; } - private readonly BicepValue _fqdn; + public BicepValue Fqdn + { + get { Initialize(); return _fqdn!; } + } + private BicepValue? _fqdn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The max number of agent pools for the managed cluster. /// - public BicepValue MaxAgentPools { get => _maxAgentPools; } - private readonly BicepValue _maxAgentPools; + public BicepValue MaxAgentPools + { + get { Initialize(); return _maxAgentPools!; } + } + private BicepValue? _maxAgentPools; /// /// Tells whether the cluster is Running or Stopped. /// - public BicepValue PowerStateCode { get => _powerStateCode; } - private readonly BicepValue _powerStateCode; + public BicepValue PowerStateCode + { + get { Initialize(); return _powerStateCode!; } + } + private BicepValue? _powerStateCode; /// /// The FQDN of private cluster. /// - public BicepValue PrivateFqdn { get => _privateFqdn; } - private readonly BicepValue _privateFqdn; + public BicepValue PrivateFqdn + { + get { Initialize(); return _privateFqdn!; } + } + private BicepValue? _privateFqdn; /// /// The current provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The resourceUID uniquely identifies ManagedClusters that reuse ARM /// ResourceIds (i.e: create, delete, create sequence). /// - public BicepValue ResourceId { get => _resourceId; } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + } + private BicepValue? _resourceId; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ContainerServiceManagedCluster. @@ -351,53 +529,61 @@ public partial class ContainerServiceManagedCluster : ProvisionableResource public ContainerServiceManagedCluster(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerService/managedClusters", resourceVersion ?? "2024-08-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _aadProfile = BicepValue.DefineProperty(this, "AadProfile", ["properties", "aadProfile"]); - _addonProfiles = BicepDictionary.DefineProperty(this, "AddonProfiles", ["properties", "addonProfiles"]); - _agentPoolProfiles = BicepList.DefineProperty(this, "AgentPoolProfiles", ["properties", "agentPoolProfiles"]); - _apiServerAccessProfile = BicepValue.DefineProperty(this, "ApiServerAccessProfile", ["properties", "apiServerAccessProfile"]); - _autoScalerProfile = BicepValue.DefineProperty(this, "AutoScalerProfile", ["properties", "autoScalerProfile"]); - _autoUpgradeProfile = BicepValue.DefineProperty(this, "AutoUpgradeProfile", ["properties", "autoUpgradeProfile"]); - _azureMonitorMetrics = BicepValue.DefineProperty(this, "AzureMonitorMetrics", ["properties", "azureMonitorProfile", "metrics"]); - _clusterIdentity = BicepValue.DefineProperty(this, "ClusterIdentity", ["identity"]); - _disableLocalAccounts = BicepValue.DefineProperty(this, "DisableLocalAccounts", ["properties", "disableLocalAccounts"]); - _diskEncryptionSetId = BicepValue.DefineProperty(this, "DiskEncryptionSetId", ["properties", "diskEncryptionSetID"]); - _dnsPrefix = BicepValue.DefineProperty(this, "DnsPrefix", ["properties", "dnsPrefix"]); - _enablePodSecurityPolicy = BicepValue.DefineProperty(this, "EnablePodSecurityPolicy", ["properties", "enablePodSecurityPolicy"]); - _enableRbac = BicepValue.DefineProperty(this, "EnableRbac", ["properties", "enableRBAC"]); - _extendedLocation = BicepValue.DefineProperty(this, "ExtendedLocation", ["extendedLocation"]); - _fqdnSubdomain = BicepValue.DefineProperty(this, "FqdnSubdomain", ["properties", "fqdnSubdomain"]); - _httpProxyConfig = BicepValue.DefineProperty(this, "HttpProxyConfig", ["properties", "httpProxyConfig"]); - _identityProfile = BicepDictionary.DefineProperty(this, "IdentityProfile", ["properties", "identityProfile"]); - _kubernetesVersion = BicepValue.DefineProperty(this, "KubernetesVersion", ["properties", "kubernetesVersion"]); - _linuxProfile = BicepValue.DefineProperty(this, "LinuxProfile", ["properties", "linuxProfile"]); - _networkProfile = BicepValue.DefineProperty(this, "NetworkProfile", ["properties", "networkProfile"]); - _nodeResourceGroup = BicepValue.DefineProperty(this, "NodeResourceGroup", ["properties", "nodeResourceGroup"]); - _oidcIssuerProfile = BicepValue.DefineProperty(this, "OidcIssuerProfile", ["properties", "oidcIssuerProfile"]); - _podIdentityProfile = BicepValue.DefineProperty(this, "PodIdentityProfile", ["properties", "podIdentityProfile"]); - _privateLinkResources = BicepList.DefineProperty(this, "PrivateLinkResources", ["properties", "privateLinkResources"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _securityProfile = BicepValue.DefineProperty(this, "SecurityProfile", ["properties", "securityProfile"]); - _serviceMeshProfile = BicepValue.DefineProperty(this, "ServiceMeshProfile", ["properties", "serviceMeshProfile"]); - _servicePrincipalProfile = BicepValue.DefineProperty(this, "ServicePrincipalProfile", ["properties", "servicePrincipalProfile"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _storageProfile = BicepValue.DefineProperty(this, "StorageProfile", ["properties", "storageProfile"]); - _supportPlan = BicepValue.DefineProperty(this, "SupportPlan", ["properties", "supportPlan"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _upgradeOverrideSettings = BicepValue.DefineProperty(this, "UpgradeOverrideSettings", ["properties", "upgradeSettings", "overrideSettings"]); - _windowsProfile = BicepValue.DefineProperty(this, "WindowsProfile", ["properties", "windowsProfile"]); - _workloadAutoScalerProfile = BicepValue.DefineProperty(this, "WorkloadAutoScalerProfile", ["properties", "workloadAutoScalerProfile"]); - _azurePortalFqdn = BicepValue.DefineProperty(this, "AzurePortalFqdn", ["properties", "azurePortalFQDN"], isOutput: true); - _currentKubernetesVersion = BicepValue.DefineProperty(this, "CurrentKubernetesVersion", ["properties", "currentKubernetesVersion"], isOutput: true); - _fqdn = BicepValue.DefineProperty(this, "Fqdn", ["properties", "fqdn"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _maxAgentPools = BicepValue.DefineProperty(this, "MaxAgentPools", ["properties", "maxAgentPools"], isOutput: true); - _powerStateCode = BicepValue.DefineProperty(this, "PowerStateCode", ["properties", "powerState", "code"], isOutput: true); - _privateFqdn = BicepValue.DefineProperty(this, "PrivateFqdn", ["properties", "privateFQDN"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceUID"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerServiceManagedCluster. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _aadProfile = DefineModelProperty("AadProfile", ["properties", "aadProfile"]); + _addonProfiles = DefineDictionaryProperty("AddonProfiles", ["properties", "addonProfiles"]); + _agentPoolProfiles = DefineListProperty("AgentPoolProfiles", ["properties", "agentPoolProfiles"]); + _apiServerAccessProfile = DefineModelProperty("ApiServerAccessProfile", ["properties", "apiServerAccessProfile"]); + _autoScalerProfile = DefineModelProperty("AutoScalerProfile", ["properties", "autoScalerProfile"]); + _autoUpgradeProfile = DefineModelProperty("AutoUpgradeProfile", ["properties", "autoUpgradeProfile"]); + _azureMonitorMetrics = DefineModelProperty("AzureMonitorMetrics", ["properties", "azureMonitorProfile", "metrics"]); + _clusterIdentity = DefineModelProperty("ClusterIdentity", ["identity"]); + _disableLocalAccounts = DefineProperty("DisableLocalAccounts", ["properties", "disableLocalAccounts"]); + _diskEncryptionSetId = DefineProperty("DiskEncryptionSetId", ["properties", "diskEncryptionSetID"]); + _dnsPrefix = DefineProperty("DnsPrefix", ["properties", "dnsPrefix"]); + _enablePodSecurityPolicy = DefineProperty("EnablePodSecurityPolicy", ["properties", "enablePodSecurityPolicy"]); + _enableRbac = DefineProperty("EnableRbac", ["properties", "enableRBAC"]); + _extendedLocation = DefineModelProperty("ExtendedLocation", ["extendedLocation"]); + _fqdnSubdomain = DefineProperty("FqdnSubdomain", ["properties", "fqdnSubdomain"]); + _httpProxyConfig = DefineModelProperty("HttpProxyConfig", ["properties", "httpProxyConfig"]); + _identityProfile = DefineDictionaryProperty("IdentityProfile", ["properties", "identityProfile"]); + _kubernetesVersion = DefineProperty("KubernetesVersion", ["properties", "kubernetesVersion"]); + _linuxProfile = DefineModelProperty("LinuxProfile", ["properties", "linuxProfile"]); + _networkProfile = DefineModelProperty("NetworkProfile", ["properties", "networkProfile"]); + _nodeResourceGroup = DefineProperty("NodeResourceGroup", ["properties", "nodeResourceGroup"]); + _oidcIssuerProfile = DefineModelProperty("OidcIssuerProfile", ["properties", "oidcIssuerProfile"]); + _podIdentityProfile = DefineModelProperty("PodIdentityProfile", ["properties", "podIdentityProfile"]); + _privateLinkResources = DefineListProperty("PrivateLinkResources", ["properties", "privateLinkResources"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _securityProfile = DefineModelProperty("SecurityProfile", ["properties", "securityProfile"]); + _serviceMeshProfile = DefineModelProperty("ServiceMeshProfile", ["properties", "serviceMeshProfile"]); + _servicePrincipalProfile = DefineModelProperty("ServicePrincipalProfile", ["properties", "servicePrincipalProfile"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _storageProfile = DefineModelProperty("StorageProfile", ["properties", "storageProfile"]); + _supportPlan = DefineProperty("SupportPlan", ["properties", "supportPlan"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _upgradeOverrideSettings = DefineModelProperty("UpgradeOverrideSettings", ["properties", "upgradeSettings", "overrideSettings"]); + _windowsProfile = DefineModelProperty("WindowsProfile", ["properties", "windowsProfile"]); + _workloadAutoScalerProfile = DefineModelProperty("WorkloadAutoScalerProfile", ["properties", "workloadAutoScalerProfile"]); + _azurePortalFqdn = DefineProperty("AzurePortalFqdn", ["properties", "azurePortalFQDN"], isOutput: true); + _currentKubernetesVersion = DefineProperty("CurrentKubernetesVersion", ["properties", "currentKubernetesVersion"], isOutput: true); + _fqdn = DefineProperty("Fqdn", ["properties", "fqdn"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _maxAgentPools = DefineProperty("MaxAgentPools", ["properties", "maxAgentPools"], isOutput: true); + _powerStateCode = DefineProperty("PowerStateCode", ["properties", "powerState", "code"], isOutput: true); + _privateFqdn = DefineProperty("PrivateFqdn", ["properties", "privateFQDN"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceUID"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServicePrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServicePrivateEndpointConnection.cs index 6d81604c894d0..202afca8fa486 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServicePrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServicePrivateEndpointConnection.cs @@ -20,45 +20,70 @@ public partial class ContainerServicePrivateEndpointConnection : ProvisionableRe /// /// The name of the private endpoint connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// A collection of information about the state of the connection between /// service consumer and provider. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public ContainerServicePrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private ContainerServicePrivateLinkServiceConnectionState? _connectionState; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The current provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerServiceManagedCluster. /// - public ContainerServiceManagedCluster? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerServiceManagedCluster? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerServicePrivateEndpointConnection. @@ -74,13 +99,21 @@ public partial class ContainerServicePrivateEndpointConnection : ProvisionableRe public ContainerServicePrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerService/managedClusters/privateEndpointConnections", resourceVersion ?? "2024-08-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerServicePrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBinding.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBinding.cs index 40ea9082b9beb..2468761c56a33 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBinding.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBinding.cs @@ -21,47 +21,72 @@ public partial class ContainerServiceTrustedAccessRoleBinding : ProvisionableRes /// /// The name of trusted access role binding. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// A list of roles to bind, each item is a resource type qualified role /// name. For example: /// 'Microsoft.MachineLearningServices/workspaces/reader'. /// - public BicepList Roles { get => _roles; set => _roles.Assign(value); } - private readonly BicepList _roles; + public BicepList Roles + { + get { Initialize(); return _roles!; } + set { Initialize(); _roles!.Assign(value); } + } + private BicepList? _roles; /// /// The ARM resource ID of source resource that trusted access is /// configured for. /// - public BicepValue SourceResourceId { get => _sourceResourceId; set => _sourceResourceId.Assign(value); } - private readonly BicepValue _sourceResourceId; + public BicepValue SourceResourceId + { + get { Initialize(); return _sourceResourceId!; } + set { Initialize(); _sourceResourceId!.Assign(value); } + } + private BicepValue? _sourceResourceId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The current provisioning state of trusted access role binding. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ContainerServiceManagedCluster. /// - public ContainerServiceManagedCluster? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ContainerServiceManagedCluster? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ContainerServiceTrustedAccessRoleBinding. @@ -77,13 +102,21 @@ public partial class ContainerServiceTrustedAccessRoleBinding : ProvisionableRes public ContainerServiceTrustedAccessRoleBinding(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings", resourceVersion ?? "2024-08-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _roles = BicepList.DefineProperty(this, "Roles", ["properties", "roles"], isRequired: true); - _sourceResourceId = BicepValue.DefineProperty(this, "SourceResourceId", ["properties", "sourceResourceId"], isRequired: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerServiceTrustedAccessRoleBinding. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _roles = DefineListProperty("Roles", ["properties", "roles"], isRequired: true); + _sourceResourceId = DefineProperty("SourceResourceId", ["properties", "sourceResourceId"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/AgentPoolNetworkPortRange.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/AgentPoolNetworkPortRange.cs index df123e3d23d47..8a4d43f8eed5d 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/AgentPoolNetworkPortRange.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/AgentPoolNetworkPortRange.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,49 @@ public partial class AgentPoolNetworkPortRange : ProvisionableConstruct /// The minimum port that is included in the range. It should be ranged /// from 1 to 65535, and be less than or equal to portEnd. /// - public BicepValue PortStart { get => _portStart; set => _portStart.Assign(value); } - private readonly BicepValue _portStart; + public BicepValue PortStart + { + get { Initialize(); return _portStart!; } + set { Initialize(); _portStart!.Assign(value); } + } + private BicepValue? _portStart; /// /// The maximum port that is included in the range. It should be ranged /// from 1 to 65535, and be greater than or equal to portStart. /// - public BicepValue PortEnd { get => _portEnd; set => _portEnd.Assign(value); } - private readonly BicepValue _portEnd; + public BicepValue PortEnd + { + get { Initialize(); return _portEnd!; } + set { Initialize(); _portEnd!.Assign(value); } + } + private BicepValue? _portEnd; /// /// The network protocol of the port. /// - public BicepValue Protocol { get => _protocol; set => _protocol.Assign(value); } - private readonly BicepValue _protocol; + public BicepValue Protocol + { + get { Initialize(); return _protocol!; } + set { Initialize(); _protocol!.Assign(value); } + } + private BicepValue? _protocol; /// /// Creates a new AgentPoolNetworkPortRange. /// public AgentPoolNetworkPortRange() { - _portStart = BicepValue.DefineProperty(this, "PortStart", ["portStart"]); - _portEnd = BicepValue.DefineProperty(this, "PortEnd", ["portEnd"]); - _protocol = BicepValue.DefineProperty(this, "Protocol", ["protocol"]); + } + + /// + /// Define all the provisionable properties of AgentPoolNetworkPortRange. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _portStart = DefineProperty("PortStart", ["portStart"]); + _portEnd = DefineProperty("PortEnd", ["portEnd"]); + _protocol = DefineProperty("Protocol", ["protocol"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.cs index ceb1b98b99a4a..48305993e9c56 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,30 +20,50 @@ public partial class AgentPoolNetworkProfile : ProvisionableConstruct /// /// IPTags of instance-level public IPs. /// - public BicepList NodePublicIPTags { get => _nodePublicIPTags; set => _nodePublicIPTags.Assign(value); } - private readonly BicepList _nodePublicIPTags; + public BicepList NodePublicIPTags + { + get { Initialize(); return _nodePublicIPTags!; } + set { Initialize(); _nodePublicIPTags!.Assign(value); } + } + private BicepList? _nodePublicIPTags; /// /// The port ranges that are allowed to access. The specified ranges are /// allowed to overlap. /// - public BicepList AllowedHostPorts { get => _allowedHostPorts; set => _allowedHostPorts.Assign(value); } - private readonly BicepList _allowedHostPorts; + public BicepList AllowedHostPorts + { + get { Initialize(); return _allowedHostPorts!; } + set { Initialize(); _allowedHostPorts!.Assign(value); } + } + private BicepList? _allowedHostPorts; /// /// The IDs of the application security groups which agent pool will /// associate when created. /// - public BicepList ApplicationSecurityGroups { get => _applicationSecurityGroups; set => _applicationSecurityGroups.Assign(value); } - private readonly BicepList _applicationSecurityGroups; + public BicepList ApplicationSecurityGroups + { + get { Initialize(); return _applicationSecurityGroups!; } + set { Initialize(); _applicationSecurityGroups!.Assign(value); } + } + private BicepList? _applicationSecurityGroups; /// /// Creates a new AgentPoolNetworkProfile. /// public AgentPoolNetworkProfile() { - _nodePublicIPTags = BicepList.DefineProperty(this, "NodePublicIPTags", ["nodePublicIPTags"]); - _allowedHostPorts = BicepList.DefineProperty(this, "AllowedHostPorts", ["allowedHostPorts"]); - _applicationSecurityGroups = BicepList.DefineProperty(this, "ApplicationSecurityGroups", ["applicationSecurityGroups"]); + } + + /// + /// Define all the provisionable properties of AgentPoolNetworkProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _nodePublicIPTags = DefineListProperty("NodePublicIPTags", ["nodePublicIPTags"]); + _allowedHostPorts = DefineListProperty("AllowedHostPorts", ["allowedHostPorts"]); + _applicationSecurityGroups = DefineListProperty("ApplicationSecurityGroups", ["applicationSecurityGroups"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/AgentPoolUpgradeSettings.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/AgentPoolUpgradeSettings.cs index d4a8e048b0759..83d4cf44e23e1 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/AgentPoolUpgradeSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/AgentPoolUpgradeSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -22,8 +24,12 @@ public partial class AgentPoolUpgradeSettings : ProvisionableConstruct /// practices, see: /// https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade. /// - public BicepValue MaxSurge { get => _maxSurge; set => _maxSurge.Assign(value); } - private readonly BicepValue _maxSurge; + public BicepValue MaxSurge + { + get { Initialize(); return _maxSurge!; } + set { Initialize(); _maxSurge!.Assign(value); } + } + private BicepValue? _maxSurge; /// /// The amount of time (in minutes) to wait on eviction of pods and @@ -31,15 +37,27 @@ public partial class AgentPoolUpgradeSettings : ProvisionableConstruct /// on pod disruption budgets. If this time is exceeded, the upgrade /// fails. If not specified, the default is 30 minutes. /// - public BicepValue DrainTimeoutInMinutes { get => _drainTimeoutInMinutes; set => _drainTimeoutInMinutes.Assign(value); } - private readonly BicepValue _drainTimeoutInMinutes; + public BicepValue DrainTimeoutInMinutes + { + get { Initialize(); return _drainTimeoutInMinutes!; } + set { Initialize(); _drainTimeoutInMinutes!.Assign(value); } + } + private BicepValue? _drainTimeoutInMinutes; /// /// Creates a new AgentPoolUpgradeSettings. /// public AgentPoolUpgradeSettings() { - _maxSurge = BicepValue.DefineProperty(this, "MaxSurge", ["maxSurge"]); - _drainTimeoutInMinutes = BicepValue.DefineProperty(this, "DrainTimeoutInMinutes", ["drainTimeoutInMinutes"]); + } + + /// + /// Define all the provisionable properties of AgentPoolUpgradeSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _maxSurge = DefineProperty("MaxSurge", ["maxSurge"]); + _drainTimeoutInMinutes = DefineProperty("DrainTimeoutInMinutes", ["drainTimeoutInMinutes"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceDateSpan.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceDateSpan.cs index 9ef7cae13b3d6..31e360fa629dc 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceDateSpan.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceDateSpan.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class ContainerServiceDateSpan : ProvisionableConstruct /// /// The start date of the date span. /// - public BicepValue Start { get => _start; set => _start.Assign(value); } - private readonly BicepValue _start; + public BicepValue Start + { + get { Initialize(); return _start!; } + set { Initialize(); _start!.Assign(value); } + } + private BicepValue? _start; /// /// The end date of the date span. /// - public BicepValue End { get => _end; set => _end.Assign(value); } - private readonly BicepValue _end; + public BicepValue End + { + get { Initialize(); return _end!; } + set { Initialize(); _end!.Assign(value); } + } + private BicepValue? _end; /// /// Creates a new ContainerServiceDateSpan. /// public ContainerServiceDateSpan() { - _start = BicepValue.DefineProperty(this, "Start", ["start"]); - _end = BicepValue.DefineProperty(this, "End", ["end"]); + } + + /// + /// Define all the provisionable properties of ContainerServiceDateSpan. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _start = DefineProperty("Start", ["start"]); + _end = DefineProperty("End", ["end"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceIPTag.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceIPTag.cs index b56287139e806..0d57b9f3090c7 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceIPTag.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceIPTag.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,38 @@ public partial class ContainerServiceIPTag : ProvisionableConstruct /// /// The IP tag type. Example: RoutingPreference. /// - public BicepValue IPTagType { get => _iPTagType; set => _iPTagType.Assign(value); } - private readonly BicepValue _iPTagType; + public BicepValue IPTagType + { + get { Initialize(); return _iPTagType!; } + set { Initialize(); _iPTagType!.Assign(value); } + } + private BicepValue? _iPTagType; /// /// The value of the IP tag associated with the public IP. Example: /// Internet. /// - public BicepValue Tag { get => _tag; set => _tag.Assign(value); } - private readonly BicepValue _tag; + public BicepValue Tag + { + get { Initialize(); return _tag!; } + set { Initialize(); _tag!.Assign(value); } + } + private BicepValue? _tag; /// /// Creates a new ContainerServiceIPTag. /// public ContainerServiceIPTag() { - _iPTagType = BicepValue.DefineProperty(this, "IPTagType", ["ipTagType"]); - _tag = BicepValue.DefineProperty(this, "Tag", ["tag"]); + } + + /// + /// Define all the provisionable properties of ContainerServiceIPTag. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _iPTagType = DefineProperty("IPTagType", ["ipTagType"]); + _tag = DefineProperty("Tag", ["tag"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceLinuxProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceLinuxProfile.cs index e372d3c60e346..38e549b8186af 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceLinuxProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceLinuxProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,22 +19,38 @@ public partial class ContainerServiceLinuxProfile : ProvisionableConstruct /// /// The administrator username to use for Linux VMs. /// - public BicepValue AdminUsername { get => _adminUsername; set => _adminUsername.Assign(value); } - private readonly BicepValue _adminUsername; + public BicepValue AdminUsername + { + get { Initialize(); return _adminUsername!; } + set { Initialize(); _adminUsername!.Assign(value); } + } + private BicepValue? _adminUsername; /// /// The list of SSH public keys used to authenticate with Linux-based VMs. /// A maximum of 1 key may be specified. /// - public BicepList SshPublicKeys { get => _sshPublicKeys; set => _sshPublicKeys.Assign(value); } - private readonly BicepList _sshPublicKeys; + public BicepList SshPublicKeys + { + get { Initialize(); return _sshPublicKeys!; } + set { Initialize(); _sshPublicKeys!.Assign(value); } + } + private BicepList? _sshPublicKeys; /// /// Creates a new ContainerServiceLinuxProfile. /// public ContainerServiceLinuxProfile() { - _adminUsername = BicepValue.DefineProperty(this, "AdminUsername", ["adminUsername"]); - _sshPublicKeys = BicepList.DefineProperty(this, "SshPublicKeys", ["ssh", "publicKeys"]); + } + + /// + /// Define all the provisionable properties of ContainerServiceLinuxProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _adminUsername = DefineProperty("AdminUsername", ["adminUsername"]); + _sshPublicKeys = DefineListProperty("SshPublicKeys", ["ssh", "publicKeys"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceAbsoluteMonthlySchedule.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceAbsoluteMonthlySchedule.cs index 07a1581c30d45..b67d28264f5f5 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceAbsoluteMonthlySchedule.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceAbsoluteMonthlySchedule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class ContainerServiceMaintenanceAbsoluteMonthlySchedule : Provis /// /// Specifies the number of months between each set of occurrences. /// - public BicepValue IntervalMonths { get => _intervalMonths; set => _intervalMonths.Assign(value); } - private readonly BicepValue _intervalMonths; + public BicepValue IntervalMonths + { + get { Initialize(); return _intervalMonths!; } + set { Initialize(); _intervalMonths!.Assign(value); } + } + private BicepValue? _intervalMonths; /// /// The date of the month. /// - public BicepValue DayOfMonth { get => _dayOfMonth; set => _dayOfMonth.Assign(value); } - private readonly BicepValue _dayOfMonth; + public BicepValue DayOfMonth + { + get { Initialize(); return _dayOfMonth!; } + set { Initialize(); _dayOfMonth!.Assign(value); } + } + private BicepValue? _dayOfMonth; /// /// Creates a new ContainerServiceMaintenanceAbsoluteMonthlySchedule. /// public ContainerServiceMaintenanceAbsoluteMonthlySchedule() { - _intervalMonths = BicepValue.DefineProperty(this, "IntervalMonths", ["intervalMonths"]); - _dayOfMonth = BicepValue.DefineProperty(this, "DayOfMonth", ["dayOfMonth"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerServiceMaintenanceAbsoluteMonthlySchedule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _intervalMonths = DefineProperty("IntervalMonths", ["intervalMonths"]); + _dayOfMonth = DefineProperty("DayOfMonth", ["dayOfMonth"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlySchedule.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlySchedule.cs index 793e7028ef26b..f876cca72311c 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlySchedule.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlySchedule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,49 @@ public partial class ContainerServiceMaintenanceRelativeMonthlySchedule : Provis /// /// Specifies the number of months between each set of occurrences. /// - public BicepValue IntervalMonths { get => _intervalMonths; set => _intervalMonths.Assign(value); } - private readonly BicepValue _intervalMonths; + public BicepValue IntervalMonths + { + get { Initialize(); return _intervalMonths!; } + set { Initialize(); _intervalMonths!.Assign(value); } + } + private BicepValue? _intervalMonths; /// /// Specifies on which week of the month the dayOfWeek applies. /// - public BicepValue WeekIndex { get => _weekIndex; set => _weekIndex.Assign(value); } - private readonly BicepValue _weekIndex; + public BicepValue WeekIndex + { + get { Initialize(); return _weekIndex!; } + set { Initialize(); _weekIndex!.Assign(value); } + } + private BicepValue? _weekIndex; /// /// Specifies on which day of the week the maintenance occurs. /// - public BicepValue DayOfWeek { get => _dayOfWeek; set => _dayOfWeek.Assign(value); } - private readonly BicepValue _dayOfWeek; + public BicepValue DayOfWeek + { + get { Initialize(); return _dayOfWeek!; } + set { Initialize(); _dayOfWeek!.Assign(value); } + } + private BicepValue? _dayOfWeek; /// /// Creates a new ContainerServiceMaintenanceRelativeMonthlySchedule. /// public ContainerServiceMaintenanceRelativeMonthlySchedule() { - _intervalMonths = BicepValue.DefineProperty(this, "IntervalMonths", ["intervalMonths"]); - _weekIndex = BicepValue.DefineProperty(this, "WeekIndex", ["weekIndex"]); - _dayOfWeek = BicepValue.DefineProperty(this, "DayOfWeek", ["dayOfWeek"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerServiceMaintenanceRelativeMonthlySchedule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _intervalMonths = DefineProperty("IntervalMonths", ["intervalMonths"]); + _weekIndex = DefineProperty("WeekIndex", ["weekIndex"]); + _dayOfWeek = DefineProperty("DayOfWeek", ["dayOfWeek"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceSchedule.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceSchedule.cs index 26f6f9503632b..1a3fa5cc815ea 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceSchedule.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceSchedule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,38 +20,63 @@ public partial class ContainerServiceMaintenanceSchedule : ProvisionableConstruc /// /// Specifies the number of days between each set of occurrences. /// - public BicepValue DailyIntervalDays { get => _dailyIntervalDays; set => _dailyIntervalDays.Assign(value); } - private readonly BicepValue _dailyIntervalDays; + public BicepValue DailyIntervalDays + { + get { Initialize(); return _dailyIntervalDays!; } + set { Initialize(); _dailyIntervalDays!.Assign(value); } + } + private BicepValue? _dailyIntervalDays; /// /// For schedules like: 'recur every Monday' or 'recur every /// 3 weeks on Wednesday'. /// - public BicepValue Weekly { get => _weekly; set => _weekly.Assign(value); } - private readonly BicepValue _weekly; + public ContainerServiceMaintenanceWeeklySchedule Weekly + { + get { Initialize(); return _weekly!; } + set { Initialize(); AssignOrReplace(ref _weekly, value); } + } + private ContainerServiceMaintenanceWeeklySchedule? _weekly; /// /// For schedules like: 'recur every month on the 15th' or /// 'recur every 3 months on the 20th'. /// - public BicepValue AbsoluteMonthly { get => _absoluteMonthly; set => _absoluteMonthly.Assign(value); } - private readonly BicepValue _absoluteMonthly; + public ContainerServiceMaintenanceAbsoluteMonthlySchedule AbsoluteMonthly + { + get { Initialize(); return _absoluteMonthly!; } + set { Initialize(); AssignOrReplace(ref _absoluteMonthly, value); } + } + private ContainerServiceMaintenanceAbsoluteMonthlySchedule? _absoluteMonthly; /// /// For schedules like: 'recur every month on the first Monday' /// or 'recur every 3 months on last Friday'. /// - public BicepValue RelativeMonthly { get => _relativeMonthly; set => _relativeMonthly.Assign(value); } - private readonly BicepValue _relativeMonthly; + public ContainerServiceMaintenanceRelativeMonthlySchedule RelativeMonthly + { + get { Initialize(); return _relativeMonthly!; } + set { Initialize(); AssignOrReplace(ref _relativeMonthly, value); } + } + private ContainerServiceMaintenanceRelativeMonthlySchedule? _relativeMonthly; /// /// Creates a new ContainerServiceMaintenanceSchedule. /// public ContainerServiceMaintenanceSchedule() { - _dailyIntervalDays = BicepValue.DefineProperty(this, "DailyIntervalDays", ["daily", "intervalDays"]); - _weekly = BicepValue.DefineProperty(this, "Weekly", ["weekly"]); - _absoluteMonthly = BicepValue.DefineProperty(this, "AbsoluteMonthly", ["absoluteMonthly"]); - _relativeMonthly = BicepValue.DefineProperty(this, "RelativeMonthly", ["relativeMonthly"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerServiceMaintenanceSchedule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _dailyIntervalDays = DefineProperty("DailyIntervalDays", ["daily", "intervalDays"]); + _weekly = DefineModelProperty("Weekly", ["weekly"]); + _absoluteMonthly = DefineModelProperty("AbsoluteMonthly", ["absoluteMonthly"]); + _relativeMonthly = DefineModelProperty("RelativeMonthly", ["relativeMonthly"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWeeklySchedule.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWeeklySchedule.cs index bf473857ef368..da73643ed7256 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWeeklySchedule.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWeeklySchedule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class ContainerServiceMaintenanceWeeklySchedule : ProvisionableCo /// /// Specifies the number of weeks between each set of occurrences. /// - public BicepValue IntervalWeeks { get => _intervalWeeks; set => _intervalWeeks.Assign(value); } - private readonly BicepValue _intervalWeeks; + public BicepValue IntervalWeeks + { + get { Initialize(); return _intervalWeeks!; } + set { Initialize(); _intervalWeeks!.Assign(value); } + } + private BicepValue? _intervalWeeks; /// /// Specifies on which day of the week the maintenance occurs. /// - public BicepValue DayOfWeek { get => _dayOfWeek; set => _dayOfWeek.Assign(value); } - private readonly BicepValue _dayOfWeek; + public BicepValue DayOfWeek + { + get { Initialize(); return _dayOfWeek!; } + set { Initialize(); _dayOfWeek!.Assign(value); } + } + private BicepValue? _dayOfWeek; /// /// Creates a new ContainerServiceMaintenanceWeeklySchedule. /// public ContainerServiceMaintenanceWeeklySchedule() { - _intervalWeeks = BicepValue.DefineProperty(this, "IntervalWeeks", ["intervalWeeks"]); - _dayOfWeek = BicepValue.DefineProperty(this, "DayOfWeek", ["dayOfWeek"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerServiceMaintenanceWeeklySchedule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _intervalWeeks = DefineProperty("IntervalWeeks", ["intervalWeeks"]); + _dayOfWeek = DefineProperty("DayOfWeek", ["dayOfWeek"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.cs index 116f90eddd9e4..453a191d38011 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,22 +20,34 @@ public partial class ContainerServiceMaintenanceWindow : ProvisionableConstruct /// /// Recurrence schedule for the maintenance window. /// - public BicepValue Schedule { get => _schedule; set => _schedule.Assign(value); } - private readonly BicepValue _schedule; + public ContainerServiceMaintenanceSchedule Schedule + { + get { Initialize(); return _schedule!; } + set { Initialize(); AssignOrReplace(ref _schedule, value); } + } + private ContainerServiceMaintenanceSchedule? _schedule; /// /// Length of maintenance window range from 4 to 24 hours. /// - public BicepValue DurationHours { get => _durationHours; set => _durationHours.Assign(value); } - private readonly BicepValue _durationHours; + public BicepValue DurationHours + { + get { Initialize(); return _durationHours!; } + set { Initialize(); _durationHours!.Assign(value); } + } + private BicepValue? _durationHours; /// /// The UTC offset in format +/-HH:mm. For example, '+05:30' for /// IST and '-07:00' for PST. If not specified, the default is /// '+00:00'. /// - public BicepValue UtcOffset { get => _utcOffset; set => _utcOffset.Assign(value); } - private readonly BicepValue _utcOffset; + public BicepValue UtcOffset + { + get { Initialize(); return _utcOffset!; } + set { Initialize(); _utcOffset!.Assign(value); } + } + private BicepValue? _utcOffset; /// /// The date the maintenance window activates. If the current date is @@ -41,8 +55,12 @@ public partial class ContainerServiceMaintenanceWindow : ProvisionableConstruct /// used for upgrades. If not specified, the maintenance window will be /// active right away. /// - public BicepValue StartDate { get => _startDate; set => _startDate.Assign(value); } - private readonly BicepValue _startDate; + public BicepValue StartDate + { + get { Initialize(); return _startDate!; } + set { Initialize(); _startDate!.Assign(value); } + } + private BicepValue? _startDate; /// /// The start time of the maintenance window. Accepted values are from @@ -50,8 +68,12 @@ public partial class ContainerServiceMaintenanceWindow : ProvisionableConstruct /// to this field. For example: '02:00' with 'utcOffset: /// +02:00' means UTC time '00:00'. /// - public BicepValue StartTime { get => _startTime; set => _startTime.Assign(value); } - private readonly BicepValue _startTime; + public BicepValue StartTime + { + get { Initialize(); return _startTime!; } + set { Initialize(); _startTime!.Assign(value); } + } + private BicepValue? _startTime; /// /// Date ranges on which upgrade is not allowed. 'utcOffset' @@ -61,19 +83,32 @@ public partial class ContainerServiceMaintenanceWindow : ProvisionableConstruct /// '2022-12-22 22:00' to '2023-01-03 22:00' in UTC /// time. /// - public BicepList NotAllowedDates { get => _notAllowedDates; set => _notAllowedDates.Assign(value); } - private readonly BicepList _notAllowedDates; + public BicepList NotAllowedDates + { + get { Initialize(); return _notAllowedDates!; } + set { Initialize(); _notAllowedDates!.Assign(value); } + } + private BicepList? _notAllowedDates; /// /// Creates a new ContainerServiceMaintenanceWindow. /// public ContainerServiceMaintenanceWindow() { - _schedule = BicepValue.DefineProperty(this, "Schedule", ["schedule"]); - _durationHours = BicepValue.DefineProperty(this, "DurationHours", ["durationHours"]); - _utcOffset = BicepValue.DefineProperty(this, "UtcOffset", ["utcOffset"]); - _startDate = BicepValue.DefineProperty(this, "StartDate", ["startDate"]); - _startTime = BicepValue.DefineProperty(this, "StartTime", ["startTime"]); - _notAllowedDates = BicepList.DefineProperty(this, "NotAllowedDates", ["notAllowedDates"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerServiceMaintenanceWindow. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _schedule = DefineModelProperty("Schedule", ["schedule"]); + _durationHours = DefineProperty("DurationHours", ["durationHours"]); + _utcOffset = DefineProperty("UtcOffset", ["utcOffset"]); + _startDate = DefineProperty("StartDate", ["startDate"]); + _startTime = DefineProperty("StartTime", ["startTime"]); + _notAllowedDates = DefineListProperty("NotAllowedDates", ["notAllowedDates"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs index b22b862e7fbbe..a57138dc7bc6f 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -20,125 +22,194 @@ public partial class ContainerServiceNetworkProfile : ProvisionableConstruct /// /// Network plugin used for building the Kubernetes network. /// - public BicepValue NetworkPlugin { get => _networkPlugin; set => _networkPlugin.Assign(value); } - private readonly BicepValue _networkPlugin; + public BicepValue NetworkPlugin + { + get { Initialize(); return _networkPlugin!; } + set { Initialize(); _networkPlugin!.Assign(value); } + } + private BicepValue? _networkPlugin; /// /// The mode the network plugin should use. /// - public BicepValue NetworkPluginMode { get => _networkPluginMode; set => _networkPluginMode.Assign(value); } - private readonly BicepValue _networkPluginMode; + public BicepValue NetworkPluginMode + { + get { Initialize(); return _networkPluginMode!; } + set { Initialize(); _networkPluginMode!.Assign(value); } + } + private BicepValue? _networkPluginMode; /// /// Network policy used for building the Kubernetes network. /// - public BicepValue NetworkPolicy { get => _networkPolicy; set => _networkPolicy.Assign(value); } - private readonly BicepValue _networkPolicy; + public BicepValue NetworkPolicy + { + get { Initialize(); return _networkPolicy!; } + set { Initialize(); _networkPolicy!.Assign(value); } + } + private BicepValue? _networkPolicy; /// /// This cannot be specified if networkPlugin is anything other than /// 'azure'. /// - public BicepValue NetworkMode { get => _networkMode; set => _networkMode.Assign(value); } - private readonly BicepValue _networkMode; + public BicepValue NetworkMode + { + get { Initialize(); return _networkMode!; } + set { Initialize(); _networkMode!.Assign(value); } + } + private BicepValue? _networkMode; /// /// Network dataplane used in the Kubernetes cluster. /// - public BicepValue NetworkDataplane { get => _networkDataplane; set => _networkDataplane.Assign(value); } - private readonly BicepValue _networkDataplane; + public BicepValue NetworkDataplane + { + get { Initialize(); return _networkDataplane!; } + set { Initialize(); _networkDataplane!.Assign(value); } + } + private BicepValue? _networkDataplane; /// /// A CIDR notation IP range from which to assign pod IPs when kubenet is /// used. /// - public BicepValue PodCidr { get => _podCidr; set => _podCidr.Assign(value); } - private readonly BicepValue _podCidr; + public BicepValue PodCidr + { + get { Initialize(); return _podCidr!; } + set { Initialize(); _podCidr!.Assign(value); } + } + private BicepValue? _podCidr; /// /// A CIDR notation IP range from which to assign service cluster IPs. It /// must not overlap with any Subnet IP ranges. /// - public BicepValue ServiceCidr { get => _serviceCidr; set => _serviceCidr.Assign(value); } - private readonly BicepValue _serviceCidr; + public BicepValue ServiceCidr + { + get { Initialize(); return _serviceCidr!; } + set { Initialize(); _serviceCidr!.Assign(value); } + } + private BicepValue? _serviceCidr; /// /// An IP address assigned to the Kubernetes DNS service. It must be within /// the Kubernetes service address range specified in serviceCidr. /// - public BicepValue DnsServiceIP { get => _dnsServiceIP; set => _dnsServiceIP.Assign(value); } - private readonly BicepValue _dnsServiceIP; + public BicepValue DnsServiceIP + { + get { Initialize(); return _dnsServiceIP!; } + set { Initialize(); _dnsServiceIP!.Assign(value); } + } + private BicepValue? _dnsServiceIP; /// /// This can only be set at cluster creation time and cannot be changed /// later. For more information see [egress outbound /// type](https://docs.microsoft.com/azure/aks/egress-outboundtype). /// - public BicepValue OutboundType { get => _outboundType; set => _outboundType.Assign(value); } - private readonly BicepValue _outboundType; + public BicepValue OutboundType + { + get { Initialize(); return _outboundType!; } + set { Initialize(); _outboundType!.Assign(value); } + } + private BicepValue? _outboundType; /// /// The default is 'standard'. See [Azure Load Balancer /// SKUs](https://docs.microsoft.com/azure/load-balancer/skus) for more /// information about the differences between load balancer SKUs. /// - public BicepValue LoadBalancerSku { get => _loadBalancerSku; set => _loadBalancerSku.Assign(value); } - private readonly BicepValue _loadBalancerSku; + public BicepValue LoadBalancerSku + { + get { Initialize(); return _loadBalancerSku!; } + set { Initialize(); _loadBalancerSku!.Assign(value); } + } + private BicepValue? _loadBalancerSku; /// /// Profile of the cluster load balancer. /// - public BicepValue LoadBalancerProfile { get => _loadBalancerProfile; set => _loadBalancerProfile.Assign(value); } - private readonly BicepValue _loadBalancerProfile; + public ManagedClusterLoadBalancerProfile LoadBalancerProfile + { + get { Initialize(); return _loadBalancerProfile!; } + set { Initialize(); AssignOrReplace(ref _loadBalancerProfile, value); } + } + private ManagedClusterLoadBalancerProfile? _loadBalancerProfile; /// /// Profile of the cluster NAT gateway. /// - public BicepValue NatGatewayProfile { get => _natGatewayProfile; set => _natGatewayProfile.Assign(value); } - private readonly BicepValue _natGatewayProfile; + public ManagedClusterNatGatewayProfile NatGatewayProfile + { + get { Initialize(); return _natGatewayProfile!; } + set { Initialize(); AssignOrReplace(ref _natGatewayProfile, value); } + } + private ManagedClusterNatGatewayProfile? _natGatewayProfile; /// /// One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one /// for each IP family (IPv4/IPv6), is expected for dual-stack networking. /// - public BicepList PodCidrs { get => _podCidrs; set => _podCidrs.Assign(value); } - private readonly BicepList _podCidrs; + public BicepList PodCidrs + { + get { Initialize(); return _podCidrs!; } + set { Initialize(); _podCidrs!.Assign(value); } + } + private BicepList? _podCidrs; /// /// One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one /// for each IP family (IPv4/IPv6), is expected for dual-stack networking. /// They must not overlap with any Subnet IP ranges. /// - public BicepList ServiceCidrs { get => _serviceCidrs; set => _serviceCidrs.Assign(value); } - private readonly BicepList _serviceCidrs; + public BicepList ServiceCidrs + { + get { Initialize(); return _serviceCidrs!; } + set { Initialize(); _serviceCidrs!.Assign(value); } + } + private BicepList? _serviceCidrs; /// /// IP families are used to determine single-stack or dual-stack clusters. /// For single-stack, the expected value is IPv4. For dual-stack, the /// expected values are IPv4 and IPv6. /// - public BicepList IPFamilies { get => _iPFamilies; set => _iPFamilies.Assign(value); } - private readonly BicepList _iPFamilies; + public BicepList IPFamilies + { + get { Initialize(); return _iPFamilies!; } + set { Initialize(); _iPFamilies!.Assign(value); } + } + private BicepList? _iPFamilies; /// /// Creates a new ContainerServiceNetworkProfile. /// public ContainerServiceNetworkProfile() { - _networkPlugin = BicepValue.DefineProperty(this, "NetworkPlugin", ["networkPlugin"]); - _networkPluginMode = BicepValue.DefineProperty(this, "NetworkPluginMode", ["networkPluginMode"]); - _networkPolicy = BicepValue.DefineProperty(this, "NetworkPolicy", ["networkPolicy"]); - _networkMode = BicepValue.DefineProperty(this, "NetworkMode", ["networkMode"]); - _networkDataplane = BicepValue.DefineProperty(this, "NetworkDataplane", ["networkDataplane"]); - _podCidr = BicepValue.DefineProperty(this, "PodCidr", ["podCidr"]); - _serviceCidr = BicepValue.DefineProperty(this, "ServiceCidr", ["serviceCidr"]); - _dnsServiceIP = BicepValue.DefineProperty(this, "DnsServiceIP", ["dnsServiceIP"]); - _outboundType = BicepValue.DefineProperty(this, "OutboundType", ["outboundType"]); - _loadBalancerSku = BicepValue.DefineProperty(this, "LoadBalancerSku", ["loadBalancerSku"]); - _loadBalancerProfile = BicepValue.DefineProperty(this, "LoadBalancerProfile", ["loadBalancerProfile"]); - _natGatewayProfile = BicepValue.DefineProperty(this, "NatGatewayProfile", ["natGatewayProfile"]); - _podCidrs = BicepList.DefineProperty(this, "PodCidrs", ["podCidrs"]); - _serviceCidrs = BicepList.DefineProperty(this, "ServiceCidrs", ["serviceCidrs"]); - _iPFamilies = BicepList.DefineProperty(this, "IPFamilies", ["ipFamilies"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerServiceNetworkProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _networkPlugin = DefineProperty("NetworkPlugin", ["networkPlugin"]); + _networkPluginMode = DefineProperty("NetworkPluginMode", ["networkPluginMode"]); + _networkPolicy = DefineProperty("NetworkPolicy", ["networkPolicy"]); + _networkMode = DefineProperty("NetworkMode", ["networkMode"]); + _networkDataplane = DefineProperty("NetworkDataplane", ["networkDataplane"]); + _podCidr = DefineProperty("PodCidr", ["podCidr"]); + _serviceCidr = DefineProperty("ServiceCidr", ["serviceCidr"]); + _dnsServiceIP = DefineProperty("DnsServiceIP", ["dnsServiceIP"]); + _outboundType = DefineProperty("OutboundType", ["outboundType"]); + _loadBalancerSku = DefineProperty("LoadBalancerSku", ["loadBalancerSku"]); + _loadBalancerProfile = DefineModelProperty("LoadBalancerProfile", ["loadBalancerProfile"]); + _natGatewayProfile = DefineModelProperty("NatGatewayProfile", ["natGatewayProfile"]); + _podCidrs = DefineListProperty("PodCidrs", ["podCidrs"]); + _serviceCidrs = DefineListProperty("ServiceCidrs", ["serviceCidrs"]); + _iPFamilies = DefineListProperty("IPFamilies", ["ipFamilies"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServicePrivateLinkResourceData.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServicePrivateLinkResourceData.cs index 716291903cf81..0443c72616883 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServicePrivateLinkResourceData.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServicePrivateLinkResourceData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,50 +20,82 @@ public partial class ContainerServicePrivateLinkResourceData : ProvisionableCons /// /// The ID of the private link resource. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// The name of the private link resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The resource type. /// - public BicepValue ResourceType { get => _resourceType; set => _resourceType.Assign(value); } - private readonly BicepValue _resourceType; + public BicepValue ResourceType + { + get { Initialize(); return _resourceType!; } + set { Initialize(); _resourceType!.Assign(value); } + } + private BicepValue? _resourceType; /// /// The group ID of the resource. /// - public BicepValue GroupId { get => _groupId; set => _groupId.Assign(value); } - private readonly BicepValue _groupId; + public BicepValue GroupId + { + get { Initialize(); return _groupId!; } + set { Initialize(); _groupId!.Assign(value); } + } + private BicepValue? _groupId; /// /// The RequiredMembers of the resource. /// - public BicepList RequiredMembers { get => _requiredMembers; set => _requiredMembers.Assign(value); } - private readonly BicepList _requiredMembers; + public BicepList RequiredMembers + { + get { Initialize(); return _requiredMembers!; } + set { Initialize(); _requiredMembers!.Assign(value); } + } + private BicepList? _requiredMembers; /// /// The private link service ID of the resource, this field is exposed only /// to NRP internally. /// - public BicepValue PrivateLinkServiceId { get => _privateLinkServiceId; } - private readonly BicepValue _privateLinkServiceId; + public BicepValue PrivateLinkServiceId + { + get { Initialize(); return _privateLinkServiceId!; } + } + private BicepValue? _privateLinkServiceId; /// /// Creates a new ContainerServicePrivateLinkResourceData. /// public ContainerServicePrivateLinkResourceData() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _resourceType = BicepValue.DefineProperty(this, "ResourceType", ["type"]); - _groupId = BicepValue.DefineProperty(this, "GroupId", ["groupId"]); - _requiredMembers = BicepList.DefineProperty(this, "RequiredMembers", ["requiredMembers"]); - _privateLinkServiceId = BicepValue.DefineProperty(this, "PrivateLinkServiceId", ["privateLinkServiceID"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ContainerServicePrivateLinkResourceData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _name = DefineProperty("Name", ["name"]); + _resourceType = DefineProperty("ResourceType", ["type"]); + _groupId = DefineProperty("GroupId", ["groupId"]); + _requiredMembers = DefineListProperty("RequiredMembers", ["requiredMembers"]); + _privateLinkServiceId = DefineProperty("PrivateLinkServiceId", ["privateLinkServiceID"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServicePrivateLinkServiceConnectionState.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServicePrivateLinkServiceConnectionState.cs index cee453561a9b9..14146a345d647 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServicePrivateLinkServiceConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServicePrivateLinkServiceConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class ContainerServicePrivateLinkServiceConnectionState : Provisi /// /// The private link service connection status. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The private link service connection description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Creates a new ContainerServicePrivateLinkServiceConnectionState. /// public ContainerServicePrivateLinkServiceConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerServicePrivateLinkServiceConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceSshPublicKey.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceSshPublicKey.cs index 5bd5e7d53d29e..415f103a1a369 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceSshPublicKey.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceSshPublicKey.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,14 +19,26 @@ public partial class ContainerServiceSshPublicKey : ProvisionableConstruct /// Certificate public key used to authenticate with VMs through SSH. The /// certificate must be in PEM format with or without headers. /// - public BicepValue KeyData { get => _keyData; set => _keyData.Assign(value); } - private readonly BicepValue _keyData; + public BicepValue KeyData + { + get { Initialize(); return _keyData!; } + set { Initialize(); _keyData!.Assign(value); } + } + private BicepValue? _keyData; /// /// Creates a new ContainerServiceSshPublicKey. /// public ContainerServiceSshPublicKey() { - _keyData = BicepValue.DefineProperty(this, "KeyData", ["keyData"]); + } + + /// + /// Define all the provisionable properties of ContainerServiceSshPublicKey. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyData = DefineProperty("KeyData", ["keyData"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceTimeInWeek.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceTimeInWeek.cs index 197323fb5e2a1..3978bcf6fa106 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceTimeInWeek.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceTimeInWeek.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,8 +19,12 @@ public partial class ContainerServiceTimeInWeek : ProvisionableConstruct /// /// The day of the week. /// - public BicepValue Day { get => _day; set => _day.Assign(value); } - private readonly BicepValue _day; + public BicepValue Day + { + get { Initialize(); return _day!; } + set { Initialize(); _day!.Assign(value); } + } + private BicepValue? _day; /// /// Each integer hour represents a time range beginning at 0m after the @@ -26,15 +32,27 @@ public partial class ContainerServiceTimeInWeek : ProvisionableConstruct /// UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - /// 02:00 UTC time range. /// - public BicepList HourSlots { get => _hourSlots; set => _hourSlots.Assign(value); } - private readonly BicepList _hourSlots; + public BicepList HourSlots + { + get { Initialize(); return _hourSlots!; } + set { Initialize(); _hourSlots!.Assign(value); } + } + private BicepList? _hourSlots; /// /// Creates a new ContainerServiceTimeInWeek. /// public ContainerServiceTimeInWeek() { - _day = BicepValue.DefineProperty(this, "Day", ["day"]); - _hourSlots = BicepList.DefineProperty(this, "HourSlots", ["hourSlots"]); + } + + /// + /// Define all the provisionable properties of ContainerServiceTimeInWeek. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _day = DefineProperty("Day", ["day"]); + _hourSlots = DefineListProperty("HourSlots", ["hourSlots"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceTimeSpan.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceTimeSpan.cs index d552c3e6495b1..3b6652e0938fa 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceTimeSpan.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceTimeSpan.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class ContainerServiceTimeSpan : ProvisionableConstruct /// /// The start of a time span. /// - public BicepValue StartOn { get => _startOn; set => _startOn.Assign(value); } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + set { Initialize(); _startOn!.Assign(value); } + } + private BicepValue? _startOn; /// /// The end of a time span. /// - public BicepValue EndOn { get => _endOn; set => _endOn.Assign(value); } - private readonly BicepValue _endOn; + public BicepValue EndOn + { + get { Initialize(); return _endOn!; } + set { Initialize(); _endOn!.Assign(value); } + } + private BicepValue? _endOn; /// /// Creates a new ContainerServiceTimeSpan. /// public ContainerServiceTimeSpan() { - _startOn = BicepValue.DefineProperty(this, "StartOn", ["start"]); - _endOn = BicepValue.DefineProperty(this, "EndOn", ["end"]); + } + + /// + /// Define all the provisionable properties of ContainerServiceTimeSpan. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _startOn = DefineProperty("StartOn", ["start"]); + _endOn = DefineProperty("EndOn", ["end"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceUserAssignedIdentity.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceUserAssignedIdentity.cs index fd0a18f7edae4..84f1c3ef3cddb 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceUserAssignedIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ContainerServiceUserAssignedIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,49 @@ public partial class ContainerServiceUserAssignedIdentity : ProvisionableConstru /// /// The resource ID of the user assigned identity. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// The client ID of the user assigned identity. /// - public BicepValue ClientId { get => _clientId; set => _clientId.Assign(value); } - private readonly BicepValue _clientId; + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + set { Initialize(); _clientId!.Assign(value); } + } + private BicepValue? _clientId; /// /// The object ID of the user assigned identity. /// - public BicepValue ObjectId { get => _objectId; set => _objectId.Assign(value); } - private readonly BicepValue _objectId; + public BicepValue ObjectId + { + get { Initialize(); return _objectId!; } + set { Initialize(); _objectId!.Assign(value); } + } + private BicepValue? _objectId; /// /// Creates a new ContainerServiceUserAssignedIdentity. /// public ContainerServiceUserAssignedIdentity() { - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["resourceId"]); - _clientId = BicepValue.DefineProperty(this, "ClientId", ["clientId"]); - _objectId = BicepValue.DefineProperty(this, "ObjectId", ["objectId"]); + } + + /// + /// Define all the provisionable properties of + /// ContainerServiceUserAssignedIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _resourceId = DefineProperty("ResourceId", ["resourceId"]); + _clientId = DefineProperty("ClientId", ["clientId"]); + _objectId = DefineProperty("ObjectId", ["objectId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioComponents.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioComponents.cs index 62793cf2fab55..e39dd68bdf206 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioComponents.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioComponents.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class IstioComponents : ProvisionableConstruct /// /// Istio ingress gateways. /// - public BicepList IngressGateways { get => _ingressGateways; set => _ingressGateways.Assign(value); } - private readonly BicepList _ingressGateways; + public BicepList IngressGateways + { + get { Initialize(); return _ingressGateways!; } + set { Initialize(); _ingressGateways!.Assign(value); } + } + private BicepList? _ingressGateways; /// /// Istio egress gateways. /// - public BicepList EgressGateways { get => _egressGateways; set => _egressGateways.Assign(value); } - private readonly BicepList _egressGateways; + public BicepList EgressGateways + { + get { Initialize(); return _egressGateways!; } + set { Initialize(); _egressGateways!.Assign(value); } + } + private BicepList? _egressGateways; /// /// Creates a new IstioComponents. /// public IstioComponents() { - _ingressGateways = BicepList.DefineProperty(this, "IngressGateways", ["ingressGateways"]); - _egressGateways = BicepList.DefineProperty(this, "EgressGateways", ["egressGateways"]); + } + + /// + /// Define all the provisionable properties of IstioComponents. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _ingressGateways = DefineListProperty("IngressGateways", ["ingressGateways"]); + _egressGateways = DefineListProperty("EgressGateways", ["egressGateways"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioEgressGateway.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioEgressGateway.cs index 75b09a505c992..16be9ddb3ae20 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioEgressGateway.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioEgressGateway.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class IstioEgressGateway : ProvisionableConstruct /// /// Whether to enable the egress gateway. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// NodeSelector for scheduling the egress gateway. /// - public BicepDictionary NodeSelector { get => _nodeSelector; set => _nodeSelector.Assign(value); } - private readonly BicepDictionary _nodeSelector; + public BicepDictionary NodeSelector + { + get { Initialize(); return _nodeSelector!; } + set { Initialize(); _nodeSelector!.Assign(value); } + } + private BicepDictionary? _nodeSelector; /// /// Creates a new IstioEgressGateway. /// public IstioEgressGateway() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _nodeSelector = BicepDictionary.DefineProperty(this, "NodeSelector", ["nodeSelector"]); + } + + /// + /// Define all the provisionable properties of IstioEgressGateway. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _nodeSelector = DefineDictionaryProperty("NodeSelector", ["nodeSelector"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioIngressGateway.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioIngressGateway.cs index a74ffb092c592..ec2e0b1d5c497 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioIngressGateway.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioIngressGateway.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,37 @@ public partial class IstioIngressGateway : ProvisionableConstruct /// /// Mode of an ingress gateway. /// - public BicepValue Mode { get => _mode; set => _mode.Assign(value); } - private readonly BicepValue _mode; + public BicepValue Mode + { + get { Initialize(); return _mode!; } + set { Initialize(); _mode!.Assign(value); } + } + private BicepValue? _mode; /// /// Whether to enable the ingress gateway. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Creates a new IstioIngressGateway. /// public IstioIngressGateway() { - _mode = BicepValue.DefineProperty(this, "Mode", ["mode"]); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); + } + + /// + /// Define all the provisionable properties of IstioIngressGateway. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _mode = DefineProperty("Mode", ["mode"]); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioPluginCertificateAuthority.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioPluginCertificateAuthority.cs index 1bc8d71bc03a4..5a5291e1b0ef4 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioPluginCertificateAuthority.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioPluginCertificateAuthority.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,42 +19,71 @@ public partial class IstioPluginCertificateAuthority : ProvisionableConstruct /// /// The resource ID of the Key Vault. /// - public BicepValue KeyVaultId { get => _keyVaultId; set => _keyVaultId.Assign(value); } - private readonly BicepValue _keyVaultId; + public BicepValue KeyVaultId + { + get { Initialize(); return _keyVaultId!; } + set { Initialize(); _keyVaultId!.Assign(value); } + } + private BicepValue? _keyVaultId; /// /// Intermediate certificate object name in Azure Key Vault. /// - public BicepValue CertObjectName { get => _certObjectName; set => _certObjectName.Assign(value); } - private readonly BicepValue _certObjectName; + public BicepValue CertObjectName + { + get { Initialize(); return _certObjectName!; } + set { Initialize(); _certObjectName!.Assign(value); } + } + private BicepValue? _certObjectName; /// /// Intermediate certificate private key object name in Azure Key Vault. /// - public BicepValue KeyObjectName { get => _keyObjectName; set => _keyObjectName.Assign(value); } - private readonly BicepValue _keyObjectName; + public BicepValue KeyObjectName + { + get { Initialize(); return _keyObjectName!; } + set { Initialize(); _keyObjectName!.Assign(value); } + } + private BicepValue? _keyObjectName; /// /// Root certificate object name in Azure Key Vault. /// - public BicepValue RootCertObjectName { get => _rootCertObjectName; set => _rootCertObjectName.Assign(value); } - private readonly BicepValue _rootCertObjectName; + public BicepValue RootCertObjectName + { + get { Initialize(); return _rootCertObjectName!; } + set { Initialize(); _rootCertObjectName!.Assign(value); } + } + private BicepValue? _rootCertObjectName; /// /// Certificate chain object name in Azure Key Vault. /// - public BicepValue CertChainObjectName { get => _certChainObjectName; set => _certChainObjectName.Assign(value); } - private readonly BicepValue _certChainObjectName; + public BicepValue CertChainObjectName + { + get { Initialize(); return _certChainObjectName!; } + set { Initialize(); _certChainObjectName!.Assign(value); } + } + private BicepValue? _certChainObjectName; /// /// Creates a new IstioPluginCertificateAuthority. /// public IstioPluginCertificateAuthority() { - _keyVaultId = BicepValue.DefineProperty(this, "KeyVaultId", ["keyVaultId"]); - _certObjectName = BicepValue.DefineProperty(this, "CertObjectName", ["certObjectName"]); - _keyObjectName = BicepValue.DefineProperty(this, "KeyObjectName", ["keyObjectName"]); - _rootCertObjectName = BicepValue.DefineProperty(this, "RootCertObjectName", ["rootCertObjectName"]); - _certChainObjectName = BicepValue.DefineProperty(this, "CertChainObjectName", ["certChainObjectName"]); + } + + /// + /// Define all the provisionable properties of + /// IstioPluginCertificateAuthority. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyVaultId = DefineProperty("KeyVaultId", ["keyVaultId"]); + _certObjectName = DefineProperty("CertObjectName", ["certObjectName"]); + _keyObjectName = DefineProperty("KeyObjectName", ["keyObjectName"]); + _rootCertObjectName = DefineProperty("RootCertObjectName", ["rootCertObjectName"]); + _certChainObjectName = DefineProperty("CertChainObjectName", ["certChainObjectName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioServiceMesh.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioServiceMesh.cs index 3adc2705a1b86..d1e45f63da4b3 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioServiceMesh.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/IstioServiceMesh.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,14 +20,22 @@ public partial class IstioServiceMesh : ProvisionableConstruct /// /// Istio components configuration. /// - public BicepValue Components { get => _components; set => _components.Assign(value); } - private readonly BicepValue _components; + public IstioComponents Components + { + get { Initialize(); return _components!; } + set { Initialize(); AssignOrReplace(ref _components, value); } + } + private IstioComponents? _components; /// /// Plugin certificates information for Service Mesh. /// - public BicepValue CertificateAuthorityPlugin { get => _certificateAuthorityPlugin; set => _certificateAuthorityPlugin.Assign(value); } - private readonly BicepValue _certificateAuthorityPlugin; + public IstioPluginCertificateAuthority CertificateAuthorityPlugin + { + get { Initialize(); return _certificateAuthorityPlugin!; } + set { Initialize(); AssignOrReplace(ref _certificateAuthorityPlugin, value); } + } + private IstioPluginCertificateAuthority? _certificateAuthorityPlugin; /// /// The list of revisions of the Istio control plane. When an upgrade is @@ -34,16 +44,28 @@ public partial class IstioServiceMesh : ProvisionableConstruct /// information, see: /// https://learn.microsoft.com/en-us/azure/aks/istio-upgrade. /// - public BicepList Revisions { get => _revisions; set => _revisions.Assign(value); } - private readonly BicepList _revisions; + public BicepList Revisions + { + get { Initialize(); return _revisions!; } + set { Initialize(); _revisions!.Assign(value); } + } + private BicepList? _revisions; /// /// Creates a new IstioServiceMesh. /// public IstioServiceMesh() { - _components = BicepValue.DefineProperty(this, "Components", ["components"]); - _certificateAuthorityPlugin = BicepValue.DefineProperty(this, "CertificateAuthorityPlugin", ["certificateAuthority", "plugin"]); - _revisions = BicepList.DefineProperty(this, "Revisions", ["revisions"]); + } + + /// + /// Define all the provisionable properties of IstioServiceMesh. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _components = DefineModelProperty("Components", ["components"]); + _certificateAuthorityPlugin = DefineModelProperty("CertificateAuthorityPlugin", ["certificateAuthority", "plugin"]); + _revisions = DefineListProperty("Revisions", ["revisions"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/KubeletConfig.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/KubeletConfig.cs index b3f3471864653..3697da7b52be6 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/KubeletConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/KubeletConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -22,14 +24,22 @@ public partial class KubeletConfig : ProvisionableConstruct /// for more information. Allowed values are 'none' and /// 'static'. /// - public BicepValue CpuManagerPolicy { get => _cpuManagerPolicy; set => _cpuManagerPolicy.Assign(value); } - private readonly BicepValue _cpuManagerPolicy; + public BicepValue CpuManagerPolicy + { + get { Initialize(); return _cpuManagerPolicy!; } + set { Initialize(); _cpuManagerPolicy!.Assign(value); } + } + private BicepValue? _cpuManagerPolicy; /// /// The default is true. /// - public BicepValue IsCpuCfsQuotaEnabled { get => _isCpuCfsQuotaEnabled; set => _isCpuCfsQuotaEnabled.Assign(value); } - private readonly BicepValue _isCpuCfsQuotaEnabled; + public BicepValue IsCpuCfsQuotaEnabled + { + get { Initialize(); return _isCpuCfsQuotaEnabled!; } + set { Initialize(); _isCpuCfsQuotaEnabled!.Assign(value); } + } + private BicepValue? _isCpuCfsQuotaEnabled; /// /// The default is '100ms.' Valid values are a sequence of @@ -38,20 +48,32 @@ public partial class KubeletConfig : ProvisionableConstruct /// 'ns', 'us', 'ms', 's', /// 'm', and 'h'. /// - public BicepValue CpuCfsQuotaPeriod { get => _cpuCfsQuotaPeriod; set => _cpuCfsQuotaPeriod.Assign(value); } - private readonly BicepValue _cpuCfsQuotaPeriod; + public BicepValue CpuCfsQuotaPeriod + { + get { Initialize(); return _cpuCfsQuotaPeriod!; } + set { Initialize(); _cpuCfsQuotaPeriod!.Assign(value); } + } + private BicepValue? _cpuCfsQuotaPeriod; /// /// To disable image garbage collection, set to 100. The default is 85%. /// - public BicepValue ImageGcHighThreshold { get => _imageGcHighThreshold; set => _imageGcHighThreshold.Assign(value); } - private readonly BicepValue _imageGcHighThreshold; + public BicepValue ImageGcHighThreshold + { + get { Initialize(); return _imageGcHighThreshold!; } + set { Initialize(); _imageGcHighThreshold!.Assign(value); } + } + private BicepValue? _imageGcHighThreshold; /// /// This cannot be set higher than imageGcHighThreshold. The default is 80%. /// - public BicepValue ImageGcLowThreshold { get => _imageGcLowThreshold; set => _imageGcLowThreshold.Assign(value); } - private readonly BicepValue _imageGcLowThreshold; + public BicepValue ImageGcLowThreshold + { + get { Initialize(); return _imageGcLowThreshold!; } + set { Initialize(); _imageGcLowThreshold!.Assign(value); } + } + private BicepValue? _imageGcLowThreshold; /// /// For more information see [Kubernetes Topology @@ -60,57 +82,89 @@ public partial class KubeletConfig : ProvisionableConstruct /// 'best-effort', 'restricted', and /// 'single-numa-node'. /// - public BicepValue TopologyManagerPolicy { get => _topologyManagerPolicy; set => _topologyManagerPolicy.Assign(value); } - private readonly BicepValue _topologyManagerPolicy; + public BicepValue TopologyManagerPolicy + { + get { Initialize(); return _topologyManagerPolicy!; } + set { Initialize(); _topologyManagerPolicy!.Assign(value); } + } + private BicepValue? _topologyManagerPolicy; /// /// Allowed list of unsafe sysctls or unsafe sysctl patterns (ending in /// `*`). /// - public BicepList AllowedUnsafeSysctls { get => _allowedUnsafeSysctls; set => _allowedUnsafeSysctls.Assign(value); } - private readonly BicepList _allowedUnsafeSysctls; + public BicepList AllowedUnsafeSysctls + { + get { Initialize(); return _allowedUnsafeSysctls!; } + set { Initialize(); _allowedUnsafeSysctls!.Assign(value); } + } + private BicepList? _allowedUnsafeSysctls; /// /// If set to true it will make the Kubelet fail to start if swap is /// enabled on the node. /// - public BicepValue FailStartWithSwapOn { get => _failStartWithSwapOn; set => _failStartWithSwapOn.Assign(value); } - private readonly BicepValue _failStartWithSwapOn; + public BicepValue FailStartWithSwapOn + { + get { Initialize(); return _failStartWithSwapOn!; } + set { Initialize(); _failStartWithSwapOn!.Assign(value); } + } + private BicepValue? _failStartWithSwapOn; /// /// The maximum size (e.g. 10Mi) of container log file before it is rotated. /// - public BicepValue ContainerLogMaxSizeInMB { get => _containerLogMaxSizeInMB; set => _containerLogMaxSizeInMB.Assign(value); } - private readonly BicepValue _containerLogMaxSizeInMB; + public BicepValue ContainerLogMaxSizeInMB + { + get { Initialize(); return _containerLogMaxSizeInMB!; } + set { Initialize(); _containerLogMaxSizeInMB!.Assign(value); } + } + private BicepValue? _containerLogMaxSizeInMB; /// /// The maximum number of container log files that can be present for a /// container. The number must be ≥ 2. /// - public BicepValue ContainerLogMaxFiles { get => _containerLogMaxFiles; set => _containerLogMaxFiles.Assign(value); } - private readonly BicepValue _containerLogMaxFiles; + public BicepValue ContainerLogMaxFiles + { + get { Initialize(); return _containerLogMaxFiles!; } + set { Initialize(); _containerLogMaxFiles!.Assign(value); } + } + private BicepValue? _containerLogMaxFiles; /// /// The maximum number of processes per pod. /// - public BicepValue PodMaxPids { get => _podMaxPids; set => _podMaxPids.Assign(value); } - private readonly BicepValue _podMaxPids; + public BicepValue PodMaxPids + { + get { Initialize(); return _podMaxPids!; } + set { Initialize(); _podMaxPids!.Assign(value); } + } + private BicepValue? _podMaxPids; /// /// Creates a new KubeletConfig. /// public KubeletConfig() { - _cpuManagerPolicy = BicepValue.DefineProperty(this, "CpuManagerPolicy", ["cpuManagerPolicy"]); - _isCpuCfsQuotaEnabled = BicepValue.DefineProperty(this, "IsCpuCfsQuotaEnabled", ["cpuCfsQuota"]); - _cpuCfsQuotaPeriod = BicepValue.DefineProperty(this, "CpuCfsQuotaPeriod", ["cpuCfsQuotaPeriod"]); - _imageGcHighThreshold = BicepValue.DefineProperty(this, "ImageGcHighThreshold", ["imageGcHighThreshold"]); - _imageGcLowThreshold = BicepValue.DefineProperty(this, "ImageGcLowThreshold", ["imageGcLowThreshold"]); - _topologyManagerPolicy = BicepValue.DefineProperty(this, "TopologyManagerPolicy", ["topologyManagerPolicy"]); - _allowedUnsafeSysctls = BicepList.DefineProperty(this, "AllowedUnsafeSysctls", ["allowedUnsafeSysctls"]); - _failStartWithSwapOn = BicepValue.DefineProperty(this, "FailStartWithSwapOn", ["failSwapOn"]); - _containerLogMaxSizeInMB = BicepValue.DefineProperty(this, "ContainerLogMaxSizeInMB", ["containerLogMaxSizeMB"]); - _containerLogMaxFiles = BicepValue.DefineProperty(this, "ContainerLogMaxFiles", ["containerLogMaxFiles"]); - _podMaxPids = BicepValue.DefineProperty(this, "PodMaxPids", ["podMaxPids"]); + } + + /// + /// Define all the provisionable properties of KubeletConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _cpuManagerPolicy = DefineProperty("CpuManagerPolicy", ["cpuManagerPolicy"]); + _isCpuCfsQuotaEnabled = DefineProperty("IsCpuCfsQuotaEnabled", ["cpuCfsQuota"]); + _cpuCfsQuotaPeriod = DefineProperty("CpuCfsQuotaPeriod", ["cpuCfsQuotaPeriod"]); + _imageGcHighThreshold = DefineProperty("ImageGcHighThreshold", ["imageGcHighThreshold"]); + _imageGcLowThreshold = DefineProperty("ImageGcLowThreshold", ["imageGcLowThreshold"]); + _topologyManagerPolicy = DefineProperty("TopologyManagerPolicy", ["topologyManagerPolicy"]); + _allowedUnsafeSysctls = DefineListProperty("AllowedUnsafeSysctls", ["allowedUnsafeSysctls"]); + _failStartWithSwapOn = DefineProperty("FailStartWithSwapOn", ["failSwapOn"]); + _containerLogMaxSizeInMB = DefineProperty("ContainerLogMaxSizeInMB", ["containerLogMaxSizeMB"]); + _containerLogMaxFiles = DefineProperty("ContainerLogMaxFiles", ["containerLogMaxFiles"]); + _podMaxPids = DefineProperty("PodMaxPids", ["podMaxPids"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/LinuxOSConfig.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/LinuxOSConfig.cs index 2e03de056e8bb..a39ade7d032a8 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/LinuxOSConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/LinuxOSConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,8 +20,12 @@ public partial class LinuxOSConfig : ProvisionableConstruct /// /// Sysctl settings for Linux agent nodes. /// - public BicepValue Sysctls { get => _sysctls; set => _sysctls.Assign(value); } - private readonly BicepValue _sysctls; + public SysctlConfig Sysctls + { + get { Initialize(); return _sysctls!; } + set { Initialize(); AssignOrReplace(ref _sysctls, value); } + } + private SysctlConfig? _sysctls; /// /// Valid values are 'always', 'madvise', and @@ -27,8 +33,12 @@ public partial class LinuxOSConfig : ProvisionableConstruct /// information see [Transparent /// Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html#admin-guide-transhuge). /// - public BicepValue TransparentHugePageEnabled { get => _transparentHugePageEnabled; set => _transparentHugePageEnabled.Assign(value); } - private readonly BicepValue _transparentHugePageEnabled; + public BicepValue TransparentHugePageEnabled + { + get { Initialize(); return _transparentHugePageEnabled!; } + set { Initialize(); _transparentHugePageEnabled!.Assign(value); } + } + private BicepValue? _transparentHugePageEnabled; /// /// Valid values are 'always', 'defer', @@ -37,23 +47,39 @@ public partial class LinuxOSConfig : ProvisionableConstruct /// [Transparent /// Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html#admin-guide-transhuge). /// - public BicepValue TransparentHugePageDefrag { get => _transparentHugePageDefrag; set => _transparentHugePageDefrag.Assign(value); } - private readonly BicepValue _transparentHugePageDefrag; + public BicepValue TransparentHugePageDefrag + { + get { Initialize(); return _transparentHugePageDefrag!; } + set { Initialize(); _transparentHugePageDefrag!.Assign(value); } + } + private BicepValue? _transparentHugePageDefrag; /// /// The size in MB of a swap file that will be created on each node. /// - public BicepValue SwapFileSizeInMB { get => _swapFileSizeInMB; set => _swapFileSizeInMB.Assign(value); } - private readonly BicepValue _swapFileSizeInMB; + public BicepValue SwapFileSizeInMB + { + get { Initialize(); return _swapFileSizeInMB!; } + set { Initialize(); _swapFileSizeInMB!.Assign(value); } + } + private BicepValue? _swapFileSizeInMB; /// /// Creates a new LinuxOSConfig. /// public LinuxOSConfig() { - _sysctls = BicepValue.DefineProperty(this, "Sysctls", ["sysctls"]); - _transparentHugePageEnabled = BicepValue.DefineProperty(this, "TransparentHugePageEnabled", ["transparentHugePageEnabled"]); - _transparentHugePageDefrag = BicepValue.DefineProperty(this, "TransparentHugePageDefrag", ["transparentHugePageDefrag"]); - _swapFileSizeInMB = BicepValue.DefineProperty(this, "SwapFileSizeInMB", ["swapFileSizeMB"]); + } + + /// + /// Define all the provisionable properties of LinuxOSConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _sysctls = DefineModelProperty("Sysctls", ["sysctls"]); + _transparentHugePageEnabled = DefineProperty("TransparentHugePageEnabled", ["transparentHugePageEnabled"]); + _transparentHugePageDefrag = DefineProperty("TransparentHugePageDefrag", ["transparentHugePageDefrag"]); + _swapFileSizeInMB = DefineProperty("SwapFileSizeInMB", ["swapFileSizeMB"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAadProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAadProfile.cs index 7492cbac300da..03ec422e12521 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAadProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAadProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,61 +20,97 @@ public partial class ManagedClusterAadProfile : ProvisionableConstruct /// /// Whether to enable managed AAD. /// - public BicepValue IsManagedAadEnabled { get => _isManagedAadEnabled; set => _isManagedAadEnabled.Assign(value); } - private readonly BicepValue _isManagedAadEnabled; + public BicepValue IsManagedAadEnabled + { + get { Initialize(); return _isManagedAadEnabled!; } + set { Initialize(); _isManagedAadEnabled!.Assign(value); } + } + private BicepValue? _isManagedAadEnabled; /// /// Whether to enable Azure RBAC for Kubernetes authorization. /// - public BicepValue IsAzureRbacEnabled { get => _isAzureRbacEnabled; set => _isAzureRbacEnabled.Assign(value); } - private readonly BicepValue _isAzureRbacEnabled; + public BicepValue IsAzureRbacEnabled + { + get { Initialize(); return _isAzureRbacEnabled!; } + set { Initialize(); _isAzureRbacEnabled!.Assign(value); } + } + private BicepValue? _isAzureRbacEnabled; /// /// The list of AAD group object IDs that will have admin role of the /// cluster. /// - public BicepList AdminGroupObjectIds { get => _adminGroupObjectIds; set => _adminGroupObjectIds.Assign(value); } - private readonly BicepList _adminGroupObjectIds; + public BicepList AdminGroupObjectIds + { + get { Initialize(); return _adminGroupObjectIds!; } + set { Initialize(); _adminGroupObjectIds!.Assign(value); } + } + private BicepList? _adminGroupObjectIds; /// /// (DEPRECATED) The client AAD application ID. Learn more at /// https://aka.ms/aks/aad-legacy. /// - public BicepValue ClientAppId { get => _clientAppId; set => _clientAppId.Assign(value); } - private readonly BicepValue _clientAppId; + public BicepValue ClientAppId + { + get { Initialize(); return _clientAppId!; } + set { Initialize(); _clientAppId!.Assign(value); } + } + private BicepValue? _clientAppId; /// /// (DEPRECATED) The server AAD application ID. Learn more at /// https://aka.ms/aks/aad-legacy. /// - public BicepValue ServerAppId { get => _serverAppId; set => _serverAppId.Assign(value); } - private readonly BicepValue _serverAppId; + public BicepValue ServerAppId + { + get { Initialize(); return _serverAppId!; } + set { Initialize(); _serverAppId!.Assign(value); } + } + private BicepValue? _serverAppId; /// /// (DEPRECATED) The server AAD application secret. Learn more at /// https://aka.ms/aks/aad-legacy. /// - public BicepValue ServerAppSecret { get => _serverAppSecret; set => _serverAppSecret.Assign(value); } - private readonly BicepValue _serverAppSecret; + public BicepValue ServerAppSecret + { + get { Initialize(); return _serverAppSecret!; } + set { Initialize(); _serverAppSecret!.Assign(value); } + } + private BicepValue? _serverAppSecret; /// /// The AAD tenant ID to use for authentication. If not specified, will use /// the tenant of the deployment subscription. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// Creates a new ManagedClusterAadProfile. /// public ManagedClusterAadProfile() { - _isManagedAadEnabled = BicepValue.DefineProperty(this, "IsManagedAadEnabled", ["managed"]); - _isAzureRbacEnabled = BicepValue.DefineProperty(this, "IsAzureRbacEnabled", ["enableAzureRBAC"]); - _adminGroupObjectIds = BicepList.DefineProperty(this, "AdminGroupObjectIds", ["adminGroupObjectIDs"]); - _clientAppId = BicepValue.DefineProperty(this, "ClientAppId", ["clientAppID"]); - _serverAppId = BicepValue.DefineProperty(this, "ServerAppId", ["serverAppID"]); - _serverAppSecret = BicepValue.DefineProperty(this, "ServerAppSecret", ["serverAppSecret"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantID"]); + } + + /// + /// Define all the provisionable properties of ManagedClusterAadProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isManagedAadEnabled = DefineProperty("IsManagedAadEnabled", ["managed"]); + _isAzureRbacEnabled = DefineProperty("IsAzureRbacEnabled", ["enableAzureRBAC"]); + _adminGroupObjectIds = DefineListProperty("AdminGroupObjectIds", ["adminGroupObjectIDs"]); + _clientAppId = DefineProperty("ClientAppId", ["clientAppID"]); + _serverAppId = DefineProperty("ServerAppId", ["serverAppID"]); + _serverAppSecret = DefineProperty("ServerAppSecret", ["serverAppSecret"]); + _tenantId = DefineProperty("TenantId", ["tenantID"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAddonProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAddonProfile.cs index 01fcc94d17ac7..7cc6e107df673 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAddonProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAddonProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,47 @@ public partial class ManagedClusterAddonProfile : ProvisionableConstruct /// /// Whether the add-on is enabled or not. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Key-value pairs for configuring an add-on. /// - public BicepDictionary Config { get => _config; set => _config.Assign(value); } - private readonly BicepDictionary _config; + public BicepDictionary Config + { + get { Initialize(); return _config!; } + set { Initialize(); _config!.Assign(value); } + } + private BicepDictionary? _config; /// /// Information of user assigned identity used by this add-on. /// - public BicepValue Identity { get => _identity; } - private readonly BicepValue _identity; + public ManagedClusterAddonProfileIdentity Identity + { + get { Initialize(); return _identity!; } + } + private ManagedClusterAddonProfileIdentity? _identity; /// /// Creates a new ManagedClusterAddonProfile. /// public ManagedClusterAddonProfile() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _config = BicepDictionary.DefineProperty(this, "Config", ["config"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagedClusterAddonProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _config = DefineDictionaryProperty("Config", ["config"]); + _identity = DefineModelProperty("Identity", ["identity"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAddonProfileIdentity.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAddonProfileIdentity.cs index d8786d1b933c7..cce473b507b69 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAddonProfileIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAddonProfileIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.ContainerService; @@ -18,4 +20,13 @@ public partial class ManagedClusterAddonProfileIdentity : ContainerServiceUserAs public ManagedClusterAddonProfileIdentity() : base() { } + + /// + /// Define all the provisionable properties of + /// ManagedClusterAddonProfileIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs index 961fd9af2e95c..0988731af22f2 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,8 +20,12 @@ public partial class ManagedClusterAgentPoolProfile : ProvisionableConstruct /// /// Windows agent pool names must be 6 characters or less. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Number of agents (VMs) to host docker containers. Allowed values must @@ -27,8 +33,12 @@ public partial class ManagedClusterAgentPoolProfile : ProvisionableConstruct /// range of 1 to 1000 (inclusive) for system pools. The default value is /// 1. /// - public BicepValue Count { get => _count; set => _count.Assign(value); } - private readonly BicepValue _count; + public BicepValue Count + { + get { Initialize(); return _count!; } + set { Initialize(); _count!.Assign(value); } + } + private BicepValue? _count; /// /// VM size availability varies by region. If a node contains insufficient @@ -36,16 +46,24 @@ public partial class ManagedClusterAgentPoolProfile : ProvisionableConstruct /// For more details on restricted VM sizes, see: /// https://docs.microsoft.com/azure/aks/quotas-skus-regions. /// - public BicepValue VmSize { get => _vmSize; set => _vmSize.Assign(value); } - private readonly BicepValue _vmSize; + public BicepValue VmSize + { + get { Initialize(); return _vmSize!; } + set { Initialize(); _vmSize!.Assign(value); } + } + private BicepValue? _vmSize; /// /// OS Disk Size in GB to be used to specify the disk size for every /// machine in the master/agent pool. If you specify 0, it will apply the /// default osDisk size according to the vmSize specified. /// - public BicepValue OSDiskSizeInGB { get => _oSDiskSizeInGB; set => _oSDiskSizeInGB.Assign(value); } - private readonly BicepValue _oSDiskSizeInGB; + public BicepValue OSDiskSizeInGB + { + get { Initialize(); return _oSDiskSizeInGB!; } + set { Initialize(); _oSDiskSizeInGB!.Assign(value); } + } + private BicepValue? _oSDiskSizeInGB; /// /// The default is 'Ephemeral' if the VM supports it and has a @@ -54,21 +72,33 @@ public partial class ManagedClusterAgentPoolProfile : ProvisionableConstruct /// information see [Ephemeral /// OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os). /// - public BicepValue OSDiskType { get => _oSDiskType; set => _oSDiskType.Assign(value); } - private readonly BicepValue _oSDiskType; + public BicepValue OSDiskType + { + get { Initialize(); return _oSDiskType!; } + set { Initialize(); _oSDiskType!.Assign(value); } + } + private BicepValue? _oSDiskType; /// /// Determines the placement of emptyDir volumes, container runtime data /// root, and Kubelet ephemeral storage. /// - public BicepValue KubeletDiskType { get => _kubeletDiskType; set => _kubeletDiskType.Assign(value); } - private readonly BicepValue _kubeletDiskType; + public BicepValue KubeletDiskType + { + get { Initialize(); return _kubeletDiskType!; } + set { Initialize(); _kubeletDiskType!.Assign(value); } + } + private BicepValue? _kubeletDiskType; /// /// Determines the type of workload a node can run. /// - public BicepValue WorkloadRuntime { get => _workloadRuntime; set => _workloadRuntime.Assign(value); } - private readonly BicepValue _workloadRuntime; + public BicepValue WorkloadRuntime + { + get { Initialize(); return _workloadRuntime!; } + set { Initialize(); _workloadRuntime!.Assign(value); } + } + private BicepValue? _workloadRuntime; /// /// If this is not specified, a VNET and subnet will be generated and used. @@ -76,75 +106,119 @@ public partial class ManagedClusterAgentPoolProfile : ProvisionableConstruct /// otherwise it applies to just nodes. This is of the form: /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. /// - public BicepValue VnetSubnetId { get => _vnetSubnetId; set => _vnetSubnetId.Assign(value); } - private readonly BicepValue _vnetSubnetId; + public BicepValue VnetSubnetId + { + get { Initialize(); return _vnetSubnetId!; } + set { Initialize(); _vnetSubnetId!.Assign(value); } + } + private BicepValue? _vnetSubnetId; /// /// If omitted, pod IPs are statically assigned on the node subnet (see /// vnetSubnetID for more details). This is of the form: /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. /// - public BicepValue PodSubnetId { get => _podSubnetId; set => _podSubnetId.Assign(value); } - private readonly BicepValue _podSubnetId; + public BicepValue PodSubnetId + { + get { Initialize(); return _podSubnetId!; } + set { Initialize(); _podSubnetId!.Assign(value); } + } + private BicepValue? _podSubnetId; /// /// The maximum number of pods that can run on a node. /// - public BicepValue MaxPods { get => _maxPods; set => _maxPods.Assign(value); } - private readonly BicepValue _maxPods; + public BicepValue MaxPods + { + get { Initialize(); return _maxPods!; } + set { Initialize(); _maxPods!.Assign(value); } + } + private BicepValue? _maxPods; /// /// The operating system type. The default is Linux. /// - public BicepValue OSType { get => _oSType; set => _oSType.Assign(value); } - private readonly BicepValue _oSType; + public BicepValue OSType + { + get { Initialize(); return _oSType!; } + set { Initialize(); _oSType!.Assign(value); } + } + private BicepValue? _oSType; /// /// Specifies the OS SKU used by the agent pool. The default is Ubuntu if /// OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 /// or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. /// - public BicepValue OSSku { get => _oSSku; set => _oSSku.Assign(value); } - private readonly BicepValue _oSSku; + public BicepValue OSSku + { + get { Initialize(); return _oSSku!; } + set { Initialize(); _oSSku!.Assign(value); } + } + private BicepValue? _oSSku; /// /// The maximum number of nodes for auto-scaling. /// - public BicepValue MaxCount { get => _maxCount; set => _maxCount.Assign(value); } - private readonly BicepValue _maxCount; + public BicepValue MaxCount + { + get { Initialize(); return _maxCount!; } + set { Initialize(); _maxCount!.Assign(value); } + } + private BicepValue? _maxCount; /// /// The minimum number of nodes for auto-scaling. /// - public BicepValue MinCount { get => _minCount; set => _minCount.Assign(value); } - private readonly BicepValue _minCount; + public BicepValue MinCount + { + get { Initialize(); return _minCount!; } + set { Initialize(); _minCount!.Assign(value); } + } + private BicepValue? _minCount; /// /// Whether to enable auto-scaler. /// - public BicepValue EnableAutoScaling { get => _enableAutoScaling; set => _enableAutoScaling.Assign(value); } - private readonly BicepValue _enableAutoScaling; + public BicepValue EnableAutoScaling + { + get { Initialize(); return _enableAutoScaling!; } + set { Initialize(); _enableAutoScaling!.Assign(value); } + } + private BicepValue? _enableAutoScaling; /// /// This also effects the cluster autoscaler behavior. If not specified, it /// defaults to Delete. /// - public BicepValue ScaleDownMode { get => _scaleDownMode; set => _scaleDownMode.Assign(value); } - private readonly BicepValue _scaleDownMode; + public BicepValue ScaleDownMode + { + get { Initialize(); return _scaleDownMode!; } + set { Initialize(); _scaleDownMode!.Assign(value); } + } + private BicepValue? _scaleDownMode; /// /// The type of Agent Pool. /// - public BicepValue AgentPoolType { get => _agentPoolType; set => _agentPoolType.Assign(value); } - private readonly BicepValue _agentPoolType; + public BicepValue AgentPoolType + { + get { Initialize(); return _agentPoolType!; } + set { Initialize(); _agentPoolType!.Assign(value); } + } + private BicepValue? _agentPoolType; /// /// A cluster must have at least one 'System' Agent Pool at all /// times. For additional information on agent pool restrictions and best /// practices, see: https://docs.microsoft.com/azure/aks/use-system-pools. /// - public BicepValue Mode { get => _mode; set => _mode.Assign(value); } - private readonly BicepValue _mode; + public BicepValue Mode + { + get { Initialize(); return _mode!; } + set { Initialize(); _mode!.Assign(value); } + } + private BicepValue? _mode; /// /// Both patch version <major.minor.patch> (e.g. 1.20.13) and @@ -161,8 +235,12 @@ public partial class ManagedClusterAgentPoolProfile : ProvisionableConstruct /// plane version. For more information see [upgrading a node /// pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). /// - public BicepValue OrchestratorVersion { get => _orchestratorVersion; set => _orchestratorVersion.Assign(value); } - private readonly BicepValue _orchestratorVersion; + public BicepValue OrchestratorVersion + { + get { Initialize(); return _orchestratorVersion!; } + set { Initialize(); _orchestratorVersion!.Assign(value); } + } + private BicepValue? _orchestratorVersion; /// /// If orchestratorVersion is a fully specified version @@ -170,40 +248,61 @@ public partial class ManagedClusterAgentPoolProfile : ProvisionableConstruct /// orchestratorVersion is <major.minor>, this field will contain /// the full <major.minor.patch> version being used. /// - public BicepValue CurrentOrchestratorVersion { get => _currentOrchestratorVersion; } - private readonly BicepValue _currentOrchestratorVersion; + public BicepValue CurrentOrchestratorVersion + { + get { Initialize(); return _currentOrchestratorVersion!; } + } + private BicepValue? _currentOrchestratorVersion; /// /// The version of node image. /// - public BicepValue NodeImageVersion { get => _nodeImageVersion; } - private readonly BicepValue _nodeImageVersion; + public BicepValue NodeImageVersion + { + get { Initialize(); return _nodeImageVersion!; } + } + private BicepValue? _nodeImageVersion; /// /// Settings for upgrading the agentpool. /// - public BicepValue UpgradeSettings { get => _upgradeSettings; set => _upgradeSettings.Assign(value); } - private readonly BicepValue _upgradeSettings; + public AgentPoolUpgradeSettings UpgradeSettings + { + get { Initialize(); return _upgradeSettings!; } + set { Initialize(); AssignOrReplace(ref _upgradeSettings, value); } + } + private AgentPoolUpgradeSettings? _upgradeSettings; /// /// The current deployment or provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Tells whether the cluster is Running or Stopped. /// - public BicepValue PowerStateCode { get => _powerStateCode; set => _powerStateCode.Assign(value); } - private readonly BicepValue _powerStateCode; + public BicepValue PowerStateCode + { + get { Initialize(); return _powerStateCode!; } + set { Initialize(); _powerStateCode!.Assign(value); } + } + private BicepValue? _powerStateCode; /// /// The list of Availability zones to use for nodes. This can only be /// specified if the AgentPoolType property is /// 'VirtualMachineScaleSets'. /// - public BicepList AvailabilityZones { get => _availabilityZones; set => _availabilityZones.Assign(value); } - private readonly BicepList _availabilityZones; + public BicepList AvailabilityZones + { + get { Initialize(); return _availabilityZones!; } + set { Initialize(); _availabilityZones!.Assign(value); } + } + private BicepList? _availabilityZones; /// /// Some scenarios may require nodes in a node pool to receive their own @@ -214,29 +313,45 @@ public partial class ManagedClusterAgentPoolProfile : ProvisionableConstruct /// node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). /// The default is false. /// - public BicepValue EnableNodePublicIP { get => _enableNodePublicIP; set => _enableNodePublicIP.Assign(value); } - private readonly BicepValue _enableNodePublicIP; + public BicepValue EnableNodePublicIP + { + get { Initialize(); return _enableNodePublicIP!; } + set { Initialize(); _enableNodePublicIP!.Assign(value); } + } + private BicepValue? _enableNodePublicIP; /// /// This is of the form: /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. /// - public BicepValue NodePublicIPPrefixId { get => _nodePublicIPPrefixId; set => _nodePublicIPPrefixId.Assign(value); } - private readonly BicepValue _nodePublicIPPrefixId; + public BicepValue NodePublicIPPrefixId + { + get { Initialize(); return _nodePublicIPPrefixId!; } + set { Initialize(); _nodePublicIPPrefixId!.Assign(value); } + } + private BicepValue? _nodePublicIPPrefixId; /// /// The Virtual Machine Scale Set priority. If not specified, the default /// is 'Regular'. /// - public BicepValue ScaleSetPriority { get => _scaleSetPriority; set => _scaleSetPriority.Assign(value); } - private readonly BicepValue _scaleSetPriority; + public BicepValue ScaleSetPriority + { + get { Initialize(); return _scaleSetPriority!; } + set { Initialize(); _scaleSetPriority!.Assign(value); } + } + private BicepValue? _scaleSetPriority; /// /// This cannot be specified unless the scaleSetPriority is /// 'Spot'. If not specified, the default is 'Delete'. /// - public BicepValue ScaleSetEvictionPolicy { get => _scaleSetEvictionPolicy; set => _scaleSetEvictionPolicy.Assign(value); } - private readonly BicepValue _scaleSetEvictionPolicy; + public BicepValue ScaleSetEvictionPolicy + { + get { Initialize(); return _scaleSetEvictionPolicy!; } + set { Initialize(); _scaleSetEvictionPolicy!.Assign(value); } + } + private BicepValue? _scaleSetEvictionPolicy; /// /// Possible values are any decimal value greater than zero or -1 which @@ -244,88 +359,140 @@ public partial class ManagedClusterAgentPoolProfile : ProvisionableConstruct /// on spot pricing, see [spot VMs /// pricing](https://docs.microsoft.com/azure/virtual-machines/spot-vms#pricing). /// - public BicepValue SpotMaxPrice { get => _spotMaxPrice; set => _spotMaxPrice.Assign(value); } - private readonly BicepValue _spotMaxPrice; + public BicepValue SpotMaxPrice + { + get { Initialize(); return _spotMaxPrice!; } + set { Initialize(); _spotMaxPrice!.Assign(value); } + } + private BicepValue? _spotMaxPrice; /// /// The tags to be persisted on the agent pool virtual machine scale set. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The node labels to be persisted across all nodes in agent pool. /// - public BicepDictionary NodeLabels { get => _nodeLabels; set => _nodeLabels.Assign(value); } - private readonly BicepDictionary _nodeLabels; + public BicepDictionary NodeLabels + { + get { Initialize(); return _nodeLabels!; } + set { Initialize(); _nodeLabels!.Assign(value); } + } + private BicepDictionary? _nodeLabels; /// /// The taints added to new nodes during node pool create and scale. For /// example, key=value:NoSchedule. /// - public BicepList NodeTaints { get => _nodeTaints; set => _nodeTaints.Assign(value); } - private readonly BicepList _nodeTaints; + public BicepList NodeTaints + { + get { Initialize(); return _nodeTaints!; } + set { Initialize(); _nodeTaints!.Assign(value); } + } + private BicepList? _nodeTaints; /// /// The ID for Proximity Placement Group. /// - public BicepValue ProximityPlacementGroupId { get => _proximityPlacementGroupId; set => _proximityPlacementGroupId.Assign(value); } - private readonly BicepValue _proximityPlacementGroupId; + public BicepValue ProximityPlacementGroupId + { + get { Initialize(); return _proximityPlacementGroupId!; } + set { Initialize(); _proximityPlacementGroupId!.Assign(value); } + } + private BicepValue? _proximityPlacementGroupId; /// /// The Kubelet configuration on the agent pool nodes. /// - public BicepValue KubeletConfig { get => _kubeletConfig; set => _kubeletConfig.Assign(value); } - private readonly BicepValue _kubeletConfig; + public KubeletConfig KubeletConfig + { + get { Initialize(); return _kubeletConfig!; } + set { Initialize(); AssignOrReplace(ref _kubeletConfig, value); } + } + private KubeletConfig? _kubeletConfig; /// /// The OS configuration of Linux agent nodes. /// - public BicepValue LinuxOSConfig { get => _linuxOSConfig; set => _linuxOSConfig.Assign(value); } - private readonly BicepValue _linuxOSConfig; + public LinuxOSConfig LinuxOSConfig + { + get { Initialize(); return _linuxOSConfig!; } + set { Initialize(); AssignOrReplace(ref _linuxOSConfig, value); } + } + private LinuxOSConfig? _linuxOSConfig; /// /// This is only supported on certain VM sizes and in certain Azure /// regions. For more information, see: /// https://docs.microsoft.com/azure/aks/enable-host-encryption. /// - public BicepValue EnableEncryptionAtHost { get => _enableEncryptionAtHost; set => _enableEncryptionAtHost.Assign(value); } - private readonly BicepValue _enableEncryptionAtHost; + public BicepValue EnableEncryptionAtHost + { + get { Initialize(); return _enableEncryptionAtHost!; } + set { Initialize(); _enableEncryptionAtHost!.Assign(value); } + } + private BicepValue? _enableEncryptionAtHost; /// /// Whether to enable UltraSSD. /// - public BicepValue EnableUltraSsd { get => _enableUltraSsd; set => _enableUltraSsd.Assign(value); } - private readonly BicepValue _enableUltraSsd; + public BicepValue EnableUltraSsd + { + get { Initialize(); return _enableUltraSsd!; } + set { Initialize(); _enableUltraSsd!.Assign(value); } + } + private BicepValue? _enableUltraSsd; /// /// See [Add a FIPS-enabled node /// pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) /// for more details. /// - public BicepValue EnableFips { get => _enableFips; set => _enableFips.Assign(value); } - private readonly BicepValue _enableFips; + public BicepValue EnableFips + { + get { Initialize(); return _enableFips!; } + set { Initialize(); _enableFips!.Assign(value); } + } + private BicepValue? _enableFips; /// /// GPUInstanceProfile to be used to specify GPU MIG instance profile for /// supported GPU VM SKU. /// - public BicepValue GpuInstanceProfile { get => _gpuInstanceProfile; set => _gpuInstanceProfile.Assign(value); } - private readonly BicepValue _gpuInstanceProfile; + public BicepValue GpuInstanceProfile + { + get { Initialize(); return _gpuInstanceProfile!; } + set { Initialize(); _gpuInstanceProfile!.Assign(value); } + } + private BicepValue? _gpuInstanceProfile; /// /// This is the ARM ID of the source object to be used to create the target /// object. /// - public BicepValue CreationDataSourceResourceId { get => _creationDataSourceResourceId; set => _creationDataSourceResourceId.Assign(value); } - private readonly BicepValue _creationDataSourceResourceId; + public BicepValue CreationDataSourceResourceId + { + get { Initialize(); return _creationDataSourceResourceId!; } + set { Initialize(); _creationDataSourceResourceId!.Assign(value); } + } + private BicepValue? _creationDataSourceResourceId; /// /// AKS will associate the specified agent pool with the Capacity /// Reservation Group. /// - public BicepValue CapacityReservationGroupId { get => _capacityReservationGroupId; set => _capacityReservationGroupId.Assign(value); } - private readonly BicepValue _capacityReservationGroupId; + public BicepValue CapacityReservationGroupId + { + get { Initialize(); return _capacityReservationGroupId!; } + set { Initialize(); _capacityReservationGroupId!.Assign(value); } + } + private BicepValue? _capacityReservationGroupId; /// /// This is of the form: @@ -333,63 +500,80 @@ public partial class ManagedClusterAgentPoolProfile : ProvisionableConstruct /// For more information see [Azure dedicated /// hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). /// - public BicepValue HostGroupId { get => _hostGroupId; set => _hostGroupId.Assign(value); } - private readonly BicepValue _hostGroupId; + public BicepValue HostGroupId + { + get { Initialize(); return _hostGroupId!; } + set { Initialize(); _hostGroupId!.Assign(value); } + } + private BicepValue? _hostGroupId; /// /// Network-related settings of an agent pool. /// - public BicepValue NetworkProfile { get => _networkProfile; set => _networkProfile.Assign(value); } - private readonly BicepValue _networkProfile; + public AgentPoolNetworkProfile NetworkProfile + { + get { Initialize(); return _networkProfile!; } + set { Initialize(); AssignOrReplace(ref _networkProfile, value); } + } + private AgentPoolNetworkProfile? _networkProfile; /// /// Creates a new ManagedClusterAgentPoolProfile. /// public ManagedClusterAgentPoolProfile() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _count = BicepValue.DefineProperty(this, "Count", ["count"]); - _vmSize = BicepValue.DefineProperty(this, "VmSize", ["vmSize"]); - _oSDiskSizeInGB = BicepValue.DefineProperty(this, "OSDiskSizeInGB", ["osDiskSizeGB"]); - _oSDiskType = BicepValue.DefineProperty(this, "OSDiskType", ["osDiskType"]); - _kubeletDiskType = BicepValue.DefineProperty(this, "KubeletDiskType", ["kubeletDiskType"]); - _workloadRuntime = BicepValue.DefineProperty(this, "WorkloadRuntime", ["workloadRuntime"]); - _vnetSubnetId = BicepValue.DefineProperty(this, "VnetSubnetId", ["vnetSubnetID"]); - _podSubnetId = BicepValue.DefineProperty(this, "PodSubnetId", ["podSubnetID"]); - _maxPods = BicepValue.DefineProperty(this, "MaxPods", ["maxPods"]); - _oSType = BicepValue.DefineProperty(this, "OSType", ["osType"]); - _oSSku = BicepValue.DefineProperty(this, "OSSku", ["osSKU"]); - _maxCount = BicepValue.DefineProperty(this, "MaxCount", ["maxCount"]); - _minCount = BicepValue.DefineProperty(this, "MinCount", ["minCount"]); - _enableAutoScaling = BicepValue.DefineProperty(this, "EnableAutoScaling", ["enableAutoScaling"]); - _scaleDownMode = BicepValue.DefineProperty(this, "ScaleDownMode", ["scaleDownMode"]); - _agentPoolType = BicepValue.DefineProperty(this, "AgentPoolType", ["type"]); - _mode = BicepValue.DefineProperty(this, "Mode", ["mode"]); - _orchestratorVersion = BicepValue.DefineProperty(this, "OrchestratorVersion", ["orchestratorVersion"]); - _currentOrchestratorVersion = BicepValue.DefineProperty(this, "CurrentOrchestratorVersion", ["currentOrchestratorVersion"], isOutput: true); - _nodeImageVersion = BicepValue.DefineProperty(this, "NodeImageVersion", ["nodeImageVersion"], isOutput: true); - _upgradeSettings = BicepValue.DefineProperty(this, "UpgradeSettings", ["upgradeSettings"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); - _powerStateCode = BicepValue.DefineProperty(this, "PowerStateCode", ["powerState", "code"]); - _availabilityZones = BicepList.DefineProperty(this, "AvailabilityZones", ["availabilityZones"]); - _enableNodePublicIP = BicepValue.DefineProperty(this, "EnableNodePublicIP", ["enableNodePublicIP"]); - _nodePublicIPPrefixId = BicepValue.DefineProperty(this, "NodePublicIPPrefixId", ["nodePublicIPPrefixID"]); - _scaleSetPriority = BicepValue.DefineProperty(this, "ScaleSetPriority", ["scaleSetPriority"]); - _scaleSetEvictionPolicy = BicepValue.DefineProperty(this, "ScaleSetEvictionPolicy", ["scaleSetEvictionPolicy"]); - _spotMaxPrice = BicepValue.DefineProperty(this, "SpotMaxPrice", ["spotMaxPrice"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _nodeLabels = BicepDictionary.DefineProperty(this, "NodeLabels", ["nodeLabels"]); - _nodeTaints = BicepList.DefineProperty(this, "NodeTaints", ["nodeTaints"]); - _proximityPlacementGroupId = BicepValue.DefineProperty(this, "ProximityPlacementGroupId", ["proximityPlacementGroupID"]); - _kubeletConfig = BicepValue.DefineProperty(this, "KubeletConfig", ["kubeletConfig"]); - _linuxOSConfig = BicepValue.DefineProperty(this, "LinuxOSConfig", ["linuxOSConfig"]); - _enableEncryptionAtHost = BicepValue.DefineProperty(this, "EnableEncryptionAtHost", ["enableEncryptionAtHost"]); - _enableUltraSsd = BicepValue.DefineProperty(this, "EnableUltraSsd", ["enableUltraSSD"]); - _enableFips = BicepValue.DefineProperty(this, "EnableFips", ["enableFIPS"]); - _gpuInstanceProfile = BicepValue.DefineProperty(this, "GpuInstanceProfile", ["gpuInstanceProfile"]); - _creationDataSourceResourceId = BicepValue.DefineProperty(this, "CreationDataSourceResourceId", ["creationData", "sourceResourceId"]); - _capacityReservationGroupId = BicepValue.DefineProperty(this, "CapacityReservationGroupId", ["capacityReservationGroupID"]); - _hostGroupId = BicepValue.DefineProperty(this, "HostGroupId", ["hostGroupID"]); - _networkProfile = BicepValue.DefineProperty(this, "NetworkProfile", ["networkProfile"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterAgentPoolProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _count = DefineProperty("Count", ["count"]); + _vmSize = DefineProperty("VmSize", ["vmSize"]); + _oSDiskSizeInGB = DefineProperty("OSDiskSizeInGB", ["osDiskSizeGB"]); + _oSDiskType = DefineProperty("OSDiskType", ["osDiskType"]); + _kubeletDiskType = DefineProperty("KubeletDiskType", ["kubeletDiskType"]); + _workloadRuntime = DefineProperty("WorkloadRuntime", ["workloadRuntime"]); + _vnetSubnetId = DefineProperty("VnetSubnetId", ["vnetSubnetID"]); + _podSubnetId = DefineProperty("PodSubnetId", ["podSubnetID"]); + _maxPods = DefineProperty("MaxPods", ["maxPods"]); + _oSType = DefineProperty("OSType", ["osType"]); + _oSSku = DefineProperty("OSSku", ["osSKU"]); + _maxCount = DefineProperty("MaxCount", ["maxCount"]); + _minCount = DefineProperty("MinCount", ["minCount"]); + _enableAutoScaling = DefineProperty("EnableAutoScaling", ["enableAutoScaling"]); + _scaleDownMode = DefineProperty("ScaleDownMode", ["scaleDownMode"]); + _agentPoolType = DefineProperty("AgentPoolType", ["type"]); + _mode = DefineProperty("Mode", ["mode"]); + _orchestratorVersion = DefineProperty("OrchestratorVersion", ["orchestratorVersion"]); + _currentOrchestratorVersion = DefineProperty("CurrentOrchestratorVersion", ["currentOrchestratorVersion"], isOutput: true); + _nodeImageVersion = DefineProperty("NodeImageVersion", ["nodeImageVersion"], isOutput: true); + _upgradeSettings = DefineModelProperty("UpgradeSettings", ["upgradeSettings"]); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _powerStateCode = DefineProperty("PowerStateCode", ["powerState", "code"]); + _availabilityZones = DefineListProperty("AvailabilityZones", ["availabilityZones"]); + _enableNodePublicIP = DefineProperty("EnableNodePublicIP", ["enableNodePublicIP"]); + _nodePublicIPPrefixId = DefineProperty("NodePublicIPPrefixId", ["nodePublicIPPrefixID"]); + _scaleSetPriority = DefineProperty("ScaleSetPriority", ["scaleSetPriority"]); + _scaleSetEvictionPolicy = DefineProperty("ScaleSetEvictionPolicy", ["scaleSetEvictionPolicy"]); + _spotMaxPrice = DefineProperty("SpotMaxPrice", ["spotMaxPrice"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _nodeLabels = DefineDictionaryProperty("NodeLabels", ["nodeLabels"]); + _nodeTaints = DefineListProperty("NodeTaints", ["nodeTaints"]); + _proximityPlacementGroupId = DefineProperty("ProximityPlacementGroupId", ["proximityPlacementGroupID"]); + _kubeletConfig = DefineModelProperty("KubeletConfig", ["kubeletConfig"]); + _linuxOSConfig = DefineModelProperty("LinuxOSConfig", ["linuxOSConfig"]); + _enableEncryptionAtHost = DefineProperty("EnableEncryptionAtHost", ["enableEncryptionAtHost"]); + _enableUltraSsd = DefineProperty("EnableUltraSsd", ["enableUltraSSD"]); + _enableFips = DefineProperty("EnableFips", ["enableFIPS"]); + _gpuInstanceProfile = DefineProperty("GpuInstanceProfile", ["gpuInstanceProfile"]); + _creationDataSourceResourceId = DefineProperty("CreationDataSourceResourceId", ["creationData", "sourceResourceId"]); + _capacityReservationGroupId = DefineProperty("CapacityReservationGroupId", ["capacityReservationGroupID"]); + _hostGroupId = DefineProperty("HostGroupId", ["hostGroupID"]); + _networkProfile = DefineModelProperty("NetworkProfile", ["networkProfile"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.cs index 4600ea41f2a5e..8856fb1a14c27 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -21,45 +23,74 @@ public partial class ManagedClusterApiServerAccessProfile : ProvisionableConstru /// see [API server authorized IP /// ranges](https://docs.microsoft.com/azure/aks/api-server-authorized-ip-ranges). /// - public BicepList AuthorizedIPRanges { get => _authorizedIPRanges; set => _authorizedIPRanges.Assign(value); } - private readonly BicepList _authorizedIPRanges; + public BicepList AuthorizedIPRanges + { + get { Initialize(); return _authorizedIPRanges!; } + set { Initialize(); _authorizedIPRanges!.Assign(value); } + } + private BicepList? _authorizedIPRanges; /// /// For more details, see [Creating a private AKS /// cluster](https://docs.microsoft.com/azure/aks/private-clusters). /// - public BicepValue EnablePrivateCluster { get => _enablePrivateCluster; set => _enablePrivateCluster.Assign(value); } - private readonly BicepValue _enablePrivateCluster; + public BicepValue EnablePrivateCluster + { + get { Initialize(); return _enablePrivateCluster!; } + set { Initialize(); _enablePrivateCluster!.Assign(value); } + } + private BicepValue? _enablePrivateCluster; /// /// The default is System. For more details see [configure private DNS /// zone](https://docs.microsoft.com/azure/aks/private-clusters#configure-private-dns-zone). /// Allowed values are 'system' and 'none'. /// - public BicepValue PrivateDnsZone { get => _privateDnsZone; set => _privateDnsZone.Assign(value); } - private readonly BicepValue _privateDnsZone; + public BicepValue PrivateDnsZone + { + get { Initialize(); return _privateDnsZone!; } + set { Initialize(); _privateDnsZone!.Assign(value); } + } + private BicepValue? _privateDnsZone; /// /// Whether to create additional public FQDN for private cluster or not. /// - public BicepValue EnablePrivateClusterPublicFqdn { get => _enablePrivateClusterPublicFqdn; set => _enablePrivateClusterPublicFqdn.Assign(value); } - private readonly BicepValue _enablePrivateClusterPublicFqdn; + public BicepValue EnablePrivateClusterPublicFqdn + { + get { Initialize(); return _enablePrivateClusterPublicFqdn!; } + set { Initialize(); _enablePrivateClusterPublicFqdn!.Assign(value); } + } + private BicepValue? _enablePrivateClusterPublicFqdn; /// /// Whether to disable run command for the cluster or not. /// - public BicepValue DisableRunCommand { get => _disableRunCommand; set => _disableRunCommand.Assign(value); } - private readonly BicepValue _disableRunCommand; + public BicepValue DisableRunCommand + { + get { Initialize(); return _disableRunCommand!; } + set { Initialize(); _disableRunCommand!.Assign(value); } + } + private BicepValue? _disableRunCommand; /// /// Creates a new ManagedClusterApiServerAccessProfile. /// public ManagedClusterApiServerAccessProfile() { - _authorizedIPRanges = BicepList.DefineProperty(this, "AuthorizedIPRanges", ["authorizedIPRanges"]); - _enablePrivateCluster = BicepValue.DefineProperty(this, "EnablePrivateCluster", ["enablePrivateCluster"]); - _privateDnsZone = BicepValue.DefineProperty(this, "PrivateDnsZone", ["privateDNSZone"]); - _enablePrivateClusterPublicFqdn = BicepValue.DefineProperty(this, "EnablePrivateClusterPublicFqdn", ["enablePrivateClusterPublicFQDN"]); - _disableRunCommand = BicepValue.DefineProperty(this, "DisableRunCommand", ["disableRunCommand"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterApiServerAccessProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _authorizedIPRanges = DefineListProperty("AuthorizedIPRanges", ["authorizedIPRanges"]); + _enablePrivateCluster = DefineProperty("EnablePrivateCluster", ["enablePrivateCluster"]); + _privateDnsZone = DefineProperty("PrivateDnsZone", ["privateDNSZone"]); + _enablePrivateClusterPublicFqdn = DefineProperty("EnablePrivateClusterPublicFqdn", ["enablePrivateClusterPublicFQDN"]); + _disableRunCommand = DefineProperty("DisableRunCommand", ["disableRunCommand"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAutoScalerProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAutoScalerProfile.cs index 0d389e003e56a..dada901dcfc41 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAutoScalerProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAutoScalerProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,41 +18,65 @@ public partial class ManagedClusterAutoScalerProfile : ProvisionableConstruct /// /// Valid values are 'true' and 'false'. /// - public BicepValue BalanceSimilarNodeGroups { get => _balanceSimilarNodeGroups; set => _balanceSimilarNodeGroups.Assign(value); } - private readonly BicepValue _balanceSimilarNodeGroups; + public BicepValue BalanceSimilarNodeGroups + { + get { Initialize(); return _balanceSimilarNodeGroups!; } + set { Initialize(); _balanceSimilarNodeGroups!.Assign(value); } + } + private BicepValue? _balanceSimilarNodeGroups; /// /// If not specified, the default is 'random'. See /// [expanders](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders) /// for more information. /// - public BicepValue Expander { get => _expander; set => _expander.Assign(value); } - private readonly BicepValue _expander; + public BicepValue Expander + { + get { Initialize(); return _expander!; } + set { Initialize(); _expander!.Assign(value); } + } + private BicepValue? _expander; /// /// The default is 10. /// - public BicepValue MaxEmptyBulkDelete { get => _maxEmptyBulkDelete; set => _maxEmptyBulkDelete.Assign(value); } - private readonly BicepValue _maxEmptyBulkDelete; + public BicepValue MaxEmptyBulkDelete + { + get { Initialize(); return _maxEmptyBulkDelete!; } + set { Initialize(); _maxEmptyBulkDelete!.Assign(value); } + } + private BicepValue? _maxEmptyBulkDelete; /// /// The default is 600. /// - public BicepValue MaxGracefulTerminationSec { get => _maxGracefulTerminationSec; set => _maxGracefulTerminationSec.Assign(value); } - private readonly BicepValue _maxGracefulTerminationSec; + public BicepValue MaxGracefulTerminationSec + { + get { Initialize(); return _maxGracefulTerminationSec!; } + set { Initialize(); _maxGracefulTerminationSec!.Assign(value); } + } + private BicepValue? _maxGracefulTerminationSec; /// /// The default is '15m'. Values must be an integer followed by /// an 'm'. No unit of time other than minutes (m) is supported. /// - public BicepValue MaxNodeProvisionTime { get => _maxNodeProvisionTime; set => _maxNodeProvisionTime.Assign(value); } - private readonly BicepValue _maxNodeProvisionTime; + public BicepValue MaxNodeProvisionTime + { + get { Initialize(); return _maxNodeProvisionTime!; } + set { Initialize(); _maxNodeProvisionTime!.Assign(value); } + } + private BicepValue? _maxNodeProvisionTime; /// /// The default is 45. The maximum is 100 and the minimum is 0. /// - public BicepValue MaxTotalUnreadyPercentage { get => _maxTotalUnreadyPercentage; set => _maxTotalUnreadyPercentage.Assign(value); } - private readonly BicepValue _maxTotalUnreadyPercentage; + public BicepValue MaxTotalUnreadyPercentage + { + get { Initialize(); return _maxTotalUnreadyPercentage!; } + set { Initialize(); _maxTotalUnreadyPercentage!.Assign(value); } + } + private BicepValue? _maxTotalUnreadyPercentage; /// /// For scenarios like burst/batch scale where you don't want CA to @@ -60,96 +86,149 @@ public partial class ManagedClusterAutoScalerProfile : ProvisionableConstruct /// by a unit ('s' for seconds, 'm' for minutes, /// 'h' for hours, etc). /// - public BicepValue NewPodScaleUpDelay { get => _newPodScaleUpDelay; set => _newPodScaleUpDelay.Assign(value); } - private readonly BicepValue _newPodScaleUpDelay; + public BicepValue NewPodScaleUpDelay + { + get { Initialize(); return _newPodScaleUpDelay!; } + set { Initialize(); _newPodScaleUpDelay!.Assign(value); } + } + private BicepValue? _newPodScaleUpDelay; /// /// This must be an integer. The default is 3. /// - public BicepValue OkTotalUnreadyCount { get => _okTotalUnreadyCount; set => _okTotalUnreadyCount.Assign(value); } - private readonly BicepValue _okTotalUnreadyCount; + public BicepValue OkTotalUnreadyCount + { + get { Initialize(); return _okTotalUnreadyCount!; } + set { Initialize(); _okTotalUnreadyCount!.Assign(value); } + } + private BicepValue? _okTotalUnreadyCount; /// /// The default is '10'. Values must be an integer number of /// seconds. /// - public BicepValue ScanIntervalInSeconds { get => _scanIntervalInSeconds; set => _scanIntervalInSeconds.Assign(value); } - private readonly BicepValue _scanIntervalInSeconds; + public BicepValue ScanIntervalInSeconds + { + get { Initialize(); return _scanIntervalInSeconds!; } + set { Initialize(); _scanIntervalInSeconds!.Assign(value); } + } + private BicepValue? _scanIntervalInSeconds; /// /// The default is '10m'. Values must be an integer followed by /// an 'm'. No unit of time other than minutes (m) is supported. /// - public BicepValue ScaleDownDelayAfterAdd { get => _scaleDownDelayAfterAdd; set => _scaleDownDelayAfterAdd.Assign(value); } - private readonly BicepValue _scaleDownDelayAfterAdd; + public BicepValue ScaleDownDelayAfterAdd + { + get { Initialize(); return _scaleDownDelayAfterAdd!; } + set { Initialize(); _scaleDownDelayAfterAdd!.Assign(value); } + } + private BicepValue? _scaleDownDelayAfterAdd; /// /// The default is the scan-interval. Values must be an integer followed by /// an 'm'. No unit of time other than minutes (m) is supported. /// - public BicepValue ScaleDownDelayAfterDelete { get => _scaleDownDelayAfterDelete; set => _scaleDownDelayAfterDelete.Assign(value); } - private readonly BicepValue _scaleDownDelayAfterDelete; + public BicepValue ScaleDownDelayAfterDelete + { + get { Initialize(); return _scaleDownDelayAfterDelete!; } + set { Initialize(); _scaleDownDelayAfterDelete!.Assign(value); } + } + private BicepValue? _scaleDownDelayAfterDelete; /// /// The default is '3m'. Values must be an integer followed by an /// 'm'. No unit of time other than minutes (m) is supported. /// - public BicepValue ScaleDownDelayAfterFailure { get => _scaleDownDelayAfterFailure; set => _scaleDownDelayAfterFailure.Assign(value); } - private readonly BicepValue _scaleDownDelayAfterFailure; + public BicepValue ScaleDownDelayAfterFailure + { + get { Initialize(); return _scaleDownDelayAfterFailure!; } + set { Initialize(); _scaleDownDelayAfterFailure!.Assign(value); } + } + private BicepValue? _scaleDownDelayAfterFailure; /// /// The default is '10m'. Values must be an integer followed by /// an 'm'. No unit of time other than minutes (m) is supported. /// - public BicepValue ScaleDownUnneededTime { get => _scaleDownUnneededTime; set => _scaleDownUnneededTime.Assign(value); } - private readonly BicepValue _scaleDownUnneededTime; + public BicepValue ScaleDownUnneededTime + { + get { Initialize(); return _scaleDownUnneededTime!; } + set { Initialize(); _scaleDownUnneededTime!.Assign(value); } + } + private BicepValue? _scaleDownUnneededTime; /// /// The default is '20m'. Values must be an integer followed by /// an 'm'. No unit of time other than minutes (m) is supported. /// - public BicepValue ScaleDownUnreadyTime { get => _scaleDownUnreadyTime; set => _scaleDownUnreadyTime.Assign(value); } - private readonly BicepValue _scaleDownUnreadyTime; + public BicepValue ScaleDownUnreadyTime + { + get { Initialize(); return _scaleDownUnreadyTime!; } + set { Initialize(); _scaleDownUnreadyTime!.Assign(value); } + } + private BicepValue? _scaleDownUnreadyTime; /// /// The default is '0.5'. /// - public BicepValue ScaleDownUtilizationThreshold { get => _scaleDownUtilizationThreshold; set => _scaleDownUtilizationThreshold.Assign(value); } - private readonly BicepValue _scaleDownUtilizationThreshold; + public BicepValue ScaleDownUtilizationThreshold + { + get { Initialize(); return _scaleDownUtilizationThreshold!; } + set { Initialize(); _scaleDownUtilizationThreshold!.Assign(value); } + } + private BicepValue? _scaleDownUtilizationThreshold; /// /// The default is true. /// - public BicepValue SkipNodesWithLocalStorage { get => _skipNodesWithLocalStorage; set => _skipNodesWithLocalStorage.Assign(value); } - private readonly BicepValue _skipNodesWithLocalStorage; + public BicepValue SkipNodesWithLocalStorage + { + get { Initialize(); return _skipNodesWithLocalStorage!; } + set { Initialize(); _skipNodesWithLocalStorage!.Assign(value); } + } + private BicepValue? _skipNodesWithLocalStorage; /// /// The default is true. /// - public BicepValue SkipNodesWithSystemPods { get => _skipNodesWithSystemPods; set => _skipNodesWithSystemPods.Assign(value); } - private readonly BicepValue _skipNodesWithSystemPods; + public BicepValue SkipNodesWithSystemPods + { + get { Initialize(); return _skipNodesWithSystemPods!; } + set { Initialize(); _skipNodesWithSystemPods!.Assign(value); } + } + private BicepValue? _skipNodesWithSystemPods; /// /// Creates a new ManagedClusterAutoScalerProfile. /// public ManagedClusterAutoScalerProfile() { - _balanceSimilarNodeGroups = BicepValue.DefineProperty(this, "BalanceSimilarNodeGroups", ["balance-similar-node-groups"]); - _expander = BicepValue.DefineProperty(this, "Expander", ["expander"]); - _maxEmptyBulkDelete = BicepValue.DefineProperty(this, "MaxEmptyBulkDelete", ["max-empty-bulk-delete"]); - _maxGracefulTerminationSec = BicepValue.DefineProperty(this, "MaxGracefulTerminationSec", ["max-graceful-termination-sec"]); - _maxNodeProvisionTime = BicepValue.DefineProperty(this, "MaxNodeProvisionTime", ["max-node-provision-time"]); - _maxTotalUnreadyPercentage = BicepValue.DefineProperty(this, "MaxTotalUnreadyPercentage", ["max-total-unready-percentage"]); - _newPodScaleUpDelay = BicepValue.DefineProperty(this, "NewPodScaleUpDelay", ["new-pod-scale-up-delay"]); - _okTotalUnreadyCount = BicepValue.DefineProperty(this, "OkTotalUnreadyCount", ["ok-total-unready-count"]); - _scanIntervalInSeconds = BicepValue.DefineProperty(this, "ScanIntervalInSeconds", ["scan-interval"]); - _scaleDownDelayAfterAdd = BicepValue.DefineProperty(this, "ScaleDownDelayAfterAdd", ["scale-down-delay-after-add"]); - _scaleDownDelayAfterDelete = BicepValue.DefineProperty(this, "ScaleDownDelayAfterDelete", ["scale-down-delay-after-delete"]); - _scaleDownDelayAfterFailure = BicepValue.DefineProperty(this, "ScaleDownDelayAfterFailure", ["scale-down-delay-after-failure"]); - _scaleDownUnneededTime = BicepValue.DefineProperty(this, "ScaleDownUnneededTime", ["scale-down-unneeded-time"]); - _scaleDownUnreadyTime = BicepValue.DefineProperty(this, "ScaleDownUnreadyTime", ["scale-down-unready-time"]); - _scaleDownUtilizationThreshold = BicepValue.DefineProperty(this, "ScaleDownUtilizationThreshold", ["scale-down-utilization-threshold"]); - _skipNodesWithLocalStorage = BicepValue.DefineProperty(this, "SkipNodesWithLocalStorage", ["skip-nodes-with-local-storage"]); - _skipNodesWithSystemPods = BicepValue.DefineProperty(this, "SkipNodesWithSystemPods", ["skip-nodes-with-system-pods"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterAutoScalerProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _balanceSimilarNodeGroups = DefineProperty("BalanceSimilarNodeGroups", ["balance-similar-node-groups"]); + _expander = DefineProperty("Expander", ["expander"]); + _maxEmptyBulkDelete = DefineProperty("MaxEmptyBulkDelete", ["max-empty-bulk-delete"]); + _maxGracefulTerminationSec = DefineProperty("MaxGracefulTerminationSec", ["max-graceful-termination-sec"]); + _maxNodeProvisionTime = DefineProperty("MaxNodeProvisionTime", ["max-node-provision-time"]); + _maxTotalUnreadyPercentage = DefineProperty("MaxTotalUnreadyPercentage", ["max-total-unready-percentage"]); + _newPodScaleUpDelay = DefineProperty("NewPodScaleUpDelay", ["new-pod-scale-up-delay"]); + _okTotalUnreadyCount = DefineProperty("OkTotalUnreadyCount", ["ok-total-unready-count"]); + _scanIntervalInSeconds = DefineProperty("ScanIntervalInSeconds", ["scan-interval"]); + _scaleDownDelayAfterAdd = DefineProperty("ScaleDownDelayAfterAdd", ["scale-down-delay-after-add"]); + _scaleDownDelayAfterDelete = DefineProperty("ScaleDownDelayAfterDelete", ["scale-down-delay-after-delete"]); + _scaleDownDelayAfterFailure = DefineProperty("ScaleDownDelayAfterFailure", ["scale-down-delay-after-failure"]); + _scaleDownUnneededTime = DefineProperty("ScaleDownUnneededTime", ["scale-down-unneeded-time"]); + _scaleDownUnreadyTime = DefineProperty("ScaleDownUnreadyTime", ["scale-down-unready-time"]); + _scaleDownUtilizationThreshold = DefineProperty("ScaleDownUtilizationThreshold", ["scale-down-utilization-threshold"]); + _skipNodesWithLocalStorage = DefineProperty("SkipNodesWithLocalStorage", ["skip-nodes-with-local-storage"]); + _skipNodesWithSystemPods = DefineProperty("SkipNodesWithSystemPods", ["skip-nodes-with-system-pods"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAutoUpgradeProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAutoUpgradeProfile.cs index a18e90af1ddaf..02a6fd639e8d2 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAutoUpgradeProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterAutoUpgradeProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.ContainerService; @@ -16,22 +18,39 @@ public partial class ManagedClusterAutoUpgradeProfile : ProvisionableConstruct /// For more information see [setting the AKS cluster auto-upgrade /// channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel). /// - public BicepValue UpgradeChannel { get => _upgradeChannel; set => _upgradeChannel.Assign(value); } - private readonly BicepValue _upgradeChannel; + public BicepValue UpgradeChannel + { + get { Initialize(); return _upgradeChannel!; } + set { Initialize(); _upgradeChannel!.Assign(value); } + } + private BicepValue? _upgradeChannel; /// /// Manner in which the OS on your nodes is updated. The default is /// NodeImage. /// - public BicepValue NodeOSUpgradeChannel { get => _nodeOSUpgradeChannel; set => _nodeOSUpgradeChannel.Assign(value); } - private readonly BicepValue _nodeOSUpgradeChannel; + public BicepValue NodeOSUpgradeChannel + { + get { Initialize(); return _nodeOSUpgradeChannel!; } + set { Initialize(); _nodeOSUpgradeChannel!.Assign(value); } + } + private BicepValue? _nodeOSUpgradeChannel; /// /// Creates a new ManagedClusterAutoUpgradeProfile. /// public ManagedClusterAutoUpgradeProfile() { - _upgradeChannel = BicepValue.DefineProperty(this, "UpgradeChannel", ["upgradeChannel"]); - _nodeOSUpgradeChannel = BicepValue.DefineProperty(this, "NodeOSUpgradeChannel", ["nodeOSUpgradeChannel"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterAutoUpgradeProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _upgradeChannel = DefineProperty("UpgradeChannel", ["upgradeChannel"]); + _nodeOSUpgradeChannel = DefineProperty("NodeOSUpgradeChannel", ["nodeOSUpgradeChannel"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterDelegatedIdentity.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterDelegatedIdentity.cs index 4bf1dd7fe38e3..3105b21eae7db 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterDelegatedIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterDelegatedIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,36 +19,61 @@ public partial class ManagedClusterDelegatedIdentity : ProvisionableConstruct /// /// The ARM resource id of the delegated resource - internal use only. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// The tenant id of the delegated resource - internal use only. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// The delegation id of the referral delegation (optional) - internal use /// only. /// - public BicepValue ReferralResource { get => _referralResource; set => _referralResource.Assign(value); } - private readonly BicepValue _referralResource; + public BicepValue ReferralResource + { + get { Initialize(); return _referralResource!; } + set { Initialize(); _referralResource!.Assign(value); } + } + private BicepValue? _referralResource; /// /// The source resource location - internal use only. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Creates a new ManagedClusterDelegatedIdentity. /// public ManagedClusterDelegatedIdentity() { - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["resourceId"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"]); - _referralResource = BicepValue.DefineProperty(this, "ReferralResource", ["referralResource"]); - _location = BicepValue.DefineProperty(this, "Location", ["location"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterDelegatedIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _resourceId = DefineProperty("ResourceId", ["resourceId"]); + _tenantId = DefineProperty("TenantId", ["tenantId"]); + _referralResource = DefineProperty("ReferralResource", ["referralResource"]); + _location = DefineProperty("Location", ["location"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.cs index 4146ed7442a69..3489dbf308f3c 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,60 @@ public partial class ManagedClusterHttpProxyConfig : ProvisionableConstruct /// /// The HTTP proxy server endpoint to use. /// - public BicepValue HttpProxy { get => _httpProxy; set => _httpProxy.Assign(value); } - private readonly BicepValue _httpProxy; + public BicepValue HttpProxy + { + get { Initialize(); return _httpProxy!; } + set { Initialize(); _httpProxy!.Assign(value); } + } + private BicepValue? _httpProxy; /// /// The HTTPS proxy server endpoint to use. /// - public BicepValue HttpsProxy { get => _httpsProxy; set => _httpsProxy.Assign(value); } - private readonly BicepValue _httpsProxy; + public BicepValue HttpsProxy + { + get { Initialize(); return _httpsProxy!; } + set { Initialize(); _httpsProxy!.Assign(value); } + } + private BicepValue? _httpsProxy; /// /// The endpoints that should not go through proxy. /// - public BicepList NoProxy { get => _noProxy; set => _noProxy.Assign(value); } - private readonly BicepList _noProxy; + public BicepList NoProxy + { + get { Initialize(); return _noProxy!; } + set { Initialize(); _noProxy!.Assign(value); } + } + private BicepList? _noProxy; /// /// Alternative CA cert to use for connecting to proxy servers. /// - public BicepValue TrustedCA { get => _trustedCA; set => _trustedCA.Assign(value); } - private readonly BicepValue _trustedCA; + public BicepValue TrustedCA + { + get { Initialize(); return _trustedCA!; } + set { Initialize(); _trustedCA!.Assign(value); } + } + private BicepValue? _trustedCA; /// /// Creates a new ManagedClusterHttpProxyConfig. /// public ManagedClusterHttpProxyConfig() { - _httpProxy = BicepValue.DefineProperty(this, "HttpProxy", ["httpProxy"]); - _httpsProxy = BicepValue.DefineProperty(this, "HttpsProxy", ["httpsProxy"]); - _noProxy = BicepList.DefineProperty(this, "NoProxy", ["noProxy"]); - _trustedCA = BicepValue.DefineProperty(this, "TrustedCA", ["trustedCa"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterHttpProxyConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _httpProxy = DefineProperty("HttpProxy", ["httpProxy"]); + _httpsProxy = DefineProperty("HttpsProxy", ["httpsProxy"]); + _noProxy = DefineListProperty("NoProxy", ["noProxy"]); + _trustedCA = DefineProperty("TrustedCA", ["trustedCa"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterIdentity.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterIdentity.cs index bd37e0cb8b42d..d60ec70744d31 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -22,24 +24,34 @@ public partial class ManagedClusterIdentity : ProvisionableConstruct /// master components. Serialized Name: /// ManagedClusterIdentity.principalId /// - public BicepValue PrincipalId { get => _principalId; } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + } + private BicepValue? _principalId; /// /// The tenant id of the system assigned identity which is used by master /// components. Serialized Name: /// ManagedClusterIdentity.tenantId /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// For more information see [use managed identities in /// AKS](https://docs.microsoft.com/azure/aks/use-managed-identity). /// Serialized Name: ManagedClusterIdentity.type /// - public BicepValue ResourceIdentityType { get => _resourceIdentityType; set => _resourceIdentityType.Assign(value); } - private readonly BicepValue _resourceIdentityType; + public BicepValue ResourceIdentityType + { + get { Initialize(); return _resourceIdentityType!; } + set { Initialize(); _resourceIdentityType!.Assign(value); } + } + private BicepValue? _resourceIdentityType; /// /// The delegated identity resources assigned to this managed cluster. This @@ -48,8 +60,12 @@ public partial class ManagedClusterIdentity : ProvisionableConstruct /// only. Serialized Name: /// ManagedClusterIdentity.delegatedResources /// - public BicepDictionary DelegatedResources { get => _delegatedResources; set => _delegatedResources.Assign(value); } - private readonly BicepDictionary _delegatedResources; + public BicepDictionary DelegatedResources + { + get { Initialize(); return _delegatedResources!; } + set { Initialize(); _delegatedResources!.Assign(value); } + } + private BicepDictionary? _delegatedResources; /// /// The keys must be ARM resource IDs in the form: @@ -57,18 +73,30 @@ public partial class ManagedClusterIdentity : ProvisionableConstruct /// Serialized Name: /// ManagedClusterIdentity.userAssignedIdentities /// - public BicepDictionary UserAssignedIdentities { get => _userAssignedIdentities; set => _userAssignedIdentities.Assign(value); } - private readonly BicepDictionary _userAssignedIdentities; + public BicepDictionary UserAssignedIdentities + { + get { Initialize(); return _userAssignedIdentities!; } + set { Initialize(); _userAssignedIdentities!.Assign(value); } + } + private BicepDictionary? _userAssignedIdentities; /// /// Creates a new ManagedClusterIdentity. /// public ManagedClusterIdentity() { - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["principalId"], isOutput: true); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); - _resourceIdentityType = BicepValue.DefineProperty(this, "ResourceIdentityType", ["type"]); - _delegatedResources = BicepDictionary.DefineProperty(this, "DelegatedResources", ["delegatedResources"]); - _userAssignedIdentities = BicepDictionary.DefineProperty(this, "UserAssignedIdentities", ["userAssignedIdentities"]); + } + + /// + /// Define all the provisionable properties of ManagedClusterIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _principalId = DefineProperty("PrincipalId", ["principalId"], isOutput: true); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); + _resourceIdentityType = DefineProperty("ResourceIdentityType", ["type"]); + _delegatedResources = DefineDictionaryProperty("DelegatedResources", ["delegatedResources"]); + _userAssignedIdentities = DefineDictionaryProperty("UserAssignedIdentities", ["userAssignedIdentities"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs index f5d5a20872bd3..3e098a1b853d9 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -19,66 +21,107 @@ public partial class ManagedClusterLoadBalancerProfile : ProvisionableConstruct /// /// Desired managed outbound IPs for the cluster load balancer. /// - public BicepValue ManagedOutboundIPs { get => _managedOutboundIPs; set => _managedOutboundIPs.Assign(value); } - private readonly BicepValue _managedOutboundIPs; + public ManagedClusterLoadBalancerProfileManagedOutboundIPs ManagedOutboundIPs + { + get { Initialize(); return _managedOutboundIPs!; } + set { Initialize(); AssignOrReplace(ref _managedOutboundIPs, value); } + } + private ManagedClusterLoadBalancerProfileManagedOutboundIPs? _managedOutboundIPs; /// /// A list of public IP prefix resources. /// - public BicepList OutboundPublicIPPrefixes { get => _outboundPublicIPPrefixes; set => _outboundPublicIPPrefixes.Assign(value); } - private readonly BicepList _outboundPublicIPPrefixes; + public BicepList OutboundPublicIPPrefixes + { + get { Initialize(); return _outboundPublicIPPrefixes!; } + set { Initialize(); _outboundPublicIPPrefixes!.Assign(value); } + } + private BicepList? _outboundPublicIPPrefixes; /// /// A list of public IP resources. /// - public BicepList OutboundPublicIPs { get => _outboundPublicIPs; set => _outboundPublicIPs.Assign(value); } - private readonly BicepList _outboundPublicIPs; + public BicepList OutboundPublicIPs + { + get { Initialize(); return _outboundPublicIPs!; } + set { Initialize(); _outboundPublicIPs!.Assign(value); } + } + private BicepList? _outboundPublicIPs; /// /// The effective outbound IP resources of the cluster load balancer. /// - public BicepList EffectiveOutboundIPs { get => _effectiveOutboundIPs; set => _effectiveOutboundIPs.Assign(value); } - private readonly BicepList _effectiveOutboundIPs; + public BicepList EffectiveOutboundIPs + { + get { Initialize(); return _effectiveOutboundIPs!; } + set { Initialize(); _effectiveOutboundIPs!.Assign(value); } + } + private BicepList? _effectiveOutboundIPs; /// /// The desired number of allocated SNAT ports per VM. Allowed values are /// in the range of 0 to 64000 (inclusive). The default value is 0 which /// results in Azure dynamically allocating ports. /// - public BicepValue AllocatedOutboundPorts { get => _allocatedOutboundPorts; set => _allocatedOutboundPorts.Assign(value); } - private readonly BicepValue _allocatedOutboundPorts; + public BicepValue AllocatedOutboundPorts + { + get { Initialize(); return _allocatedOutboundPorts!; } + set { Initialize(); _allocatedOutboundPorts!.Assign(value); } + } + private BicepValue? _allocatedOutboundPorts; /// /// Desired outbound flow idle timeout in minutes. Allowed values are in /// the range of 4 to 120 (inclusive). The default value is 30 minutes. /// - public BicepValue IdleTimeoutInMinutes { get => _idleTimeoutInMinutes; set => _idleTimeoutInMinutes.Assign(value); } - private readonly BicepValue _idleTimeoutInMinutes; + public BicepValue IdleTimeoutInMinutes + { + get { Initialize(); return _idleTimeoutInMinutes!; } + set { Initialize(); _idleTimeoutInMinutes!.Assign(value); } + } + private BicepValue? _idleTimeoutInMinutes; /// /// Enable multiple standard load balancers per AKS cluster or not. /// - public BicepValue EnableMultipleStandardLoadBalancers { get => _enableMultipleStandardLoadBalancers; set => _enableMultipleStandardLoadBalancers.Assign(value); } - private readonly BicepValue _enableMultipleStandardLoadBalancers; + public BicepValue EnableMultipleStandardLoadBalancers + { + get { Initialize(); return _enableMultipleStandardLoadBalancers!; } + set { Initialize(); _enableMultipleStandardLoadBalancers!.Assign(value); } + } + private BicepValue? _enableMultipleStandardLoadBalancers; /// /// The type of the managed inbound Load Balancer BackendPool. /// - public BicepValue BackendPoolType { get => _backendPoolType; set => _backendPoolType.Assign(value); } - private readonly BicepValue _backendPoolType; + public BicepValue BackendPoolType + { + get { Initialize(); return _backendPoolType!; } + set { Initialize(); _backendPoolType!.Assign(value); } + } + private BicepValue? _backendPoolType; /// /// Creates a new ManagedClusterLoadBalancerProfile. /// public ManagedClusterLoadBalancerProfile() { - _managedOutboundIPs = BicepValue.DefineProperty(this, "ManagedOutboundIPs", ["managedOutboundIPs"]); - _outboundPublicIPPrefixes = BicepList.DefineProperty(this, "OutboundPublicIPPrefixes", ["outboundIPPrefixes", "publicIPPrefixes"]); - _outboundPublicIPs = BicepList.DefineProperty(this, "OutboundPublicIPs", ["outboundIPs", "publicIPs"]); - _effectiveOutboundIPs = BicepList.DefineProperty(this, "EffectiveOutboundIPs", ["effectiveOutboundIPs"]); - _allocatedOutboundPorts = BicepValue.DefineProperty(this, "AllocatedOutboundPorts", ["allocatedOutboundPorts"]); - _idleTimeoutInMinutes = BicepValue.DefineProperty(this, "IdleTimeoutInMinutes", ["idleTimeoutInMinutes"]); - _enableMultipleStandardLoadBalancers = BicepValue.DefineProperty(this, "EnableMultipleStandardLoadBalancers", ["enableMultipleStandardLoadBalancers"]); - _backendPoolType = BicepValue.DefineProperty(this, "BackendPoolType", ["backendPoolType"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterLoadBalancerProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _managedOutboundIPs = DefineModelProperty("ManagedOutboundIPs", ["managedOutboundIPs"]); + _outboundPublicIPPrefixes = DefineListProperty("OutboundPublicIPPrefixes", ["outboundIPPrefixes", "publicIPPrefixes"]); + _outboundPublicIPs = DefineListProperty("OutboundPublicIPs", ["outboundIPs", "publicIPs"]); + _effectiveOutboundIPs = DefineListProperty("EffectiveOutboundIPs", ["effectiveOutboundIPs"]); + _allocatedOutboundPorts = DefineProperty("AllocatedOutboundPorts", ["allocatedOutboundPorts"]); + _idleTimeoutInMinutes = DefineProperty("IdleTimeoutInMinutes", ["idleTimeoutInMinutes"]); + _enableMultipleStandardLoadBalancers = DefineProperty("EnableMultipleStandardLoadBalancers", ["enableMultipleStandardLoadBalancers"]); + _backendPoolType = DefineProperty("BackendPoolType", ["backendPoolType"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileManagedOutboundIPs.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileManagedOutboundIPs.cs index 3e8bcd42059fd..1bad7285ad9e3 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileManagedOutboundIPs.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileManagedOutboundIPs.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,8 +20,12 @@ public partial class ManagedClusterLoadBalancerProfileManagedOutboundIPs : Provi /// the cluster load balancer. Allowed values must be in the range of 1 to /// 100 (inclusive). The default value is 1. /// - public BicepValue Count { get => _count; set => _count.Assign(value); } - private readonly BicepValue _count; + public BicepValue Count + { + get { Initialize(); return _count!; } + set { Initialize(); _count!.Assign(value); } + } + private BicepValue? _count; /// /// The desired number of IPv6 outbound IPs created/managed by Azure for @@ -27,15 +33,28 @@ public partial class ManagedClusterLoadBalancerProfileManagedOutboundIPs : Provi /// 100 (inclusive). The default value is 0 for single-stack and 1 for /// dual-stack. /// - public BicepValue CountIPv6 { get => _countIPv6; set => _countIPv6.Assign(value); } - private readonly BicepValue _countIPv6; + public BicepValue CountIPv6 + { + get { Initialize(); return _countIPv6!; } + set { Initialize(); _countIPv6!.Assign(value); } + } + private BicepValue? _countIPv6; /// /// Creates a new ManagedClusterLoadBalancerProfileManagedOutboundIPs. /// public ManagedClusterLoadBalancerProfileManagedOutboundIPs() { - _count = BicepValue.DefineProperty(this, "Count", ["count"]); - _countIPv6 = BicepValue.DefineProperty(this, "CountIPv6", ["countIPv6"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterLoadBalancerProfileManagedOutboundIPs. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _count = DefineProperty("Count", ["count"]); + _countIPv6 = DefineProperty("CountIPv6", ["countIPv6"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileKubeStateMetrics.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileKubeStateMetrics.cs index f28c4d8bb4ad8..6fefb32ba6b67 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileKubeStateMetrics.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileKubeStateMetrics.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -22,8 +24,12 @@ public partial class ManagedClusterMonitorProfileKubeStateMetrics : Provisionabl /// 'namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...'). /// By default the metric contains only resource name and namespace labels. /// - public BicepValue MetricLabelsAllowlist { get => _metricLabelsAllowlist; set => _metricLabelsAllowlist.Assign(value); } - private readonly BicepValue _metricLabelsAllowlist; + public BicepValue MetricLabelsAllowlist + { + get { Initialize(); return _metricLabelsAllowlist!; } + set { Initialize(); _metricLabelsAllowlist!.Assign(value); } + } + private BicepValue? _metricLabelsAllowlist; /// /// Comma-separated list of Kubernetes annotation keys that will be used in @@ -31,15 +37,28 @@ public partial class ManagedClusterMonitorProfileKubeStateMetrics : Provisionabl /// 'namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...'). /// By default the metric contains only resource name and namespace labels. /// - public BicepValue MetricAnnotationsAllowList { get => _metricAnnotationsAllowList; set => _metricAnnotationsAllowList.Assign(value); } - private readonly BicepValue _metricAnnotationsAllowList; + public BicepValue MetricAnnotationsAllowList + { + get { Initialize(); return _metricAnnotationsAllowList!; } + set { Initialize(); _metricAnnotationsAllowList!.Assign(value); } + } + private BicepValue? _metricAnnotationsAllowList; /// /// Creates a new ManagedClusterMonitorProfileKubeStateMetrics. /// public ManagedClusterMonitorProfileKubeStateMetrics() { - _metricLabelsAllowlist = BicepValue.DefineProperty(this, "MetricLabelsAllowlist", ["metricLabelsAllowlist"]); - _metricAnnotationsAllowList = BicepValue.DefineProperty(this, "MetricAnnotationsAllowList", ["metricAnnotationsAllowList"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterMonitorProfileKubeStateMetrics. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _metricLabelsAllowlist = DefineProperty("MetricLabelsAllowlist", ["metricLabelsAllowlist"]); + _metricAnnotationsAllowList = DefineProperty("MetricAnnotationsAllowList", ["metricAnnotationsAllowList"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileMetrics.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileMetrics.cs index d20ba23847bb7..5473a955b7d1d 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileMetrics.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileMetrics.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -21,8 +23,12 @@ public partial class ManagedClusterMonitorProfileMetrics : ProvisionableConstruc /// Prometheus monitoring. See aka.ms/AzureManagedPrometheus-aks-enable /// for details on enabling and disabling. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Kube State Metrics profile for the Azure Managed Prometheus addon. @@ -30,15 +36,28 @@ public partial class ManagedClusterMonitorProfileMetrics : ProvisionableConstruc /// deployed with the addon. See /// aka.ms/AzureManagedPrometheus-optional-parameters for details. /// - public BicepValue KubeStateMetrics { get => _kubeStateMetrics; set => _kubeStateMetrics.Assign(value); } - private readonly BicepValue _kubeStateMetrics; + public ManagedClusterMonitorProfileKubeStateMetrics KubeStateMetrics + { + get { Initialize(); return _kubeStateMetrics!; } + set { Initialize(); AssignOrReplace(ref _kubeStateMetrics, value); } + } + private ManagedClusterMonitorProfileKubeStateMetrics? _kubeStateMetrics; /// /// Creates a new ManagedClusterMonitorProfileMetrics. /// public ManagedClusterMonitorProfileMetrics() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _kubeStateMetrics = BicepValue.DefineProperty(this, "KubeStateMetrics", ["kubeStateMetrics"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterMonitorProfileMetrics. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _kubeStateMetrics = DefineModelProperty("KubeStateMetrics", ["kubeStateMetrics"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterNatGatewayProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterNatGatewayProfile.cs index 92472bc498951..54cb04453261e 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterNatGatewayProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterNatGatewayProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -21,29 +23,50 @@ public partial class ManagedClusterNatGatewayProfile : ProvisionableConstruct /// values must be in the range of 1 to 16 (inclusive). The default value /// is 1. /// - public BicepValue ManagedOutboundIPCount { get => _managedOutboundIPCount; set => _managedOutboundIPCount.Assign(value); } - private readonly BicepValue _managedOutboundIPCount; + public BicepValue ManagedOutboundIPCount + { + get { Initialize(); return _managedOutboundIPCount!; } + set { Initialize(); _managedOutboundIPCount!.Assign(value); } + } + private BicepValue? _managedOutboundIPCount; /// /// The effective outbound IP resources of the cluster NAT gateway. /// - public BicepList EffectiveOutboundIPs { get => _effectiveOutboundIPs; set => _effectiveOutboundIPs.Assign(value); } - private readonly BicepList _effectiveOutboundIPs; + public BicepList EffectiveOutboundIPs + { + get { Initialize(); return _effectiveOutboundIPs!; } + set { Initialize(); _effectiveOutboundIPs!.Assign(value); } + } + private BicepList? _effectiveOutboundIPs; /// /// Desired outbound flow idle timeout in minutes. Allowed values are in /// the range of 4 to 120 (inclusive). The default value is 4 minutes. /// - public BicepValue IdleTimeoutInMinutes { get => _idleTimeoutInMinutes; set => _idleTimeoutInMinutes.Assign(value); } - private readonly BicepValue _idleTimeoutInMinutes; + public BicepValue IdleTimeoutInMinutes + { + get { Initialize(); return _idleTimeoutInMinutes!; } + set { Initialize(); _idleTimeoutInMinutes!.Assign(value); } + } + private BicepValue? _idleTimeoutInMinutes; /// /// Creates a new ManagedClusterNatGatewayProfile. /// public ManagedClusterNatGatewayProfile() { - _managedOutboundIPCount = BicepValue.DefineProperty(this, "ManagedOutboundIPCount", ["managedOutboundIPProfile", "count"]); - _effectiveOutboundIPs = BicepList.DefineProperty(this, "EffectiveOutboundIPs", ["effectiveOutboundIPs"]); - _idleTimeoutInMinutes = BicepValue.DefineProperty(this, "IdleTimeoutInMinutes", ["idleTimeoutInMinutes"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterNatGatewayProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _managedOutboundIPCount = DefineProperty("ManagedOutboundIPCount", ["managedOutboundIPProfile", "count"]); + _effectiveOutboundIPs = DefineListProperty("EffectiveOutboundIPs", ["effectiveOutboundIPs"]); + _idleTimeoutInMinutes = DefineProperty("IdleTimeoutInMinutes", ["idleTimeoutInMinutes"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterOidcIssuerProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterOidcIssuerProfile.cs index b06decc30e015..b8997758d5def 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterOidcIssuerProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterOidcIssuerProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class ManagedClusterOidcIssuerProfile : ProvisionableConstruct /// /// The OIDC issuer url of the Managed Cluster. /// - public BicepValue IssuerUriInfo { get => _issuerUriInfo; } - private readonly BicepValue _issuerUriInfo; + public BicepValue IssuerUriInfo + { + get { Initialize(); return _issuerUriInfo!; } + } + private BicepValue? _issuerUriInfo; /// /// Whether the OIDC issuer is enabled. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Creates a new ManagedClusterOidcIssuerProfile. /// public ManagedClusterOidcIssuerProfile() { - _issuerUriInfo = BicepValue.DefineProperty(this, "IssuerUriInfo", ["issuerURL"], isOutput: true); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterOidcIssuerProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _issuerUriInfo = DefineProperty("IssuerUriInfo", ["issuerURL"], isOutput: true); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterPodIdentity.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterPodIdentity.cs index 27247ddee5fa1..3b7518c00fe44 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterPodIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterPodIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Core; using Azure.Provisioning.Primitives; @@ -18,49 +20,79 @@ public partial class ManagedClusterPodIdentity : ProvisionableConstruct /// /// The name of the pod identity. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The namespace of the pod identity. /// - public BicepValue Namespace { get => _namespace; set => _namespace.Assign(value); } - private readonly BicepValue _namespace; + public BicepValue Namespace + { + get { Initialize(); return _namespace!; } + set { Initialize(); _namespace!.Assign(value); } + } + private BicepValue? _namespace; /// /// The binding selector to use for the AzureIdentityBinding resource. /// - public BicepValue BindingSelector { get => _bindingSelector; set => _bindingSelector.Assign(value); } - private readonly BicepValue _bindingSelector; + public BicepValue BindingSelector + { + get { Initialize(); return _bindingSelector!; } + set { Initialize(); _bindingSelector!.Assign(value); } + } + private BicepValue? _bindingSelector; /// /// The user assigned identity details. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ContainerServiceUserAssignedIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ContainerServiceUserAssignedIdentity? _identity; /// /// The current provisioning state of the pod identity. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Details about the error. /// - public BicepValue ErrorDetail { get => _errorDetail; } - private readonly BicepValue _errorDetail; + public BicepValue ErrorDetail + { + get { Initialize(); return _errorDetail!; } + } + private BicepValue? _errorDetail; /// /// Creates a new ManagedClusterPodIdentity. /// public ManagedClusterPodIdentity() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _namespace = BicepValue.DefineProperty(this, "Namespace", ["namespace"]); - _bindingSelector = BicepValue.DefineProperty(this, "BindingSelector", ["bindingSelector"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); - _errorDetail = BicepValue.DefineProperty(this, "ErrorDetail", ["provisioningInfo", "error", "error"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagedClusterPodIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _namespace = DefineProperty("Namespace", ["namespace"]); + _bindingSelector = DefineProperty("BindingSelector", ["bindingSelector"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _errorDetail = DefineProperty("ErrorDetail", ["provisioningInfo", "error", "error"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterPodIdentityException.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterPodIdentityException.cs index 2d60b1c378b8e..34ced1f9f3551 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterPodIdentityException.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterPodIdentityException.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,28 +21,49 @@ public partial class ManagedClusterPodIdentityException : ProvisionableConstruct /// /// The name of the pod identity exception. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The namespace of the pod identity exception. /// - public BicepValue Namespace { get => _namespace; set => _namespace.Assign(value); } - private readonly BicepValue _namespace; + public BicepValue Namespace + { + get { Initialize(); return _namespace!; } + set { Initialize(); _namespace!.Assign(value); } + } + private BicepValue? _namespace; /// /// The pod labels to match. /// - public BicepDictionary PodLabels { get => _podLabels; set => _podLabels.Assign(value); } - private readonly BicepDictionary _podLabels; + public BicepDictionary PodLabels + { + get { Initialize(); return _podLabels!; } + set { Initialize(); _podLabels!.Assign(value); } + } + private BicepDictionary? _podLabels; /// /// Creates a new ManagedClusterPodIdentityException. /// public ManagedClusterPodIdentityException() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _namespace = BicepValue.DefineProperty(this, "Namespace", ["namespace"]); - _podLabels = BicepDictionary.DefineProperty(this, "PodLabels", ["podLabels"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterPodIdentityException. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _namespace = DefineProperty("Namespace", ["namespace"]); + _podLabels = DefineDictionaryProperty("PodLabels", ["podLabels"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterPodIdentityProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterPodIdentityProfile.cs index f3efd9fb3786d..d347b63c707e9 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterPodIdentityProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterPodIdentityProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Core; using Azure.Provisioning; @@ -21,8 +23,12 @@ public partial class ManagedClusterPodIdentityProfile : ProvisionableConstruct /// /// Whether the pod identity addon is enabled. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Running in Kubenet is disabled by default due to the security related @@ -31,29 +37,50 @@ public partial class ManagedClusterPodIdentityProfile : ProvisionableConstruct /// Identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity#using-kubenet-network-plugin-with-azure-active-directory-pod-managed-identities) /// for more information. /// - public BicepValue AllowNetworkPluginKubenet { get => _allowNetworkPluginKubenet; set => _allowNetworkPluginKubenet.Assign(value); } - private readonly BicepValue _allowNetworkPluginKubenet; + public BicepValue AllowNetworkPluginKubenet + { + get { Initialize(); return _allowNetworkPluginKubenet!; } + set { Initialize(); _allowNetworkPluginKubenet!.Assign(value); } + } + private BicepValue? _allowNetworkPluginKubenet; /// /// The pod identities to use in the cluster. /// - public BicepList UserAssignedIdentities { get => _userAssignedIdentities; set => _userAssignedIdentities.Assign(value); } - private readonly BicepList _userAssignedIdentities; + public BicepList UserAssignedIdentities + { + get { Initialize(); return _userAssignedIdentities!; } + set { Initialize(); _userAssignedIdentities!.Assign(value); } + } + private BicepList? _userAssignedIdentities; /// /// The pod identity exceptions to allow. /// - public BicepList UserAssignedIdentityExceptions { get => _userAssignedIdentityExceptions; set => _userAssignedIdentityExceptions.Assign(value); } - private readonly BicepList _userAssignedIdentityExceptions; + public BicepList UserAssignedIdentityExceptions + { + get { Initialize(); return _userAssignedIdentityExceptions!; } + set { Initialize(); _userAssignedIdentityExceptions!.Assign(value); } + } + private BicepList? _userAssignedIdentityExceptions; /// /// Creates a new ManagedClusterPodIdentityProfile. /// public ManagedClusterPodIdentityProfile() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _allowNetworkPluginKubenet = BicepValue.DefineProperty(this, "AllowNetworkPluginKubenet", ["allowNetworkPluginKubenet"]); - _userAssignedIdentities = BicepList.DefineProperty(this, "UserAssignedIdentities", ["userAssignedIdentities"]); - _userAssignedIdentityExceptions = BicepList.DefineProperty(this, "UserAssignedIdentityExceptions", ["userAssignedIdentityExceptions"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterPodIdentityProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _allowNetworkPluginKubenet = DefineProperty("AllowNetworkPluginKubenet", ["allowNetworkPluginKubenet"]); + _userAssignedIdentities = DefineListProperty("UserAssignedIdentities", ["userAssignedIdentities"]); + _userAssignedIdentityExceptions = DefineListProperty("UserAssignedIdentityExceptions", ["userAssignedIdentityExceptions"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.cs index 18982e28d8046..6d31cc78919b9 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,37 +19,62 @@ public partial class ManagedClusterSecurityProfile : ProvisionableConstruct /// /// Microsoft Defender settings for the security profile. /// - public BicepValue Defender { get => _defender; set => _defender.Assign(value); } - private readonly BicepValue _defender; + public ManagedClusterSecurityProfileDefender Defender + { + get { Initialize(); return _defender!; } + set { Initialize(); AssignOrReplace(ref _defender, value); } + } + private ManagedClusterSecurityProfileDefender? _defender; /// /// Azure Key Vault [key management /// service](https://kubernetes.io/docs/tasks/administer-cluster/kms-provider/) /// settings for the security profile. /// - public BicepValue AzureKeyVaultKms { get => _azureKeyVaultKms; set => _azureKeyVaultKms.Assign(value); } - private readonly BicepValue _azureKeyVaultKms; + public ManagedClusterSecurityProfileKeyVaultKms AzureKeyVaultKms + { + get { Initialize(); return _azureKeyVaultKms!; } + set { Initialize(); AssignOrReplace(ref _azureKeyVaultKms, value); } + } + private ManagedClusterSecurityProfileKeyVaultKms? _azureKeyVaultKms; /// /// Whether to enable workload identity. /// - public BicepValue IsWorkloadIdentityEnabled { get => _isWorkloadIdentityEnabled; set => _isWorkloadIdentityEnabled.Assign(value); } - private readonly BicepValue _isWorkloadIdentityEnabled; + public BicepValue IsWorkloadIdentityEnabled + { + get { Initialize(); return _isWorkloadIdentityEnabled!; } + set { Initialize(); _isWorkloadIdentityEnabled!.Assign(value); } + } + private BicepValue? _isWorkloadIdentityEnabled; /// /// Image Cleaner settings for the security profile. /// - public BicepValue ImageCleaner { get => _imageCleaner; set => _imageCleaner.Assign(value); } - private readonly BicepValue _imageCleaner; + public ManagedClusterSecurityProfileImageCleaner ImageCleaner + { + get { Initialize(); return _imageCleaner!; } + set { Initialize(); AssignOrReplace(ref _imageCleaner, value); } + } + private ManagedClusterSecurityProfileImageCleaner? _imageCleaner; /// /// Creates a new ManagedClusterSecurityProfile. /// public ManagedClusterSecurityProfile() { - _defender = BicepValue.DefineProperty(this, "Defender", ["defender"]); - _azureKeyVaultKms = BicepValue.DefineProperty(this, "AzureKeyVaultKms", ["azureKeyVaultKms"]); - _isWorkloadIdentityEnabled = BicepValue.DefineProperty(this, "IsWorkloadIdentityEnabled", ["workloadIdentity", "enabled"]); - _imageCleaner = BicepValue.DefineProperty(this, "ImageCleaner", ["imageCleaner"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterSecurityProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _defender = DefineModelProperty("Defender", ["defender"]); + _azureKeyVaultKms = DefineModelProperty("AzureKeyVaultKms", ["azureKeyVaultKms"]); + _isWorkloadIdentityEnabled = DefineProperty("IsWorkloadIdentityEnabled", ["workloadIdentity", "enabled"]); + _imageCleaner = DefineModelProperty("ImageCleaner", ["imageCleaner"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileDefender.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileDefender.cs index 4a6a59deb64de..1f57abcc4550b 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileDefender.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileDefender.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -20,21 +22,38 @@ public partial class ManagedClusterSecurityProfileDefender : ProvisionableConstr /// required and must be a valid workspace resource ID. When Microsoft /// Defender is disabled, leave the field empty. /// - public BicepValue LogAnalyticsWorkspaceResourceId { get => _logAnalyticsWorkspaceResourceId; set => _logAnalyticsWorkspaceResourceId.Assign(value); } - private readonly BicepValue _logAnalyticsWorkspaceResourceId; + public BicepValue LogAnalyticsWorkspaceResourceId + { + get { Initialize(); return _logAnalyticsWorkspaceResourceId!; } + set { Initialize(); _logAnalyticsWorkspaceResourceId!.Assign(value); } + } + private BicepValue? _logAnalyticsWorkspaceResourceId; /// /// Whether to enable Defender threat detection. /// - public BicepValue IsSecurityMonitoringEnabled { get => _isSecurityMonitoringEnabled; set => _isSecurityMonitoringEnabled.Assign(value); } - private readonly BicepValue _isSecurityMonitoringEnabled; + public BicepValue IsSecurityMonitoringEnabled + { + get { Initialize(); return _isSecurityMonitoringEnabled!; } + set { Initialize(); _isSecurityMonitoringEnabled!.Assign(value); } + } + private BicepValue? _isSecurityMonitoringEnabled; /// /// Creates a new ManagedClusterSecurityProfileDefender. /// public ManagedClusterSecurityProfileDefender() { - _logAnalyticsWorkspaceResourceId = BicepValue.DefineProperty(this, "LogAnalyticsWorkspaceResourceId", ["logAnalyticsWorkspaceResourceId"]); - _isSecurityMonitoringEnabled = BicepValue.DefineProperty(this, "IsSecurityMonitoringEnabled", ["securityMonitoring", "enabled"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterSecurityProfileDefender. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _logAnalyticsWorkspaceResourceId = DefineProperty("LogAnalyticsWorkspaceResourceId", ["logAnalyticsWorkspaceResourceId"]); + _isSecurityMonitoringEnabled = DefineProperty("IsSecurityMonitoringEnabled", ["securityMonitoring", "enabled"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileImageCleaner.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileImageCleaner.cs index f0110597b9acb..7eac3a2fd9c6d 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileImageCleaner.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileImageCleaner.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,38 @@ public partial class ManagedClusterSecurityProfileImageCleaner : ProvisionableCo /// /// Whether to enable Image Cleaner on AKS cluster. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Image Cleaner scanning interval in hours. /// - public BicepValue IntervalHours { get => _intervalHours; set => _intervalHours.Assign(value); } - private readonly BicepValue _intervalHours; + public BicepValue IntervalHours + { + get { Initialize(); return _intervalHours!; } + set { Initialize(); _intervalHours!.Assign(value); } + } + private BicepValue? _intervalHours; /// /// Creates a new ManagedClusterSecurityProfileImageCleaner. /// public ManagedClusterSecurityProfileImageCleaner() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _intervalHours = BicepValue.DefineProperty(this, "IntervalHours", ["intervalHours"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterSecurityProfileImageCleaner. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _intervalHours = DefineProperty("IntervalHours", ["intervalHours"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileKeyVaultKms.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileKeyVaultKms.cs index 4179a453db83a..f6f4270d89ab9 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileKeyVaultKms.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileKeyVaultKms.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -18,8 +20,12 @@ public partial class ManagedClusterSecurityProfileKeyVaultKms : ProvisionableCon /// Whether to enable Azure Key Vault key management service. The default /// is false. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Identifier of Azure Key Vault key. See [key identifier @@ -29,8 +35,12 @@ public partial class ManagedClusterSecurityProfileKeyVaultKms : ProvisionableCon /// When Azure Key Vault key management service is disabled, leave the /// field empty. /// - public BicepValue KeyId { get => _keyId; set => _keyId.Assign(value); } - private readonly BicepValue _keyId; + public BicepValue KeyId + { + get { Initialize(); return _keyId!; } + set { Initialize(); _keyId!.Assign(value); } + } + private BicepValue? _keyId; /// /// Network access of key vault. The possible values are `Public` and @@ -38,25 +48,42 @@ public partial class ManagedClusterSecurityProfileKeyVaultKms : ProvisionableCon /// networks. `Private` means the key vault disables public access and /// enables private link. The default value is `Public`. /// - public BicepValue KeyVaultNetworkAccess { get => _keyVaultNetworkAccess; set => _keyVaultNetworkAccess.Assign(value); } - private readonly BicepValue _keyVaultNetworkAccess; + public BicepValue KeyVaultNetworkAccess + { + get { Initialize(); return _keyVaultNetworkAccess!; } + set { Initialize(); _keyVaultNetworkAccess!.Assign(value); } + } + private BicepValue? _keyVaultNetworkAccess; /// /// Resource ID of key vault. When keyVaultNetworkAccess is `Private`, this /// field is required and must be a valid resource ID. When /// keyVaultNetworkAccess is `Public`, leave the field empty. /// - public BicepValue KeyVaultResourceId { get => _keyVaultResourceId; set => _keyVaultResourceId.Assign(value); } - private readonly BicepValue _keyVaultResourceId; + public BicepValue KeyVaultResourceId + { + get { Initialize(); return _keyVaultResourceId!; } + set { Initialize(); _keyVaultResourceId!.Assign(value); } + } + private BicepValue? _keyVaultResourceId; /// /// Creates a new ManagedClusterSecurityProfileKeyVaultKms. /// public ManagedClusterSecurityProfileKeyVaultKms() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _keyId = BicepValue.DefineProperty(this, "KeyId", ["keyId"]); - _keyVaultNetworkAccess = BicepValue.DefineProperty(this, "KeyVaultNetworkAccess", ["keyVaultNetworkAccess"]); - _keyVaultResourceId = BicepValue.DefineProperty(this, "KeyVaultResourceId", ["keyVaultResourceId"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterSecurityProfileKeyVaultKms. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _keyId = DefineProperty("KeyId", ["keyId"]); + _keyVaultNetworkAccess = DefineProperty("KeyVaultNetworkAccess", ["keyVaultNetworkAccess"]); + _keyVaultResourceId = DefineProperty("KeyVaultResourceId", ["keyVaultResourceId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterServicePrincipalProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterServicePrincipalProfile.cs index c2b1aff16b3c7..86c22ed605693 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterServicePrincipalProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterServicePrincipalProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class ManagedClusterServicePrincipalProfile : ProvisionableConstr /// /// The ID for the service principal. /// - public BicepValue ClientId { get => _clientId; set => _clientId.Assign(value); } - private readonly BicepValue _clientId; + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + set { Initialize(); _clientId!.Assign(value); } + } + private BicepValue? _clientId; /// /// The secret password associated with the service principal in plain text. /// - public BicepValue Secret { get => _secret; set => _secret.Assign(value); } - private readonly BicepValue _secret; + public BicepValue Secret + { + get { Initialize(); return _secret!; } + set { Initialize(); _secret!.Assign(value); } + } + private BicepValue? _secret; /// /// Creates a new ManagedClusterServicePrincipalProfile. /// public ManagedClusterServicePrincipalProfile() { - _clientId = BicepValue.DefineProperty(this, "ClientId", ["clientId"]); - _secret = BicepValue.DefineProperty(this, "Secret", ["secret"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterServicePrincipalProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _clientId = DefineProperty("ClientId", ["clientId"]); + _secret = DefineProperty("Secret", ["secret"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSku.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSku.cs index 34cb5be095b4d..4d0c9915f2fb5 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSku.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.ContainerService; @@ -15,23 +17,39 @@ public partial class ManagedClusterSku : ProvisionableConstruct /// /// The name of a managed cluster SKU. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// If not specified, the default is 'Free'. See [AKS Pricing /// Tier](https://learn.microsoft.com/azure/aks/free-standard-pricing-tiers) /// for more details. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// Creates a new ManagedClusterSku. /// public ManagedClusterSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); + } + + /// + /// Define all the provisionable properties of ManagedClusterSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterStorageProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterStorageProfile.cs index aa9c94afc7da4..aedbe8057362a 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterStorageProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterStorageProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class ManagedClusterStorageProfile : ProvisionableConstruct /// /// Whether to enable AzureDisk CSI Driver. The default value is true. /// - public BicepValue IsDiskCsiDriverEnabled { get => _isDiskCsiDriverEnabled; set => _isDiskCsiDriverEnabled.Assign(value); } - private readonly BicepValue _isDiskCsiDriverEnabled; + public BicepValue IsDiskCsiDriverEnabled + { + get { Initialize(); return _isDiskCsiDriverEnabled!; } + set { Initialize(); _isDiskCsiDriverEnabled!.Assign(value); } + } + private BicepValue? _isDiskCsiDriverEnabled; /// /// Whether to enable AzureFile CSI Driver. The default value is true. /// - public BicepValue IsFileCsiDriverEnabled { get => _isFileCsiDriverEnabled; set => _isFileCsiDriverEnabled.Assign(value); } - private readonly BicepValue _isFileCsiDriverEnabled; + public BicepValue IsFileCsiDriverEnabled + { + get { Initialize(); return _isFileCsiDriverEnabled!; } + set { Initialize(); _isFileCsiDriverEnabled!.Assign(value); } + } + private BicepValue? _isFileCsiDriverEnabled; /// /// Whether to enable Snapshot Controller. The default value is true. /// - public BicepValue IsSnapshotControllerEnabled { get => _isSnapshotControllerEnabled; set => _isSnapshotControllerEnabled.Assign(value); } - private readonly BicepValue _isSnapshotControllerEnabled; + public BicepValue IsSnapshotControllerEnabled + { + get { Initialize(); return _isSnapshotControllerEnabled!; } + set { Initialize(); _isSnapshotControllerEnabled!.Assign(value); } + } + private BicepValue? _isSnapshotControllerEnabled; /// /// Whether to enable AzureBlob CSI Driver. The default value is false. /// - public BicepValue IsBlobCsiDriverEnabled { get => _isBlobCsiDriverEnabled; set => _isBlobCsiDriverEnabled.Assign(value); } - private readonly BicepValue _isBlobCsiDriverEnabled; + public BicepValue IsBlobCsiDriverEnabled + { + get { Initialize(); return _isBlobCsiDriverEnabled!; } + set { Initialize(); _isBlobCsiDriverEnabled!.Assign(value); } + } + private BicepValue? _isBlobCsiDriverEnabled; /// /// Creates a new ManagedClusterStorageProfile. /// public ManagedClusterStorageProfile() { - _isDiskCsiDriverEnabled = BicepValue.DefineProperty(this, "IsDiskCsiDriverEnabled", ["diskCSIDriver"]); - _isFileCsiDriverEnabled = BicepValue.DefineProperty(this, "IsFileCsiDriverEnabled", ["fileCSIDriver"]); - _isSnapshotControllerEnabled = BicepValue.DefineProperty(this, "IsSnapshotControllerEnabled", ["snapshotController"]); - _isBlobCsiDriverEnabled = BicepValue.DefineProperty(this, "IsBlobCsiDriverEnabled", ["blobCSIDriver"]); + } + + /// + /// Define all the provisionable properties of ManagedClusterStorageProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isDiskCsiDriverEnabled = DefineProperty("IsDiskCsiDriverEnabled", ["diskCSIDriver"]); + _isFileCsiDriverEnabled = DefineProperty("IsFileCsiDriverEnabled", ["fileCSIDriver"]); + _isSnapshotControllerEnabled = DefineProperty("IsSnapshotControllerEnabled", ["snapshotController"]); + _isBlobCsiDriverEnabled = DefineProperty("IsBlobCsiDriverEnabled", ["blobCSIDriver"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterWindowsProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterWindowsProfile.cs index c6974958eb174..f213776fe7a9d 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterWindowsProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterWindowsProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -30,8 +32,12 @@ public partial class ManagedClusterWindowsProfile : ProvisionableConstruct /// **Minimum-length:** 1 character <br><br> **Max-length:** /// 20 characters. /// - public BicepValue AdminUsername { get => _adminUsername; set => _adminUsername.Assign(value); } - private readonly BicepValue _adminUsername; + public BicepValue AdminUsername + { + get { Initialize(); return _adminUsername!; } + set { Initialize(); _adminUsername!.Assign(value); } + } + private BicepValue? _adminUsername; /// /// Specifies the password of the administrator account. @@ -46,39 +52,63 @@ public partial class ManagedClusterWindowsProfile : ProvisionableConstruct /// "pass@word1", "Password!", "Password1", /// "Password22", "iloveyou!". /// - public BicepValue AdminPassword { get => _adminPassword; set => _adminPassword.Assign(value); } - private readonly BicepValue _adminPassword; + public BicepValue AdminPassword + { + get { Initialize(); return _adminPassword!; } + set { Initialize(); _adminPassword!.Assign(value); } + } + private BicepValue? _adminPassword; /// /// The license type to use for Windows VMs. See [Azure Hybrid User /// Benefits](https://azure.microsoft.com/pricing/hybrid-benefit/faq/) for /// more details. /// - public BicepValue LicenseType { get => _licenseType; set => _licenseType.Assign(value); } - private readonly BicepValue _licenseType; + public BicepValue LicenseType + { + get { Initialize(); return _licenseType!; } + set { Initialize(); _licenseType!.Assign(value); } + } + private BicepValue? _licenseType; /// /// For more details on CSI proxy, see the [CSI proxy GitHub /// repo](https://github.com/kubernetes-csi/csi-proxy). /// - public BicepValue IsCsiProxyEnabled { get => _isCsiProxyEnabled; set => _isCsiProxyEnabled.Assign(value); } - private readonly BicepValue _isCsiProxyEnabled; + public BicepValue IsCsiProxyEnabled + { + get { Initialize(); return _isCsiProxyEnabled!; } + set { Initialize(); _isCsiProxyEnabled!.Assign(value); } + } + private BicepValue? _isCsiProxyEnabled; /// /// The Windows gMSA Profile in the Managed Cluster. /// - public BicepValue GmsaProfile { get => _gmsaProfile; set => _gmsaProfile.Assign(value); } - private readonly BicepValue _gmsaProfile; + public WindowsGmsaProfile GmsaProfile + { + get { Initialize(); return _gmsaProfile!; } + set { Initialize(); AssignOrReplace(ref _gmsaProfile, value); } + } + private WindowsGmsaProfile? _gmsaProfile; /// /// Creates a new ManagedClusterWindowsProfile. /// public ManagedClusterWindowsProfile() { - _adminUsername = BicepValue.DefineProperty(this, "AdminUsername", ["adminUsername"]); - _adminPassword = BicepValue.DefineProperty(this, "AdminPassword", ["adminPassword"]); - _licenseType = BicepValue.DefineProperty(this, "LicenseType", ["licenseType"]); - _isCsiProxyEnabled = BicepValue.DefineProperty(this, "IsCsiProxyEnabled", ["enableCSIProxy"]); - _gmsaProfile = BicepValue.DefineProperty(this, "GmsaProfile", ["gmsaProfile"]); + } + + /// + /// Define all the provisionable properties of ManagedClusterWindowsProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _adminUsername = DefineProperty("AdminUsername", ["adminUsername"]); + _adminPassword = DefineProperty("AdminPassword", ["adminPassword"]); + _licenseType = DefineProperty("LicenseType", ["licenseType"]); + _isCsiProxyEnabled = DefineProperty("IsCsiProxyEnabled", ["enableCSIProxy"]); + _gmsaProfile = DefineModelProperty("GmsaProfile", ["gmsaProfile"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfile.cs index bd2ba46788bc9..1af235c1cd6e1 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class ManagedClusterWorkloadAutoScalerProfile : ProvisionableCons /// /// Whether to enable KEDA. /// - public BicepValue IsKedaEnabled { get => _isKedaEnabled; set => _isKedaEnabled.Assign(value); } - private readonly BicepValue _isKedaEnabled; + public BicepValue IsKedaEnabled + { + get { Initialize(); return _isKedaEnabled!; } + set { Initialize(); _isKedaEnabled!.Assign(value); } + } + private BicepValue? _isKedaEnabled; /// /// Whether to enable VPA. Default value is false. /// - public BicepValue IsVpaEnabled { get => _isVpaEnabled; set => _isVpaEnabled.Assign(value); } - private readonly BicepValue _isVpaEnabled; + public BicepValue IsVpaEnabled + { + get { Initialize(); return _isVpaEnabled!; } + set { Initialize(); _isVpaEnabled!.Assign(value); } + } + private BicepValue? _isVpaEnabled; /// /// Creates a new ManagedClusterWorkloadAutoScalerProfile. /// public ManagedClusterWorkloadAutoScalerProfile() { - _isKedaEnabled = BicepValue.DefineProperty(this, "IsKedaEnabled", ["keda", "enabled"]); - _isVpaEnabled = BicepValue.DefineProperty(this, "IsVpaEnabled", ["verticalPodAutoscaler", "enabled"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedClusterWorkloadAutoScalerProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isKedaEnabled = DefineProperty("IsKedaEnabled", ["keda", "enabled"]); + _isVpaEnabled = DefineProperty("IsVpaEnabled", ["verticalPodAutoscaler", "enabled"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ServiceMeshProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ServiceMeshProfile.cs index 4e137f82197e2..7f8048da7b56e 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ServiceMeshProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/ServiceMeshProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,21 +20,37 @@ public partial class ServiceMeshProfile : ProvisionableConstruct /// /// Mode of the service mesh. /// - public BicepValue Mode { get => _mode; set => _mode.Assign(value); } - private readonly BicepValue _mode; + public BicepValue Mode + { + get { Initialize(); return _mode!; } + set { Initialize(); _mode!.Assign(value); } + } + private BicepValue? _mode; /// /// Istio service mesh configuration. /// - public BicepValue Istio { get => _istio; set => _istio.Assign(value); } - private readonly BicepValue _istio; + public IstioServiceMesh Istio + { + get { Initialize(); return _istio!; } + set { Initialize(); AssignOrReplace(ref _istio, value); } + } + private IstioServiceMesh? _istio; /// /// Creates a new ServiceMeshProfile. /// public ServiceMeshProfile() { - _mode = BicepValue.DefineProperty(this, "Mode", ["mode"]); - _istio = BicepValue.DefineProperty(this, "Istio", ["istio"]); + } + + /// + /// Define all the provisionable properties of ServiceMeshProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _mode = DefineProperty("Mode", ["mode"]); + _istio = DefineModelProperty("Istio", ["istio"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/SysctlConfig.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/SysctlConfig.cs index 996f03b1ed940..e85ccf69167a3 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/SysctlConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/SysctlConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,203 +18,323 @@ public partial class SysctlConfig : ProvisionableConstruct /// /// Sysctl setting net.core.somaxconn. /// - public BicepValue NetCoreSomaxconn { get => _netCoreSomaxconn; set => _netCoreSomaxconn.Assign(value); } - private readonly BicepValue _netCoreSomaxconn; + public BicepValue NetCoreSomaxconn + { + get { Initialize(); return _netCoreSomaxconn!; } + set { Initialize(); _netCoreSomaxconn!.Assign(value); } + } + private BicepValue? _netCoreSomaxconn; /// /// Sysctl setting net.core.netdev_max_backlog. /// - public BicepValue NetCoreNetdevMaxBacklog { get => _netCoreNetdevMaxBacklog; set => _netCoreNetdevMaxBacklog.Assign(value); } - private readonly BicepValue _netCoreNetdevMaxBacklog; + public BicepValue NetCoreNetdevMaxBacklog + { + get { Initialize(); return _netCoreNetdevMaxBacklog!; } + set { Initialize(); _netCoreNetdevMaxBacklog!.Assign(value); } + } + private BicepValue? _netCoreNetdevMaxBacklog; /// /// Sysctl setting net.core.rmem_default. /// - public BicepValue NetCoreRmemDefault { get => _netCoreRmemDefault; set => _netCoreRmemDefault.Assign(value); } - private readonly BicepValue _netCoreRmemDefault; + public BicepValue NetCoreRmemDefault + { + get { Initialize(); return _netCoreRmemDefault!; } + set { Initialize(); _netCoreRmemDefault!.Assign(value); } + } + private BicepValue? _netCoreRmemDefault; /// /// Sysctl setting net.core.rmem_max. /// - public BicepValue NetCoreRmemMax { get => _netCoreRmemMax; set => _netCoreRmemMax.Assign(value); } - private readonly BicepValue _netCoreRmemMax; + public BicepValue NetCoreRmemMax + { + get { Initialize(); return _netCoreRmemMax!; } + set { Initialize(); _netCoreRmemMax!.Assign(value); } + } + private BicepValue? _netCoreRmemMax; /// /// Sysctl setting net.core.wmem_default. /// - public BicepValue NetCoreWmemDefault { get => _netCoreWmemDefault; set => _netCoreWmemDefault.Assign(value); } - private readonly BicepValue _netCoreWmemDefault; + public BicepValue NetCoreWmemDefault + { + get { Initialize(); return _netCoreWmemDefault!; } + set { Initialize(); _netCoreWmemDefault!.Assign(value); } + } + private BicepValue? _netCoreWmemDefault; /// /// Sysctl setting net.core.wmem_max. /// - public BicepValue NetCoreWmemMax { get => _netCoreWmemMax; set => _netCoreWmemMax.Assign(value); } - private readonly BicepValue _netCoreWmemMax; + public BicepValue NetCoreWmemMax + { + get { Initialize(); return _netCoreWmemMax!; } + set { Initialize(); _netCoreWmemMax!.Assign(value); } + } + private BicepValue? _netCoreWmemMax; /// /// Sysctl setting net.core.optmem_max. /// - public BicepValue NetCoreOptmemMax { get => _netCoreOptmemMax; set => _netCoreOptmemMax.Assign(value); } - private readonly BicepValue _netCoreOptmemMax; + public BicepValue NetCoreOptmemMax + { + get { Initialize(); return _netCoreOptmemMax!; } + set { Initialize(); _netCoreOptmemMax!.Assign(value); } + } + private BicepValue? _netCoreOptmemMax; /// /// Sysctl setting net.ipv4.tcp_max_syn_backlog. /// - public BicepValue NetIPv4TcpMaxSynBacklog { get => _netIPv4TcpMaxSynBacklog; set => _netIPv4TcpMaxSynBacklog.Assign(value); } - private readonly BicepValue _netIPv4TcpMaxSynBacklog; + public BicepValue NetIPv4TcpMaxSynBacklog + { + get { Initialize(); return _netIPv4TcpMaxSynBacklog!; } + set { Initialize(); _netIPv4TcpMaxSynBacklog!.Assign(value); } + } + private BicepValue? _netIPv4TcpMaxSynBacklog; /// /// Sysctl setting net.ipv4.tcp_max_tw_buckets. /// - public BicepValue NetIPv4TcpMaxTwBuckets { get => _netIPv4TcpMaxTwBuckets; set => _netIPv4TcpMaxTwBuckets.Assign(value); } - private readonly BicepValue _netIPv4TcpMaxTwBuckets; + public BicepValue NetIPv4TcpMaxTwBuckets + { + get { Initialize(); return _netIPv4TcpMaxTwBuckets!; } + set { Initialize(); _netIPv4TcpMaxTwBuckets!.Assign(value); } + } + private BicepValue? _netIPv4TcpMaxTwBuckets; /// /// Sysctl setting net.ipv4.tcp_fin_timeout. /// - public BicepValue NetIPv4TcpFinTimeout { get => _netIPv4TcpFinTimeout; set => _netIPv4TcpFinTimeout.Assign(value); } - private readonly BicepValue _netIPv4TcpFinTimeout; + public BicepValue NetIPv4TcpFinTimeout + { + get { Initialize(); return _netIPv4TcpFinTimeout!; } + set { Initialize(); _netIPv4TcpFinTimeout!.Assign(value); } + } + private BicepValue? _netIPv4TcpFinTimeout; /// /// Sysctl setting net.ipv4.tcp_keepalive_time. /// - public BicepValue NetIPv4TcpKeepaliveTime { get => _netIPv4TcpKeepaliveTime; set => _netIPv4TcpKeepaliveTime.Assign(value); } - private readonly BicepValue _netIPv4TcpKeepaliveTime; + public BicepValue NetIPv4TcpKeepaliveTime + { + get { Initialize(); return _netIPv4TcpKeepaliveTime!; } + set { Initialize(); _netIPv4TcpKeepaliveTime!.Assign(value); } + } + private BicepValue? _netIPv4TcpKeepaliveTime; /// /// Sysctl setting net.ipv4.tcp_keepalive_probes. /// - public BicepValue NetIPv4TcpKeepaliveProbes { get => _netIPv4TcpKeepaliveProbes; set => _netIPv4TcpKeepaliveProbes.Assign(value); } - private readonly BicepValue _netIPv4TcpKeepaliveProbes; + public BicepValue NetIPv4TcpKeepaliveProbes + { + get { Initialize(); return _netIPv4TcpKeepaliveProbes!; } + set { Initialize(); _netIPv4TcpKeepaliveProbes!.Assign(value); } + } + private BicepValue? _netIPv4TcpKeepaliveProbes; /// /// Sysctl setting net.ipv4.tcp_keepalive_intvl. /// - public BicepValue NetIPv4TcpKeepaliveIntvl { get => _netIPv4TcpKeepaliveIntvl; set => _netIPv4TcpKeepaliveIntvl.Assign(value); } - private readonly BicepValue _netIPv4TcpKeepaliveIntvl; + public BicepValue NetIPv4TcpKeepaliveIntvl + { + get { Initialize(); return _netIPv4TcpKeepaliveIntvl!; } + set { Initialize(); _netIPv4TcpKeepaliveIntvl!.Assign(value); } + } + private BicepValue? _netIPv4TcpKeepaliveIntvl; /// /// Sysctl setting net.ipv4.tcp_tw_reuse. /// - public BicepValue NetIPv4TcpTwReuse { get => _netIPv4TcpTwReuse; set => _netIPv4TcpTwReuse.Assign(value); } - private readonly BicepValue _netIPv4TcpTwReuse; + public BicepValue NetIPv4TcpTwReuse + { + get { Initialize(); return _netIPv4TcpTwReuse!; } + set { Initialize(); _netIPv4TcpTwReuse!.Assign(value); } + } + private BicepValue? _netIPv4TcpTwReuse; /// /// Sysctl setting net.ipv4.ip_local_port_range. /// - public BicepValue NetIPv4IPLocalPortRange { get => _netIPv4IPLocalPortRange; set => _netIPv4IPLocalPortRange.Assign(value); } - private readonly BicepValue _netIPv4IPLocalPortRange; + public BicepValue NetIPv4IPLocalPortRange + { + get { Initialize(); return _netIPv4IPLocalPortRange!; } + set { Initialize(); _netIPv4IPLocalPortRange!.Assign(value); } + } + private BicepValue? _netIPv4IPLocalPortRange; /// /// Sysctl setting net.ipv4.neigh.default.gc_thresh1. /// - public BicepValue NetIPv4NeighDefaultGcThresh1 { get => _netIPv4NeighDefaultGcThresh1; set => _netIPv4NeighDefaultGcThresh1.Assign(value); } - private readonly BicepValue _netIPv4NeighDefaultGcThresh1; + public BicepValue NetIPv4NeighDefaultGcThresh1 + { + get { Initialize(); return _netIPv4NeighDefaultGcThresh1!; } + set { Initialize(); _netIPv4NeighDefaultGcThresh1!.Assign(value); } + } + private BicepValue? _netIPv4NeighDefaultGcThresh1; /// /// Sysctl setting net.ipv4.neigh.default.gc_thresh2. /// - public BicepValue NetIPv4NeighDefaultGcThresh2 { get => _netIPv4NeighDefaultGcThresh2; set => _netIPv4NeighDefaultGcThresh2.Assign(value); } - private readonly BicepValue _netIPv4NeighDefaultGcThresh2; + public BicepValue NetIPv4NeighDefaultGcThresh2 + { + get { Initialize(); return _netIPv4NeighDefaultGcThresh2!; } + set { Initialize(); _netIPv4NeighDefaultGcThresh2!.Assign(value); } + } + private BicepValue? _netIPv4NeighDefaultGcThresh2; /// /// Sysctl setting net.ipv4.neigh.default.gc_thresh3. /// - public BicepValue NetIPv4NeighDefaultGcThresh3 { get => _netIPv4NeighDefaultGcThresh3; set => _netIPv4NeighDefaultGcThresh3.Assign(value); } - private readonly BicepValue _netIPv4NeighDefaultGcThresh3; + public BicepValue NetIPv4NeighDefaultGcThresh3 + { + get { Initialize(); return _netIPv4NeighDefaultGcThresh3!; } + set { Initialize(); _netIPv4NeighDefaultGcThresh3!.Assign(value); } + } + private BicepValue? _netIPv4NeighDefaultGcThresh3; /// /// Sysctl setting net.netfilter.nf_conntrack_max. /// - public BicepValue NetNetfilterNfConntrackMax { get => _netNetfilterNfConntrackMax; set => _netNetfilterNfConntrackMax.Assign(value); } - private readonly BicepValue _netNetfilterNfConntrackMax; + public BicepValue NetNetfilterNfConntrackMax + { + get { Initialize(); return _netNetfilterNfConntrackMax!; } + set { Initialize(); _netNetfilterNfConntrackMax!.Assign(value); } + } + private BicepValue? _netNetfilterNfConntrackMax; /// /// Sysctl setting net.netfilter.nf_conntrack_buckets. /// - public BicepValue NetNetfilterNfConntrackBuckets { get => _netNetfilterNfConntrackBuckets; set => _netNetfilterNfConntrackBuckets.Assign(value); } - private readonly BicepValue _netNetfilterNfConntrackBuckets; + public BicepValue NetNetfilterNfConntrackBuckets + { + get { Initialize(); return _netNetfilterNfConntrackBuckets!; } + set { Initialize(); _netNetfilterNfConntrackBuckets!.Assign(value); } + } + private BicepValue? _netNetfilterNfConntrackBuckets; /// /// Sysctl setting fs.inotify.max_user_watches. /// - public BicepValue FsInotifyMaxUserWatches { get => _fsInotifyMaxUserWatches; set => _fsInotifyMaxUserWatches.Assign(value); } - private readonly BicepValue _fsInotifyMaxUserWatches; + public BicepValue FsInotifyMaxUserWatches + { + get { Initialize(); return _fsInotifyMaxUserWatches!; } + set { Initialize(); _fsInotifyMaxUserWatches!.Assign(value); } + } + private BicepValue? _fsInotifyMaxUserWatches; /// /// Sysctl setting fs.file-max. /// - public BicepValue FsFileMax { get => _fsFileMax; set => _fsFileMax.Assign(value); } - private readonly BicepValue _fsFileMax; + public BicepValue FsFileMax + { + get { Initialize(); return _fsFileMax!; } + set { Initialize(); _fsFileMax!.Assign(value); } + } + private BicepValue? _fsFileMax; /// /// Sysctl setting fs.aio-max-nr. /// - public BicepValue FsAioMaxNr { get => _fsAioMaxNr; set => _fsAioMaxNr.Assign(value); } - private readonly BicepValue _fsAioMaxNr; + public BicepValue FsAioMaxNr + { + get { Initialize(); return _fsAioMaxNr!; } + set { Initialize(); _fsAioMaxNr!.Assign(value); } + } + private BicepValue? _fsAioMaxNr; /// /// Sysctl setting fs.nr_open. /// - public BicepValue FsNrOpen { get => _fsNrOpen; set => _fsNrOpen.Assign(value); } - private readonly BicepValue _fsNrOpen; + public BicepValue FsNrOpen + { + get { Initialize(); return _fsNrOpen!; } + set { Initialize(); _fsNrOpen!.Assign(value); } + } + private BicepValue? _fsNrOpen; /// /// Sysctl setting kernel.threads-max. /// - public BicepValue KernelThreadsMax { get => _kernelThreadsMax; set => _kernelThreadsMax.Assign(value); } - private readonly BicepValue _kernelThreadsMax; + public BicepValue KernelThreadsMax + { + get { Initialize(); return _kernelThreadsMax!; } + set { Initialize(); _kernelThreadsMax!.Assign(value); } + } + private BicepValue? _kernelThreadsMax; /// /// Sysctl setting vm.max_map_count. /// - public BicepValue VmMaxMapCount { get => _vmMaxMapCount; set => _vmMaxMapCount.Assign(value); } - private readonly BicepValue _vmMaxMapCount; + public BicepValue VmMaxMapCount + { + get { Initialize(); return _vmMaxMapCount!; } + set { Initialize(); _vmMaxMapCount!.Assign(value); } + } + private BicepValue? _vmMaxMapCount; /// /// Sysctl setting vm.swappiness. /// - public BicepValue VmSwappiness { get => _vmSwappiness; set => _vmSwappiness.Assign(value); } - private readonly BicepValue _vmSwappiness; + public BicepValue VmSwappiness + { + get { Initialize(); return _vmSwappiness!; } + set { Initialize(); _vmSwappiness!.Assign(value); } + } + private BicepValue? _vmSwappiness; /// /// Sysctl setting vm.vfs_cache_pressure. /// - public BicepValue VmVfsCachePressure { get => _vmVfsCachePressure; set => _vmVfsCachePressure.Assign(value); } - private readonly BicepValue _vmVfsCachePressure; + public BicepValue VmVfsCachePressure + { + get { Initialize(); return _vmVfsCachePressure!; } + set { Initialize(); _vmVfsCachePressure!.Assign(value); } + } + private BicepValue? _vmVfsCachePressure; /// /// Creates a new SysctlConfig. /// public SysctlConfig() { - _netCoreSomaxconn = BicepValue.DefineProperty(this, "NetCoreSomaxconn", ["netCoreSomaxconn"]); - _netCoreNetdevMaxBacklog = BicepValue.DefineProperty(this, "NetCoreNetdevMaxBacklog", ["netCoreNetdevMaxBacklog"]); - _netCoreRmemDefault = BicepValue.DefineProperty(this, "NetCoreRmemDefault", ["netCoreRmemDefault"]); - _netCoreRmemMax = BicepValue.DefineProperty(this, "NetCoreRmemMax", ["netCoreRmemMax"]); - _netCoreWmemDefault = BicepValue.DefineProperty(this, "NetCoreWmemDefault", ["netCoreWmemDefault"]); - _netCoreWmemMax = BicepValue.DefineProperty(this, "NetCoreWmemMax", ["netCoreWmemMax"]); - _netCoreOptmemMax = BicepValue.DefineProperty(this, "NetCoreOptmemMax", ["netCoreOptmemMax"]); - _netIPv4TcpMaxSynBacklog = BicepValue.DefineProperty(this, "NetIPv4TcpMaxSynBacklog", ["netIpv4TcpMaxSynBacklog"]); - _netIPv4TcpMaxTwBuckets = BicepValue.DefineProperty(this, "NetIPv4TcpMaxTwBuckets", ["netIpv4TcpMaxTwBuckets"]); - _netIPv4TcpFinTimeout = BicepValue.DefineProperty(this, "NetIPv4TcpFinTimeout", ["netIpv4TcpFinTimeout"]); - _netIPv4TcpKeepaliveTime = BicepValue.DefineProperty(this, "NetIPv4TcpKeepaliveTime", ["netIpv4TcpKeepaliveTime"]); - _netIPv4TcpKeepaliveProbes = BicepValue.DefineProperty(this, "NetIPv4TcpKeepaliveProbes", ["netIpv4TcpKeepaliveProbes"]); - _netIPv4TcpKeepaliveIntvl = BicepValue.DefineProperty(this, "NetIPv4TcpKeepaliveIntvl", ["netIpv4TcpkeepaliveIntvl"]); - _netIPv4TcpTwReuse = BicepValue.DefineProperty(this, "NetIPv4TcpTwReuse", ["netIpv4TcpTwReuse"]); - _netIPv4IPLocalPortRange = BicepValue.DefineProperty(this, "NetIPv4IPLocalPortRange", ["netIpv4IpLocalPortRange"]); - _netIPv4NeighDefaultGcThresh1 = BicepValue.DefineProperty(this, "NetIPv4NeighDefaultGcThresh1", ["netIpv4NeighDefaultGcThresh1"]); - _netIPv4NeighDefaultGcThresh2 = BicepValue.DefineProperty(this, "NetIPv4NeighDefaultGcThresh2", ["netIpv4NeighDefaultGcThresh2"]); - _netIPv4NeighDefaultGcThresh3 = BicepValue.DefineProperty(this, "NetIPv4NeighDefaultGcThresh3", ["netIpv4NeighDefaultGcThresh3"]); - _netNetfilterNfConntrackMax = BicepValue.DefineProperty(this, "NetNetfilterNfConntrackMax", ["netNetfilterNfConntrackMax"]); - _netNetfilterNfConntrackBuckets = BicepValue.DefineProperty(this, "NetNetfilterNfConntrackBuckets", ["netNetfilterNfConntrackBuckets"]); - _fsInotifyMaxUserWatches = BicepValue.DefineProperty(this, "FsInotifyMaxUserWatches", ["fsInotifyMaxUserWatches"]); - _fsFileMax = BicepValue.DefineProperty(this, "FsFileMax", ["fsFileMax"]); - _fsAioMaxNr = BicepValue.DefineProperty(this, "FsAioMaxNr", ["fsAioMaxNr"]); - _fsNrOpen = BicepValue.DefineProperty(this, "FsNrOpen", ["fsNrOpen"]); - _kernelThreadsMax = BicepValue.DefineProperty(this, "KernelThreadsMax", ["kernelThreadsMax"]); - _vmMaxMapCount = BicepValue.DefineProperty(this, "VmMaxMapCount", ["vmMaxMapCount"]); - _vmSwappiness = BicepValue.DefineProperty(this, "VmSwappiness", ["vmSwappiness"]); - _vmVfsCachePressure = BicepValue.DefineProperty(this, "VmVfsCachePressure", ["vmVfsCachePressure"]); + } + + /// + /// Define all the provisionable properties of SysctlConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _netCoreSomaxconn = DefineProperty("NetCoreSomaxconn", ["netCoreSomaxconn"]); + _netCoreNetdevMaxBacklog = DefineProperty("NetCoreNetdevMaxBacklog", ["netCoreNetdevMaxBacklog"]); + _netCoreRmemDefault = DefineProperty("NetCoreRmemDefault", ["netCoreRmemDefault"]); + _netCoreRmemMax = DefineProperty("NetCoreRmemMax", ["netCoreRmemMax"]); + _netCoreWmemDefault = DefineProperty("NetCoreWmemDefault", ["netCoreWmemDefault"]); + _netCoreWmemMax = DefineProperty("NetCoreWmemMax", ["netCoreWmemMax"]); + _netCoreOptmemMax = DefineProperty("NetCoreOptmemMax", ["netCoreOptmemMax"]); + _netIPv4TcpMaxSynBacklog = DefineProperty("NetIPv4TcpMaxSynBacklog", ["netIpv4TcpMaxSynBacklog"]); + _netIPv4TcpMaxTwBuckets = DefineProperty("NetIPv4TcpMaxTwBuckets", ["netIpv4TcpMaxTwBuckets"]); + _netIPv4TcpFinTimeout = DefineProperty("NetIPv4TcpFinTimeout", ["netIpv4TcpFinTimeout"]); + _netIPv4TcpKeepaliveTime = DefineProperty("NetIPv4TcpKeepaliveTime", ["netIpv4TcpKeepaliveTime"]); + _netIPv4TcpKeepaliveProbes = DefineProperty("NetIPv4TcpKeepaliveProbes", ["netIpv4TcpKeepaliveProbes"]); + _netIPv4TcpKeepaliveIntvl = DefineProperty("NetIPv4TcpKeepaliveIntvl", ["netIpv4TcpkeepaliveIntvl"]); + _netIPv4TcpTwReuse = DefineProperty("NetIPv4TcpTwReuse", ["netIpv4TcpTwReuse"]); + _netIPv4IPLocalPortRange = DefineProperty("NetIPv4IPLocalPortRange", ["netIpv4IpLocalPortRange"]); + _netIPv4NeighDefaultGcThresh1 = DefineProperty("NetIPv4NeighDefaultGcThresh1", ["netIpv4NeighDefaultGcThresh1"]); + _netIPv4NeighDefaultGcThresh2 = DefineProperty("NetIPv4NeighDefaultGcThresh2", ["netIpv4NeighDefaultGcThresh2"]); + _netIPv4NeighDefaultGcThresh3 = DefineProperty("NetIPv4NeighDefaultGcThresh3", ["netIpv4NeighDefaultGcThresh3"]); + _netNetfilterNfConntrackMax = DefineProperty("NetNetfilterNfConntrackMax", ["netNetfilterNfConntrackMax"]); + _netNetfilterNfConntrackBuckets = DefineProperty("NetNetfilterNfConntrackBuckets", ["netNetfilterNfConntrackBuckets"]); + _fsInotifyMaxUserWatches = DefineProperty("FsInotifyMaxUserWatches", ["fsInotifyMaxUserWatches"]); + _fsFileMax = DefineProperty("FsFileMax", ["fsFileMax"]); + _fsAioMaxNr = DefineProperty("FsAioMaxNr", ["fsAioMaxNr"]); + _fsNrOpen = DefineProperty("FsNrOpen", ["fsNrOpen"]); + _kernelThreadsMax = DefineProperty("KernelThreadsMax", ["kernelThreadsMax"]); + _vmMaxMapCount = DefineProperty("VmMaxMapCount", ["vmMaxMapCount"]); + _vmSwappiness = DefineProperty("VmSwappiness", ["vmSwappiness"]); + _vmVfsCachePressure = DefineProperty("VmVfsCachePressure", ["vmVfsCachePressure"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/UpgradeOverrideSettings.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/UpgradeOverrideSettings.cs index 947083231315a..6bbbf95766dde 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/UpgradeOverrideSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/UpgradeOverrideSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,8 +20,12 @@ public partial class UpgradeOverrideSettings : ProvisionableConstruct /// upgrade operation to bypass upgrade protections such as checking for /// deprecated API usage. Enable this option only with caution. /// - public BicepValue ForceUpgrade { get => _forceUpgrade; set => _forceUpgrade.Assign(value); } - private readonly BicepValue _forceUpgrade; + public BicepValue ForceUpgrade + { + get { Initialize(); return _forceUpgrade!; } + set { Initialize(); _forceUpgrade!.Assign(value); } + } + private BicepValue? _forceUpgrade; /// /// Until when the overrides are effective. Note that this only matches the @@ -28,15 +34,27 @@ public partial class UpgradeOverrideSettings : ProvisionableConstruct /// This field is not set by default. It must be set for the overrides to /// take effect. /// - public BicepValue Until { get => _until; set => _until.Assign(value); } - private readonly BicepValue _until; + public BicepValue Until + { + get { Initialize(); return _until!; } + set { Initialize(); _until!.Assign(value); } + } + private BicepValue? _until; /// /// Creates a new UpgradeOverrideSettings. /// public UpgradeOverrideSettings() { - _forceUpgrade = BicepValue.DefineProperty(this, "ForceUpgrade", ["forceUpgrade"]); - _until = BicepValue.DefineProperty(this, "Until", ["until"]); + } + + /// + /// Define all the provisionable properties of UpgradeOverrideSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _forceUpgrade = DefineProperty("ForceUpgrade", ["forceUpgrade"]); + _until = DefineProperty("Until", ["until"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/WindowsGmsaProfile.cs b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/WindowsGmsaProfile.cs index 092d834f79d4e..717f245857f41 100644 --- a/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/WindowsGmsaProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.ContainerService/src/Generated/Models/WindowsGmsaProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,32 +18,52 @@ public partial class WindowsGmsaProfile : ProvisionableConstruct /// /// Specifies whether to enable Windows gMSA in the managed cluster. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Specifies the DNS server for Windows gMSA. <br><br> Set it /// to empty if you have configured the DNS server in the vnet which is /// used to create the managed cluster. /// - public BicepValue DnsServer { get => _dnsServer; set => _dnsServer.Assign(value); } - private readonly BicepValue _dnsServer; + public BicepValue DnsServer + { + get { Initialize(); return _dnsServer!; } + set { Initialize(); _dnsServer!.Assign(value); } + } + private BicepValue? _dnsServer; /// /// Specifies the root domain name for Windows gMSA. <br><br> /// Set it to empty if you have configured the DNS server in the vnet /// which is used to create the managed cluster. /// - public BicepValue RootDomainName { get => _rootDomainName; set => _rootDomainName.Assign(value); } - private readonly BicepValue _rootDomainName; + public BicepValue RootDomainName + { + get { Initialize(); return _rootDomainName!; } + set { Initialize(); _rootDomainName!.Assign(value); } + } + private BicepValue? _rootDomainName; /// /// Creates a new WindowsGmsaProfile. /// public WindowsGmsaProfile() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _dnsServer = BicepValue.DefineProperty(this, "DnsServer", ["dnsServer"]); - _rootDomainName = BicepValue.DefineProperty(this, "RootDomainName", ["rootDomainName"]); + } + + /// + /// Define all the provisionable properties of WindowsGmsaProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _dnsServer = DefineProperty("DnsServer", ["dnsServer"]); + _rootDomainName = DefineProperty("RootDomainName", ["rootDomainName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/api/Azure.Provisioning.CosmosDB.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/api/Azure.Provisioning.CosmosDB.netstandard2.0.cs index 2493d1791762c..d21566eaf5878 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/api/Azure.Provisioning.CosmosDB.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/api/Azure.Provisioning.CosmosDB.netstandard2.0.cs @@ -16,19 +16,22 @@ public AuthenticationMethodLdapProperties() { } public Azure.Provisioning.BicepValue ServerPort { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServiceUserDistinguishedName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServiceUserPassword { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AutoscaleSettingsResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public AutoscaleSettingsResourceInfo() { } - public Azure.Provisioning.BicepValue AutoUpgradeThroughputPolicy { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.ThroughputPolicyResourceInfo AutoUpgradeThroughputPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetMaxThroughput { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class AzureBlobDataTransferDataSourceSink : Azure.Provisioning.CosmosDB.DataTransferDataSourceSink { public AzureBlobDataTransferDataSourceSink() { } public Azure.Provisioning.BicepValue ContainerName { get { throw null; } set { } } public Azure.Provisioning.BicepValue EndpointUri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class BackupPolicyMigrationState : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -36,6 +39,7 @@ public BackupPolicyMigrationState() { } public Azure.Provisioning.BicepValue StartOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum BackupPolicyMigrationStatus { @@ -53,6 +57,7 @@ public partial class BaseCosmosDataTransferDataSourceSink : Azure.Provisioning.C { public BaseCosmosDataTransferDataSourceSink() { } public Azure.Provisioning.BicepValue RemoteAccountName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CassandraAuthenticationMethod { @@ -70,17 +75,19 @@ public partial class CassandraCertificate : Azure.Provisioning.Primitives.Provis { public CassandraCertificate() { } public Azure.Provisioning.BicepValue Pem { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraCluster : Azure.Provisioning.Primitives.ProvisionableResource { public CassandraCluster(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.CassandraClusterProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CassandraCluster FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -102,12 +109,14 @@ public CassandraClusterBackupSchedule() { } public Azure.Provisioning.BicepValue CronExpression { get { throw null; } set { } } public Azure.Provisioning.BicepValue RetentionInHours { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScheduleName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraClusterKey : Azure.Provisioning.Primitives.ProvisionableConstruct { public CassandraClusterKey() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue OrderBy { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraClusterProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -133,11 +142,12 @@ public CassandraClusterProperties() { } public Azure.Provisioning.BicepValue IsRepairEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateLinkResourceId { get { throw null; } } public Azure.Provisioning.BicepValue PrometheusEndpointIPAddress { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ProvisionError { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CassandraError ProvisionError { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } public Azure.Provisioning.BicepValue RestoreFromBackupId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScheduledEventStrategy { get { throw null; } set { } } public Azure.Provisioning.BicepList SeedNodes { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum CassandraClusterType { @@ -149,6 +159,7 @@ public partial class CassandraColumn : Azure.Provisioning.Primitives.Provisionab public CassandraColumn() { } public Azure.Provisioning.BicepValue CassandraColumnType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraDataCenter : Azure.Provisioning.Primitives.ProvisionableResource { @@ -156,8 +167,9 @@ public partial class CassandraDataCenter : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CassandraCluster? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.CassandraDataCenterProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CassandraDataCenter FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -176,7 +188,7 @@ public static partial class ResourceVersions public partial class CassandraDataCenterProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { public CassandraDataCenterProperties() { } - public Azure.Provisioning.BicepValue AuthenticationMethodLdapProperties { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.AuthenticationMethodLdapProperties AuthenticationMethodLdapProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue BackupStorageCustomerKeyUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue Base64EncodedCassandraYamlFragment { get { throw null; } set { } } public Azure.Provisioning.BicepValue DataCenterLocation { get { throw null; } set { } } @@ -188,15 +200,17 @@ public CassandraDataCenterProperties() { } public Azure.Provisioning.BicepValue ManagedDiskCustomerKeyUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue NodeCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointIPAddress { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ProvisionError { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CassandraError ProvisionError { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } public Azure.Provisioning.BicepList SeedNodes { get { throw null; } } public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraDataCenterSeedNode : Azure.Provisioning.Primitives.ProvisionableConstruct { public CassandraDataCenterSeedNode() { } public Azure.Provisioning.BicepValue IPAddress { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraError : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -205,20 +219,22 @@ public CassandraError() { } public Azure.Provisioning.BicepValue Code { get { throw null; } set { } } public Azure.Provisioning.BicepValue Message { get { throw null; } set { } } public Azure.Provisioning.BicepValue Target { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraKeyspace : Azure.Provisioning.Primitives.ProvisionableResource { public CassandraKeyspace(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBAccount? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } } + public Azure.Provisioning.CosmosDB.ExtendedCassandraKeyspaceResourceInfo Resource { get { throw null; } } public Azure.Provisioning.BicepValue ResourceKeyspaceName { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CassandraKeyspace FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -254,18 +270,20 @@ public partial class CassandraKeyspacePropertiesConfig : Azure.Provisioning.Prim public CassandraKeyspacePropertiesConfig() { } public Azure.Provisioning.BicepValue AutoscaleMaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue Throughput { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraKeyspaceThroughputSetting : Azure.Provisioning.Primitives.ProvisionableResource { public CassandraKeyspaceThroughputSetting(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.CosmosDB.CassandraKeyspace? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.ThroughputSettingsResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CassandraKeyspaceThroughputSetting FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -300,6 +318,7 @@ public partial class CassandraPartitionKey : Azure.Provisioning.Primitives.Provi { public CassandraPartitionKey() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CassandraProvisioningState { @@ -316,19 +335,21 @@ public CassandraSchema() { } public Azure.Provisioning.BicepList ClusterKeys { get { throw null; } set { } } public Azure.Provisioning.BicepList Columns { get { throw null; } set { } } public Azure.Provisioning.BicepList PartitionKeys { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraTable : Azure.Provisioning.Primitives.ProvisionableResource { public CassandraTable(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CassandraKeyspace? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.CassandraTableResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CassandraTable FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -364,26 +385,29 @@ public partial class CassandraTablePropertiesConfig : Azure.Provisioning.Primiti public CassandraTablePropertiesConfig() { } public Azure.Provisioning.BicepValue AutoscaleMaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue Throughput { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraTableResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public CassandraTableResourceInfo() { } public Azure.Provisioning.BicepValue AnalyticalStorageTtl { get { throw null; } set { } } public Azure.Provisioning.BicepValue DefaultTtl { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Schema { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CassandraSchema Schema { get { throw null; } set { } } public Azure.Provisioning.BicepValue TableName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraTableThroughputSetting : Azure.Provisioning.Primitives.ProvisionableResource { public CassandraTableThroughputSetting(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.CosmosDB.CassandraTable? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.ThroughputSettingsResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CassandraTableThroughputSetting FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -419,6 +443,7 @@ public partial class CassandraViewGetPropertiesOptions : Azure.Provisioning.Prim public CassandraViewGetPropertiesOptions() { } public Azure.Provisioning.BicepValue AutoscaleMaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue Throughput { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraViewGetPropertiesResource : Azure.Provisioning.CosmosDB.CassandraViewResource { @@ -426,19 +451,21 @@ public CassandraViewGetPropertiesResource() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraViewGetResult : Azure.Provisioning.Primitives.ProvisionableResource { public CassandraViewGetResult(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CassandraKeyspace? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.CassandraViewResource Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CassandraViewGetResult FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -474,18 +501,20 @@ public partial class CassandraViewResource : Azure.Provisioning.Primitives.Provi public CassandraViewResource() { } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } public Azure.Provisioning.BicepValue ViewDefinition { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CassandraViewThroughputSetting : Azure.Provisioning.Primitives.ProvisionableResource { public CassandraViewThroughputSetting(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.CosmosDB.CassandraViewGetResult? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.ThroughputSettingsResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CassandraViewThroughputSetting FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -528,6 +557,7 @@ public partial class ComputedProperty : Azure.Provisioning.Primitives.Provisiona public ComputedProperty() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Query { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ConflictResolutionMode { @@ -540,6 +570,7 @@ public ConflictResolutionPolicy() { } public Azure.Provisioning.BicepValue ConflictResolutionPath { get { throw null; } set { } } public Azure.Provisioning.BicepValue ConflictResolutionProcedure { get { throw null; } set { } } public Azure.Provisioning.BicepValue Mode { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ConnectorOffer { @@ -551,11 +582,13 @@ public ConsistencyPolicy() { } public Azure.Provisioning.BicepValue DefaultConsistencyLevel { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxIntervalInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxStalenessPrefix { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ContinuousModeBackupPolicy : Azure.Provisioning.CosmosDB.CosmosDBAccountBackupPolicy { public ContinuousModeBackupPolicy() { } public Azure.Provisioning.BicepValue ContinuousModeTier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ContinuousTier { @@ -567,17 +600,18 @@ public partial class CosmosCassandraDataTransferDataSourceSink : Azure.Provision public CosmosCassandraDataTransferDataSourceSink() { } public Azure.Provisioning.BicepValue KeyspaceName { get { throw null; } set { } } public Azure.Provisioning.BicepValue TableName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBAccount : Azure.Provisioning.Primitives.ProvisionableResource { public CosmosDBAccount(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue AnalyticalStorageSchemaType { get { throw null; } set { } } public Azure.Provisioning.BicepValue ApiServerVersion { get { throw null; } set { } } - public Azure.Provisioning.BicepValue BackupPolicy { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBAccountBackupPolicy BackupPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepList Capabilities { get { throw null; } set { } } public Azure.Provisioning.BicepValue CapacityTotalThroughputLimit { get { throw null; } set { } } public Azure.Provisioning.BicepValue ConnectorOffer { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ConsistencyPolicy { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.ConsistencyPolicy ConsistencyPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepList Cors { get { throw null; } set { } } public Azure.Provisioning.BicepValue CreateMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue CustomerManagedKeyStatus { get { throw null; } set { } } @@ -598,13 +632,13 @@ public partial class CosmosDBAccount : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.BicepValue EnablePriorityBasedExecution { get { throw null; } set { } } public Azure.Provisioning.BicepList FailoverPolicies { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue InstanceId { get { throw null; } } public Azure.Provisioning.BicepList IPRules { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsAnalyticalStorageEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsFreeTierEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsVirtualNetworkFilterEnabled { get { throw null; } set { } } - public Azure.Provisioning.BicepValue KeysMetadata { get { throw null; } } + public Azure.Provisioning.CosmosDB.DatabaseAccountKeysMetadata KeysMetadata { get { throw null; } } public Azure.Provisioning.BicepValue KeyVaultKeyUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } @@ -617,13 +651,14 @@ public partial class CosmosDBAccount : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepList ReadLocations { get { throw null; } } - public Azure.Provisioning.BicepValue RestoreParameters { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.CosmosDBAccountRestoreParameters RestoreParameters { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepList VirtualNetworkRules { get { throw null; } set { } } public Azure.Provisioning.BicepList WriteLocations { get { throw null; } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.CosmosDB.CosmosDBBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.CosmosDB.CosmosDBBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBAccount FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.CosmosDB.CosmosDBAccountKeyList GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -660,12 +695,14 @@ public static partial class ResourceVersions public partial class CosmosDBAccountBackupPolicy : Azure.Provisioning.Primitives.ProvisionableConstruct { public CosmosDBAccountBackupPolicy() { } - public Azure.Provisioning.BicepValue MigrationState { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.BackupPolicyMigrationState MigrationState { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBAccountCapability : Azure.Provisioning.Primitives.ProvisionableConstruct { public CosmosDBAccountCapability() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBAccountCorsPolicy : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -675,6 +712,7 @@ public CosmosDBAccountCorsPolicy() { } public Azure.Provisioning.BicepValue AllowedOrigins { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExposedHeaders { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxAgeInSeconds { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CosmosDBAccountCreateMode { @@ -689,8 +727,7 @@ public CosmosDBAccountKeyList() { } public Azure.Provisioning.BicepValue PrimaryReadonlyMasterKey { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryMasterKey { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryReadonlyMasterKey { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.CosmosDB.CosmosDBAccountKeyList FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } } public enum CosmosDBAccountKind { @@ -707,6 +744,7 @@ public CosmosDBAccountLocation() { } public Azure.Provisioning.BicepValue IsZoneRedundant { get { throw null; } set { } } public Azure.Provisioning.BicepValue LocationName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum CosmosDBAccountOfferType { @@ -727,6 +765,7 @@ public CosmosDBAccountRestoreParameters() { } public Azure.Provisioning.BicepValue RestoreTimestampInUtc { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceBackupLocation { get { throw null; } set { } } public Azure.Provisioning.BicepList TablesToRestore { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CosmosDBBackupStorageRedundancy { @@ -764,18 +803,21 @@ public CosmosDBClientEncryptionIncludedPath() { } public Azure.Provisioning.BicepValue EncryptionAlgorithm { get { throw null; } set { } } public Azure.Provisioning.BicepValue EncryptionType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Path { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBClientEncryptionPolicy : Azure.Provisioning.Primitives.ProvisionableConstruct { public CosmosDBClientEncryptionPolicy() { } public Azure.Provisioning.BicepList IncludedPaths { get { throw null; } set { } } public Azure.Provisioning.BicepValue PolicyFormatVersion { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBCompositePath : Azure.Provisioning.Primitives.ProvisionableConstruct { public CosmosDBCompositePath() { } public Azure.Provisioning.BicepValue Order { get { throw null; } set { } } public Azure.Provisioning.BicepValue Path { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBContainerPartitionKey : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -784,12 +826,14 @@ public CosmosDBContainerPartitionKey() { } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepList Paths { get { throw null; } set { } } public Azure.Provisioning.BicepValue Version { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBCreateUpdateConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { public CosmosDBCreateUpdateConfig() { } public Azure.Provisioning.BicepValue AutoscaleMaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue Throughput { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CosmosDBDataType { @@ -804,6 +848,7 @@ public partial class CosmosDBExcludedPath : Azure.Provisioning.Primitives.Provis { public CosmosDBExcludedPath() { } public Azure.Provisioning.BicepValue Path { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBFailoverPolicy : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -811,6 +856,7 @@ public CosmosDBFailoverPolicy() { } public Azure.Provisioning.BicepValue FailoverPriority { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue LocationName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBFirewallRule : Azure.Provisioning.Primitives.ProvisionableResource { @@ -821,7 +867,8 @@ public partial class CosmosDBFirewallRule : Azure.Provisioning.Primitives.Provis public Azure.Provisioning.CosmosDB.MongoCluster? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue StartIPAddress { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBFirewallRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -833,6 +880,7 @@ public partial class CosmosDBIncludedPath : Azure.Provisioning.Primitives.Provis public CosmosDBIncludedPath() { } public Azure.Provisioning.BicepList Indexes { get { throw null; } set { } } public Azure.Provisioning.BicepValue Path { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CosmosDBIndexingMode { @@ -852,6 +900,7 @@ public CosmosDBIndexingPolicy() { } public Azure.Provisioning.BicepValue IndexingMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsAutomatic { get { throw null; } set { } } public Azure.Provisioning.BicepList SpatialIndexes { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CosmosDBIndexKind { @@ -863,6 +912,7 @@ public partial class CosmosDBIPAddressOrRange : Azure.Provisioning.Primitives.Pr { public CosmosDBIPAddressOrRange() { } public Azure.Provisioning.BicepValue IPAddressOrRange { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBKeyWrapMetadata : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -871,6 +921,7 @@ public CosmosDBKeyWrapMetadata() { } public Azure.Provisioning.BicepValue CosmosDBKeyWrapMetadataType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CosmosDBMinimalTlsVersion { @@ -890,18 +941,20 @@ public CosmosDBPathIndexes() { } public Azure.Provisioning.BicepValue DataType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Precision { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public CosmosDBPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBPrivateLinkServiceConnectionStateProperty ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue GroupId { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBAccount? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -935,13 +988,14 @@ public static partial class ResourceVersions public partial class CosmosDBPrivateEndpointConnectionData : Azure.Provisioning.Primitives.ProvisionableConstruct { public CosmosDBPrivateEndpointConnectionData() { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBPrivateLinkServiceConnectionStateProperty ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue GroupId { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBPrivateLinkServiceConnectionStateProperty : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -949,6 +1003,7 @@ public CosmosDBPrivateLinkServiceConnectionStateProperty() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CosmosDBProvisioningState { @@ -984,9 +1039,10 @@ public partial class CosmosDBService : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.BicepValue InstanceSize { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBAccount? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } } + public Azure.Provisioning.CosmosDB.CosmosDBServiceProperties Properties { get { throw null; } } public Azure.Provisioning.BicepValue ServiceType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBService FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1025,6 +1081,7 @@ public CosmosDBServiceProperties() { } public Azure.Provisioning.BicepValue InstanceCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue InstanceSize { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum CosmosDBServiceSize { @@ -1065,8 +1122,9 @@ public partial class CosmosDBSqlClientEncryptionKey : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBSqlDatabase? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.CosmosDBSqlClientEncryptionKeyResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBSqlClientEncryptionKey FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1103,27 +1161,30 @@ public CosmosDBSqlClientEncryptionKeyProperties() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBSqlClientEncryptionKeyResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public CosmosDBSqlClientEncryptionKeyResourceInfo() { } public Azure.Provisioning.BicepValue EncryptionAlgorithm { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } - public Azure.Provisioning.BicepValue KeyWrapMetadata { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBKeyWrapMetadata KeyWrapMetadata { get { throw null; } set { } } public Azure.Provisioning.BicepValue WrappedDataEncryptionKey { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBSqlContainer : Azure.Provisioning.Primitives.ProvisionableResource { public CosmosDBSqlContainer(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBSqlDatabase? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.CosmosDBSqlContainerResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBSqlContainer FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1159,34 +1220,37 @@ public partial class CosmosDBSqlContainerPropertiesConfig : Azure.Provisioning.P public CosmosDBSqlContainerPropertiesConfig() { } public Azure.Provisioning.BicepValue AutoscaleMaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue Throughput { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBSqlContainerResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public CosmosDBSqlContainerResourceInfo() { } public Azure.Provisioning.BicepValue AnalyticalStorageTtl { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ClientEncryptionPolicy { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBClientEncryptionPolicy ClientEncryptionPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepList ComputedProperties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ConflictResolutionPolicy { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.ConflictResolutionPolicy ConflictResolutionPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue ContainerName { get { throw null; } set { } } public Azure.Provisioning.BicepValue CreateMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue DefaultTtl { get { throw null; } set { } } - public Azure.Provisioning.BicepValue IndexingPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue MaterializedViewDefinition { get { throw null; } set { } } - public Azure.Provisioning.BicepValue PartitionKey { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RestoreParameters { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBIndexingPolicy IndexingPolicy { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.MaterializedViewDefinition MaterializedViewDefinition { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBContainerPartitionKey PartitionKey { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.ResourceRestoreParameters RestoreParameters { get { throw null; } set { } } public Azure.Provisioning.BicepList UniqueKeys { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBSqlContainerThroughputSetting : Azure.Provisioning.Primitives.ProvisionableResource { public CosmosDBSqlContainerThroughputSetting(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.CosmosDB.CosmosDBSqlContainer? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.ThroughputSettingsResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBSqlContainerThroughputSetting FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1221,14 +1285,15 @@ public partial class CosmosDBSqlDatabase : Azure.Provisioning.Primitives.Provisi { public CosmosDBSqlDatabase(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBAccount? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.CosmosDBSqlDatabaseResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBSqlDatabase FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1264,25 +1329,28 @@ public partial class CosmosDBSqlDatabasePropertiesConfig : Azure.Provisioning.Pr public CosmosDBSqlDatabasePropertiesConfig() { } public Azure.Provisioning.BicepValue AutoscaleMaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue Throughput { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBSqlDatabaseResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public CosmosDBSqlDatabaseResourceInfo() { } public Azure.Provisioning.BicepValue CreateMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue DatabaseName { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RestoreParameters { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.ResourceRestoreParameters RestoreParameters { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBSqlDatabaseThroughputSetting : Azure.Provisioning.Primitives.ProvisionableResource { public CosmosDBSqlDatabaseThroughputSetting(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.CosmosDB.CosmosDBSqlDatabase? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.ThroughputSettingsResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBSqlDatabaseThroughputSetting FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1322,7 +1390,8 @@ public partial class CosmosDBSqlRoleAssignment : Azure.Provisioning.Primitives.P public Azure.Provisioning.BicepValue PrincipalId { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoleDefinitionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue Scope { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBSqlRoleAssignment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1363,7 +1432,8 @@ public partial class CosmosDBSqlRoleDefinition : Azure.Provisioning.Primitives.P public Azure.Provisioning.BicepList Permissions { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoleDefinitionType { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoleName { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBSqlRoleDefinition FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1404,19 +1474,21 @@ public partial class CosmosDBSqlRolePermission : Azure.Provisioning.Primitives.P public CosmosDBSqlRolePermission() { } public Azure.Provisioning.BicepList DataActions { get { throw null; } set { } } public Azure.Provisioning.BicepList NotDataActions { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBSqlStoredProcedure : Azure.Provisioning.Primitives.ProvisionableResource { public CosmosDBSqlStoredProcedure(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBSqlContainer? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.CosmosDBSqlStoredProcedureResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBSqlStoredProcedure FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1452,19 +1524,21 @@ public partial class CosmosDBSqlStoredProcedureResourceInfo : Azure.Provisioning public CosmosDBSqlStoredProcedureResourceInfo() { } public Azure.Provisioning.BicepValue Body { get { throw null; } set { } } public Azure.Provisioning.BicepValue StoredProcedureName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBSqlTrigger : Azure.Provisioning.Primitives.ProvisionableResource { public CosmosDBSqlTrigger(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBSqlContainer? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.CosmosDBSqlTriggerResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBSqlTrigger FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1510,6 +1584,7 @@ public CosmosDBSqlTriggerResourceInfo() { } public Azure.Provisioning.BicepValue TriggerName { get { throw null; } set { } } public Azure.Provisioning.BicepValue TriggerOperation { get { throw null; } set { } } public Azure.Provisioning.BicepValue TriggerType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CosmosDBSqlTriggerType { @@ -1520,14 +1595,15 @@ public partial class CosmosDBSqlUserDefinedFunction : Azure.Provisioning.Primiti { public CosmosDBSqlUserDefinedFunction(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBSqlContainer? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.CosmosDBSqlUserDefinedFunctionResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBSqlUserDefinedFunction FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1563,6 +1639,7 @@ public partial class CosmosDBSqlUserDefinedFunctionResourceInfo : Azure.Provisio public CosmosDBSqlUserDefinedFunctionResourceInfo() { } public Azure.Provisioning.BicepValue Body { get { throw null; } set { } } public Azure.Provisioning.BicepValue FunctionName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CosmosDBStatus { @@ -1580,14 +1657,15 @@ public partial class CosmosDBTable : Azure.Provisioning.Primitives.Provisionable { public CosmosDBTable(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBAccount? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.CosmosDBTableResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBTable FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1623,6 +1701,7 @@ public partial class CosmosDBTablePropertiesOptions : Azure.Provisioning.Primiti public CosmosDBTablePropertiesOptions() { } public Azure.Provisioning.BicepValue AutoscaleMaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue Throughput { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBTablePropertiesResource : Azure.Provisioning.CosmosDB.CosmosDBTableResourceInfo { @@ -1630,13 +1709,15 @@ public CosmosDBTablePropertiesResource() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBTableResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public CosmosDBTableResourceInfo() { } public Azure.Provisioning.BicepValue CreateMode { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RestoreParameters { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.ResourceRestoreParameters RestoreParameters { get { throw null; } set { } } public Azure.Provisioning.BicepValue TableName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBThroughputPool : Azure.Provisioning.Primitives.ProvisionableResource { @@ -1646,8 +1727,9 @@ public partial class CosmosDBThroughputPool : Azure.Provisioning.Primitives.Prov public Azure.Provisioning.BicepValue MaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBThroughputPool FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public partial class CosmosDBThroughputPoolAccount : Azure.Provisioning.Primitives.ProvisionableResource @@ -1660,7 +1742,8 @@ public partial class CosmosDBThroughputPoolAccount : Azure.Provisioning.Primitiv public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBThroughputPool? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosDBThroughputPoolAccount FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1670,36 +1753,41 @@ public partial class CosmosDBUniqueKey : Azure.Provisioning.Primitives.Provision { public CosmosDBUniqueKey() { } public Azure.Provisioning.BicepList Paths { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosDBVirtualNetworkRule : Azure.Provisioning.Primitives.ProvisionableConstruct { public CosmosDBVirtualNetworkRule() { } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } public Azure.Provisioning.BicepValue IgnoreMissingVnetServiceEndpoint { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosMongoDataTransferDataSourceSink : Azure.Provisioning.CosmosDB.BaseCosmosDataTransferDataSourceSink { public CosmosMongoDataTransferDataSourceSink() { } public Azure.Provisioning.BicepValue CollectionName { get { throw null; } set { } } public Azure.Provisioning.BicepValue DatabaseName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosSqlDataTransferDataSourceSink : Azure.Provisioning.CosmosDB.BaseCosmosDataTransferDataSourceSink { public CosmosSqlDataTransferDataSourceSink() { } public Azure.Provisioning.BicepValue ContainerName { get { throw null; } set { } } public Azure.Provisioning.BicepValue DatabaseName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CosmosTableThroughputSetting : Azure.Provisioning.Primitives.ProvisionableResource { public CosmosTableThroughputSetting(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.CosmosDB.CosmosDBTable? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.ThroughputSettingsResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.CosmosTableThroughputSetting FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1737,23 +1825,26 @@ public DatabaseAccountKeysMetadata() { } public Azure.Provisioning.BicepValue PrimaryReadonlyMasterKeyGeneratedOn { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryMasterKeyGeneratedOn { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryReadonlyMasterKeyGeneratedOn { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class DatabaseRestoreResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public DatabaseRestoreResourceInfo() { } public Azure.Provisioning.BicepList CollectionNames { get { throw null; } set { } } public Azure.Provisioning.BicepValue DatabaseName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class DataTransferDataSourceSink : Azure.Provisioning.Primitives.ProvisionableConstruct { public DataTransferDataSourceSink() { } + protected override void DefineProvisionableProperties() { } } public partial class DataTransferJobGetResult : Azure.Provisioning.Primitives.ProvisionableResource { public DataTransferJobGetResult(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue Destination { get { throw null; } } + public Azure.Provisioning.CosmosDB.DataTransferDataSourceSink Destination { get { throw null; } } public Azure.Provisioning.BicepValue Duration { get { throw null; } } - public Azure.Provisioning.BicepValue Error { get { throw null; } } + public Azure.Provisioning.CosmosDB.ErrorResponse Error { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue JobName { get { throw null; } } public Azure.Provisioning.BicepValue LastUpdatedUtcOn { get { throw null; } } @@ -1761,12 +1852,13 @@ public partial class DataTransferJobGetResult : Azure.Provisioning.Primitives.Pr public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBAccount? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProcessedCount { get { throw null; } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Source { get { throw null; } } + public Azure.Provisioning.CosmosDB.DataTransferJobProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.DataTransferDataSourceSink Source { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TotalCount { get { throw null; } } public Azure.Provisioning.BicepValue WorkerCount { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.DataTransferJobGetResult FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1805,17 +1897,18 @@ public enum DataTransferJobMode public partial class DataTransferJobProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { public DataTransferJobProperties() { } - public Azure.Provisioning.BicepValue Destination { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.DataTransferDataSourceSink Destination { get { throw null; } set { } } public Azure.Provisioning.BicepValue Duration { get { throw null; } } - public Azure.Provisioning.BicepValue Error { get { throw null; } } + public Azure.Provisioning.CosmosDB.ErrorResponse Error { get { throw null; } } public Azure.Provisioning.BicepValue JobName { get { throw null; } } public Azure.Provisioning.BicepValue LastUpdatedUtcOn { get { throw null; } } public Azure.Provisioning.BicepValue Mode { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProcessedCount { get { throw null; } } - public Azure.Provisioning.BicepValue Source { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.DataTransferDataSourceSink Source { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } public Azure.Provisioning.BicepValue TotalCount { get { throw null; } } public Azure.Provisioning.BicepValue WorkerCount { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class DataTransferRegionalService : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1823,11 +1916,13 @@ public DataTransferRegionalService() { } public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class DataTransferServiceProperties : Azure.Provisioning.CosmosDB.CosmosDBServiceProperties { public DataTransferServiceProperties() { } public Azure.Provisioning.BicepList Locations { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum DefaultConsistencyLevel { @@ -1853,6 +1948,7 @@ public partial class ErrorResponse : Azure.Provisioning.Primitives.Provisionable public ErrorResponse() { } public Azure.Provisioning.BicepValue Code { get { throw null; } } public Azure.Provisioning.BicepValue Message { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ExtendedCassandraKeyspaceResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1861,6 +1957,7 @@ public ExtendedCassandraKeyspaceResourceInfo() { } public Azure.Provisioning.BicepValue KeyspaceName { get { throw null; } set { } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ExtendedCassandraTableResourceInfo : Azure.Provisioning.CosmosDB.CassandraTableResourceInfo { @@ -1868,6 +1965,7 @@ public ExtendedCassandraTableResourceInfo() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ExtendedCosmosDBSqlContainerResourceInfo : Azure.Provisioning.CosmosDB.CosmosDBSqlContainerResourceInfo { @@ -1875,6 +1973,7 @@ public ExtendedCosmosDBSqlContainerResourceInfo() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ExtendedCosmosDBSqlDatabaseResourceInfo : Azure.Provisioning.CosmosDB.CosmosDBSqlDatabaseResourceInfo { @@ -1884,6 +1983,7 @@ public ExtendedCosmosDBSqlDatabaseResourceInfo() { } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } public Azure.Provisioning.BicepValue Users { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ExtendedCosmosDBSqlStoredProcedureResourceInfo : Azure.Provisioning.CosmosDB.CosmosDBSqlStoredProcedureResourceInfo { @@ -1891,6 +1991,7 @@ public ExtendedCosmosDBSqlStoredProcedureResourceInfo() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ExtendedCosmosDBSqlTriggerResourceInfo : Azure.Provisioning.CosmosDB.CosmosDBSqlTriggerResourceInfo { @@ -1898,6 +1999,7 @@ public ExtendedCosmosDBSqlTriggerResourceInfo() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ExtendedCosmosDBSqlUserDefinedFunctionResourceInfo : Azure.Provisioning.CosmosDB.CosmosDBSqlUserDefinedFunctionResourceInfo { @@ -1905,6 +2007,7 @@ public ExtendedCosmosDBSqlUserDefinedFunctionResourceInfo() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ExtendedGremlinDatabaseResourceInfo : Azure.Provisioning.CosmosDB.GremlinDatabaseResourceInfo { @@ -1912,6 +2015,7 @@ public ExtendedGremlinDatabaseResourceInfo() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ExtendedGremlinGraphResourceInfo : Azure.Provisioning.CosmosDB.GremlinGraphResourceInfo { @@ -1919,6 +2023,7 @@ public ExtendedGremlinGraphResourceInfo() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ExtendedMongoDBCollectionResourceInfo : Azure.Provisioning.CosmosDB.MongoDBCollectionResourceInfo { @@ -1926,6 +2031,7 @@ public ExtendedMongoDBCollectionResourceInfo() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ExtendedMongoDBDatabaseResourceInfo : Azure.Provisioning.CosmosDB.MongoDBDatabaseResourceInfo { @@ -1933,6 +2039,7 @@ public ExtendedMongoDBDatabaseResourceInfo() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ExtendedThroughputSettingsResourceInfo : Azure.Provisioning.CosmosDB.ThroughputSettingsResourceInfo { @@ -1940,6 +2047,7 @@ public ExtendedThroughputSettingsResourceInfo() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class GraphApiComputeRegionalService : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1948,31 +2056,35 @@ public GraphApiComputeRegionalService() { } public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class GraphApiComputeServiceProperties : Azure.Provisioning.CosmosDB.CosmosDBServiceProperties { public GraphApiComputeServiceProperties() { } public Azure.Provisioning.BicepValue GraphApiComputeEndpoint { get { throw null; } set { } } public Azure.Provisioning.BicepList Locations { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class GraphResourceGetPropertiesOptions : Azure.Provisioning.Primitives.ProvisionableConstruct { public GraphResourceGetPropertiesOptions() { } public Azure.Provisioning.BicepValue AutoscaleMaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue Throughput { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class GraphResourceGetResult : Azure.Provisioning.Primitives.ProvisionableResource { public GraphResourceGetResult(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBAccount? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.GraphResourceGetResult FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2007,14 +2119,15 @@ public partial class GremlinDatabase : Azure.Provisioning.Primitives.Provisionab { public GremlinDatabase(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBAccount? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.GremlinDatabaseResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.GremlinDatabase FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2050,31 +2163,35 @@ public partial class GremlinDatabasePropertiesConfig : Azure.Provisioning.Primit public GremlinDatabasePropertiesConfig() { } public Azure.Provisioning.BicepValue AutoscaleMaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue Throughput { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class GremlinDatabaseResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public GremlinDatabaseResourceInfo() { } public Azure.Provisioning.BicepValue CreateMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue DatabaseName { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RestoreParameters { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.ResourceRestoreParameters RestoreParameters { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class GremlinDatabaseRestoreResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public GremlinDatabaseRestoreResourceInfo() { } public Azure.Provisioning.BicepValue DatabaseName { get { throw null; } set { } } public Azure.Provisioning.BicepList GraphNames { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class GremlinDatabaseThroughputSetting : Azure.Provisioning.Primitives.ProvisionableResource { public GremlinDatabaseThroughputSetting(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.CosmosDB.GremlinDatabase? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.ThroughputSettingsResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.GremlinDatabaseThroughputSetting FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2109,14 +2226,15 @@ public partial class GremlinGraph : Azure.Provisioning.Primitives.ProvisionableR { public GremlinGraph(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.GremlinDatabase? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.GremlinGraphResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.GremlinGraph FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2152,31 +2270,34 @@ public partial class GremlinGraphPropertiesConfig : Azure.Provisioning.Primitive public GremlinGraphPropertiesConfig() { } public Azure.Provisioning.BicepValue AutoscaleMaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue Throughput { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class GremlinGraphResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public GremlinGraphResourceInfo() { } public Azure.Provisioning.BicepValue AnalyticalStorageTtl { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ConflictResolutionPolicy { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.ConflictResolutionPolicy ConflictResolutionPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue CreateMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue DefaultTtl { get { throw null; } set { } } public Azure.Provisioning.BicepValue GraphName { get { throw null; } set { } } - public Azure.Provisioning.BicepValue IndexingPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue PartitionKey { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RestoreParameters { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBIndexingPolicy IndexingPolicy { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBContainerPartitionKey PartitionKey { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.ResourceRestoreParameters RestoreParameters { get { throw null; } set { } } public Azure.Provisioning.BicepList UniqueKeys { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class GremlinGraphThroughputSetting : Azure.Provisioning.Primitives.ProvisionableResource { public GremlinGraphThroughputSetting(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.CosmosDB.GremlinGraph? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.ThroughputSettingsResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.GremlinGraphThroughputSetting FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2213,6 +2334,7 @@ public MaterializedViewDefinition() { } public Azure.Provisioning.BicepValue Definition { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceCollectionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceCollectionRid { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class MaterializedViewsBuilderRegionalService : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -2220,11 +2342,13 @@ public MaterializedViewsBuilderRegionalService() { } public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class MaterializedViewsBuilderServiceProperties : Azure.Provisioning.CosmosDB.CosmosDBServiceProperties { public MaterializedViewsBuilderServiceProperties() { } public Azure.Provisioning.BicepList Locations { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class MongoCluster : Azure.Provisioning.Primitives.ProvisionableResource { @@ -2240,10 +2364,11 @@ public partial class MongoCluster : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepList NodeGroupSpecs { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue RestoreParameters { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.MongoClusterRestoreParameters RestoreParameters { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServerVersion { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.MongoCluster FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2255,6 +2380,7 @@ public partial class MongoClusterRestoreParameters : Azure.Provisioning.Primitiv public MongoClusterRestoreParameters() { } public Azure.Provisioning.BicepValue PointInTimeUTC { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum MongoClusterStatus { @@ -2270,14 +2396,15 @@ public partial class MongoDBCollection : Azure.Provisioning.Primitives.Provision { public MongoDBCollection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.MongoDBDatabase? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.MongoDBCollectionResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.MongoDBCollection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2313,6 +2440,7 @@ public partial class MongoDBCollectionPropertiesConfig : Azure.Provisioning.Prim public MongoDBCollectionPropertiesConfig() { } public Azure.Provisioning.BicepValue AutoscaleMaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue Throughput { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class MongoDBCollectionResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -2321,20 +2449,22 @@ public MongoDBCollectionResourceInfo() { } public Azure.Provisioning.BicepValue CollectionName { get { throw null; } set { } } public Azure.Provisioning.BicepValue CreateMode { get { throw null; } set { } } public Azure.Provisioning.BicepList Indexes { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RestoreParameters { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.ResourceRestoreParameters RestoreParameters { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary ShardKey { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class MongoDBCollectionThroughputSetting : Azure.Provisioning.Primitives.ProvisionableResource { public MongoDBCollectionThroughputSetting(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.CosmosDB.MongoDBCollection? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.ThroughputSettingsResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.MongoDBCollectionThroughputSetting FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2369,14 +2499,15 @@ public partial class MongoDBDatabase : Azure.Provisioning.Primitives.Provisionab { public MongoDBDatabase(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.CosmosDBCreateUpdateConfig Options { get { throw null; } set { } } public Azure.Provisioning.CosmosDB.CosmosDBAccount? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.MongoDBDatabaseResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.MongoDBDatabase FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2412,25 +2543,28 @@ public partial class MongoDBDatabasePropertiesConfig : Azure.Provisioning.Primit public MongoDBDatabasePropertiesConfig() { } public Azure.Provisioning.BicepValue AutoscaleMaxThroughput { get { throw null; } set { } } public Azure.Provisioning.BicepValue Throughput { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class MongoDBDatabaseResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public MongoDBDatabaseResourceInfo() { } public Azure.Provisioning.BicepValue CreateMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue DatabaseName { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RestoreParameters { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.ResourceRestoreParameters RestoreParameters { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class MongoDBDatabaseThroughputSetting : Azure.Provisioning.Primitives.ProvisionableResource { public MongoDBDatabaseThroughputSetting(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.CosmosDB.MongoDBDatabase? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.CosmosDB.ThroughputSettingsResourceInfo Resource { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.MongoDBDatabaseThroughputSetting FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2465,31 +2599,36 @@ public partial class MongoDBIndex : Azure.Provisioning.Primitives.ProvisionableC { public MongoDBIndex() { } public Azure.Provisioning.BicepList Keys { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Options { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.MongoDBIndexConfig Options { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class MongoDBIndexConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { public MongoDBIndexConfig() { } public Azure.Provisioning.BicepValue ExpireAfterSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsUnique { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class MongoDBPrivilege : Azure.Provisioning.Primitives.ProvisionableConstruct { public MongoDBPrivilege() { } public Azure.Provisioning.BicepList Actions { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Resource { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.MongoDBPrivilegeResourceInfo Resource { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class MongoDBPrivilegeResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public MongoDBPrivilegeResourceInfo() { } public Azure.Provisioning.BicepValue Collection { get { throw null; } set { } } public Azure.Provisioning.BicepValue DBName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class MongoDBRole : Azure.Provisioning.Primitives.ProvisionableConstruct { public MongoDBRole() { } public Azure.Provisioning.BicepValue DBName { get { throw null; } set { } } public Azure.Provisioning.BicepValue Role { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class MongoDBRoleDefinition : Azure.Provisioning.Primitives.ProvisionableResource { @@ -2502,7 +2641,8 @@ public partial class MongoDBRoleDefinition : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepList Privileges { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoleName { get { throw null; } set { } } public Azure.Provisioning.BicepList Roles { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.MongoDBRoleDefinition FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2549,8 +2689,9 @@ public partial class MongoDBUserDefinition : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.CosmosDB.CosmosDBAccount? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Password { get { throw null; } set { } } public Azure.Provisioning.BicepList Roles { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue UserName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.CosmosDB.MongoDBUserDefinition FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2594,6 +2735,7 @@ public NodeGroupSpec() { } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue NodeCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum NodeKind { @@ -2602,7 +2744,8 @@ public enum NodeKind public partial class PeriodicModeBackupPolicy : Azure.Provisioning.CosmosDB.CosmosDBAccountBackupPolicy { public PeriodicModeBackupPolicy() { } - public Azure.Provisioning.BicepValue PeriodicModeProperties { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.PeriodicModeProperties PeriodicModeProperties { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PeriodicModeProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -2610,6 +2753,7 @@ public PeriodicModeProperties() { } public Azure.Provisioning.BicepValue BackupIntervalInMinutes { get { throw null; } set { } } public Azure.Provisioning.BicepValue BackupRetentionIntervalInHours { get { throw null; } set { } } public Azure.Provisioning.BicepValue BackupStorageRedundancy { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ResourceRestoreParameters : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -2617,6 +2761,7 @@ public ResourceRestoreParameters() { } public Azure.Provisioning.BicepValue IsRestoreWithTtlDisabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue RestoreSource { get { throw null; } set { } } public Azure.Provisioning.BicepValue RestoreTimestampInUtc { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RestorableSqlContainerPropertiesResourceContainer : Azure.Provisioning.CosmosDB.CosmosDBSqlContainerResourceInfo { @@ -2625,6 +2770,7 @@ public RestorableSqlContainerPropertiesResourceContainer() { } public Azure.Provisioning.BicepValue Rid { get { throw null; } } public Azure.Provisioning.BicepValue Self { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class RestorableSqlDatabasePropertiesResourceDatabase : Azure.Provisioning.CosmosDB.CosmosDBSqlDatabaseResourceInfo { @@ -2635,6 +2781,7 @@ public RestorableSqlDatabasePropertiesResourceDatabase() { } public Azure.Provisioning.BicepValue Self { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } public Azure.Provisioning.BicepValue Users { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ScheduledEventStrategy { @@ -2653,6 +2800,7 @@ public partial class SpatialSpec : Azure.Provisioning.Primitives.ProvisionableCo public SpatialSpec() { } public Azure.Provisioning.BicepValue Path { get { throw null; } set { } } public Azure.Provisioning.BicepList Types { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SqlDedicatedGatewayRegionalService : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -2661,27 +2809,31 @@ public SqlDedicatedGatewayRegionalService() { } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue SqlDedicatedGatewayEndpoint { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class SqlDedicatedGatewayServiceProperties : Azure.Provisioning.CosmosDB.CosmosDBServiceProperties { public SqlDedicatedGatewayServiceProperties() { } public Azure.Provisioning.BicepList Locations { get { throw null; } } public Azure.Provisioning.BicepValue SqlDedicatedGatewayEndpoint { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ThroughputPolicyResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public ThroughputPolicyResourceInfo() { } public Azure.Provisioning.BicepValue IncrementPercent { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ThroughputSettingsResourceInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public ThroughputSettingsResourceInfo() { } - public Azure.Provisioning.BicepValue AutoscaleSettings { get { throw null; } set { } } + public Azure.Provisioning.CosmosDB.AutoscaleSettingsResourceInfo AutoscaleSettings { get { throw null; } set { } } public Azure.Provisioning.BicepValue InstantMaximumThroughput { get { throw null; } } public Azure.Provisioning.BicepValue MinimumThroughput { get { throw null; } } public Azure.Provisioning.BicepValue OfferReplacePending { get { throw null; } } public Azure.Provisioning.BicepValue SoftAllowedMaximumThroughput { get { throw null; } } public Azure.Provisioning.BicepValue Throughput { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraCluster.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraCluster.cs index f6b964beb63ea..79616b97e8747 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraCluster.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraCluster.cs @@ -21,45 +21,71 @@ public partial class CassandraCluster : ProvisionableResource /// /// Managed Cassandra cluster name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Identity for the resource. Current supported identity types: /// SystemAssigned, None. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Properties of a managed Cassandra cluster. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public CassandraClusterProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private CassandraClusterProperties? _properties; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new CassandraCluster. @@ -74,13 +100,20 @@ public partial class CassandraCluster : ProvisionableResource public CassandraCluster(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/cassandraClusters", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of CassandraCluster. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _properties = DefineModelProperty("Properties", ["properties"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraDataCenter.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraDataCenter.cs index 2e9f19ea79a30..869abde62f90d 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraDataCenter.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraDataCenter.cs @@ -21,32 +21,50 @@ public partial class CassandraDataCenter : ProvisionableResource /// /// Data center name in a managed Cassandra cluster. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Properties of a managed Cassandra data center. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public CassandraDataCenterProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private CassandraDataCenterProperties? _properties; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CassandraCluster. /// - public CassandraCluster? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CassandraCluster? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CassandraDataCenter. @@ -61,11 +79,18 @@ public partial class CassandraDataCenter : ProvisionableResource public CassandraDataCenter(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/cassandraClusters/dataCenters", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CassandraDataCenter. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraKeyspace.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraKeyspace.cs index 8033b2611271a..ca57b1811eae6 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraKeyspace.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraKeyspace.cs @@ -22,63 +22,100 @@ public partial class CassandraKeyspace : ProvisionableResource /// /// Cosmos DB keyspace name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Name of the Cosmos DB Cassandra keyspace. /// - public BicepValue ResourceKeyspaceName { get => _resourceKeyspaceName; set => _resourceKeyspaceName.Assign(value); } - private readonly BicepValue _resourceKeyspaceName; + public BicepValue ResourceKeyspaceName + { + get { Initialize(); return _resourceKeyspaceName!; } + set { Initialize(); _resourceKeyspaceName!.Assign(value); } + } + private BicepValue? _resourceKeyspaceName; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets or sets the resource. /// - public BicepValue Resource { get => _resource; } - private readonly BicepValue _resource; + public ExtendedCassandraKeyspaceResourceInfo Resource + { + get { Initialize(); return _resource!; } + } + private ExtendedCassandraKeyspaceResourceInfo? _resource; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBAccount. /// - public CosmosDBAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CassandraKeyspace. @@ -93,16 +130,23 @@ public partial class CassandraKeyspace : ProvisionableResource public CassandraKeyspace(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _resourceKeyspaceName = BicepValue.DefineProperty(this, "ResourceKeyspaceName", ["properties", "resource", "id"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CassandraKeyspace. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _resourceKeyspaceName = DefineProperty("ResourceKeyspaceName", ["properties", "resource", "id"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraKeyspaceThroughputSetting.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraKeyspaceThroughputSetting.cs index b054167e33f26..49860565a697c 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraKeyspaceThroughputSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraKeyspaceThroughputSetting.cs @@ -21,50 +21,79 @@ public partial class CassandraKeyspaceThroughputSetting : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a resource throughput. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public ThroughputSettingsResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private ThroughputSettingsResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CassandraKeyspace. /// - public CassandraKeyspace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CassandraKeyspace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CassandraKeyspaceThroughputSetting. @@ -79,14 +108,22 @@ public partial class CassandraKeyspaceThroughputSetting : ProvisionableResource public CassandraKeyspaceThroughputSetting(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// CassandraKeyspaceThroughputSetting. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraTable.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraTable.cs index 17ea159b5a8e2..bdd874c01a716 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraTable.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraTable.cs @@ -21,57 +21,91 @@ public partial class CassandraTable : ProvisionableResource /// /// Cosmos DB table name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a Cassandra table. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public CassandraTableResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private CassandraTableResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CassandraKeyspace. /// - public CassandraKeyspace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CassandraKeyspace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CassandraTable. @@ -86,15 +120,22 @@ public partial class CassandraTable : ProvisionableResource public CassandraTable(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CassandraTable. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraTableThroughputSetting.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraTableThroughputSetting.cs index 326d0425f2618..b71cf3577cd73 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraTableThroughputSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraTableThroughputSetting.cs @@ -21,50 +21,79 @@ public partial class CassandraTableThroughputSetting : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a resource throughput. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public ThroughputSettingsResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private ThroughputSettingsResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CassandraTable. /// - public CassandraTable? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CassandraTable? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CassandraTableThroughputSetting. @@ -79,14 +108,22 @@ public partial class CassandraTableThroughputSetting : ProvisionableResource public CassandraTableThroughputSetting(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// CassandraTableThroughputSetting. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraViewGetResult.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraViewGetResult.cs index f26dcf9360e41..34f21dc24b4ff 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraViewGetResult.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraViewGetResult.cs @@ -21,57 +21,91 @@ public partial class CassandraViewGetResult : ProvisionableResource /// /// Cosmos DB view name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a Cassandra view. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public CassandraViewResource Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private CassandraViewResource? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CassandraKeyspace. /// - public CassandraKeyspace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CassandraKeyspace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CassandraViewGetResult. @@ -86,15 +120,22 @@ public partial class CassandraViewGetResult : ProvisionableResource public CassandraViewGetResult(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/views", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CassandraViewGetResult. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraViewThroughputSetting.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraViewThroughputSetting.cs index f7b2b4c1a7944..71d4a3f58ea3f 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraViewThroughputSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CassandraViewThroughputSetting.cs @@ -21,50 +21,79 @@ public partial class CassandraViewThroughputSetting : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a resource throughput. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public ThroughputSettingsResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private ThroughputSettingsResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CassandraViewGetResult. /// - public CassandraViewGetResult? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CassandraViewGetResult? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CassandraViewThroughputSetting. @@ -79,14 +108,22 @@ public partial class CassandraViewThroughputSetting : ProvisionableResource public CassandraViewThroughputSetting(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/views/throughputSettings", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// CassandraViewThroughputSetting. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBAccount.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBAccount.cs index d7e55d1363888..2a2fe617e5c8a 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBAccount.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBAccount.cs @@ -25,33 +25,53 @@ public partial class CosmosDBAccount : ProvisionableResource /// /// Cosmos DB database account name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// An array that contains the georeplication locations enabled for the /// Cosmos DB account. /// - public BicepList Locations { get => _locations; set => _locations.Assign(value); } - private readonly BicepList _locations; + public BicepList Locations + { + get { Initialize(); return _locations!; } + set { Initialize(); _locations!.Assign(value); } + } + private BicepList? _locations; /// /// Describes the types of schema for analytical storage. /// - public BicepValue AnalyticalStorageSchemaType { get => _analyticalStorageSchemaType; set => _analyticalStorageSchemaType.Assign(value); } - private readonly BicepValue _analyticalStorageSchemaType; + public BicepValue AnalyticalStorageSchemaType + { + get { Initialize(); return _analyticalStorageSchemaType!; } + set { Initialize(); _analyticalStorageSchemaType!.Assign(value); } + } + private BicepValue? _analyticalStorageSchemaType; /// /// Describes the ServerVersion of an a MongoDB account. /// - public BicepValue ApiServerVersion { get => _apiServerVersion; set => _apiServerVersion.Assign(value); } - private readonly BicepValue _apiServerVersion; + public BicepValue ApiServerVersion + { + get { Initialize(); return _apiServerVersion!; } + set { Initialize(); _apiServerVersion!.Assign(value); } + } + private BicepValue? _apiServerVersion; /// /// The object representing the policy for taking backups on an account. @@ -64,14 +84,22 @@ public partial class CosmosDBAccount : ProvisionableResource /// Azure.ResourceManager.CosmosDB.Models.ContinuousModeBackupPolicy and /// Azure.ResourceManager.CosmosDB.Models.PeriodicModeBackupPolicy. /// - public BicepValue BackupPolicy { get => _backupPolicy; set => _backupPolicy.Assign(value); } - private readonly BicepValue _backupPolicy; + public CosmosDBAccountBackupPolicy BackupPolicy + { + get { Initialize(); return _backupPolicy!; } + set { Initialize(); AssignOrReplace(ref _backupPolicy, value); } + } + private CosmosDBAccountBackupPolicy? _backupPolicy; /// /// List of Cosmos DB capabilities for the account. /// - public BicepList Capabilities { get => _capabilities; set => _capabilities.Assign(value); } - private readonly BicepList _capabilities; + public BicepList Capabilities + { + get { Initialize(); return _capabilities!; } + set { Initialize(); _capabilities!.Assign(value); } + } + private BicepList? _capabilities; /// /// The total throughput limit imposed on the account. A @@ -80,47 +108,75 @@ public partial class CosmosDBAccount : ProvisionableResource /// totalThroughputLimit of -1 indicates no limits on provisioning of /// throughput. /// - public BicepValue CapacityTotalThroughputLimit { get => _capacityTotalThroughputLimit; set => _capacityTotalThroughputLimit.Assign(value); } - private readonly BicepValue _capacityTotalThroughputLimit; + public BicepValue CapacityTotalThroughputLimit + { + get { Initialize(); return _capacityTotalThroughputLimit!; } + set { Initialize(); _capacityTotalThroughputLimit!.Assign(value); } + } + private BicepValue? _capacityTotalThroughputLimit; /// /// The cassandra connector offer type for the Cosmos DB database C* /// account. /// - public BicepValue ConnectorOffer { get => _connectorOffer; set => _connectorOffer.Assign(value); } - private readonly BicepValue _connectorOffer; + public BicepValue ConnectorOffer + { + get { Initialize(); return _connectorOffer!; } + set { Initialize(); _connectorOffer!.Assign(value); } + } + private BicepValue? _connectorOffer; /// /// The consistency policy for the Cosmos DB account. /// - public BicepValue ConsistencyPolicy { get => _consistencyPolicy; set => _consistencyPolicy.Assign(value); } - private readonly BicepValue _consistencyPolicy; + public ConsistencyPolicy ConsistencyPolicy + { + get { Initialize(); return _consistencyPolicy!; } + set { Initialize(); AssignOrReplace(ref _consistencyPolicy, value); } + } + private ConsistencyPolicy? _consistencyPolicy; /// /// The CORS policy for the Cosmos DB database account. /// - public BicepList Cors { get => _cors; set => _cors.Assign(value); } - private readonly BicepList _cors; + public BicepList Cors + { + get { Initialize(); return _cors!; } + set { Initialize(); _cors!.Assign(value); } + } + private BicepList? _cors; /// /// Enum to indicate the mode of account creation. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// Indicates the status of the Customer Managed Key feature on the /// account. In case there are errors, the property provides /// troubleshooting guidance. /// - public BicepValue CustomerManagedKeyStatus { get => _customerManagedKeyStatus; set => _customerManagedKeyStatus.Assign(value); } - private readonly BicepValue _customerManagedKeyStatus; + public BicepValue CustomerManagedKeyStatus + { + get { Initialize(); return _customerManagedKeyStatus!; } + set { Initialize(); _customerManagedKeyStatus!.Assign(value); } + } + private BicepValue? _customerManagedKeyStatus; /// /// The offer type for the database. /// - public BicepValue DatabaseAccountOfferType { get => _databaseAccountOfferType; set => _databaseAccountOfferType.Assign(value); } - private readonly BicepValue _databaseAccountOfferType; + public BicepValue DatabaseAccountOfferType + { + get { Initialize(); return _databaseAccountOfferType!; } + set { Initialize(); _databaseAccountOfferType!.Assign(value); } + } + private BicepValue? _databaseAccountOfferType; /// /// The default identity for accessing key vault used in features like @@ -128,35 +184,55 @@ public partial class CosmosDBAccount : ProvisionableResource /// by the users. It can be "FirstPartyIdentity", /// "SystemAssignedIdentity" and more. /// - public BicepValue DefaultIdentity { get => _defaultIdentity; set => _defaultIdentity.Assign(value); } - private readonly BicepValue _defaultIdentity; + public BicepValue DefaultIdentity + { + get { Initialize(); return _defaultIdentity!; } + set { Initialize(); _defaultIdentity!.Assign(value); } + } + private BicepValue? _defaultIdentity; /// /// Enum to indicate default Priority Level of request for Priority Based /// Execution. /// - public BicepValue DefaultPriorityLevel { get => _defaultPriorityLevel; set => _defaultPriorityLevel.Assign(value); } - private readonly BicepValue _defaultPriorityLevel; + public BicepValue DefaultPriorityLevel + { + get { Initialize(); return _defaultPriorityLevel!; } + set { Initialize(); _defaultPriorityLevel!.Assign(value); } + } + private BicepValue? _defaultPriorityLevel; /// /// Describe the level of detail with which queries are to be logged. /// - public BicepValue DiagnosticLogEnableFullTextQuery { get => _diagnosticLogEnableFullTextQuery; set => _diagnosticLogEnableFullTextQuery.Assign(value); } - private readonly BicepValue _diagnosticLogEnableFullTextQuery; + public BicepValue DiagnosticLogEnableFullTextQuery + { + get { Initialize(); return _diagnosticLogEnableFullTextQuery!; } + set { Initialize(); _diagnosticLogEnableFullTextQuery!.Assign(value); } + } + private BicepValue? _diagnosticLogEnableFullTextQuery; /// /// Disable write operations on metadata resources (databases, containers, /// throughput) via account keys. /// - public BicepValue DisableKeyBasedMetadataWriteAccess { get => _disableKeyBasedMetadataWriteAccess; set => _disableKeyBasedMetadataWriteAccess.Assign(value); } - private readonly BicepValue _disableKeyBasedMetadataWriteAccess; + public BicepValue DisableKeyBasedMetadataWriteAccess + { + get { Initialize(); return _disableKeyBasedMetadataWriteAccess!; } + set { Initialize(); _disableKeyBasedMetadataWriteAccess!.Assign(value); } + } + private BicepValue? _disableKeyBasedMetadataWriteAccess; /// /// Opt-out of local authentication and ensure only MSI and AAD can be used /// exclusively for authentication. /// - public BicepValue DisableLocalAuth { get => _disableLocalAuth; set => _disableLocalAuth.Assign(value); } - private readonly BicepValue _disableLocalAuth; + public BicepValue DisableLocalAuth + { + get { Initialize(); return _disableLocalAuth!; } + set { Initialize(); _disableLocalAuth!.Assign(value); } + } + private BicepValue? _disableLocalAuth; /// /// Enables automatic failover of the write region in the rare event that @@ -164,182 +240,288 @@ public partial class CosmosDBAccount : ProvisionableResource /// result in a new write region for the account and is chosen based on /// the failover priorities configured for the account. /// - public BicepValue EnableAutomaticFailover { get => _enableAutomaticFailover; set => _enableAutomaticFailover.Assign(value); } - private readonly BicepValue _enableAutomaticFailover; + public BicepValue EnableAutomaticFailover + { + get { Initialize(); return _enableAutomaticFailover!; } + set { Initialize(); _enableAutomaticFailover!.Assign(value); } + } + private BicepValue? _enableAutomaticFailover; /// /// Flag to indicate enabling/disabling of Burst Capacity Preview feature /// on the account. /// - public BicepValue EnableBurstCapacity { get => _enableBurstCapacity; set => _enableBurstCapacity.Assign(value); } - private readonly BicepValue _enableBurstCapacity; + public BicepValue EnableBurstCapacity + { + get { Initialize(); return _enableBurstCapacity!; } + set { Initialize(); _enableBurstCapacity!.Assign(value); } + } + private BicepValue? _enableBurstCapacity; /// /// Enables the cassandra connector on the Cosmos DB C* account. /// - public BicepValue EnableCassandraConnector { get => _enableCassandraConnector; set => _enableCassandraConnector.Assign(value); } - private readonly BicepValue _enableCassandraConnector; + public BicepValue EnableCassandraConnector + { + get { Initialize(); return _enableCassandraConnector!; } + set { Initialize(); _enableCassandraConnector!.Assign(value); } + } + private BicepValue? _enableCassandraConnector; /// /// Flag to indicate whether to enable MaterializedViews on the Cosmos DB /// account. /// - public BicepValue EnableMaterializedViews { get => _enableMaterializedViews; set => _enableMaterializedViews.Assign(value); } - private readonly BicepValue _enableMaterializedViews; + public BicepValue EnableMaterializedViews + { + get { Initialize(); return _enableMaterializedViews!; } + set { Initialize(); _enableMaterializedViews!.Assign(value); } + } + private BicepValue? _enableMaterializedViews; /// /// Enables the account to write in multiple locations. /// - public BicepValue EnableMultipleWriteLocations { get => _enableMultipleWriteLocations; set => _enableMultipleWriteLocations.Assign(value); } - private readonly BicepValue _enableMultipleWriteLocations; + public BicepValue EnableMultipleWriteLocations + { + get { Initialize(); return _enableMultipleWriteLocations!; } + set { Initialize(); _enableMultipleWriteLocations!.Assign(value); } + } + private BicepValue? _enableMultipleWriteLocations; /// /// Flag to indicate enabling/disabling of Partition Merge feature on the /// account. /// - public BicepValue EnablePartitionMerge { get => _enablePartitionMerge; set => _enablePartitionMerge.Assign(value); } - private readonly BicepValue _enablePartitionMerge; + public BicepValue EnablePartitionMerge + { + get { Initialize(); return _enablePartitionMerge!; } + set { Initialize(); _enablePartitionMerge!.Assign(value); } + } + private BicepValue? _enablePartitionMerge; /// /// Flag to indicate enabling/disabling of Per-Region Per-partition /// autoscale Preview feature on the account. /// - public BicepValue EnablePerRegionPerPartitionAutoscale { get => _enablePerRegionPerPartitionAutoscale; set => _enablePerRegionPerPartitionAutoscale.Assign(value); } - private readonly BicepValue _enablePerRegionPerPartitionAutoscale; + public BicepValue EnablePerRegionPerPartitionAutoscale + { + get { Initialize(); return _enablePerRegionPerPartitionAutoscale!; } + set { Initialize(); _enablePerRegionPerPartitionAutoscale!.Assign(value); } + } + private BicepValue? _enablePerRegionPerPartitionAutoscale; /// /// Flag to indicate enabling/disabling of Priority Based Execution Preview /// feature on the account. /// - public BicepValue EnablePriorityBasedExecution { get => _enablePriorityBasedExecution; set => _enablePriorityBasedExecution.Assign(value); } - private readonly BicepValue _enablePriorityBasedExecution; + public BicepValue EnablePriorityBasedExecution + { + get { Initialize(); return _enablePriorityBasedExecution!; } + set { Initialize(); _enablePriorityBasedExecution!.Assign(value); } + } + private BicepValue? _enablePriorityBasedExecution; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// List of IpRules. /// - public BicepList IPRules { get => _iPRules; set => _iPRules.Assign(value); } - private readonly BicepList _iPRules; + public BicepList IPRules + { + get { Initialize(); return _iPRules!; } + set { Initialize(); _iPRules!.Assign(value); } + } + private BicepList? _iPRules; /// /// Flag to indicate whether to enable storage analytics. /// - public BicepValue IsAnalyticalStorageEnabled { get => _isAnalyticalStorageEnabled; set => _isAnalyticalStorageEnabled.Assign(value); } - private readonly BicepValue _isAnalyticalStorageEnabled; + public BicepValue IsAnalyticalStorageEnabled + { + get { Initialize(); return _isAnalyticalStorageEnabled!; } + set { Initialize(); _isAnalyticalStorageEnabled!.Assign(value); } + } + private BicepValue? _isAnalyticalStorageEnabled; /// /// Flag to indicate whether Free Tier is enabled. /// - public BicepValue IsFreeTierEnabled { get => _isFreeTierEnabled; set => _isFreeTierEnabled.Assign(value); } - private readonly BicepValue _isFreeTierEnabled; + public BicepValue IsFreeTierEnabled + { + get { Initialize(); return _isFreeTierEnabled!; } + set { Initialize(); _isFreeTierEnabled!.Assign(value); } + } + private BicepValue? _isFreeTierEnabled; /// /// Flag to indicate whether to enable/disable Virtual Network ACL rules. /// - public BicepValue IsVirtualNetworkFilterEnabled { get => _isVirtualNetworkFilterEnabled; set => _isVirtualNetworkFilterEnabled.Assign(value); } - private readonly BicepValue _isVirtualNetworkFilterEnabled; + public BicepValue IsVirtualNetworkFilterEnabled + { + get { Initialize(); return _isVirtualNetworkFilterEnabled!; } + set { Initialize(); _isVirtualNetworkFilterEnabled!.Assign(value); } + } + private BicepValue? _isVirtualNetworkFilterEnabled; /// /// The URI of the key vault. /// - public BicepValue KeyVaultKeyUri { get => _keyVaultKeyUri; set => _keyVaultKeyUri.Assign(value); } - private readonly BicepValue _keyVaultKeyUri; + public BicepValue KeyVaultKeyUri + { + get { Initialize(); return _keyVaultKeyUri!; } + set { Initialize(); _keyVaultKeyUri!.Assign(value); } + } + private BicepValue? _keyVaultKeyUri; /// /// Indicates the type of database account. This can only be set at /// database account creation. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Indicates the minimum allowed Tls version. The default is Tls 1.0, /// except for Cassandra and Mongo API's, which only work with Tls /// 1.2. /// - public BicepValue MinimalTlsVersion { get => _minimalTlsVersion; set => _minimalTlsVersion.Assign(value); } - private readonly BicepValue _minimalTlsVersion; + public BicepValue MinimalTlsVersion + { + get { Initialize(); return _minimalTlsVersion!; } + set { Initialize(); _minimalTlsVersion!.Assign(value); } + } + private BicepValue? _minimalTlsVersion; /// /// Indicates what services are allowed to bypass firewall checks. /// - public BicepValue NetworkAclBypass { get => _networkAclBypass; set => _networkAclBypass.Assign(value); } - private readonly BicepValue _networkAclBypass; + public BicepValue NetworkAclBypass + { + get { Initialize(); return _networkAclBypass!; } + set { Initialize(); _networkAclBypass!.Assign(value); } + } + private BicepValue? _networkAclBypass; /// /// An array that contains the Resource Ids for Network Acl Bypass for the /// Cosmos DB account. /// - public BicepList NetworkAclBypassResourceIds { get => _networkAclBypassResourceIds; set => _networkAclBypassResourceIds.Assign(value); } - private readonly BicepList _networkAclBypassResourceIds; + public BicepList NetworkAclBypassResourceIds + { + get { Initialize(); return _networkAclBypassResourceIds!; } + set { Initialize(); _networkAclBypassResourceIds!.Assign(value); } + } + private BicepList? _networkAclBypassResourceIds; /// /// Whether requests from Public Network are allowed. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Parameters to indicate the information about the restore. /// - public BicepValue RestoreParameters { get => _restoreParameters; set => _restoreParameters.Assign(value); } - private readonly BicepValue _restoreParameters; + public CosmosDBAccountRestoreParameters RestoreParameters + { + get { Initialize(); return _restoreParameters!; } + set { Initialize(); AssignOrReplace(ref _restoreParameters, value); } + } + private CosmosDBAccountRestoreParameters? _restoreParameters; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// List of Virtual Network ACL rules configured for the Cosmos DB account. /// - public BicepList VirtualNetworkRules { get => _virtualNetworkRules; set => _virtualNetworkRules.Assign(value); } - private readonly BicepList _virtualNetworkRules; + public BicepList VirtualNetworkRules + { + get { Initialize(); return _virtualNetworkRules!; } + set { Initialize(); _virtualNetworkRules!.Assign(value); } + } + private BicepList? _virtualNetworkRules; /// /// The connection endpoint for the Cosmos DB database account. /// - public BicepValue DocumentEndpoint { get => _documentEndpoint; } - private readonly BicepValue _documentEndpoint; + public BicepValue DocumentEndpoint + { + get { Initialize(); return _documentEndpoint!; } + } + private BicepValue? _documentEndpoint; /// /// An array that contains the regions ordered by their failover priorities. /// - public BicepList FailoverPolicies { get => _failoverPolicies; } - private readonly BicepList _failoverPolicies; + public BicepList FailoverPolicies + { + get { Initialize(); return _failoverPolicies!; } + } + private BicepList? _failoverPolicies; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// A unique identifier assigned to the database account. /// - public BicepValue InstanceId { get => _instanceId; } - private readonly BicepValue _instanceId; + public BicepValue InstanceId + { + get { Initialize(); return _instanceId!; } + } + private BicepValue? _instanceId; /// /// This property is ignored during the update/create operation, as the /// metadata is read-only. The object represents the metadata for the /// Account Keys of the Cosmos DB account. /// - public BicepValue KeysMetadata { get => _keysMetadata; } - private readonly BicepValue _keysMetadata; + public DatabaseAccountKeysMetadata KeysMetadata + { + get { Initialize(); return _keysMetadata!; } + } + private DatabaseAccountKeysMetadata? _keysMetadata; /// /// List of Private Endpoint Connections configured for the Cosmos DB /// account. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// The status of the Cosmos DB account at the time the operation was @@ -353,27 +535,39 @@ public partial class CosmosDBAccount : ProvisionableResource /// failed creation. 'DeletionFailed' – the Cosmos DB account /// deletion failed. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// An array that contains of the read locations enabled for the Cosmos DB /// account. /// - public BicepList ReadLocations { get => _readLocations; } - private readonly BicepList _readLocations; + public BicepList ReadLocations + { + get { Initialize(); return _readLocations!; } + } + private BicepList? _readLocations; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// An array that contains the write location for the Cosmos DB account. /// - public BicepList WriteLocations { get => _writeLocations; } - private readonly BicepList _writeLocations; + public BicepList WriteLocations + { + get { Initialize(); return _writeLocations!; } + } + private BicepList? _writeLocations; /// /// Creates a new CosmosDBAccount. @@ -388,57 +582,64 @@ public partial class CosmosDBAccount : ProvisionableResource public CosmosDBAccount(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _locations = BicepList.DefineProperty(this, "Locations", ["properties", "locations"], isRequired: true); - _analyticalStorageSchemaType = BicepValue.DefineProperty(this, "AnalyticalStorageSchemaType", ["properties", "analyticalStorageConfiguration", "schemaType"]); - _apiServerVersion = BicepValue.DefineProperty(this, "ApiServerVersion", ["properties", "apiProperties", "serverVersion"]); - _backupPolicy = BicepValue.DefineProperty(this, "BackupPolicy", ["properties", "backupPolicy"]); - _capabilities = BicepList.DefineProperty(this, "Capabilities", ["properties", "capabilities"]); - _capacityTotalThroughputLimit = BicepValue.DefineProperty(this, "CapacityTotalThroughputLimit", ["properties", "capacity", "totalThroughputLimit"]); - _connectorOffer = BicepValue.DefineProperty(this, "ConnectorOffer", ["properties", "connectorOffer"]); - _consistencyPolicy = BicepValue.DefineProperty(this, "ConsistencyPolicy", ["properties", "consistencyPolicy"]); - _cors = BicepList.DefineProperty(this, "Cors", ["properties", "cors"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["properties", "createMode"]); - _customerManagedKeyStatus = BicepValue.DefineProperty(this, "CustomerManagedKeyStatus", ["properties", "customerManagedKeyStatus"]); - _databaseAccountOfferType = BicepValue.DefineProperty(this, "DatabaseAccountOfferType", ["properties", "databaseAccountOfferType"]); - _defaultIdentity = BicepValue.DefineProperty(this, "DefaultIdentity", ["properties", "defaultIdentity"]); - _defaultPriorityLevel = BicepValue.DefineProperty(this, "DefaultPriorityLevel", ["properties", "defaultPriorityLevel"]); - _diagnosticLogEnableFullTextQuery = BicepValue.DefineProperty(this, "DiagnosticLogEnableFullTextQuery", ["properties", "diagnosticLogSettings", "enableFullTextQuery"]); - _disableKeyBasedMetadataWriteAccess = BicepValue.DefineProperty(this, "DisableKeyBasedMetadataWriteAccess", ["properties", "disableKeyBasedMetadataWriteAccess"]); - _disableLocalAuth = BicepValue.DefineProperty(this, "DisableLocalAuth", ["properties", "disableLocalAuth"]); - _enableAutomaticFailover = BicepValue.DefineProperty(this, "EnableAutomaticFailover", ["properties", "enableAutomaticFailover"]); - _enableBurstCapacity = BicepValue.DefineProperty(this, "EnableBurstCapacity", ["properties", "enableBurstCapacity"]); - _enableCassandraConnector = BicepValue.DefineProperty(this, "EnableCassandraConnector", ["properties", "enableCassandraConnector"]); - _enableMaterializedViews = BicepValue.DefineProperty(this, "EnableMaterializedViews", ["properties", "enableMaterializedViews"]); - _enableMultipleWriteLocations = BicepValue.DefineProperty(this, "EnableMultipleWriteLocations", ["properties", "enableMultipleWriteLocations"]); - _enablePartitionMerge = BicepValue.DefineProperty(this, "EnablePartitionMerge", ["properties", "enablePartitionMerge"]); - _enablePerRegionPerPartitionAutoscale = BicepValue.DefineProperty(this, "EnablePerRegionPerPartitionAutoscale", ["properties", "enablePerRegionPerPartitionAutoscale"]); - _enablePriorityBasedExecution = BicepValue.DefineProperty(this, "EnablePriorityBasedExecution", ["properties", "enablePriorityBasedExecution"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _iPRules = BicepList.DefineProperty(this, "IPRules", ["properties", "ipRules"]); - _isAnalyticalStorageEnabled = BicepValue.DefineProperty(this, "IsAnalyticalStorageEnabled", ["properties", "enableAnalyticalStorage"]); - _isFreeTierEnabled = BicepValue.DefineProperty(this, "IsFreeTierEnabled", ["properties", "enableFreeTier"]); - _isVirtualNetworkFilterEnabled = BicepValue.DefineProperty(this, "IsVirtualNetworkFilterEnabled", ["properties", "isVirtualNetworkFilterEnabled"]); - _keyVaultKeyUri = BicepValue.DefineProperty(this, "KeyVaultKeyUri", ["properties", "keyVaultKeyUri"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _minimalTlsVersion = BicepValue.DefineProperty(this, "MinimalTlsVersion", ["properties", "minimalTlsVersion"]); - _networkAclBypass = BicepValue.DefineProperty(this, "NetworkAclBypass", ["properties", "networkAclBypass"]); - _networkAclBypassResourceIds = BicepList.DefineProperty(this, "NetworkAclBypassResourceIds", ["properties", "networkAclBypassResourceIds"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _restoreParameters = BicepValue.DefineProperty(this, "RestoreParameters", ["properties", "restoreParameters"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _virtualNetworkRules = BicepList.DefineProperty(this, "VirtualNetworkRules", ["properties", "virtualNetworkRules"]); - _documentEndpoint = BicepValue.DefineProperty(this, "DocumentEndpoint", ["properties", "documentEndpoint"], isOutput: true); - _failoverPolicies = BicepList.DefineProperty(this, "FailoverPolicies", ["properties", "failoverPolicies"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _instanceId = BicepValue.DefineProperty(this, "InstanceId", ["properties", "instanceId"], isOutput: true); - _keysMetadata = BicepValue.DefineProperty(this, "KeysMetadata", ["properties", "keysMetadata"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _readLocations = BicepList.DefineProperty(this, "ReadLocations", ["properties", "readLocations"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _writeLocations = BicepList.DefineProperty(this, "WriteLocations", ["properties", "writeLocations"], isOutput: true); + } + + /// + /// Define all the provisionable properties of CosmosDBAccount. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _locations = DefineListProperty("Locations", ["properties", "locations"], isRequired: true); + _analyticalStorageSchemaType = DefineProperty("AnalyticalStorageSchemaType", ["properties", "analyticalStorageConfiguration", "schemaType"]); + _apiServerVersion = DefineProperty("ApiServerVersion", ["properties", "apiProperties", "serverVersion"]); + _backupPolicy = DefineModelProperty("BackupPolicy", ["properties", "backupPolicy"]); + _capabilities = DefineListProperty("Capabilities", ["properties", "capabilities"]); + _capacityTotalThroughputLimit = DefineProperty("CapacityTotalThroughputLimit", ["properties", "capacity", "totalThroughputLimit"]); + _connectorOffer = DefineProperty("ConnectorOffer", ["properties", "connectorOffer"]); + _consistencyPolicy = DefineModelProperty("ConsistencyPolicy", ["properties", "consistencyPolicy"]); + _cors = DefineListProperty("Cors", ["properties", "cors"]); + _createMode = DefineProperty("CreateMode", ["properties", "createMode"]); + _customerManagedKeyStatus = DefineProperty("CustomerManagedKeyStatus", ["properties", "customerManagedKeyStatus"]); + _databaseAccountOfferType = DefineProperty("DatabaseAccountOfferType", ["properties", "databaseAccountOfferType"]); + _defaultIdentity = DefineProperty("DefaultIdentity", ["properties", "defaultIdentity"]); + _defaultPriorityLevel = DefineProperty("DefaultPriorityLevel", ["properties", "defaultPriorityLevel"]); + _diagnosticLogEnableFullTextQuery = DefineProperty("DiagnosticLogEnableFullTextQuery", ["properties", "diagnosticLogSettings", "enableFullTextQuery"]); + _disableKeyBasedMetadataWriteAccess = DefineProperty("DisableKeyBasedMetadataWriteAccess", ["properties", "disableKeyBasedMetadataWriteAccess"]); + _disableLocalAuth = DefineProperty("DisableLocalAuth", ["properties", "disableLocalAuth"]); + _enableAutomaticFailover = DefineProperty("EnableAutomaticFailover", ["properties", "enableAutomaticFailover"]); + _enableBurstCapacity = DefineProperty("EnableBurstCapacity", ["properties", "enableBurstCapacity"]); + _enableCassandraConnector = DefineProperty("EnableCassandraConnector", ["properties", "enableCassandraConnector"]); + _enableMaterializedViews = DefineProperty("EnableMaterializedViews", ["properties", "enableMaterializedViews"]); + _enableMultipleWriteLocations = DefineProperty("EnableMultipleWriteLocations", ["properties", "enableMultipleWriteLocations"]); + _enablePartitionMerge = DefineProperty("EnablePartitionMerge", ["properties", "enablePartitionMerge"]); + _enablePerRegionPerPartitionAutoscale = DefineProperty("EnablePerRegionPerPartitionAutoscale", ["properties", "enablePerRegionPerPartitionAutoscale"]); + _enablePriorityBasedExecution = DefineProperty("EnablePriorityBasedExecution", ["properties", "enablePriorityBasedExecution"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _iPRules = DefineListProperty("IPRules", ["properties", "ipRules"]); + _isAnalyticalStorageEnabled = DefineProperty("IsAnalyticalStorageEnabled", ["properties", "enableAnalyticalStorage"]); + _isFreeTierEnabled = DefineProperty("IsFreeTierEnabled", ["properties", "enableFreeTier"]); + _isVirtualNetworkFilterEnabled = DefineProperty("IsVirtualNetworkFilterEnabled", ["properties", "isVirtualNetworkFilterEnabled"]); + _keyVaultKeyUri = DefineProperty("KeyVaultKeyUri", ["properties", "keyVaultKeyUri"]); + _kind = DefineProperty("Kind", ["kind"]); + _minimalTlsVersion = DefineProperty("MinimalTlsVersion", ["properties", "minimalTlsVersion"]); + _networkAclBypass = DefineProperty("NetworkAclBypass", ["properties", "networkAclBypass"]); + _networkAclBypassResourceIds = DefineListProperty("NetworkAclBypassResourceIds", ["properties", "networkAclBypassResourceIds"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _restoreParameters = DefineModelProperty("RestoreParameters", ["properties", "restoreParameters"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _virtualNetworkRules = DefineListProperty("VirtualNetworkRules", ["properties", "virtualNetworkRules"]); + _documentEndpoint = DefineProperty("DocumentEndpoint", ["properties", "documentEndpoint"], isOutput: true); + _failoverPolicies = DefineListProperty("FailoverPolicies", ["properties", "failoverPolicies"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _instanceId = DefineProperty("InstanceId", ["properties", "instanceId"], isOutput: true); + _keysMetadata = DefineModelProperty("KeysMetadata", ["properties", "keysMetadata"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _readLocations = DefineListProperty("ReadLocations", ["properties", "readLocations"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _writeLocations = DefineListProperty("WriteLocations", ["properties", "writeLocations"], isOutput: true); } /// @@ -598,9 +799,12 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this CosmosDBAccount resource. /// /// The keys for this CosmosDBAccount resource. - public CosmosDBAccountKeyList GetKeys() => - CosmosDBAccountKeyList.FromExpression( - new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys"))); + public CosmosDBAccountKeyList GetKeys() + { + CosmosDBAccountKeyList key = new(); + ((IBicepValue)key).Expression = new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")); + return key; + } /// /// Creates a role assignment for a user-assigned identity that grants diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBFirewallRule.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBFirewallRule.cs index 59e750e6f0dee..2745bc4c450ea 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBFirewallRule.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBFirewallRule.cs @@ -20,46 +20,71 @@ public partial class CosmosDBFirewallRule : ProvisionableResource /// /// The name of the mongo cluster firewall rule. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The end IP address of the mongo cluster firewall rule. Must be IPv4 /// format. /// - public BicepValue EndIPAddress { get => _endIPAddress; set => _endIPAddress.Assign(value); } - private readonly BicepValue _endIPAddress; + public BicepValue EndIPAddress + { + get { Initialize(); return _endIPAddress!; } + set { Initialize(); _endIPAddress!.Assign(value); } + } + private BicepValue? _endIPAddress; /// /// The start IP address of the mongo cluster firewall rule. Must be IPv4 /// format. /// - public BicepValue StartIPAddress { get => _startIPAddress; set => _startIPAddress.Assign(value); } - private readonly BicepValue _startIPAddress; + public BicepValue StartIPAddress + { + get { Initialize(); return _startIPAddress!; } + set { Initialize(); _startIPAddress!.Assign(value); } + } + private BicepValue? _startIPAddress; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning state of the firewall rule. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent MongoCluster. /// - public MongoCluster? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public MongoCluster? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBFirewallRule. @@ -74,13 +99,20 @@ public partial class CosmosDBFirewallRule : ProvisionableResource public CosmosDBFirewallRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/mongoClusters/firewallRules", resourceVersion ?? "2024-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _endIPAddress = BicepValue.DefineProperty(this, "EndIPAddress", ["properties", "endIpAddress"], isRequired: true); - _startIPAddress = BicepValue.DefineProperty(this, "StartIPAddress", ["properties", "startIpAddress"], isRequired: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CosmosDBFirewallRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _endIPAddress = DefineProperty("EndIPAddress", ["properties", "endIpAddress"], isRequired: true); + _startIPAddress = DefineProperty("StartIPAddress", ["properties", "startIpAddress"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBPrivateEndpointConnection.cs index 0cff40844d695..41d924933568e 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBPrivateEndpointConnection.cs @@ -20,50 +20,80 @@ public partial class CosmosDBPrivateEndpointConnection : ProvisionableResource /// /// The name of the private endpoint connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Connection State of the Private Endpoint Connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public CosmosDBPrivateLinkServiceConnectionStateProperty ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private CosmosDBPrivateLinkServiceConnectionStateProperty? _connectionState; /// /// Group id of the private endpoint. /// - public BicepValue GroupId { get => _groupId; set => _groupId.Assign(value); } - private readonly BicepValue _groupId; + public BicepValue GroupId + { + get { Initialize(); return _groupId!; } + set { Initialize(); _groupId!.Assign(value); } + } + private BicepValue? _groupId; /// /// Resource id of the private endpoint. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Provisioning state of the private endpoint. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBAccount. /// - public CosmosDBAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBPrivateEndpointConnection. @@ -78,14 +108,22 @@ public partial class CosmosDBPrivateEndpointConnection : ProvisionableResource public CosmosDBPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _groupId = BicepValue.DefineProperty(this, "GroupId", ["properties", "groupId"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _groupId = DefineProperty("GroupId", ["properties", "groupId"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBService.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBService.cs index 5295b56da3086..bd1b8beeaf009 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBService.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBService.cs @@ -21,32 +21,51 @@ public partial class CosmosDBService : ProvisionableResource /// /// Cosmos DB service name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Instance count for the service. /// - public BicepValue InstanceCount { get => _instanceCount; set => _instanceCount.Assign(value); } - private readonly BicepValue _instanceCount; + public BicepValue InstanceCount + { + get { Initialize(); return _instanceCount!; } + set { Initialize(); _instanceCount!.Assign(value); } + } + private BicepValue? _instanceCount; /// /// Instance type for the service. /// - public BicepValue InstanceSize { get => _instanceSize; set => _instanceSize.Assign(value); } - private readonly BicepValue _instanceSize; + public BicepValue InstanceSize + { + get { Initialize(); return _instanceSize!; } + set { Initialize(); _instanceSize!.Assign(value); } + } + private BicepValue? _instanceSize; /// /// ServiceType for the service. /// - public BicepValue ServiceType { get => _serviceType; set => _serviceType.Assign(value); } - private readonly BicepValue _serviceType; + public BicepValue ServiceType + { + get { Initialize(); return _serviceType!; } + set { Initialize(); _serviceType!.Assign(value); } + } + private BicepValue? _serviceType; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Services response resource. Please note @@ -61,20 +80,30 @@ public partial class CosmosDBService : ProvisionableResource /// and /// Azure.ResourceManager.CosmosDB.Models.SqlDedicatedGatewayServiceProperties. /// - public BicepValue Properties { get => _properties; } - private readonly BicepValue _properties; + public CosmosDBServiceProperties Properties + { + get { Initialize(); return _properties!; } + } + private CosmosDBServiceProperties? _properties; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBAccount. /// - public CosmosDBAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBService. @@ -89,14 +118,21 @@ public partial class CosmosDBService : ProvisionableResource public CosmosDBService(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/services", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _instanceCount = BicepValue.DefineProperty(this, "InstanceCount", ["properties", "instanceCount"]); - _instanceSize = BicepValue.DefineProperty(this, "InstanceSize", ["properties", "instanceSize"]); - _serviceType = BicepValue.DefineProperty(this, "ServiceType", ["properties", "serviceType"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CosmosDBService. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _instanceCount = DefineProperty("InstanceCount", ["properties", "instanceCount"]); + _instanceSize = DefineProperty("InstanceSize", ["properties", "instanceSize"]); + _serviceType = DefineProperty("ServiceType", ["properties", "serviceType"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _properties = DefineModelProperty("Properties", ["properties"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlClientEncryptionKey.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlClientEncryptionKey.cs index 346e322aebb4a..152dcb555b07a 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlClientEncryptionKey.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlClientEncryptionKey.cs @@ -20,32 +20,50 @@ public partial class CosmosDBSqlClientEncryptionKey : ProvisionableResource /// /// Cosmos DB ClientEncryptionKey name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The standard JSON format of a ClientEncryptionKey. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public CosmosDBSqlClientEncryptionKeyResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private CosmosDBSqlClientEncryptionKeyResourceInfo? _resource; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBSqlDatabase. /// - public CosmosDBSqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBSqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBSqlClientEncryptionKey. @@ -60,11 +78,19 @@ public partial class CosmosDBSqlClientEncryptionKey : ProvisionableResource public CosmosDBSqlClientEncryptionKey(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKeys", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBSqlClientEncryptionKey. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlContainer.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlContainer.cs index 95e4f7ed5d6af..01a6b7eb10313 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlContainer.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlContainer.cs @@ -21,57 +21,91 @@ public partial class CosmosDBSqlContainer : ProvisionableResource /// /// Cosmos DB container name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a container. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public CosmosDBSqlContainerResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private CosmosDBSqlContainerResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBSqlDatabase. /// - public CosmosDBSqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBSqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBSqlContainer. @@ -86,15 +120,22 @@ public partial class CosmosDBSqlContainer : ProvisionableResource public CosmosDBSqlContainer(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CosmosDBSqlContainer. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlContainerThroughputSetting.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlContainerThroughputSetting.cs index 2829b35ac13f3..5e94d9cf0bbb9 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlContainerThroughputSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlContainerThroughputSetting.cs @@ -21,50 +21,79 @@ public partial class CosmosDBSqlContainerThroughputSetting : ProvisionableResour /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a resource throughput. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public ThroughputSettingsResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private ThroughputSettingsResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBSqlContainer. /// - public CosmosDBSqlContainer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBSqlContainer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBSqlContainerThroughputSetting. @@ -79,14 +108,22 @@ public partial class CosmosDBSqlContainerThroughputSetting : ProvisionableResour public CosmosDBSqlContainerThroughputSetting(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBSqlContainerThroughputSetting. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlDatabase.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlDatabase.cs index 0f5c85783718e..4b73987774c65 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlDatabase.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlDatabase.cs @@ -21,57 +21,91 @@ public partial class CosmosDBSqlDatabase : ProvisionableResource /// /// Cosmos DB database name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a SQL database. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public CosmosDBSqlDatabaseResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private CosmosDBSqlDatabaseResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBAccount. /// - public CosmosDBAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBSqlDatabase. @@ -86,15 +120,22 @@ public partial class CosmosDBSqlDatabase : ProvisionableResource public CosmosDBSqlDatabase(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CosmosDBSqlDatabase. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlDatabaseThroughputSetting.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlDatabaseThroughputSetting.cs index f7aec11b53052..d55795d435c37 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlDatabaseThroughputSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlDatabaseThroughputSetting.cs @@ -21,50 +21,79 @@ public partial class CosmosDBSqlDatabaseThroughputSetting : ProvisionableResourc /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a resource throughput. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public ThroughputSettingsResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private ThroughputSettingsResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBSqlDatabase. /// - public CosmosDBSqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBSqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBSqlDatabaseThroughputSetting. @@ -79,14 +108,22 @@ public partial class CosmosDBSqlDatabaseThroughputSetting : ProvisionableResourc public CosmosDBSqlDatabaseThroughputSetting(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBSqlDatabaseThroughputSetting. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlRoleAssignment.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlRoleAssignment.cs index 7c252ee4f9b8e..a51ba5d9ec065 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlRoleAssignment.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlRoleAssignment.cs @@ -20,8 +20,11 @@ public partial class CosmosDBSqlRoleAssignment : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The unique identifier for the associated AAD principal in the AAD graph @@ -29,39 +32,61 @@ public partial class CosmosDBSqlRoleAssignment : ProvisionableResource /// ID for the principal is inferred using the tenant associated with the /// subscription. /// - public BicepValue PrincipalId { get => _principalId; set => _principalId.Assign(value); } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + set { Initialize(); _principalId!.Assign(value); } + } + private BicepValue? _principalId; /// /// The unique identifier for the associated Role Definition. /// - public BicepValue RoleDefinitionId { get => _roleDefinitionId; set => _roleDefinitionId.Assign(value); } - private readonly BicepValue _roleDefinitionId; + public BicepValue RoleDefinitionId + { + get { Initialize(); return _roleDefinitionId!; } + set { Initialize(); _roleDefinitionId!.Assign(value); } + } + private BicepValue? _roleDefinitionId; /// /// The data plane resource path for which access is being granted through /// this Role Assignment. /// - public BicepValue Scope { get => _scope; set => _scope.Assign(value); } - private readonly BicepValue _scope; + public BicepValue Scope + { + get { Initialize(); return _scope!; } + set { Initialize(); _scope!.Assign(value); } + } + private BicepValue? _scope; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBAccount. /// - public CosmosDBAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBSqlRoleAssignment. @@ -76,13 +101,20 @@ public partial class CosmosDBSqlRoleAssignment : ProvisionableResource public CosmosDBSqlRoleAssignment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["properties", "principalId"]); - _roleDefinitionId = BicepValue.DefineProperty(this, "RoleDefinitionId", ["properties", "roleDefinitionId"]); - _scope = BicepValue.DefineProperty(this, "Scope", ["properties", "scope"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CosmosDBSqlRoleAssignment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _principalId = DefineProperty("PrincipalId", ["properties", "principalId"]); + _roleDefinitionId = DefineProperty("RoleDefinitionId", ["properties", "roleDefinitionId"]); + _scope = DefineProperty("Scope", ["properties", "scope"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlRoleDefinition.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlRoleDefinition.cs index 1b01d9af3b87b..0cf5ae735cb32 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlRoleDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlRoleDefinition.cs @@ -21,8 +21,11 @@ public partial class CosmosDBSqlRoleDefinition : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// A set of fully qualified Scopes at or below which Role Assignments may @@ -32,45 +35,71 @@ public partial class CosmosDBSqlRoleDefinition : ProvisionableResource /// than Database account are not enforceable as assignable Scopes. Note /// that resources referenced in assignable Scopes need not exist. /// - public BicepList AssignableScopes { get => _assignableScopes; set => _assignableScopes.Assign(value); } - private readonly BicepList _assignableScopes; + public BicepList AssignableScopes + { + get { Initialize(); return _assignableScopes!; } + set { Initialize(); _assignableScopes!.Assign(value); } + } + private BicepList? _assignableScopes; /// /// The set of operations allowed through this Role Definition. /// - public BicepList Permissions { get => _permissions; set => _permissions.Assign(value); } - private readonly BicepList _permissions; + public BicepList Permissions + { + get { Initialize(); return _permissions!; } + set { Initialize(); _permissions!.Assign(value); } + } + private BicepList? _permissions; /// /// Indicates whether the Role Definition was built-in or user created. /// - public BicepValue RoleDefinitionType { get => _roleDefinitionType; set => _roleDefinitionType.Assign(value); } - private readonly BicepValue _roleDefinitionType; + public BicepValue RoleDefinitionType + { + get { Initialize(); return _roleDefinitionType!; } + set { Initialize(); _roleDefinitionType!.Assign(value); } + } + private BicepValue? _roleDefinitionType; /// /// A user-friendly name for the Role Definition. Must be unique for the /// database account. /// - public BicepValue RoleName { get => _roleName; set => _roleName.Assign(value); } - private readonly BicepValue _roleName; + public BicepValue RoleName + { + get { Initialize(); return _roleName!; } + set { Initialize(); _roleName!.Assign(value); } + } + private BicepValue? _roleName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBAccount. /// - public CosmosDBAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBSqlRoleDefinition. @@ -85,14 +114,21 @@ public partial class CosmosDBSqlRoleDefinition : ProvisionableResource public CosmosDBSqlRoleDefinition(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _assignableScopes = BicepList.DefineProperty(this, "AssignableScopes", ["properties", "assignableScopes"]); - _permissions = BicepList.DefineProperty(this, "Permissions", ["properties", "permissions"]); - _roleDefinitionType = BicepValue.DefineProperty(this, "RoleDefinitionType", ["properties", "type"]); - _roleName = BicepValue.DefineProperty(this, "RoleName", ["properties", "roleName"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CosmosDBSqlRoleDefinition. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _assignableScopes = DefineListProperty("AssignableScopes", ["properties", "assignableScopes"]); + _permissions = DefineListProperty("Permissions", ["properties", "permissions"]); + _roleDefinitionType = DefineProperty("RoleDefinitionType", ["properties", "type"]); + _roleName = DefineProperty("RoleName", ["properties", "roleName"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlStoredProcedure.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlStoredProcedure.cs index a56f6078212fc..dcba87945ee8e 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlStoredProcedure.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlStoredProcedure.cs @@ -21,57 +21,91 @@ public partial class CosmosDBSqlStoredProcedure : ProvisionableResource /// /// Cosmos DB storedProcedure name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a storedProcedure. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public CosmosDBSqlStoredProcedureResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private CosmosDBSqlStoredProcedureResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBSqlContainer. /// - public CosmosDBSqlContainer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBSqlContainer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBSqlStoredProcedure. @@ -86,15 +120,22 @@ public partial class CosmosDBSqlStoredProcedure : ProvisionableResource public CosmosDBSqlStoredProcedure(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CosmosDBSqlStoredProcedure. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlTrigger.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlTrigger.cs index 5e714f7dcfaa4..1aea94a378214 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlTrigger.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlTrigger.cs @@ -21,57 +21,91 @@ public partial class CosmosDBSqlTrigger : ProvisionableResource /// /// Cosmos DB trigger name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a trigger. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public CosmosDBSqlTriggerResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private CosmosDBSqlTriggerResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBSqlContainer. /// - public CosmosDBSqlContainer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBSqlContainer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBSqlTrigger. @@ -86,15 +120,22 @@ public partial class CosmosDBSqlTrigger : ProvisionableResource public CosmosDBSqlTrigger(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CosmosDBSqlTrigger. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlUserDefinedFunction.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlUserDefinedFunction.cs index c73964b7a6dad..46cb7172da190 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlUserDefinedFunction.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBSqlUserDefinedFunction.cs @@ -21,57 +21,91 @@ public partial class CosmosDBSqlUserDefinedFunction : ProvisionableResource /// /// Cosmos DB userDefinedFunction name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a userDefinedFunction. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public CosmosDBSqlUserDefinedFunctionResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private CosmosDBSqlUserDefinedFunctionResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBSqlContainer. /// - public CosmosDBSqlContainer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBSqlContainer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBSqlUserDefinedFunction. @@ -86,15 +120,23 @@ public partial class CosmosDBSqlUserDefinedFunction : ProvisionableResource public CosmosDBSqlUserDefinedFunction(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBSqlUserDefinedFunction. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBTable.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBTable.cs index af4733cddeeb7..6213154ae25b0 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBTable.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBTable.cs @@ -21,57 +21,91 @@ public partial class CosmosDBTable : ProvisionableResource /// /// Cosmos DB table name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a Table. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public CosmosDBTableResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private CosmosDBTableResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBAccount. /// - public CosmosDBAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBTable. @@ -86,15 +120,22 @@ public partial class CosmosDBTable : ProvisionableResource public CosmosDBTable(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/tables", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CosmosDBTable. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBThroughputPool.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBThroughputPool.cs index 317fd5368b9ac..2336a28b678b0 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBThroughputPool.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBThroughputPool.cs @@ -21,44 +21,70 @@ public partial class CosmosDBThroughputPool : ProvisionableResource /// /// Cosmos DB Throughput Pool name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Value for throughput to be shared among CosmosDB resources in the pool. /// - public BicepValue MaxThroughput { get => _maxThroughput; set => _maxThroughput.Assign(value); } - private readonly BicepValue _maxThroughput; + public BicepValue MaxThroughput + { + get { Initialize(); return _maxThroughput!; } + set { Initialize(); _maxThroughput!.Assign(value); } + } + private BicepValue? _maxThroughput; /// /// A provisioning state of the ThroughputPool. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new CosmosDBThroughputPool. @@ -73,13 +99,20 @@ public partial class CosmosDBThroughputPool : ProvisionableResource public CosmosDBThroughputPool(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/throughputPools", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _maxThroughput = BicepValue.DefineProperty(this, "MaxThroughput", ["properties", "maxThroughput"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of CosmosDBThroughputPool. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _maxThroughput = DefineProperty("MaxThroughput", ["properties", "maxThroughput"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBThroughputPoolAccount.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBThroughputPoolAccount.cs index 3bc66c5bf36f0..258aeec06b878 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBThroughputPoolAccount.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosDBThroughputPoolAccount.cs @@ -20,51 +20,80 @@ public partial class CosmosDBThroughputPoolAccount : ProvisionableResource /// /// Cosmos DB global database account in a Throughput Pool. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The location of global database account in the throughputPool. /// - public BicepValue AccountLocation { get => _accountLocation; set => _accountLocation.Assign(value); } - private readonly BicepValue _accountLocation; + public BicepValue AccountLocation + { + get { Initialize(); return _accountLocation!; } + set { Initialize(); _accountLocation!.Assign(value); } + } + private BicepValue? _accountLocation; /// /// The resource identifier of global database account in the /// throughputPool. /// - public BicepValue AccountResourceIdentifier { get => _accountResourceIdentifier; set => _accountResourceIdentifier.Assign(value); } - private readonly BicepValue _accountResourceIdentifier; + public BicepValue AccountResourceIdentifier + { + get { Initialize(); return _accountResourceIdentifier!; } + set { Initialize(); _accountResourceIdentifier!.Assign(value); } + } + private BicepValue? _accountResourceIdentifier; /// /// A provisioning state of the ThroughputPool Account. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// The instance id of global database account in the throughputPool. /// - public BicepValue AccountInstanceId { get => _accountInstanceId; } - private readonly BicepValue _accountInstanceId; + public BicepValue AccountInstanceId + { + get { Initialize(); return _accountInstanceId!; } + } + private BicepValue? _accountInstanceId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBThroughputPool. /// - public CosmosDBThroughputPool? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBThroughputPool? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosDBThroughputPoolAccount. @@ -79,14 +108,22 @@ public partial class CosmosDBThroughputPoolAccount : ProvisionableResource public CosmosDBThroughputPoolAccount(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/throughputPools/throughputPoolAccounts", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _accountLocation = BicepValue.DefineProperty(this, "AccountLocation", ["properties", "accountLocation"]); - _accountResourceIdentifier = BicepValue.DefineProperty(this, "AccountResourceIdentifier", ["properties", "accountResourceIdentifier"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _accountInstanceId = BicepValue.DefineProperty(this, "AccountInstanceId", ["properties", "accountInstanceId"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBThroughputPoolAccount. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _accountLocation = DefineProperty("AccountLocation", ["properties", "accountLocation"]); + _accountResourceIdentifier = DefineProperty("AccountResourceIdentifier", ["properties", "accountResourceIdentifier"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _accountInstanceId = DefineProperty("AccountInstanceId", ["properties", "accountInstanceId"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosTableThroughputSetting.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosTableThroughputSetting.cs index 54c970b254db8..695f0cbf22d69 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosTableThroughputSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/CosmosTableThroughputSetting.cs @@ -21,50 +21,79 @@ public partial class CosmosTableThroughputSetting : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a resource throughput. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public ThroughputSettingsResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private ThroughputSettingsResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBTable. /// - public CosmosDBTable? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBTable? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CosmosTableThroughputSetting. @@ -79,14 +108,21 @@ public partial class CosmosTableThroughputSetting : ProvisionableResource public CosmosTableThroughputSetting(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CosmosTableThroughputSetting. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/DataTransferJobGetResult.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/DataTransferJobGetResult.cs index 0b267da4785ea..6bd8bda174441 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/DataTransferJobGetResult.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/DataTransferJobGetResult.cs @@ -20,14 +20,22 @@ public partial class DataTransferJobGetResult : ProvisionableResource /// /// Name of the Data Transfer Job. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Data Transfer Create Job Properties. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public DataTransferJobProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private DataTransferJobProperties? _properties; /// /// Destination DataStore details Please note @@ -43,50 +51,74 @@ public partial class DataTransferJobGetResult : ProvisionableResource /// and /// Azure.ResourceManager.CosmosDB.Models.CosmosSqlDataTransferDataSourceSink. /// - public BicepValue Destination { get => _destination; } - private readonly BicepValue _destination; + public DataTransferDataSourceSink Destination + { + get { Initialize(); return _destination!; } + } + private DataTransferDataSourceSink? _destination; /// /// Total Duration of Job. /// - public BicepValue Duration { get => _duration; } - private readonly BicepValue _duration; + public BicepValue Duration + { + get { Initialize(); return _duration!; } + } + private BicepValue? _duration; /// /// Error response for Faulted job. /// - public BicepValue Error { get => _error; } - private readonly BicepValue _error; + public ErrorResponse Error + { + get { Initialize(); return _error!; } + } + private ErrorResponse? _error; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Job Name. /// - public BicepValue JobName { get => _jobName; } - private readonly BicepValue _jobName; + public BicepValue JobName + { + get { Initialize(); return _jobName!; } + } + private BicepValue? _jobName; /// /// Last Updated Time (ISO-8601 format). /// - public BicepValue LastUpdatedUtcOn { get => _lastUpdatedUtcOn; } - private readonly BicepValue _lastUpdatedUtcOn; + public BicepValue LastUpdatedUtcOn + { + get { Initialize(); return _lastUpdatedUtcOn!; } + } + private BicepValue? _lastUpdatedUtcOn; /// /// Mode of job execution. /// - public BicepValue Mode { get => _mode; } - private readonly BicepValue _mode; + public BicepValue Mode + { + get { Initialize(); return _mode!; } + } + private BicepValue? _mode; /// /// Processed Count. /// - public BicepValue ProcessedCount { get => _processedCount; } - private readonly BicepValue _processedCount; + public BicepValue ProcessedCount + { + get { Initialize(); return _processedCount!; } + } + private BicepValue? _processedCount; /// /// Source DataStore details Please note @@ -102,38 +134,57 @@ public partial class DataTransferJobGetResult : ProvisionableResource /// and /// Azure.ResourceManager.CosmosDB.Models.CosmosSqlDataTransferDataSourceSink. /// - public BicepValue Source { get => _source; } - private readonly BicepValue _source; + public DataTransferDataSourceSink Source + { + get { Initialize(); return _source!; } + } + private DataTransferDataSourceSink? _source; /// /// Job Status. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Total Count. /// - public BicepValue TotalCount { get => _totalCount; } - private readonly BicepValue _totalCount; + public BicepValue TotalCount + { + get { Initialize(); return _totalCount!; } + } + private BicepValue? _totalCount; /// /// Worker count. /// - public BicepValue WorkerCount { get => _workerCount; } - private readonly BicepValue _workerCount; + public BicepValue WorkerCount + { + get { Initialize(); return _workerCount!; } + } + private BicepValue? _workerCount; /// /// Gets or sets a reference to the parent CosmosDBAccount. /// - public CosmosDBAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new DataTransferJobGetResult. @@ -148,22 +199,29 @@ public partial class DataTransferJobGetResult : ProvisionableResource public DataTransferJobGetResult(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/dataTransferJobs", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"], isRequired: true); - _destination = BicepValue.DefineProperty(this, "Destination", ["properties", "destination"], isOutput: true); - _duration = BicepValue.DefineProperty(this, "Duration", ["properties", "duration"], isOutput: true); - _error = BicepValue.DefineProperty(this, "Error", ["properties", "error"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _jobName = BicepValue.DefineProperty(this, "JobName", ["properties", "jobName"], isOutput: true); - _lastUpdatedUtcOn = BicepValue.DefineProperty(this, "LastUpdatedUtcOn", ["properties", "lastUpdatedUtcTime"], isOutput: true); - _mode = BicepValue.DefineProperty(this, "Mode", ["properties", "mode"], isOutput: true); - _processedCount = BicepValue.DefineProperty(this, "ProcessedCount", ["properties", "processedCount"], isOutput: true); - _source = BicepValue.DefineProperty(this, "Source", ["properties", "source"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _totalCount = BicepValue.DefineProperty(this, "TotalCount", ["properties", "totalCount"], isOutput: true); - _workerCount = BicepValue.DefineProperty(this, "WorkerCount", ["properties", "workerCount"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of DataTransferJobGetResult. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"], isRequired: true); + _destination = DefineModelProperty("Destination", ["properties", "destination"], isOutput: true); + _duration = DefineProperty("Duration", ["properties", "duration"], isOutput: true); + _error = DefineModelProperty("Error", ["properties", "error"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _jobName = DefineProperty("JobName", ["properties", "jobName"], isOutput: true); + _lastUpdatedUtcOn = DefineProperty("LastUpdatedUtcOn", ["properties", "lastUpdatedUtcTime"], isOutput: true); + _mode = DefineProperty("Mode", ["properties", "mode"], isOutput: true); + _processedCount = DefineProperty("ProcessedCount", ["properties", "processedCount"], isOutput: true); + _source = DefineModelProperty("Source", ["properties", "source"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _totalCount = DefineProperty("TotalCount", ["properties", "totalCount"], isOutput: true); + _workerCount = DefineProperty("WorkerCount", ["properties", "workerCount"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GraphResourceGetResult.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GraphResourceGetResult.cs index 0b32045292a53..88ff84ad6aa20 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GraphResourceGetResult.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GraphResourceGetResult.cs @@ -21,57 +21,91 @@ public partial class GraphResourceGetResult : ProvisionableResource /// /// Cosmos DB graph resource name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Gets or sets Id. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBAccount. /// - public CosmosDBAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new GraphResourceGetResult. @@ -86,15 +120,22 @@ public partial class GraphResourceGetResult : ProvisionableResource public GraphResourceGetResult(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/graphs", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resource", "id"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of GraphResourceGetResult. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _resourceId = DefineProperty("ResourceId", ["properties", "resource", "id"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinDatabase.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinDatabase.cs index 5676117aaa302..a0a966d6e089f 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinDatabase.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinDatabase.cs @@ -21,57 +21,91 @@ public partial class GremlinDatabase : ProvisionableResource /// /// Cosmos DB database name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a Gremlin database. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public GremlinDatabaseResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private GremlinDatabaseResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBAccount. /// - public CosmosDBAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new GremlinDatabase. @@ -86,15 +120,22 @@ public partial class GremlinDatabase : ProvisionableResource public GremlinDatabase(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of GremlinDatabase. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinDatabaseThroughputSetting.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinDatabaseThroughputSetting.cs index a5f42178def58..11a79de9cd05b 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinDatabaseThroughputSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinDatabaseThroughputSetting.cs @@ -21,50 +21,79 @@ public partial class GremlinDatabaseThroughputSetting : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a resource throughput. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public ThroughputSettingsResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private ThroughputSettingsResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent GremlinDatabase. /// - public GremlinDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public GremlinDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new GremlinDatabaseThroughputSetting. @@ -79,14 +108,22 @@ public partial class GremlinDatabaseThroughputSetting : ProvisionableResource public GremlinDatabaseThroughputSetting(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// GremlinDatabaseThroughputSetting. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinGraph.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinGraph.cs index ae47f86866398..c024bc56a3007 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinGraph.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinGraph.cs @@ -21,57 +21,91 @@ public partial class GremlinGraph : ProvisionableResource /// /// Cosmos DB graph name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a Gremlin graph. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public GremlinGraphResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private GremlinGraphResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent GremlinDatabase. /// - public GremlinDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public GremlinDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new GremlinGraph. @@ -86,15 +120,22 @@ public partial class GremlinGraph : ProvisionableResource public GremlinGraph(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of GremlinGraph. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinGraphThroughputSetting.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinGraphThroughputSetting.cs index 880782511413d..dded6925f8684 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinGraphThroughputSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/GremlinGraphThroughputSetting.cs @@ -21,50 +21,79 @@ public partial class GremlinGraphThroughputSetting : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a resource throughput. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public ThroughputSettingsResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private ThroughputSettingsResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent GremlinGraph. /// - public GremlinGraph? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public GremlinGraph? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new GremlinGraphThroughputSetting. @@ -79,14 +108,22 @@ public partial class GremlinGraphThroughputSetting : ProvisionableResource public GremlinGraphThroughputSetting(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// GremlinGraphThroughputSetting. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/AuthenticationMethodLdapProperties.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/AuthenticationMethodLdapProperties.cs index 54734ff53aa9f..4fb034eaa88cf 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/AuthenticationMethodLdapProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/AuthenticationMethodLdapProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,67 +19,108 @@ public partial class AuthenticationMethodLdapProperties : ProvisionableConstruct /// /// Hostname of the LDAP server. /// - public BicepValue ServerHostname { get => _serverHostname; set => _serverHostname.Assign(value); } - private readonly BicepValue _serverHostname; + public BicepValue ServerHostname + { + get { Initialize(); return _serverHostname!; } + set { Initialize(); _serverHostname!.Assign(value); } + } + private BicepValue? _serverHostname; /// /// Port of the LDAP server. /// - public BicepValue ServerPort { get => _serverPort; set => _serverPort.Assign(value); } - private readonly BicepValue _serverPort; + public BicepValue ServerPort + { + get { Initialize(); return _serverPort!; } + set { Initialize(); _serverPort!.Assign(value); } + } + private BicepValue? _serverPort; /// /// Distinguished name of the look up user account, who can look up user /// details on authentication. /// - public BicepValue ServiceUserDistinguishedName { get => _serviceUserDistinguishedName; set => _serviceUserDistinguishedName.Assign(value); } - private readonly BicepValue _serviceUserDistinguishedName; + public BicepValue ServiceUserDistinguishedName + { + get { Initialize(); return _serviceUserDistinguishedName!; } + set { Initialize(); _serviceUserDistinguishedName!.Assign(value); } + } + private BicepValue? _serviceUserDistinguishedName; /// /// Password of the look up user. /// - public BicepValue ServiceUserPassword { get => _serviceUserPassword; set => _serviceUserPassword.Assign(value); } - private readonly BicepValue _serviceUserPassword; + public BicepValue ServiceUserPassword + { + get { Initialize(); return _serviceUserPassword!; } + set { Initialize(); _serviceUserPassword!.Assign(value); } + } + private BicepValue? _serviceUserPassword; /// /// Distinguished name of the object to start the recursive search of users /// from. /// - public BicepValue SearchBaseDistinguishedName { get => _searchBaseDistinguishedName; set => _searchBaseDistinguishedName.Assign(value); } - private readonly BicepValue _searchBaseDistinguishedName; + public BicepValue SearchBaseDistinguishedName + { + get { Initialize(); return _searchBaseDistinguishedName!; } + set { Initialize(); _searchBaseDistinguishedName!.Assign(value); } + } + private BicepValue? _searchBaseDistinguishedName; /// /// Template to use for searching. Defaults to (cn=%s) where %s will be /// replaced by the username used to login. /// - public BicepValue SearchFilterTemplate { get => _searchFilterTemplate; set => _searchFilterTemplate.Assign(value); } - private readonly BicepValue _searchFilterTemplate; + public BicepValue SearchFilterTemplate + { + get { Initialize(); return _searchFilterTemplate!; } + set { Initialize(); _searchFilterTemplate!.Assign(value); } + } + private BicepValue? _searchFilterTemplate; /// /// Gets the server certificates. /// - public BicepList ServerCertificates { get => _serverCertificates; set => _serverCertificates.Assign(value); } - private readonly BicepList _serverCertificates; + public BicepList ServerCertificates + { + get { Initialize(); return _serverCertificates!; } + set { Initialize(); _serverCertificates!.Assign(value); } + } + private BicepList? _serverCertificates; /// /// Timeout for connecting to the LDAP server in miliseconds. The default /// is 5000 ms. /// - public BicepValue ConnectionTimeoutInMs { get => _connectionTimeoutInMs; set => _connectionTimeoutInMs.Assign(value); } - private readonly BicepValue _connectionTimeoutInMs; + public BicepValue ConnectionTimeoutInMs + { + get { Initialize(); return _connectionTimeoutInMs!; } + set { Initialize(); _connectionTimeoutInMs!.Assign(value); } + } + private BicepValue? _connectionTimeoutInMs; /// /// Creates a new AuthenticationMethodLdapProperties. /// public AuthenticationMethodLdapProperties() { - _serverHostname = BicepValue.DefineProperty(this, "ServerHostname", ["serverHostname"]); - _serverPort = BicepValue.DefineProperty(this, "ServerPort", ["serverPort"]); - _serviceUserDistinguishedName = BicepValue.DefineProperty(this, "ServiceUserDistinguishedName", ["serviceUserDistinguishedName"]); - _serviceUserPassword = BicepValue.DefineProperty(this, "ServiceUserPassword", ["serviceUserPassword"]); - _searchBaseDistinguishedName = BicepValue.DefineProperty(this, "SearchBaseDistinguishedName", ["searchBaseDistinguishedName"]); - _searchFilterTemplate = BicepValue.DefineProperty(this, "SearchFilterTemplate", ["searchFilterTemplate"]); - _serverCertificates = BicepList.DefineProperty(this, "ServerCertificates", ["serverCertificates"]); - _connectionTimeoutInMs = BicepValue.DefineProperty(this, "ConnectionTimeoutInMs", ["connectionTimeoutInMs"]); + } + + /// + /// Define all the provisionable properties of + /// AuthenticationMethodLdapProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _serverHostname = DefineProperty("ServerHostname", ["serverHostname"]); + _serverPort = DefineProperty("ServerPort", ["serverPort"]); + _serviceUserDistinguishedName = DefineProperty("ServiceUserDistinguishedName", ["serviceUserDistinguishedName"]); + _serviceUserPassword = DefineProperty("ServiceUserPassword", ["serviceUserPassword"]); + _searchBaseDistinguishedName = DefineProperty("SearchBaseDistinguishedName", ["searchBaseDistinguishedName"]); + _searchFilterTemplate = DefineProperty("SearchFilterTemplate", ["searchFilterTemplate"]); + _serverCertificates = DefineListProperty("ServerCertificates", ["serverCertificates"]); + _connectionTimeoutInMs = DefineProperty("ConnectionTimeoutInMs", ["connectionTimeoutInMs"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/AutoscaleSettingsResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/AutoscaleSettingsResourceInfo.cs index 0a0cc9de0cb60..8a838f5430d88 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/AutoscaleSettingsResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/AutoscaleSettingsResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,30 +18,50 @@ public partial class AutoscaleSettingsResourceInfo : ProvisionableConstruct /// /// Represents maximum throughput container can scale up to. /// - public BicepValue MaxThroughput { get => _maxThroughput; set => _maxThroughput.Assign(value); } - private readonly BicepValue _maxThroughput; + public BicepValue MaxThroughput + { + get { Initialize(); return _maxThroughput!; } + set { Initialize(); _maxThroughput!.Assign(value); } + } + private BicepValue? _maxThroughput; /// /// Represents throughput policy which service must adhere to for /// auto-upgrade. /// - public BicepValue AutoUpgradeThroughputPolicy { get => _autoUpgradeThroughputPolicy; set => _autoUpgradeThroughputPolicy.Assign(value); } - private readonly BicepValue _autoUpgradeThroughputPolicy; + public ThroughputPolicyResourceInfo AutoUpgradeThroughputPolicy + { + get { Initialize(); return _autoUpgradeThroughputPolicy!; } + set { Initialize(); AssignOrReplace(ref _autoUpgradeThroughputPolicy, value); } + } + private ThroughputPolicyResourceInfo? _autoUpgradeThroughputPolicy; /// /// Represents target maximum throughput container can scale up to once /// offer is no longer in pending state. /// - public BicepValue TargetMaxThroughput { get => _targetMaxThroughput; } - private readonly BicepValue _targetMaxThroughput; + public BicepValue TargetMaxThroughput + { + get { Initialize(); return _targetMaxThroughput!; } + } + private BicepValue? _targetMaxThroughput; /// /// Creates a new AutoscaleSettingsResourceInfo. /// public AutoscaleSettingsResourceInfo() { - _maxThroughput = BicepValue.DefineProperty(this, "MaxThroughput", ["maxThroughput"]); - _autoUpgradeThroughputPolicy = BicepValue.DefineProperty(this, "AutoUpgradeThroughputPolicy", ["autoUpgradePolicy", "throughputPolicy"]); - _targetMaxThroughput = BicepValue.DefineProperty(this, "TargetMaxThroughput", ["targetMaxThroughput"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// AutoscaleSettingsResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _maxThroughput = DefineProperty("MaxThroughput", ["maxThroughput"]); + _autoUpgradeThroughputPolicy = DefineModelProperty("AutoUpgradeThroughputPolicy", ["autoUpgradePolicy", "throughputPolicy"]); + _targetMaxThroughput = DefineProperty("TargetMaxThroughput", ["targetMaxThroughput"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/AzureBlobDataTransferDataSourceSink.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/AzureBlobDataTransferDataSourceSink.cs index 954ced057931c..534abee5bb26c 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/AzureBlobDataTransferDataSourceSink.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/AzureBlobDataTransferDataSourceSink.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,39 @@ public partial class AzureBlobDataTransferDataSourceSink : DataTransferDataSourc /// /// Gets or sets the container name. /// - public BicepValue ContainerName { get => _containerName; set => _containerName.Assign(value); } - private readonly BicepValue _containerName; + public BicepValue ContainerName + { + get { Initialize(); return _containerName!; } + set { Initialize(); _containerName!.Assign(value); } + } + private BicepValue? _containerName; /// /// Gets or sets the endpoint uri. /// - public BicepValue EndpointUri { get => _endpointUri; set => _endpointUri.Assign(value); } - private readonly BicepValue _endpointUri; + public BicepValue EndpointUri + { + get { Initialize(); return _endpointUri!; } + set { Initialize(); _endpointUri!.Assign(value); } + } + private BicepValue? _endpointUri; /// /// Creates a new AzureBlobDataTransferDataSourceSink. /// public AzureBlobDataTransferDataSourceSink() : base() { - BicepValue.DefineProperty(this, "component", ["component"], defaultValue: "AzureBlobStorage"); - _containerName = BicepValue.DefineProperty(this, "ContainerName", ["containerName"]); - _endpointUri = BicepValue.DefineProperty(this, "EndpointUri", ["endpointUrl"]); + } + + /// + /// Define all the provisionable properties of + /// AzureBlobDataTransferDataSourceSink. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("component", ["component"], defaultValue: "AzureBlobStorage"); + _containerName = DefineProperty("ContainerName", ["containerName"]); + _endpointUri = DefineProperty("EndpointUri", ["endpointUrl"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/BackupPolicyMigrationState.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/BackupPolicyMigrationState.cs index 24abf9836b8a8..c2cd5fc2436bd 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/BackupPolicyMigrationState.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/BackupPolicyMigrationState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,48 @@ public partial class BackupPolicyMigrationState : ProvisionableConstruct /// /// Describes the status of migration between backup policy types. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Describes the target backup policy type of the backup policy migration. /// - public BicepValue TargetType { get => _targetType; set => _targetType.Assign(value); } - private readonly BicepValue _targetType; + public BicepValue TargetType + { + get { Initialize(); return _targetType!; } + set { Initialize(); _targetType!.Assign(value); } + } + private BicepValue? _targetType; /// /// Time at which the backup policy migration started (ISO-8601 format). /// - public BicepValue StartOn { get => _startOn; set => _startOn.Assign(value); } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + set { Initialize(); _startOn!.Assign(value); } + } + private BicepValue? _startOn; /// /// Creates a new BackupPolicyMigrationState. /// public BackupPolicyMigrationState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _targetType = BicepValue.DefineProperty(this, "TargetType", ["targetType"]); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["startTime"]); + } + + /// + /// Define all the provisionable properties of BackupPolicyMigrationState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _targetType = DefineProperty("TargetType", ["targetType"]); + _startOn = DefineProperty("StartOn", ["startTime"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/BaseCosmosDataTransferDataSourceSink.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/BaseCosmosDataTransferDataSourceSink.cs index ada2cf7bb81ee..b2fc9a65d277b 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/BaseCosmosDataTransferDataSourceSink.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/BaseCosmosDataTransferDataSourceSink.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -25,15 +27,28 @@ public partial class BaseCosmosDataTransferDataSourceSink : DataTransferDataSour /// /// Gets or sets the remote account name. /// - public BicepValue RemoteAccountName { get => _remoteAccountName; set => _remoteAccountName.Assign(value); } - private readonly BicepValue _remoteAccountName; + public BicepValue RemoteAccountName + { + get { Initialize(); return _remoteAccountName!; } + set { Initialize(); _remoteAccountName!.Assign(value); } + } + private BicepValue? _remoteAccountName; /// /// Creates a new BaseCosmosDataTransferDataSourceSink. /// public BaseCosmosDataTransferDataSourceSink() : base() { - BicepValue.DefineProperty(this, "component", ["component"], defaultValue: "BaseCosmosDataTransferDataSourceSink"); - _remoteAccountName = BicepValue.DefineProperty(this, "RemoteAccountName", ["remoteAccountName"]); + } + + /// + /// Define all the provisionable properties of + /// BaseCosmosDataTransferDataSourceSink. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("component", ["component"], defaultValue: "BaseCosmosDataTransferDataSourceSink"); + _remoteAccountName = DefineProperty("RemoteAccountName", ["remoteAccountName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraCertificate.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraCertificate.cs index 90fdd3b728437..6fd30ade8f801 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraCertificate.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraCertificate.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,14 +18,26 @@ public partial class CassandraCertificate : ProvisionableConstruct /// /// PEM formatted public key. /// - public BicepValue Pem { get => _pem; set => _pem.Assign(value); } - private readonly BicepValue _pem; + public BicepValue Pem + { + get { Initialize(); return _pem!; } + set { Initialize(); _pem!.Assign(value); } + } + private BicepValue? _pem; /// /// Creates a new CassandraCertificate. /// public CassandraCertificate() { - _pem = BicepValue.DefineProperty(this, "Pem", ["pem"]); + } + + /// + /// Define all the provisionable properties of CassandraCertificate. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _pem = DefineProperty("Pem", ["pem"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraClusterBackupSchedule.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraClusterBackupSchedule.cs index 1bd72483ca238..2b049e2072875 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraClusterBackupSchedule.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraClusterBackupSchedule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,50 @@ public partial class CassandraClusterBackupSchedule : ProvisionableConstruct /// /// The unique identifier of backup schedule. /// - public BicepValue ScheduleName { get => _scheduleName; set => _scheduleName.Assign(value); } - private readonly BicepValue _scheduleName; + public BicepValue ScheduleName + { + get { Initialize(); return _scheduleName!; } + set { Initialize(); _scheduleName!.Assign(value); } + } + private BicepValue? _scheduleName; /// /// The cron expression that defines when you want to back up your data. /// - public BicepValue CronExpression { get => _cronExpression; set => _cronExpression.Assign(value); } - private readonly BicepValue _cronExpression; + public BicepValue CronExpression + { + get { Initialize(); return _cronExpression!; } + set { Initialize(); _cronExpression!.Assign(value); } + } + private BicepValue? _cronExpression; /// /// The retention period (hours) of the backups. If you want to retain data /// forever, set retention to 0. /// - public BicepValue RetentionInHours { get => _retentionInHours; set => _retentionInHours.Assign(value); } - private readonly BicepValue _retentionInHours; + public BicepValue RetentionInHours + { + get { Initialize(); return _retentionInHours!; } + set { Initialize(); _retentionInHours!.Assign(value); } + } + private BicepValue? _retentionInHours; /// /// Creates a new CassandraClusterBackupSchedule. /// public CassandraClusterBackupSchedule() { - _scheduleName = BicepValue.DefineProperty(this, "ScheduleName", ["scheduleName"]); - _cronExpression = BicepValue.DefineProperty(this, "CronExpression", ["cronExpression"]); - _retentionInHours = BicepValue.DefineProperty(this, "RetentionInHours", ["retentionInHours"]); + } + + /// + /// Define all the provisionable properties of + /// CassandraClusterBackupSchedule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _scheduleName = DefineProperty("ScheduleName", ["scheduleName"]); + _cronExpression = DefineProperty("CronExpression", ["cronExpression"]); + _retentionInHours = DefineProperty("RetentionInHours", ["retentionInHours"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraClusterKey.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraClusterKey.cs index 73b732b2235fb..15b4861a67c81 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraClusterKey.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraClusterKey.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,38 @@ public partial class CassandraClusterKey : ProvisionableConstruct /// /// Name of the Cosmos DB Cassandra table cluster key. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Order of the Cosmos DB Cassandra table cluster key, only support /// "Asc" and "Desc". /// - public BicepValue OrderBy { get => _orderBy; set => _orderBy.Assign(value); } - private readonly BicepValue _orderBy; + public BicepValue OrderBy + { + get { Initialize(); return _orderBy!; } + set { Initialize(); _orderBy!.Assign(value); } + } + private BicepValue? _orderBy; /// /// Creates a new CassandraClusterKey. /// public CassandraClusterKey() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _orderBy = BicepValue.DefineProperty(this, "OrderBy", ["orderBy"]); + } + + /// + /// Define all the provisionable properties of CassandraClusterKey. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _orderBy = DefineProperty("OrderBy", ["orderBy"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraClusterProperties.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraClusterProperties.cs index dfda68f3c74ca..86507347a81bd 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraClusterProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraClusterProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,16 +20,24 @@ public partial class CassandraClusterProperties : ProvisionableConstruct /// /// The status of the resource at the time the operation was called. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// To create an empty cluster, omit this field or set it to null. To /// restore a backup into a new cluster, set this field to the resource id /// of the backup. /// - public BicepValue RestoreFromBackupId { get => _restoreFromBackupId; set => _restoreFromBackupId.Assign(value); } - private readonly BicepValue _restoreFromBackupId; + public BicepValue RestoreFromBackupId + { + get { Initialize(); return _restoreFromBackupId!; } + set { Initialize(); _restoreFromBackupId!.Assign(value); } + } + private BicepValue? _restoreFromBackupId; /// /// Resource id of a subnet that this cluster's management service @@ -38,24 +48,36 @@ public partial class CassandraClusterProperties : ProvisionableConstruct /// group>/providers/Microsoft.Network/virtualNetworks/<virtual /// network>/subnets/<subnet>'. /// - public BicepValue DelegatedManagementSubnetId { get => _delegatedManagementSubnetId; set => _delegatedManagementSubnetId.Assign(value); } - private readonly BicepValue _delegatedManagementSubnetId; + public BicepValue DelegatedManagementSubnetId + { + get { Initialize(); return _delegatedManagementSubnetId!; } + set { Initialize(); _delegatedManagementSubnetId!.Assign(value); } + } + private BicepValue? _delegatedManagementSubnetId; /// /// Which version of Cassandra should this cluster converge to running /// (e.g., 3.11). When updated, the cluster may take some time to migrate /// to the new version. /// - public BicepValue CassandraVersion { get => _cassandraVersion; set => _cassandraVersion.Assign(value); } - private readonly BicepValue _cassandraVersion; + public BicepValue CassandraVersion + { + get { Initialize(); return _cassandraVersion!; } + set { Initialize(); _cassandraVersion!.Assign(value); } + } + private BicepValue? _cassandraVersion; /// /// If you need to set the clusterName property in cassandra.yaml to /// something besides the resource name of the cluster, set the value to /// use on this property. /// - public BicepValue ClusterNameOverride { get => _clusterNameOverride; set => _clusterNameOverride.Assign(value); } - private readonly BicepValue _clusterNameOverride; + public BicepValue ClusterNameOverride + { + get { Initialize(); return _clusterNameOverride!; } + set { Initialize(); _clusterNameOverride!.Assign(value); } + } + private BicepValue? _clusterNameOverride; /// /// Which authentication method Cassandra should use to authenticate @@ -63,8 +85,12 @@ public partial class CassandraClusterProperties : ProvisionableConstruct /// used except in emergencies. 'Cassandra' is the default /// password based authentication. The default is 'Cassandra'. /// - public BicepValue AuthenticationMethod { get => _authenticationMethod; set => _authenticationMethod.Assign(value); } - private readonly BicepValue _authenticationMethod; + public BicepValue AuthenticationMethod + { + get { Initialize(); return _authenticationMethod!; } + set { Initialize(); _authenticationMethod!.Assign(value); } + } + private BicepValue? _authenticationMethod; /// /// Initial password for clients connecting as admin to the cluster. Should @@ -72,28 +98,44 @@ public partial class CassandraClusterProperties : ProvisionableConstruct /// only applies when the authenticationMethod field is /// 'Cassandra'. /// - public BicepValue InitialCassandraAdminPassword { get => _initialCassandraAdminPassword; set => _initialCassandraAdminPassword.Assign(value); } - private readonly BicepValue _initialCassandraAdminPassword; + public BicepValue InitialCassandraAdminPassword + { + get { Initialize(); return _initialCassandraAdminPassword!; } + set { Initialize(); _initialCassandraAdminPassword!.Assign(value); } + } + private BicepValue? _initialCassandraAdminPassword; /// /// IP address of this seed node. /// - public BicepValue PrometheusEndpointIPAddress { get => _prometheusEndpointIPAddress; set => _prometheusEndpointIPAddress.Assign(value); } - private readonly BicepValue _prometheusEndpointIPAddress; + public BicepValue PrometheusEndpointIPAddress + { + get { Initialize(); return _prometheusEndpointIPAddress!; } + set { Initialize(); _prometheusEndpointIPAddress!.Assign(value); } + } + private BicepValue? _prometheusEndpointIPAddress; /// /// Should automatic repairs run on this cluster? If omitted, this is true, /// and should stay true unless you are running a hybrid cluster where you /// are already doing your own repairs. /// - public BicepValue IsRepairEnabled { get => _isRepairEnabled; set => _isRepairEnabled.Assign(value); } - private readonly BicepValue _isRepairEnabled; + public BicepValue IsRepairEnabled + { + get { Initialize(); return _isRepairEnabled!; } + set { Initialize(); _isRepairEnabled!.Assign(value); } + } + private BicepValue? _isRepairEnabled; /// /// The form of AutoReplicate that is being used by this cluster. /// - public BicepValue AutoReplicate { get => _autoReplicate; set => _autoReplicate.Assign(value); } - private readonly BicepValue _autoReplicate; + public BicepValue AutoReplicate + { + get { Initialize(); return _autoReplicate!; } + set { Initialize(); _autoReplicate!.Assign(value); } + } + private BicepValue? _autoReplicate; /// /// List of TLS certificates used to authorize clients connecting to the @@ -103,8 +145,12 @@ public partial class CassandraClusterProperties : ProvisionableConstruct /// certificate that can be validated from one or more of the public /// certificates in this property. /// - public BicepList ClientCertificates { get => _clientCertificates; set => _clientCertificates.Assign(value); } - private readonly BicepList _clientCertificates; + public BicepList ClientCertificates + { + get { Initialize(); return _clientCertificates!; } + set { Initialize(); _clientCertificates!.Assign(value); } + } + private BicepList? _clientCertificates; /// /// List of TLS certificates used to authorize gossip from unmanaged data @@ -112,8 +158,12 @@ public partial class CassandraClusterProperties : ProvisionableConstruct /// must be verifiable using one of the certificates provided in this /// property. /// - public BicepList ExternalGossipCertificates { get => _externalGossipCertificates; set => _externalGossipCertificates.Assign(value); } - private readonly BicepList _externalGossipCertificates; + public BicepList ExternalGossipCertificates + { + get { Initialize(); return _externalGossipCertificates!; } + set { Initialize(); _externalGossipCertificates!.Assign(value); } + } + private BicepList? _externalGossipCertificates; /// /// List of TLS certificates that unmanaged nodes must trust for gossip @@ -121,123 +171,184 @@ public partial class CassandraClusterProperties : ProvisionableConstruct /// certificates that are verifiable using one of the certificates /// provided in this property. /// - public BicepList GossipCertificates { get => _gossipCertificates; } - private readonly BicepList _gossipCertificates; + public BicepList GossipCertificates + { + get { Initialize(); return _gossipCertificates!; } + } + private BicepList? _gossipCertificates; /// /// List of IP addresses of seed nodes in unmanaged data centers. These /// will be added to the seed node lists of all managed nodes. /// - public BicepList ExternalSeedNodes { get => _externalSeedNodes; set => _externalSeedNodes.Assign(value); } - private readonly BicepList _externalSeedNodes; + public BicepList ExternalSeedNodes + { + get { Initialize(); return _externalSeedNodes!; } + set { Initialize(); _externalSeedNodes!.Assign(value); } + } + private BicepList? _externalSeedNodes; /// /// List of IP addresses of seed nodes in the managed data centers. These /// should be added to the seed node lists of all unmanaged nodes. /// - public BicepList SeedNodes { get => _seedNodes; } - private readonly BicepList _seedNodes; + public BicepList SeedNodes + { + get { Initialize(); return _seedNodes!; } + } + private BicepList? _seedNodes; /// /// List of the data center names for unmanaged data centers in this /// cluster to be included in auto-replication. /// - public BicepList ExternalDataCenters { get => _externalDataCenters; set => _externalDataCenters.Assign(value); } - private readonly BicepList _externalDataCenters; + public BicepList ExternalDataCenters + { + get { Initialize(); return _externalDataCenters!; } + set { Initialize(); _externalDataCenters!.Assign(value); } + } + private BicepList? _externalDataCenters; /// /// (Deprecated) Number of hours to wait between taking a backup of the /// cluster. /// - public BicepValue HoursBetweenBackups { get => _hoursBetweenBackups; set => _hoursBetweenBackups.Assign(value); } - private readonly BicepValue _hoursBetweenBackups; + public BicepValue HoursBetweenBackups + { + get { Initialize(); return _hoursBetweenBackups!; } + set { Initialize(); _hoursBetweenBackups!.Assign(value); } + } + private BicepValue? _hoursBetweenBackups; /// /// Whether the cluster and associated data centers has been deallocated. /// - public BicepValue IsDeallocated { get => _isDeallocated; set => _isDeallocated.Assign(value); } - private readonly BicepValue _isDeallocated; + public BicepValue IsDeallocated + { + get { Initialize(); return _isDeallocated!; } + set { Initialize(); _isDeallocated!.Assign(value); } + } + private BicepValue? _isDeallocated; /// /// Whether Cassandra audit logging is enabled. /// - public BicepValue IsCassandraAuditLoggingEnabled { get => _isCassandraAuditLoggingEnabled; set => _isCassandraAuditLoggingEnabled.Assign(value); } - private readonly BicepValue _isCassandraAuditLoggingEnabled; + public BicepValue IsCassandraAuditLoggingEnabled + { + get { Initialize(); return _isCassandraAuditLoggingEnabled!; } + set { Initialize(); _isCassandraAuditLoggingEnabled!.Assign(value); } + } + private BicepValue? _isCassandraAuditLoggingEnabled; /// /// Type of the cluster. If set to Production, some operations might not be /// permitted on cluster. /// - public BicepValue ClusterType { get => _clusterType; set => _clusterType.Assign(value); } - private readonly BicepValue _clusterType; + public BicepValue ClusterType + { + get { Initialize(); return _clusterType!; } + set { Initialize(); _clusterType!.Assign(value); } + } + private BicepValue? _clusterType; /// /// Error related to resource provisioning. /// - public BicepValue ProvisionError { get => _provisionError; set => _provisionError.Assign(value); } - private readonly BicepValue _provisionError; + public CassandraError ProvisionError + { + get { Initialize(); return _provisionError!; } + set { Initialize(); AssignOrReplace(ref _provisionError, value); } + } + private CassandraError? _provisionError; /// /// Extensions to be added or updated on cluster. /// - public BicepList Extensions { get => _extensions; set => _extensions.Assign(value); } - private readonly BicepList _extensions; + public BicepList Extensions + { + get { Initialize(); return _extensions!; } + set { Initialize(); _extensions!.Assign(value); } + } + private BicepList? _extensions; /// /// List of backup schedules that define when you want to back up your data. /// - public BicepList BackupSchedules { get => _backupSchedules; set => _backupSchedules.Assign(value); } - private readonly BicepList _backupSchedules; + public BicepList BackupSchedules + { + get { Initialize(); return _backupSchedules!; } + set { Initialize(); _backupSchedules!.Assign(value); } + } + private BicepList? _backupSchedules; /// /// How the nodes in the cluster react to scheduled events. /// - public BicepValue ScheduledEventStrategy { get => _scheduledEventStrategy; set => _scheduledEventStrategy.Assign(value); } - private readonly BicepValue _scheduledEventStrategy; + public BicepValue ScheduledEventStrategy + { + get { Initialize(); return _scheduledEventStrategy!; } + set { Initialize(); _scheduledEventStrategy!.Assign(value); } + } + private BicepValue? _scheduledEventStrategy; /// /// How to connect to the azure services needed for running the cluster. /// - public BicepValue AzureConnectionMethod { get => _azureConnectionMethod; set => _azureConnectionMethod.Assign(value); } - private readonly BicepValue _azureConnectionMethod; + public BicepValue AzureConnectionMethod + { + get { Initialize(); return _azureConnectionMethod!; } + set { Initialize(); _azureConnectionMethod!.Assign(value); } + } + private BicepValue? _azureConnectionMethod; /// /// If the Connection Method is Vpn, this is the Id of the private link /// resource that the datacenters need to connect to. /// - public BicepValue PrivateLinkResourceId { get => _privateLinkResourceId; } - private readonly BicepValue _privateLinkResourceId; + public BicepValue PrivateLinkResourceId + { + get { Initialize(); return _privateLinkResourceId!; } + } + private BicepValue? _privateLinkResourceId; /// /// Creates a new CassandraClusterProperties. /// public CassandraClusterProperties() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"]); - _restoreFromBackupId = BicepValue.DefineProperty(this, "RestoreFromBackupId", ["restoreFromBackupId"]); - _delegatedManagementSubnetId = BicepValue.DefineProperty(this, "DelegatedManagementSubnetId", ["delegatedManagementSubnetId"]); - _cassandraVersion = BicepValue.DefineProperty(this, "CassandraVersion", ["cassandraVersion"]); - _clusterNameOverride = BicepValue.DefineProperty(this, "ClusterNameOverride", ["clusterNameOverride"]); - _authenticationMethod = BicepValue.DefineProperty(this, "AuthenticationMethod", ["authenticationMethod"]); - _initialCassandraAdminPassword = BicepValue.DefineProperty(this, "InitialCassandraAdminPassword", ["initialCassandraAdminPassword"]); - _prometheusEndpointIPAddress = BicepValue.DefineProperty(this, "PrometheusEndpointIPAddress", ["prometheusEndpoint", "ipAddress"]); - _isRepairEnabled = BicepValue.DefineProperty(this, "IsRepairEnabled", ["repairEnabled"]); - _autoReplicate = BicepValue.DefineProperty(this, "AutoReplicate", ["autoReplicate"]); - _clientCertificates = BicepList.DefineProperty(this, "ClientCertificates", ["clientCertificates"]); - _externalGossipCertificates = BicepList.DefineProperty(this, "ExternalGossipCertificates", ["externalGossipCertificates"]); - _gossipCertificates = BicepList.DefineProperty(this, "GossipCertificates", ["gossipCertificates"], isOutput: true); - _externalSeedNodes = BicepList.DefineProperty(this, "ExternalSeedNodes", ["externalSeedNodes"]); - _seedNodes = BicepList.DefineProperty(this, "SeedNodes", ["seedNodes"], isOutput: true); - _externalDataCenters = BicepList.DefineProperty(this, "ExternalDataCenters", ["externalDataCenters"]); - _hoursBetweenBackups = BicepValue.DefineProperty(this, "HoursBetweenBackups", ["hoursBetweenBackups"]); - _isDeallocated = BicepValue.DefineProperty(this, "IsDeallocated", ["deallocated"]); - _isCassandraAuditLoggingEnabled = BicepValue.DefineProperty(this, "IsCassandraAuditLoggingEnabled", ["cassandraAuditLoggingEnabled"]); - _clusterType = BicepValue.DefineProperty(this, "ClusterType", ["clusterType"]); - _provisionError = BicepValue.DefineProperty(this, "ProvisionError", ["provisionError"]); - _extensions = BicepList.DefineProperty(this, "Extensions", ["extensions"]); - _backupSchedules = BicepList.DefineProperty(this, "BackupSchedules", ["backupSchedules"]); - _scheduledEventStrategy = BicepValue.DefineProperty(this, "ScheduledEventStrategy", ["scheduledEventStrategy"]); - _azureConnectionMethod = BicepValue.DefineProperty(this, "AzureConnectionMethod", ["azureConnectionMethod"]); - _privateLinkResourceId = BicepValue.DefineProperty(this, "PrivateLinkResourceId", ["privateLinkResourceId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of CassandraClusterProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"]); + _restoreFromBackupId = DefineProperty("RestoreFromBackupId", ["restoreFromBackupId"]); + _delegatedManagementSubnetId = DefineProperty("DelegatedManagementSubnetId", ["delegatedManagementSubnetId"]); + _cassandraVersion = DefineProperty("CassandraVersion", ["cassandraVersion"]); + _clusterNameOverride = DefineProperty("ClusterNameOverride", ["clusterNameOverride"]); + _authenticationMethod = DefineProperty("AuthenticationMethod", ["authenticationMethod"]); + _initialCassandraAdminPassword = DefineProperty("InitialCassandraAdminPassword", ["initialCassandraAdminPassword"]); + _prometheusEndpointIPAddress = DefineProperty("PrometheusEndpointIPAddress", ["prometheusEndpoint", "ipAddress"]); + _isRepairEnabled = DefineProperty("IsRepairEnabled", ["repairEnabled"]); + _autoReplicate = DefineProperty("AutoReplicate", ["autoReplicate"]); + _clientCertificates = DefineListProperty("ClientCertificates", ["clientCertificates"]); + _externalGossipCertificates = DefineListProperty("ExternalGossipCertificates", ["externalGossipCertificates"]); + _gossipCertificates = DefineListProperty("GossipCertificates", ["gossipCertificates"], isOutput: true); + _externalSeedNodes = DefineListProperty("ExternalSeedNodes", ["externalSeedNodes"]); + _seedNodes = DefineListProperty("SeedNodes", ["seedNodes"], isOutput: true); + _externalDataCenters = DefineListProperty("ExternalDataCenters", ["externalDataCenters"]); + _hoursBetweenBackups = DefineProperty("HoursBetweenBackups", ["hoursBetweenBackups"]); + _isDeallocated = DefineProperty("IsDeallocated", ["deallocated"]); + _isCassandraAuditLoggingEnabled = DefineProperty("IsCassandraAuditLoggingEnabled", ["cassandraAuditLoggingEnabled"]); + _clusterType = DefineProperty("ClusterType", ["clusterType"]); + _provisionError = DefineModelProperty("ProvisionError", ["provisionError"]); + _extensions = DefineListProperty("Extensions", ["extensions"]); + _backupSchedules = DefineListProperty("BackupSchedules", ["backupSchedules"]); + _scheduledEventStrategy = DefineProperty("ScheduledEventStrategy", ["scheduledEventStrategy"]); + _azureConnectionMethod = DefineProperty("AzureConnectionMethod", ["azureConnectionMethod"]); + _privateLinkResourceId = DefineProperty("PrivateLinkResourceId", ["privateLinkResourceId"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraColumn.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraColumn.cs index 4a48e42a583ba..04724b185fc3d 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraColumn.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraColumn.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class CassandraColumn : ProvisionableConstruct /// /// Name of the Cosmos DB Cassandra table column. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Type of the Cosmos DB Cassandra table column. /// - public BicepValue CassandraColumnType { get => _cassandraColumnType; set => _cassandraColumnType.Assign(value); } - private readonly BicepValue _cassandraColumnType; + public BicepValue CassandraColumnType + { + get { Initialize(); return _cassandraColumnType!; } + set { Initialize(); _cassandraColumnType!.Assign(value); } + } + private BicepValue? _cassandraColumnType; /// /// Creates a new CassandraColumn. /// public CassandraColumn() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _cassandraColumnType = BicepValue.DefineProperty(this, "CassandraColumnType", ["type"]); + } + + /// + /// Define all the provisionable properties of CassandraColumn. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _cassandraColumnType = DefineProperty("CassandraColumnType", ["type"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraDataCenterProperties.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraDataCenterProperties.cs index 0ffc8da2607c1..808ad4b6abf1e 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraDataCenterProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraDataCenterProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,14 +20,22 @@ public partial class CassandraDataCenterProperties : ProvisionableConstruct /// /// The status of the resource at the time the operation was called. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// The region this data center should be created in. /// - public BicepValue DataCenterLocation { get => _dataCenterLocation; set => _dataCenterLocation.Assign(value); } - private readonly BicepValue _dataCenterLocation; + public BicepValue DataCenterLocation + { + get { Initialize(); return _dataCenterLocation!; } + set { Initialize(); _dataCenterLocation!.Assign(value); } + } + private BicepValue? _dataCenterLocation; /// /// Resource id of a subnet the nodes in this data center should have their @@ -38,8 +48,12 @@ public partial class CassandraDataCenterProperties : ProvisionableConstruct /// group>/providers/Microsoft.Network/virtualNetworks/<virtual /// network>/subnets/<subnet>'. /// - public BicepValue DelegatedSubnetId { get => _delegatedSubnetId; set => _delegatedSubnetId.Assign(value); } - private readonly BicepValue _delegatedSubnetId; + public BicepValue DelegatedSubnetId + { + get { Initialize(); return _delegatedSubnetId!; } + set { Initialize(); _delegatedSubnetId!.Assign(value); } + } + private BicepValue? _delegatedSubnetId; /// /// The number of nodes the data center should have. This is the desired @@ -47,111 +61,171 @@ public partial class CassandraDataCenterProperties : ProvisionableConstruct /// be scaled to match. To monitor the number of nodes and their status, /// use the fetchNodeStatus method on the cluster. /// - public BicepValue NodeCount { get => _nodeCount; set => _nodeCount.Assign(value); } - private readonly BicepValue _nodeCount; + public BicepValue NodeCount + { + get { Initialize(); return _nodeCount!; } + set { Initialize(); _nodeCount!.Assign(value); } + } + private BicepValue? _nodeCount; /// /// IP addresses for seed nodes in this data center. This is for reference. /// Generally you will want to use the seedNodes property on the cluster, /// which aggregates the seed nodes from all data centers in the cluster. /// - public BicepList SeedNodes { get => _seedNodes; } - private readonly BicepList _seedNodes; + public BicepList SeedNodes + { + get { Initialize(); return _seedNodes!; } + } + private BicepList? _seedNodes; /// /// A fragment of a cassandra.yaml configuration file to be included in the /// cassandra.yaml for all nodes in this data center. The fragment should /// be Base64 encoded, and only a subset of keys are allowed. /// - public BicepValue Base64EncodedCassandraYamlFragment { get => _base64EncodedCassandraYamlFragment; set => _base64EncodedCassandraYamlFragment.Assign(value); } - private readonly BicepValue _base64EncodedCassandraYamlFragment; + public BicepValue Base64EncodedCassandraYamlFragment + { + get { Initialize(); return _base64EncodedCassandraYamlFragment!; } + set { Initialize(); _base64EncodedCassandraYamlFragment!.Assign(value); } + } + private BicepValue? _base64EncodedCassandraYamlFragment; /// /// Key uri to use for encryption of managed disks. Ensure the system /// assigned identity of the cluster has been assigned appropriate /// permissions(key get/wrap/unwrap permissions) on the key. /// - public BicepValue ManagedDiskCustomerKeyUri { get => _managedDiskCustomerKeyUri; set => _managedDiskCustomerKeyUri.Assign(value); } - private readonly BicepValue _managedDiskCustomerKeyUri; + public BicepValue ManagedDiskCustomerKeyUri + { + get { Initialize(); return _managedDiskCustomerKeyUri!; } + set { Initialize(); _managedDiskCustomerKeyUri!.Assign(value); } + } + private BicepValue? _managedDiskCustomerKeyUri; /// /// Indicates the Key Uri of the customer key to use for encryption of the /// backup storage account. /// - public BicepValue BackupStorageCustomerKeyUri { get => _backupStorageCustomerKeyUri; set => _backupStorageCustomerKeyUri.Assign(value); } - private readonly BicepValue _backupStorageCustomerKeyUri; + public BicepValue BackupStorageCustomerKeyUri + { + get { Initialize(); return _backupStorageCustomerKeyUri!; } + set { Initialize(); _backupStorageCustomerKeyUri!.Assign(value); } + } + private BicepValue? _backupStorageCustomerKeyUri; /// /// Virtual Machine SKU used for data centers. Default value is /// Standard_DS14_v2. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public BicepValue Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); _sku!.Assign(value); } + } + private BicepValue? _sku; /// /// Disk SKU used for data centers. Default value is P30. /// - public BicepValue DiskSku { get => _diskSku; set => _diskSku.Assign(value); } - private readonly BicepValue _diskSku; + public BicepValue DiskSku + { + get { Initialize(); return _diskSku!; } + set { Initialize(); _diskSku!.Assign(value); } + } + private BicepValue? _diskSku; /// /// Number of disks attached to each node. Default is 4. /// - public BicepValue DiskCapacity { get => _diskCapacity; set => _diskCapacity.Assign(value); } - private readonly BicepValue _diskCapacity; + public BicepValue DiskCapacity + { + get { Initialize(); return _diskCapacity!; } + set { Initialize(); _diskCapacity!.Assign(value); } + } + private BicepValue? _diskCapacity; /// /// If the data center has Availability Zone support, apply it to the /// Virtual Machine ScaleSet that host the cassandra data center virtual /// machines. /// - public BicepValue DoesSupportAvailabilityZone { get => _doesSupportAvailabilityZone; set => _doesSupportAvailabilityZone.Assign(value); } - private readonly BicepValue _doesSupportAvailabilityZone; + public BicepValue DoesSupportAvailabilityZone + { + get { Initialize(); return _doesSupportAvailabilityZone!; } + set { Initialize(); _doesSupportAvailabilityZone!.Assign(value); } + } + private BicepValue? _doesSupportAvailabilityZone; /// /// Ldap authentication method properties. This feature is in preview. /// - public BicepValue AuthenticationMethodLdapProperties { get => _authenticationMethodLdapProperties; set => _authenticationMethodLdapProperties.Assign(value); } - private readonly BicepValue _authenticationMethodLdapProperties; + public AuthenticationMethodLdapProperties AuthenticationMethodLdapProperties + { + get { Initialize(); return _authenticationMethodLdapProperties!; } + set { Initialize(); AssignOrReplace(ref _authenticationMethodLdapProperties, value); } + } + private AuthenticationMethodLdapProperties? _authenticationMethodLdapProperties; /// /// Whether the data center has been deallocated. /// - public BicepValue Deallocated { get => _deallocated; set => _deallocated.Assign(value); } - private readonly BicepValue _deallocated; + public BicepValue Deallocated + { + get { Initialize(); return _deallocated!; } + set { Initialize(); _deallocated!.Assign(value); } + } + private BicepValue? _deallocated; /// /// Error related to resource provisioning. /// - public BicepValue ProvisionError { get => _provisionError; set => _provisionError.Assign(value); } - private readonly BicepValue _provisionError; + public CassandraError ProvisionError + { + get { Initialize(); return _provisionError!; } + set { Initialize(); AssignOrReplace(ref _provisionError, value); } + } + private CassandraError? _provisionError; /// /// Ip of the VPN Endpoint for this data center. /// - public BicepValue PrivateEndpointIPAddress { get => _privateEndpointIPAddress; set => _privateEndpointIPAddress.Assign(value); } - private readonly BicepValue _privateEndpointIPAddress; + public BicepValue PrivateEndpointIPAddress + { + get { Initialize(); return _privateEndpointIPAddress!; } + set { Initialize(); _privateEndpointIPAddress!.Assign(value); } + } + private BicepValue? _privateEndpointIPAddress; /// /// Creates a new CassandraDataCenterProperties. /// public CassandraDataCenterProperties() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"]); - _dataCenterLocation = BicepValue.DefineProperty(this, "DataCenterLocation", ["dataCenterLocation"]); - _delegatedSubnetId = BicepValue.DefineProperty(this, "DelegatedSubnetId", ["delegatedSubnetId"]); - _nodeCount = BicepValue.DefineProperty(this, "NodeCount", ["nodeCount"]); - _seedNodes = BicepList.DefineProperty(this, "SeedNodes", ["seedNodes"], isOutput: true); - _base64EncodedCassandraYamlFragment = BicepValue.DefineProperty(this, "Base64EncodedCassandraYamlFragment", ["base64EncodedCassandraYamlFragment"]); - _managedDiskCustomerKeyUri = BicepValue.DefineProperty(this, "ManagedDiskCustomerKeyUri", ["managedDiskCustomerKeyUri"]); - _backupStorageCustomerKeyUri = BicepValue.DefineProperty(this, "BackupStorageCustomerKeyUri", ["backupStorageCustomerKeyUri"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _diskSku = BicepValue.DefineProperty(this, "DiskSku", ["diskSku"]); - _diskCapacity = BicepValue.DefineProperty(this, "DiskCapacity", ["diskCapacity"]); - _doesSupportAvailabilityZone = BicepValue.DefineProperty(this, "DoesSupportAvailabilityZone", ["availabilityZone"]); - _authenticationMethodLdapProperties = BicepValue.DefineProperty(this, "AuthenticationMethodLdapProperties", ["authenticationMethodLdapProperties"]); - _deallocated = BicepValue.DefineProperty(this, "Deallocated", ["deallocated"]); - _provisionError = BicepValue.DefineProperty(this, "ProvisionError", ["provisionError"]); - _privateEndpointIPAddress = BicepValue.DefineProperty(this, "PrivateEndpointIPAddress", ["privateEndpointIpAddress"]); + } + + /// + /// Define all the provisionable properties of + /// CassandraDataCenterProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"]); + _dataCenterLocation = DefineProperty("DataCenterLocation", ["dataCenterLocation"]); + _delegatedSubnetId = DefineProperty("DelegatedSubnetId", ["delegatedSubnetId"]); + _nodeCount = DefineProperty("NodeCount", ["nodeCount"]); + _seedNodes = DefineListProperty("SeedNodes", ["seedNodes"], isOutput: true); + _base64EncodedCassandraYamlFragment = DefineProperty("Base64EncodedCassandraYamlFragment", ["base64EncodedCassandraYamlFragment"]); + _managedDiskCustomerKeyUri = DefineProperty("ManagedDiskCustomerKeyUri", ["managedDiskCustomerKeyUri"]); + _backupStorageCustomerKeyUri = DefineProperty("BackupStorageCustomerKeyUri", ["backupStorageCustomerKeyUri"]); + _sku = DefineProperty("Sku", ["sku"]); + _diskSku = DefineProperty("DiskSku", ["diskSku"]); + _diskCapacity = DefineProperty("DiskCapacity", ["diskCapacity"]); + _doesSupportAvailabilityZone = DefineProperty("DoesSupportAvailabilityZone", ["availabilityZone"]); + _authenticationMethodLdapProperties = DefineModelProperty("AuthenticationMethodLdapProperties", ["authenticationMethodLdapProperties"]); + _deallocated = DefineProperty("Deallocated", ["deallocated"]); + _provisionError = DefineModelProperty("ProvisionError", ["provisionError"]); + _privateEndpointIPAddress = DefineProperty("PrivateEndpointIPAddress", ["privateEndpointIpAddress"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraDataCenterSeedNode.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraDataCenterSeedNode.cs index e22b05f4060bc..287ca9fb3f221 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraDataCenterSeedNode.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraDataCenterSeedNode.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,14 +18,26 @@ public partial class CassandraDataCenterSeedNode : ProvisionableConstruct /// /// IP address of this seed node. /// - public BicepValue IPAddress { get => _iPAddress; set => _iPAddress.Assign(value); } - private readonly BicepValue _iPAddress; + public BicepValue IPAddress + { + get { Initialize(); return _iPAddress!; } + set { Initialize(); _iPAddress!.Assign(value); } + } + private BicepValue? _iPAddress; /// /// Creates a new CassandraDataCenterSeedNode. /// public CassandraDataCenterSeedNode() { - _iPAddress = BicepValue.DefineProperty(this, "IPAddress", ["ipAddress"]); + } + + /// + /// Define all the provisionable properties of CassandraDataCenterSeedNode. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _iPAddress = DefineProperty("IPAddress", ["ipAddress"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraError.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraError.cs index 2924b574b667d..875cdfbb3c3d0 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraError.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraError.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class CassandraError : ProvisionableConstruct /// /// The code of error that occurred. /// - public BicepValue Code { get => _code; set => _code.Assign(value); } - private readonly BicepValue _code; + public BicepValue Code + { + get { Initialize(); return _code!; } + set { Initialize(); _code!.Assign(value); } + } + private BicepValue? _code; /// /// The message of the error. /// - public BicepValue Message { get => _message; set => _message.Assign(value); } - private readonly BicepValue _message; + public BicepValue Message + { + get { Initialize(); return _message!; } + set { Initialize(); _message!.Assign(value); } + } + private BicepValue? _message; /// /// The target resource of the error. /// - public BicepValue Target { get => _target; set => _target.Assign(value); } - private readonly BicepValue _target; + public BicepValue Target + { + get { Initialize(); return _target!; } + set { Initialize(); _target!.Assign(value); } + } + private BicepValue? _target; /// /// Additional information about the error. /// - public BicepValue AdditionalErrorInfo { get => _additionalErrorInfo; set => _additionalErrorInfo.Assign(value); } - private readonly BicepValue _additionalErrorInfo; + public BicepValue AdditionalErrorInfo + { + get { Initialize(); return _additionalErrorInfo!; } + set { Initialize(); _additionalErrorInfo!.Assign(value); } + } + private BicepValue? _additionalErrorInfo; /// /// Creates a new CassandraError. /// public CassandraError() { - _code = BicepValue.DefineProperty(this, "Code", ["code"]); - _message = BicepValue.DefineProperty(this, "Message", ["message"]); - _target = BicepValue.DefineProperty(this, "Target", ["target"]); - _additionalErrorInfo = BicepValue.DefineProperty(this, "AdditionalErrorInfo", ["additionalErrorInfo"]); + } + + /// + /// Define all the provisionable properties of CassandraError. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _code = DefineProperty("Code", ["code"]); + _message = DefineProperty("Message", ["message"]); + _target = DefineProperty("Target", ["target"]); + _additionalErrorInfo = DefineProperty("AdditionalErrorInfo", ["additionalErrorInfo"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraKeyspacePropertiesConfig.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraKeyspacePropertiesConfig.cs index 30f328280eb1f..4dff02495f512 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraKeyspacePropertiesConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraKeyspacePropertiesConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class CassandraKeyspacePropertiesConfig : ProvisionableConstruct /// Value of the Cosmos DB resource throughput or autoscaleSettings. Use /// the ThroughputSetting resource when retrieving offer details. /// - public BicepValue Throughput { get => _throughput; set => _throughput.Assign(value); } - private readonly BicepValue _throughput; + public BicepValue Throughput + { + get { Initialize(); return _throughput!; } + set { Initialize(); _throughput!.Assign(value); } + } + private BicepValue? _throughput; /// /// Represents maximum throughput, the resource can scale up to. /// - public BicepValue AutoscaleMaxThroughput { get => _autoscaleMaxThroughput; set => _autoscaleMaxThroughput.Assign(value); } - private readonly BicepValue _autoscaleMaxThroughput; + public BicepValue AutoscaleMaxThroughput + { + get { Initialize(); return _autoscaleMaxThroughput!; } + set { Initialize(); _autoscaleMaxThroughput!.Assign(value); } + } + private BicepValue? _autoscaleMaxThroughput; /// /// Creates a new CassandraKeyspacePropertiesConfig. /// public CassandraKeyspacePropertiesConfig() { - _throughput = BicepValue.DefineProperty(this, "Throughput", ["throughput"]); - _autoscaleMaxThroughput = BicepValue.DefineProperty(this, "AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); + } + + /// + /// Define all the provisionable properties of + /// CassandraKeyspacePropertiesConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _throughput = DefineProperty("Throughput", ["throughput"]); + _autoscaleMaxThroughput = DefineProperty("AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraPartitionKey.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraPartitionKey.cs index 7289d392136f6..3709eb2d87bab 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraPartitionKey.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraPartitionKey.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,14 +18,26 @@ public partial class CassandraPartitionKey : ProvisionableConstruct /// /// Name of the Cosmos DB Cassandra table partition key. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new CassandraPartitionKey. /// public CassandraPartitionKey() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of CassandraPartitionKey. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraSchema.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraSchema.cs index 4ba90d054fc35..89f6f015a2632 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraSchema.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraSchema.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,48 @@ public partial class CassandraSchema : ProvisionableConstruct /// /// List of Cassandra table columns. /// - public BicepList Columns { get => _columns; set => _columns.Assign(value); } - private readonly BicepList _columns; + public BicepList Columns + { + get { Initialize(); return _columns!; } + set { Initialize(); _columns!.Assign(value); } + } + private BicepList? _columns; /// /// List of partition key. /// - public BicepList PartitionKeys { get => _partitionKeys; set => _partitionKeys.Assign(value); } - private readonly BicepList _partitionKeys; + public BicepList PartitionKeys + { + get { Initialize(); return _partitionKeys!; } + set { Initialize(); _partitionKeys!.Assign(value); } + } + private BicepList? _partitionKeys; /// /// List of cluster key. /// - public BicepList ClusterKeys { get => _clusterKeys; set => _clusterKeys.Assign(value); } - private readonly BicepList _clusterKeys; + public BicepList ClusterKeys + { + get { Initialize(); return _clusterKeys!; } + set { Initialize(); _clusterKeys!.Assign(value); } + } + private BicepList? _clusterKeys; /// /// Creates a new CassandraSchema. /// public CassandraSchema() { - _columns = BicepList.DefineProperty(this, "Columns", ["columns"]); - _partitionKeys = BicepList.DefineProperty(this, "PartitionKeys", ["partitionKeys"]); - _clusterKeys = BicepList.DefineProperty(this, "ClusterKeys", ["clusterKeys"]); + } + + /// + /// Define all the provisionable properties of CassandraSchema. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _columns = DefineListProperty("Columns", ["columns"]); + _partitionKeys = DefineListProperty("PartitionKeys", ["partitionKeys"]); + _clusterKeys = DefineListProperty("ClusterKeys", ["clusterKeys"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraTablePropertiesConfig.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraTablePropertiesConfig.cs index 62e814728d6a3..9a5b6e7a06212 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraTablePropertiesConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraTablePropertiesConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class CassandraTablePropertiesConfig : ProvisionableConstruct /// Value of the Cosmos DB resource throughput or autoscaleSettings. Use /// the ThroughputSetting resource when retrieving offer details. /// - public BicepValue Throughput { get => _throughput; set => _throughput.Assign(value); } - private readonly BicepValue _throughput; + public BicepValue Throughput + { + get { Initialize(); return _throughput!; } + set { Initialize(); _throughput!.Assign(value); } + } + private BicepValue? _throughput; /// /// Represents maximum throughput, the resource can scale up to. /// - public BicepValue AutoscaleMaxThroughput { get => _autoscaleMaxThroughput; set => _autoscaleMaxThroughput.Assign(value); } - private readonly BicepValue _autoscaleMaxThroughput; + public BicepValue AutoscaleMaxThroughput + { + get { Initialize(); return _autoscaleMaxThroughput!; } + set { Initialize(); _autoscaleMaxThroughput!.Assign(value); } + } + private BicepValue? _autoscaleMaxThroughput; /// /// Creates a new CassandraTablePropertiesConfig. /// public CassandraTablePropertiesConfig() { - _throughput = BicepValue.DefineProperty(this, "Throughput", ["throughput"]); - _autoscaleMaxThroughput = BicepValue.DefineProperty(this, "AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); + } + + /// + /// Define all the provisionable properties of + /// CassandraTablePropertiesConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _throughput = DefineProperty("Throughput", ["throughput"]); + _autoscaleMaxThroughput = DefineProperty("AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraTableResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraTableResourceInfo.cs index 86e75aba57f72..d117dcf63f90a 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraTableResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraTableResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,59 @@ public partial class CassandraTableResourceInfo : ProvisionableConstruct /// /// Name of the Cosmos DB Cassandra table. /// - public BicepValue TableName { get => _tableName; set => _tableName.Assign(value); } - private readonly BicepValue _tableName; + public BicepValue TableName + { + get { Initialize(); return _tableName!; } + set { Initialize(); _tableName!.Assign(value); } + } + private BicepValue? _tableName; /// /// Time to live of the Cosmos DB Cassandra table. /// - public BicepValue DefaultTtl { get => _defaultTtl; set => _defaultTtl.Assign(value); } - private readonly BicepValue _defaultTtl; + public BicepValue DefaultTtl + { + get { Initialize(); return _defaultTtl!; } + set { Initialize(); _defaultTtl!.Assign(value); } + } + private BicepValue? _defaultTtl; /// /// Schema of the Cosmos DB Cassandra table. /// - public BicepValue Schema { get => _schema; set => _schema.Assign(value); } - private readonly BicepValue _schema; + public CassandraSchema Schema + { + get { Initialize(); return _schema!; } + set { Initialize(); AssignOrReplace(ref _schema, value); } + } + private CassandraSchema? _schema; /// /// Analytical TTL. /// - public BicepValue AnalyticalStorageTtl { get => _analyticalStorageTtl; set => _analyticalStorageTtl.Assign(value); } - private readonly BicepValue _analyticalStorageTtl; + public BicepValue AnalyticalStorageTtl + { + get { Initialize(); return _analyticalStorageTtl!; } + set { Initialize(); _analyticalStorageTtl!.Assign(value); } + } + private BicepValue? _analyticalStorageTtl; /// /// Creates a new CassandraTableResourceInfo. /// public CassandraTableResourceInfo() { - _tableName = BicepValue.DefineProperty(this, "TableName", ["id"]); - _defaultTtl = BicepValue.DefineProperty(this, "DefaultTtl", ["defaultTtl"]); - _schema = BicepValue.DefineProperty(this, "Schema", ["schema"]); - _analyticalStorageTtl = BicepValue.DefineProperty(this, "AnalyticalStorageTtl", ["analyticalStorageTtl"]); + } + + /// + /// Define all the provisionable properties of CassandraTableResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tableName = DefineProperty("TableName", ["id"]); + _defaultTtl = DefineProperty("DefaultTtl", ["defaultTtl"]); + _schema = DefineModelProperty("Schema", ["schema"]); + _analyticalStorageTtl = DefineProperty("AnalyticalStorageTtl", ["analyticalStorageTtl"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraViewGetPropertiesOptions.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraViewGetPropertiesOptions.cs index ee9718856ca75..8d2c01155fe68 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraViewGetPropertiesOptions.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraViewGetPropertiesOptions.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class CassandraViewGetPropertiesOptions : ProvisionableConstruct /// Value of the Cosmos DB resource throughput or autoscaleSettings. Use /// the ThroughputSetting resource when retrieving offer details. /// - public BicepValue Throughput { get => _throughput; set => _throughput.Assign(value); } - private readonly BicepValue _throughput; + public BicepValue Throughput + { + get { Initialize(); return _throughput!; } + set { Initialize(); _throughput!.Assign(value); } + } + private BicepValue? _throughput; /// /// Represents maximum throughput, the resource can scale up to. /// - public BicepValue AutoscaleMaxThroughput { get => _autoscaleMaxThroughput; set => _autoscaleMaxThroughput.Assign(value); } - private readonly BicepValue _autoscaleMaxThroughput; + public BicepValue AutoscaleMaxThroughput + { + get { Initialize(); return _autoscaleMaxThroughput!; } + set { Initialize(); _autoscaleMaxThroughput!.Assign(value); } + } + private BicepValue? _autoscaleMaxThroughput; /// /// Creates a new CassandraViewGetPropertiesOptions. /// public CassandraViewGetPropertiesOptions() { - _throughput = BicepValue.DefineProperty(this, "Throughput", ["throughput"]); - _autoscaleMaxThroughput = BicepValue.DefineProperty(this, "AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); + } + + /// + /// Define all the provisionable properties of + /// CassandraViewGetPropertiesOptions. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _throughput = DefineProperty("Throughput", ["throughput"]); + _autoscaleMaxThroughput = DefineProperty("AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraViewGetPropertiesResource.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraViewGetPropertiesResource.cs index 42a93dc44c5b6..407ccd891bd9f 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraViewGetPropertiesResource.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraViewGetPropertiesResource.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,48 @@ public partial class CassandraViewGetPropertiesResource : CassandraViewResource /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new CassandraViewGetPropertiesResource. /// public CassandraViewGetPropertiesResource() : base() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CassandraViewGetPropertiesResource. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraViewResource.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraViewResource.cs index 6e5cd183afdea..7d987acf6db59 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraViewResource.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CassandraViewResource.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class CassandraViewResource : ProvisionableConstruct /// /// Name of the Cosmos DB Cassandra view. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// View Definition of the Cosmos DB Cassandra view. /// - public BicepValue ViewDefinition { get => _viewDefinition; set => _viewDefinition.Assign(value); } - private readonly BicepValue _viewDefinition; + public BicepValue ViewDefinition + { + get { Initialize(); return _viewDefinition!; } + set { Initialize(); _viewDefinition!.Assign(value); } + } + private BicepValue? _viewDefinition; /// /// Creates a new CassandraViewResource. /// public CassandraViewResource() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _viewDefinition = BicepValue.DefineProperty(this, "ViewDefinition", ["viewDefinition"]); + } + + /// + /// Define all the provisionable properties of CassandraViewResource. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _viewDefinition = DefineProperty("ViewDefinition", ["viewDefinition"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ComputedProperty.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ComputedProperty.cs index 5be12ea6e30fa..0b71262637f99 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ComputedProperty.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ComputedProperty.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,38 @@ public partial class ComputedProperty : ProvisionableConstruct /// /// The name of a computed property, for example - "cp_lowerName". /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The query that evaluates the value for computed property, for example - /// "SELECT VALUE LOWER(c.name) FROM c". /// - public BicepValue Query { get => _query; set => _query.Assign(value); } - private readonly BicepValue _query; + public BicepValue Query + { + get { Initialize(); return _query!; } + set { Initialize(); _query!.Assign(value); } + } + private BicepValue? _query; /// /// Creates a new ComputedProperty. /// public ComputedProperty() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _query = BicepValue.DefineProperty(this, "Query", ["query"]); + } + + /// + /// Define all the provisionable properties of ComputedProperty. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _query = DefineProperty("Query", ["query"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ConflictResolutionPolicy.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ConflictResolutionPolicy.cs index 5f39fe53be07f..31e8a9421c096 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ConflictResolutionPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ConflictResolutionPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class ConflictResolutionPolicy : ProvisionableConstruct /// /// Indicates the conflict resolution mode. /// - public BicepValue Mode { get => _mode; set => _mode.Assign(value); } - private readonly BicepValue _mode; + public BicepValue Mode + { + get { Initialize(); return _mode!; } + set { Initialize(); _mode!.Assign(value); } + } + private BicepValue? _mode; /// /// The conflict resolution path in the case of LastWriterWins mode. /// - public BicepValue ConflictResolutionPath { get => _conflictResolutionPath; set => _conflictResolutionPath.Assign(value); } - private readonly BicepValue _conflictResolutionPath; + public BicepValue ConflictResolutionPath + { + get { Initialize(); return _conflictResolutionPath!; } + set { Initialize(); _conflictResolutionPath!.Assign(value); } + } + private BicepValue? _conflictResolutionPath; /// /// The procedure to resolve conflicts in the case of custom mode. /// - public BicepValue ConflictResolutionProcedure { get => _conflictResolutionProcedure; set => _conflictResolutionProcedure.Assign(value); } - private readonly BicepValue _conflictResolutionProcedure; + public BicepValue ConflictResolutionProcedure + { + get { Initialize(); return _conflictResolutionProcedure!; } + set { Initialize(); _conflictResolutionProcedure!.Assign(value); } + } + private BicepValue? _conflictResolutionProcedure; /// /// Creates a new ConflictResolutionPolicy. /// public ConflictResolutionPolicy() { - _mode = BicepValue.DefineProperty(this, "Mode", ["mode"]); - _conflictResolutionPath = BicepValue.DefineProperty(this, "ConflictResolutionPath", ["conflictResolutionPath"]); - _conflictResolutionProcedure = BicepValue.DefineProperty(this, "ConflictResolutionProcedure", ["conflictResolutionProcedure"]); + } + + /// + /// Define all the provisionable properties of ConflictResolutionPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _mode = DefineProperty("Mode", ["mode"]); + _conflictResolutionPath = DefineProperty("ConflictResolutionPath", ["conflictResolutionPath"]); + _conflictResolutionProcedure = DefineProperty("ConflictResolutionProcedure", ["conflictResolutionProcedure"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ConsistencyPolicy.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ConsistencyPolicy.cs index 79e8755530be5..d183e1424bcc8 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ConsistencyPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ConsistencyPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,8 +19,12 @@ public partial class ConsistencyPolicy : ProvisionableConstruct /// The default consistency level and configuration settings of the Cosmos /// DB account. /// - public BicepValue DefaultConsistencyLevel { get => _defaultConsistencyLevel; set => _defaultConsistencyLevel.Assign(value); } - private readonly BicepValue _defaultConsistencyLevel; + public BicepValue DefaultConsistencyLevel + { + get { Initialize(); return _defaultConsistencyLevel!; } + set { Initialize(); _defaultConsistencyLevel!.Assign(value); } + } + private BicepValue? _defaultConsistencyLevel; /// /// When used with the Bounded Staleness consistency level, this value @@ -26,8 +32,12 @@ public partial class ConsistencyPolicy : ProvisionableConstruct /// this value is 1 – 2,147,483,647. Required when /// defaultConsistencyPolicy is set to 'BoundedStaleness'. /// - public BicepValue MaxStalenessPrefix { get => _maxStalenessPrefix; set => _maxStalenessPrefix.Assign(value); } - private readonly BicepValue _maxStalenessPrefix; + public BicepValue MaxStalenessPrefix + { + get { Initialize(); return _maxStalenessPrefix!; } + set { Initialize(); _maxStalenessPrefix!.Assign(value); } + } + private BicepValue? _maxStalenessPrefix; /// /// When used with the Bounded Staleness consistency level, this value @@ -35,16 +45,28 @@ public partial class ConsistencyPolicy : ProvisionableConstruct /// Accepted range for this value is 5 - 86400. Required when /// defaultConsistencyPolicy is set to 'BoundedStaleness'. /// - public BicepValue MaxIntervalInSeconds { get => _maxIntervalInSeconds; set => _maxIntervalInSeconds.Assign(value); } - private readonly BicepValue _maxIntervalInSeconds; + public BicepValue MaxIntervalInSeconds + { + get { Initialize(); return _maxIntervalInSeconds!; } + set { Initialize(); _maxIntervalInSeconds!.Assign(value); } + } + private BicepValue? _maxIntervalInSeconds; /// /// Creates a new ConsistencyPolicy. /// public ConsistencyPolicy() { - _defaultConsistencyLevel = BicepValue.DefineProperty(this, "DefaultConsistencyLevel", ["defaultConsistencyLevel"]); - _maxStalenessPrefix = BicepValue.DefineProperty(this, "MaxStalenessPrefix", ["maxStalenessPrefix"]); - _maxIntervalInSeconds = BicepValue.DefineProperty(this, "MaxIntervalInSeconds", ["maxIntervalInSeconds"]); + } + + /// + /// Define all the provisionable properties of ConsistencyPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _defaultConsistencyLevel = DefineProperty("DefaultConsistencyLevel", ["defaultConsistencyLevel"]); + _maxStalenessPrefix = DefineProperty("MaxStalenessPrefix", ["maxStalenessPrefix"]); + _maxIntervalInSeconds = DefineProperty("MaxIntervalInSeconds", ["maxIntervalInSeconds"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ContinuousModeBackupPolicy.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ContinuousModeBackupPolicy.cs index 2551cf11e53c8..3b9dabd9a4ead 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ContinuousModeBackupPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ContinuousModeBackupPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.CosmosDB; @@ -15,15 +17,27 @@ public partial class ContinuousModeBackupPolicy : CosmosDBAccountBackupPolicy /// /// Enum to indicate type of Continuos backup mode. /// - public BicepValue ContinuousModeTier { get => _continuousModeTier; set => _continuousModeTier.Assign(value); } - private readonly BicepValue _continuousModeTier; + public BicepValue ContinuousModeTier + { + get { Initialize(); return _continuousModeTier!; } + set { Initialize(); _continuousModeTier!.Assign(value); } + } + private BicepValue? _continuousModeTier; /// /// Creates a new ContinuousModeBackupPolicy. /// public ContinuousModeBackupPolicy() : base() { - BicepValue.DefineProperty(this, "type", ["type"], defaultValue: "Continuous"); - _continuousModeTier = BicepValue.DefineProperty(this, "ContinuousModeTier", ["continuousModeProperties", "tier"]); + } + + /// + /// Define all the provisionable properties of ContinuousModeBackupPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("type", ["type"], defaultValue: "Continuous"); + _continuousModeTier = DefineProperty("ContinuousModeTier", ["continuousModeProperties", "tier"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosCassandraDataTransferDataSourceSink.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosCassandraDataTransferDataSourceSink.cs index 571b3aa5e1cb6..55b161b81971a 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosCassandraDataTransferDataSourceSink.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosCassandraDataTransferDataSourceSink.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,39 @@ public partial class CosmosCassandraDataTransferDataSourceSink : BaseCosmosDataT /// /// Gets or sets the keyspace name. /// - public BicepValue KeyspaceName { get => _keyspaceName; set => _keyspaceName.Assign(value); } - private readonly BicepValue _keyspaceName; + public BicepValue KeyspaceName + { + get { Initialize(); return _keyspaceName!; } + set { Initialize(); _keyspaceName!.Assign(value); } + } + private BicepValue? _keyspaceName; /// /// Gets or sets the table name. /// - public BicepValue TableName { get => _tableName; set => _tableName.Assign(value); } - private readonly BicepValue _tableName; + public BicepValue TableName + { + get { Initialize(); return _tableName!; } + set { Initialize(); _tableName!.Assign(value); } + } + private BicepValue? _tableName; /// /// Creates a new CosmosCassandraDataTransferDataSourceSink. /// public CosmosCassandraDataTransferDataSourceSink() : base() { - BicepValue.DefineProperty(this, "component", ["component"], defaultValue: "CosmosDBCassandra"); - _keyspaceName = BicepValue.DefineProperty(this, "KeyspaceName", ["keyspaceName"]); - _tableName = BicepValue.DefineProperty(this, "TableName", ["tableName"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosCassandraDataTransferDataSourceSink. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("component", ["component"], defaultValue: "CosmosDBCassandra"); + _keyspaceName = DefineProperty("KeyspaceName", ["keyspaceName"]); + _tableName = DefineProperty("TableName", ["tableName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountBackupPolicy.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountBackupPolicy.cs index 06e74313cf6e7..dc217b16c904f 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountBackupPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountBackupPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -24,14 +26,26 @@ public partial class CosmosDBAccountBackupPolicy : ProvisionableConstruct /// The object representing the state of the migration between the backup /// policies. /// - public BicepValue MigrationState { get => _migrationState; set => _migrationState.Assign(value); } - private readonly BicepValue _migrationState; + public BackupPolicyMigrationState MigrationState + { + get { Initialize(); return _migrationState!; } + set { Initialize(); AssignOrReplace(ref _migrationState, value); } + } + private BackupPolicyMigrationState? _migrationState; /// /// Creates a new CosmosDBAccountBackupPolicy. /// public CosmosDBAccountBackupPolicy() { - _migrationState = BicepValue.DefineProperty(this, "MigrationState", ["migrationState"]); + } + + /// + /// Define all the provisionable properties of CosmosDBAccountBackupPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _migrationState = DefineModelProperty("MigrationState", ["migrationState"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountCapability.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountCapability.cs index 91a8ca735ffad..e3062fedde044 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountCapability.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountCapability.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,14 +20,26 @@ public partial class CosmosDBAccountCapability : ProvisionableConstruct /// "EnableCassandra". Current values also include /// "EnableTable" and "EnableGremlin". /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new CosmosDBAccountCapability. /// public CosmosDBAccountCapability() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of CosmosDBAccountCapability. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountCorsPolicy.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountCorsPolicy.cs index 5a9f4396e0db5..2332a7b101179 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountCorsPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountCorsPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,46 +19,74 @@ public partial class CosmosDBAccountCorsPolicy : ProvisionableConstruct /// The origin domains that are permitted to make a request against the /// service via CORS. /// - public BicepValue AllowedOrigins { get => _allowedOrigins; set => _allowedOrigins.Assign(value); } - private readonly BicepValue _allowedOrigins; + public BicepValue AllowedOrigins + { + get { Initialize(); return _allowedOrigins!; } + set { Initialize(); _allowedOrigins!.Assign(value); } + } + private BicepValue? _allowedOrigins; /// /// The methods (HTTP request verbs) that the origin domain may use for a /// CORS request. /// - public BicepValue AllowedMethods { get => _allowedMethods; set => _allowedMethods.Assign(value); } - private readonly BicepValue _allowedMethods; + public BicepValue AllowedMethods + { + get { Initialize(); return _allowedMethods!; } + set { Initialize(); _allowedMethods!.Assign(value); } + } + private BicepValue? _allowedMethods; /// /// The request headers that the origin domain may specify on the CORS /// request. /// - public BicepValue AllowedHeaders { get => _allowedHeaders; set => _allowedHeaders.Assign(value); } - private readonly BicepValue _allowedHeaders; + public BicepValue AllowedHeaders + { + get { Initialize(); return _allowedHeaders!; } + set { Initialize(); _allowedHeaders!.Assign(value); } + } + private BicepValue? _allowedHeaders; /// /// The response headers that may be sent in the response to the CORS /// request and exposed by the browser to the request issuer. /// - public BicepValue ExposedHeaders { get => _exposedHeaders; set => _exposedHeaders.Assign(value); } - private readonly BicepValue _exposedHeaders; + public BicepValue ExposedHeaders + { + get { Initialize(); return _exposedHeaders!; } + set { Initialize(); _exposedHeaders!.Assign(value); } + } + private BicepValue? _exposedHeaders; /// /// The maximum amount time that a browser should cache the preflight /// OPTIONS request. /// - public BicepValue MaxAgeInSeconds { get => _maxAgeInSeconds; set => _maxAgeInSeconds.Assign(value); } - private readonly BicepValue _maxAgeInSeconds; + public BicepValue MaxAgeInSeconds + { + get { Initialize(); return _maxAgeInSeconds!; } + set { Initialize(); _maxAgeInSeconds!.Assign(value); } + } + private BicepValue? _maxAgeInSeconds; /// /// Creates a new CosmosDBAccountCorsPolicy. /// public CosmosDBAccountCorsPolicy() { - _allowedOrigins = BicepValue.DefineProperty(this, "AllowedOrigins", ["allowedOrigins"]); - _allowedMethods = BicepValue.DefineProperty(this, "AllowedMethods", ["allowedMethods"]); - _allowedHeaders = BicepValue.DefineProperty(this, "AllowedHeaders", ["allowedHeaders"]); - _exposedHeaders = BicepValue.DefineProperty(this, "ExposedHeaders", ["exposedHeaders"]); - _maxAgeInSeconds = BicepValue.DefineProperty(this, "MaxAgeInSeconds", ["maxAgeInSeconds"]); + } + + /// + /// Define all the provisionable properties of CosmosDBAccountCorsPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _allowedOrigins = DefineProperty("AllowedOrigins", ["allowedOrigins"]); + _allowedMethods = DefineProperty("AllowedMethods", ["allowedMethods"]); + _allowedHeaders = DefineProperty("AllowedHeaders", ["allowedHeaders"]); + _exposedHeaders = DefineProperty("ExposedHeaders", ["exposedHeaders"]); + _maxAgeInSeconds = DefineProperty("MaxAgeInSeconds", ["maxAgeInSeconds"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountKeyList.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountKeyList.cs index 529d8f7b7dab7..386cb541695ac 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountKeyList.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountKeyList.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Expressions; using Azure.Provisioning.Primitives; using System; @@ -18,51 +20,55 @@ public partial class CosmosDBAccountKeyList : ProvisionableConstruct /// /// Base 64 encoded value of the primary read-write key. /// - public BicepValue PrimaryMasterKey { get => _primaryMasterKey; } - private readonly BicepValue _primaryMasterKey; + public BicepValue PrimaryMasterKey + { + get { Initialize(); return _primaryMasterKey!; } + } + private BicepValue? _primaryMasterKey; /// /// Base 64 encoded value of the secondary read-write key. /// - public BicepValue SecondaryMasterKey { get => _secondaryMasterKey; } - private readonly BicepValue _secondaryMasterKey; + public BicepValue SecondaryMasterKey + { + get { Initialize(); return _secondaryMasterKey!; } + } + private BicepValue? _secondaryMasterKey; /// /// Base 64 encoded value of the primary read-only key. /// - public BicepValue PrimaryReadonlyMasterKey { get => _primaryReadonlyMasterKey; } - private readonly BicepValue _primaryReadonlyMasterKey; + public BicepValue PrimaryReadonlyMasterKey + { + get { Initialize(); return _primaryReadonlyMasterKey!; } + } + private BicepValue? _primaryReadonlyMasterKey; /// /// Base 64 encoded value of the secondary read-only key. /// - public BicepValue SecondaryReadonlyMasterKey { get => _secondaryReadonlyMasterKey; } - private readonly BicepValue _secondaryReadonlyMasterKey; + public BicepValue SecondaryReadonlyMasterKey + { + get { Initialize(); return _secondaryReadonlyMasterKey!; } + } + private BicepValue? _secondaryReadonlyMasterKey; /// /// Creates a new CosmosDBAccountKeyList. /// public CosmosDBAccountKeyList() { - _primaryMasterKey = BicepValue.DefineProperty(this, "PrimaryMasterKey", ["primaryMasterKey"], isOutput: true, isSecure: true); - _secondaryMasterKey = BicepValue.DefineProperty(this, "SecondaryMasterKey", ["secondaryMasterKey"], isOutput: true, isSecure: true); - _primaryReadonlyMasterKey = BicepValue.DefineProperty(this, "PrimaryReadonlyMasterKey", ["primaryReadonlyMasterKey"], isOutput: true, isSecure: true); - _secondaryReadonlyMasterKey = BicepValue.DefineProperty(this, "SecondaryReadonlyMasterKey", ["secondaryReadonlyMasterKey"], isOutput: true, isSecure: true); } /// - /// Creates a new CosmosDBAccountKeyList resource from a Bicep expression - /// that evaluates to a CosmosDBAccountKeyList. + /// Define all the provisionable properties of CosmosDBAccountKeyList. /// - /// - /// A Bicep expression that evaluates to a CosmosDBAccountKeyList resource. - /// - /// A CosmosDBAccountKeyList resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static CosmosDBAccountKeyList FromExpression(BicepExpression expression) + protected override void DefineProvisionableProperties() { - CosmosDBAccountKeyList resource = new(); - resource.OverrideWithExpression(expression); - return resource; + base.DefineProvisionableProperties(); + _primaryMasterKey = DefineProperty("PrimaryMasterKey", ["primaryMasterKey"], isOutput: true, isSecure: true); + _secondaryMasterKey = DefineProperty("SecondaryMasterKey", ["secondaryMasterKey"], isOutput: true, isSecure: true); + _primaryReadonlyMasterKey = DefineProperty("PrimaryReadonlyMasterKey", ["primaryReadonlyMasterKey"], isOutput: true, isSecure: true); + _secondaryReadonlyMasterKey = DefineProperty("SecondaryReadonlyMasterKey", ["secondaryReadonlyMasterKey"], isOutput: true, isSecure: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountLocation.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountLocation.cs index 25160ac45c165..d3ce1098a237c 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountLocation.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountLocation.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,31 @@ public partial class CosmosDBAccountLocation : ProvisionableConstruct /// The unique identifier of the region within the database account. /// Example: <accountName>-<locationName>. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The name of the region. /// - public BicepValue LocationName { get => _locationName; set => _locationName.Assign(value); } - private readonly BicepValue _locationName; + public BicepValue LocationName + { + get { Initialize(); return _locationName!; } + set { Initialize(); _locationName!.Assign(value); } + } + private BicepValue? _locationName; /// /// The connection endpoint for the specific region. Example: /// https://<accountName>-<locationName>.documents.azure.com:443/. /// - public BicepValue DocumentEndpoint { get => _documentEndpoint; } - private readonly BicepValue _documentEndpoint; + public BicepValue DocumentEndpoint + { + get { Initialize(); return _documentEndpoint!; } + } + private BicepValue? _documentEndpoint; /// /// The status of the Cosmos DB account at the time the operation was @@ -46,8 +58,11 @@ public partial class CosmosDBAccountLocation : ProvisionableConstruct /// failed creation. 'DeletionFailed' – the Cosmos DB account /// deletion failed. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The failover priority of the region. A failover priority of 0 indicates @@ -55,26 +70,42 @@ public partial class CosmosDBAccountLocation : ProvisionableConstruct /// number of regions - 1). Failover priority values must be unique for /// each of the regions in which the database account exists. /// - public BicepValue FailoverPriority { get => _failoverPriority; set => _failoverPriority.Assign(value); } - private readonly BicepValue _failoverPriority; + public BicepValue FailoverPriority + { + get { Initialize(); return _failoverPriority!; } + set { Initialize(); _failoverPriority!.Assign(value); } + } + private BicepValue? _failoverPriority; /// /// Flag to indicate whether or not this region is an AvailabilityZone /// region. /// - public BicepValue IsZoneRedundant { get => _isZoneRedundant; set => _isZoneRedundant.Assign(value); } - private readonly BicepValue _isZoneRedundant; + public BicepValue IsZoneRedundant + { + get { Initialize(); return _isZoneRedundant!; } + set { Initialize(); _isZoneRedundant!.Assign(value); } + } + private BicepValue? _isZoneRedundant; /// /// Creates a new CosmosDBAccountLocation. /// public CosmosDBAccountLocation() { - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _locationName = BicepValue.DefineProperty(this, "LocationName", ["locationName"]); - _documentEndpoint = BicepValue.DefineProperty(this, "DocumentEndpoint", ["documentEndpoint"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); - _failoverPriority = BicepValue.DefineProperty(this, "FailoverPriority", ["failoverPriority"]); - _isZoneRedundant = BicepValue.DefineProperty(this, "IsZoneRedundant", ["isZoneRedundant"]); + } + + /// + /// Define all the provisionable properties of CosmosDBAccountLocation. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"], isOutput: true); + _locationName = DefineProperty("LocationName", ["locationName"]); + _documentEndpoint = DefineProperty("DocumentEndpoint", ["documentEndpoint"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _failoverPriority = DefineProperty("FailoverPriority", ["failoverPriority"]); + _isZoneRedundant = DefineProperty("IsZoneRedundant", ["isZoneRedundant"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountRestoreParameters.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountRestoreParameters.cs index 700d1bcea75fa..e47aff44de978 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountRestoreParameters.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBAccountRestoreParameters.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,66 +19,107 @@ public partial class CosmosDBAccountRestoreParameters : ProvisionableConstruct /// /// Describes the mode of the restore. /// - public BicepValue RestoreMode { get => _restoreMode; set => _restoreMode.Assign(value); } - private readonly BicepValue _restoreMode; + public BicepValue RestoreMode + { + get { Initialize(); return _restoreMode!; } + set { Initialize(); _restoreMode!.Assign(value); } + } + private BicepValue? _restoreMode; /// /// List of specific databases available for restore. /// - public BicepList DatabasesToRestore { get => _databasesToRestore; set => _databasesToRestore.Assign(value); } - private readonly BicepList _databasesToRestore; + public BicepList DatabasesToRestore + { + get { Initialize(); return _databasesToRestore!; } + set { Initialize(); _databasesToRestore!.Assign(value); } + } + private BicepList? _databasesToRestore; /// /// List of specific gremlin databases available for restore. /// - public BicepList GremlinDatabasesToRestore { get => _gremlinDatabasesToRestore; set => _gremlinDatabasesToRestore.Assign(value); } - private readonly BicepList _gremlinDatabasesToRestore; + public BicepList GremlinDatabasesToRestore + { + get { Initialize(); return _gremlinDatabasesToRestore!; } + set { Initialize(); _gremlinDatabasesToRestore!.Assign(value); } + } + private BicepList? _gremlinDatabasesToRestore; /// /// List of specific tables available for restore. /// - public BicepList TablesToRestore { get => _tablesToRestore; set => _tablesToRestore.Assign(value); } - private readonly BicepList _tablesToRestore; + public BicepList TablesToRestore + { + get { Initialize(); return _tablesToRestore!; } + set { Initialize(); _tablesToRestore!.Assign(value); } + } + private BicepList? _tablesToRestore; /// /// The source backup location for restore. /// - public BicepValue SourceBackupLocation { get => _sourceBackupLocation; set => _sourceBackupLocation.Assign(value); } - private readonly BicepValue _sourceBackupLocation; + public BicepValue SourceBackupLocation + { + get { Initialize(); return _sourceBackupLocation!; } + set { Initialize(); _sourceBackupLocation!.Assign(value); } + } + private BicepValue? _sourceBackupLocation; /// /// The id of the restorable database account from which the restore has to /// be initiated. For example: /// /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}. /// - public BicepValue RestoreSource { get => _restoreSource; set => _restoreSource.Assign(value); } - private readonly BicepValue _restoreSource; + public BicepValue RestoreSource + { + get { Initialize(); return _restoreSource!; } + set { Initialize(); _restoreSource!.Assign(value); } + } + private BicepValue? _restoreSource; /// /// Time to which the account has to be restored (ISO-8601 format). /// - public BicepValue RestoreTimestampInUtc { get => _restoreTimestampInUtc; set => _restoreTimestampInUtc.Assign(value); } - private readonly BicepValue _restoreTimestampInUtc; + public BicepValue RestoreTimestampInUtc + { + get { Initialize(); return _restoreTimestampInUtc!; } + set { Initialize(); _restoreTimestampInUtc!.Assign(value); } + } + private BicepValue? _restoreTimestampInUtc; /// /// Specifies whether the restored account will have Time-To-Live disabled /// upon the successful restore. /// - public BicepValue IsRestoreWithTtlDisabled { get => _isRestoreWithTtlDisabled; set => _isRestoreWithTtlDisabled.Assign(value); } - private readonly BicepValue _isRestoreWithTtlDisabled; + public BicepValue IsRestoreWithTtlDisabled + { + get { Initialize(); return _isRestoreWithTtlDisabled!; } + set { Initialize(); _isRestoreWithTtlDisabled!.Assign(value); } + } + private BicepValue? _isRestoreWithTtlDisabled; /// /// Creates a new CosmosDBAccountRestoreParameters. /// public CosmosDBAccountRestoreParameters() { - _restoreMode = BicepValue.DefineProperty(this, "RestoreMode", ["restoreMode"]); - _databasesToRestore = BicepList.DefineProperty(this, "DatabasesToRestore", ["databasesToRestore"]); - _gremlinDatabasesToRestore = BicepList.DefineProperty(this, "GremlinDatabasesToRestore", ["gremlinDatabasesToRestore"]); - _tablesToRestore = BicepList.DefineProperty(this, "TablesToRestore", ["tablesToRestore"]); - _sourceBackupLocation = BicepValue.DefineProperty(this, "SourceBackupLocation", ["sourceBackupLocation"]); - _restoreSource = BicepValue.DefineProperty(this, "RestoreSource", ["restoreSource"]); - _restoreTimestampInUtc = BicepValue.DefineProperty(this, "RestoreTimestampInUtc", ["restoreTimestampInUtc"]); - _isRestoreWithTtlDisabled = BicepValue.DefineProperty(this, "IsRestoreWithTtlDisabled", ["restoreWithTtlDisabled"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBAccountRestoreParameters. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _restoreMode = DefineProperty("RestoreMode", ["restoreMode"]); + _databasesToRestore = DefineListProperty("DatabasesToRestore", ["databasesToRestore"]); + _gremlinDatabasesToRestore = DefineListProperty("GremlinDatabasesToRestore", ["gremlinDatabasesToRestore"]); + _tablesToRestore = DefineListProperty("TablesToRestore", ["tablesToRestore"]); + _sourceBackupLocation = DefineProperty("SourceBackupLocation", ["sourceBackupLocation"]); + _restoreSource = DefineProperty("RestoreSource", ["restoreSource"]); + _restoreTimestampInUtc = DefineProperty("RestoreTimestampInUtc", ["restoreTimestampInUtc"]); + _isRestoreWithTtlDisabled = DefineProperty("IsRestoreWithTtlDisabled", ["restoreWithTtlDisabled"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBClientEncryptionIncludedPath.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBClientEncryptionIncludedPath.cs index 8fc2bc349082c..dfb47c5f36692 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBClientEncryptionIncludedPath.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBClientEncryptionIncludedPath.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,37 +18,62 @@ public partial class CosmosDBClientEncryptionIncludedPath : ProvisionableConstru /// /// Path that needs to be encrypted. /// - public BicepValue Path { get => _path; set => _path.Assign(value); } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + set { Initialize(); _path!.Assign(value); } + } + private BicepValue? _path; /// /// The identifier of the Client Encryption Key to be used to encrypt the /// path. /// - public BicepValue ClientEncryptionKeyId { get => _clientEncryptionKeyId; set => _clientEncryptionKeyId.Assign(value); } - private readonly BicepValue _clientEncryptionKeyId; + public BicepValue ClientEncryptionKeyId + { + get { Initialize(); return _clientEncryptionKeyId!; } + set { Initialize(); _clientEncryptionKeyId!.Assign(value); } + } + private BicepValue? _clientEncryptionKeyId; /// /// The type of encryption to be performed. Eg - Deterministic, Randomized. /// - public BicepValue EncryptionType { get => _encryptionType; set => _encryptionType.Assign(value); } - private readonly BicepValue _encryptionType; + public BicepValue EncryptionType + { + get { Initialize(); return _encryptionType!; } + set { Initialize(); _encryptionType!.Assign(value); } + } + private BicepValue? _encryptionType; /// /// The encryption algorithm which will be used. Eg - /// AEAD_AES_256_CBC_HMAC_SHA256. /// - public BicepValue EncryptionAlgorithm { get => _encryptionAlgorithm; set => _encryptionAlgorithm.Assign(value); } - private readonly BicepValue _encryptionAlgorithm; + public BicepValue EncryptionAlgorithm + { + get { Initialize(); return _encryptionAlgorithm!; } + set { Initialize(); _encryptionAlgorithm!.Assign(value); } + } + private BicepValue? _encryptionAlgorithm; /// /// Creates a new CosmosDBClientEncryptionIncludedPath. /// public CosmosDBClientEncryptionIncludedPath() { - _path = BicepValue.DefineProperty(this, "Path", ["path"]); - _clientEncryptionKeyId = BicepValue.DefineProperty(this, "ClientEncryptionKeyId", ["clientEncryptionKeyId"]); - _encryptionType = BicepValue.DefineProperty(this, "EncryptionType", ["encryptionType"]); - _encryptionAlgorithm = BicepValue.DefineProperty(this, "EncryptionAlgorithm", ["encryptionAlgorithm"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBClientEncryptionIncludedPath. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _path = DefineProperty("Path", ["path"]); + _clientEncryptionKeyId = DefineProperty("ClientEncryptionKeyId", ["clientEncryptionKeyId"]); + _encryptionType = DefineProperty("EncryptionType", ["encryptionType"]); + _encryptionAlgorithm = DefineProperty("EncryptionAlgorithm", ["encryptionAlgorithm"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBClientEncryptionPolicy.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBClientEncryptionPolicy.cs index e513aabf055e3..2d35ea64e2ec1 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBClientEncryptionPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBClientEncryptionPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,22 +20,39 @@ public partial class CosmosDBClientEncryptionPolicy : ProvisionableConstruct /// Paths of the item that need encryption along with path-specific /// settings. /// - public BicepList IncludedPaths { get => _includedPaths; set => _includedPaths.Assign(value); } - private readonly BicepList _includedPaths; + public BicepList IncludedPaths + { + get { Initialize(); return _includedPaths!; } + set { Initialize(); _includedPaths!.Assign(value); } + } + private BicepList? _includedPaths; /// /// Version of the client encryption policy definition. Supported versions /// are 1 and 2. Version 2 supports id and partition key path encryption. /// - public BicepValue PolicyFormatVersion { get => _policyFormatVersion; set => _policyFormatVersion.Assign(value); } - private readonly BicepValue _policyFormatVersion; + public BicepValue PolicyFormatVersion + { + get { Initialize(); return _policyFormatVersion!; } + set { Initialize(); _policyFormatVersion!.Assign(value); } + } + private BicepValue? _policyFormatVersion; /// /// Creates a new CosmosDBClientEncryptionPolicy. /// public CosmosDBClientEncryptionPolicy() { - _includedPaths = BicepList.DefineProperty(this, "IncludedPaths", ["includedPaths"]); - _policyFormatVersion = BicepValue.DefineProperty(this, "PolicyFormatVersion", ["policyFormatVersion"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBClientEncryptionPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _includedPaths = DefineListProperty("IncludedPaths", ["includedPaths"]); + _policyFormatVersion = DefineProperty("PolicyFormatVersion", ["policyFormatVersion"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBCompositePath.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBCompositePath.cs index e36f7270df8ef..35f1fd2ad61c6 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBCompositePath.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBCompositePath.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class CosmosDBCompositePath : ProvisionableConstruct /// The path for which the indexing behavior applies to. Index paths /// typically start with root and end with wildcard (/path/*). /// - public BicepValue Path { get => _path; set => _path.Assign(value); } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + set { Initialize(); _path!.Assign(value); } + } + private BicepValue? _path; /// /// Sort order for composite paths. /// - public BicepValue Order { get => _order; set => _order.Assign(value); } - private readonly BicepValue _order; + public BicepValue Order + { + get { Initialize(); return _order!; } + set { Initialize(); _order!.Assign(value); } + } + private BicepValue? _order; /// /// Creates a new CosmosDBCompositePath. /// public CosmosDBCompositePath() { - _path = BicepValue.DefineProperty(this, "Path", ["path"]); - _order = BicepValue.DefineProperty(this, "Order", ["order"]); + } + + /// + /// Define all the provisionable properties of CosmosDBCompositePath. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _path = DefineProperty("Path", ["path"]); + _order = DefineProperty("Order", ["order"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBContainerPartitionKey.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBContainerPartitionKey.cs index 32075a8430f78..b5a20164653c6 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBContainerPartitionKey.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBContainerPartitionKey.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,37 +20,61 @@ public partial class CosmosDBContainerPartitionKey : ProvisionableConstruct /// /// List of paths using which data within the container can be partitioned. /// - public BicepList Paths { get => _paths; set => _paths.Assign(value); } - private readonly BicepList _paths; + public BicepList Paths + { + get { Initialize(); return _paths!; } + set { Initialize(); _paths!.Assign(value); } + } + private BicepList? _paths; /// /// Indicates the kind of algorithm used for partitioning. For MultiHash, /// multiple partition keys (upto three maximum) are supported for /// container create. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Indicates the version of the partition key definition. /// - public BicepValue Version { get => _version; set => _version.Assign(value); } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + set { Initialize(); _version!.Assign(value); } + } + private BicepValue? _version; /// /// Indicates if the container is using a system generated partition key. /// - public BicepValue IsSystemKey { get => _isSystemKey; } - private readonly BicepValue _isSystemKey; + public BicepValue IsSystemKey + { + get { Initialize(); return _isSystemKey!; } + } + private BicepValue? _isSystemKey; /// /// Creates a new CosmosDBContainerPartitionKey. /// public CosmosDBContainerPartitionKey() { - _paths = BicepList.DefineProperty(this, "Paths", ["paths"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _version = BicepValue.DefineProperty(this, "Version", ["version"]); - _isSystemKey = BicepValue.DefineProperty(this, "IsSystemKey", ["systemKey"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBContainerPartitionKey. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _paths = DefineListProperty("Paths", ["paths"]); + _kind = DefineProperty("Kind", ["kind"]); + _version = DefineProperty("Version", ["version"]); + _isSystemKey = DefineProperty("IsSystemKey", ["systemKey"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBCreateUpdateConfig.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBCreateUpdateConfig.cs index 83781485cca31..2c7e05ea570bf 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBCreateUpdateConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBCreateUpdateConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,21 +21,37 @@ public partial class CosmosDBCreateUpdateConfig : ProvisionableConstruct /// /// Request Units per second. For example, "throughput": 10000. /// - public BicepValue Throughput { get => _throughput; set => _throughput.Assign(value); } - private readonly BicepValue _throughput; + public BicepValue Throughput + { + get { Initialize(); return _throughput!; } + set { Initialize(); _throughput!.Assign(value); } + } + private BicepValue? _throughput; /// /// Represents maximum throughput, the resource can scale up to. /// - public BicepValue AutoscaleMaxThroughput { get => _autoscaleMaxThroughput; set => _autoscaleMaxThroughput.Assign(value); } - private readonly BicepValue _autoscaleMaxThroughput; + public BicepValue AutoscaleMaxThroughput + { + get { Initialize(); return _autoscaleMaxThroughput!; } + set { Initialize(); _autoscaleMaxThroughput!.Assign(value); } + } + private BicepValue? _autoscaleMaxThroughput; /// /// Creates a new CosmosDBCreateUpdateConfig. /// public CosmosDBCreateUpdateConfig() { - _throughput = BicepValue.DefineProperty(this, "Throughput", ["throughput"]); - _autoscaleMaxThroughput = BicepValue.DefineProperty(this, "AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); + } + + /// + /// Define all the provisionable properties of CosmosDBCreateUpdateConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _throughput = DefineProperty("Throughput", ["throughput"]); + _autoscaleMaxThroughput = DefineProperty("AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBExcludedPath.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBExcludedPath.cs index cb28913577a69..7180817824739 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBExcludedPath.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBExcludedPath.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,14 +19,26 @@ public partial class CosmosDBExcludedPath : ProvisionableConstruct /// The path for which the indexing behavior applies to. Index paths /// typically start with root and end with wildcard (/path/*). /// - public BicepValue Path { get => _path; set => _path.Assign(value); } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + set { Initialize(); _path!.Assign(value); } + } + private BicepValue? _path; /// /// Creates a new CosmosDBExcludedPath. /// public CosmosDBExcludedPath() { - _path = BicepValue.DefineProperty(this, "Path", ["path"]); + } + + /// + /// Define all the provisionable properties of CosmosDBExcludedPath. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _path = DefineProperty("Path", ["path"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBFailoverPolicy.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBFailoverPolicy.cs index 0985dbc8ada70..f5412dbd02110 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBFailoverPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBFailoverPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -18,14 +20,21 @@ public partial class CosmosDBFailoverPolicy : ProvisionableConstruct /// The unique identifier of the region in which the database account /// replicates to. Example: <accountName>-<locationName>. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The name of the region in which the database account exists. /// - public BicepValue LocationName { get => _locationName; set => _locationName.Assign(value); } - private readonly BicepValue _locationName; + public BicepValue LocationName + { + get { Initialize(); return _locationName!; } + set { Initialize(); _locationName!.Assign(value); } + } + private BicepValue? _locationName; /// /// The failover priority of the region. A failover priority of 0 indicates @@ -33,16 +42,28 @@ public partial class CosmosDBFailoverPolicy : ProvisionableConstruct /// number of regions - 1). Failover priority values must be unique for /// each of the regions in which the database account exists. /// - public BicepValue FailoverPriority { get => _failoverPriority; set => _failoverPriority.Assign(value); } - private readonly BicepValue _failoverPriority; + public BicepValue FailoverPriority + { + get { Initialize(); return _failoverPriority!; } + set { Initialize(); _failoverPriority!.Assign(value); } + } + private BicepValue? _failoverPriority; /// /// Creates a new CosmosDBFailoverPolicy. /// public CosmosDBFailoverPolicy() { - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _locationName = BicepValue.DefineProperty(this, "LocationName", ["locationName"]); - _failoverPriority = BicepValue.DefineProperty(this, "FailoverPriority", ["failoverPriority"]); + } + + /// + /// Define all the provisionable properties of CosmosDBFailoverPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"], isOutput: true); + _locationName = DefineProperty("LocationName", ["locationName"]); + _failoverPriority = DefineProperty("FailoverPriority", ["failoverPriority"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBIPAddressOrRange.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBIPAddressOrRange.cs index 3722f40fc9151..7e1673024e1e9 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBIPAddressOrRange.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBIPAddressOrRange.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -20,14 +22,26 @@ public partial class CosmosDBIPAddressOrRange : ProvisionableConstruct /// 192.168.0.0/16, since these are not enforceable by the IP address /// filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”. /// - public BicepValue IPAddressOrRange { get => _iPAddressOrRange; set => _iPAddressOrRange.Assign(value); } - private readonly BicepValue _iPAddressOrRange; + public BicepValue IPAddressOrRange + { + get { Initialize(); return _iPAddressOrRange!; } + set { Initialize(); _iPAddressOrRange!.Assign(value); } + } + private BicepValue? _iPAddressOrRange; /// /// Creates a new CosmosDBIPAddressOrRange. /// public CosmosDBIPAddressOrRange() { - _iPAddressOrRange = BicepValue.DefineProperty(this, "IPAddressOrRange", ["ipAddressOrRange"]); + } + + /// + /// Define all the provisionable properties of CosmosDBIPAddressOrRange. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _iPAddressOrRange = DefineProperty("IPAddressOrRange", ["ipAddressOrRange"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBIncludedPath.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBIncludedPath.cs index 9636b5f8d1b18..b1060ffe1c4e6 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBIncludedPath.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBIncludedPath.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,37 @@ public partial class CosmosDBIncludedPath : ProvisionableConstruct /// The path for which the indexing behavior applies to. Index paths /// typically start with root and end with wildcard (/path/*). /// - public BicepValue Path { get => _path; set => _path.Assign(value); } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + set { Initialize(); _path!.Assign(value); } + } + private BicepValue? _path; /// /// List of indexes for this path. /// - public BicepList Indexes { get => _indexes; set => _indexes.Assign(value); } - private readonly BicepList _indexes; + public BicepList Indexes + { + get { Initialize(); return _indexes!; } + set { Initialize(); _indexes!.Assign(value); } + } + private BicepList? _indexes; /// /// Creates a new CosmosDBIncludedPath. /// public CosmosDBIncludedPath() { - _path = BicepValue.DefineProperty(this, "Path", ["path"]); - _indexes = BicepList.DefineProperty(this, "Indexes", ["indexes"]); + } + + /// + /// Define all the provisionable properties of CosmosDBIncludedPath. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _path = DefineProperty("Path", ["path"]); + _indexes = DefineListProperty("Indexes", ["indexes"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBIndexingPolicy.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBIndexingPolicy.cs index 9fee8d99870db..c77cc5a3a9593 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBIndexingPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBIndexingPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,49 +19,81 @@ public partial class CosmosDBIndexingPolicy : ProvisionableConstruct /// /// Indicates if the indexing policy is automatic. /// - public BicepValue IsAutomatic { get => _isAutomatic; set => _isAutomatic.Assign(value); } - private readonly BicepValue _isAutomatic; + public BicepValue IsAutomatic + { + get { Initialize(); return _isAutomatic!; } + set { Initialize(); _isAutomatic!.Assign(value); } + } + private BicepValue? _isAutomatic; /// /// Indicates the indexing mode. /// - public BicepValue IndexingMode { get => _indexingMode; set => _indexingMode.Assign(value); } - private readonly BicepValue _indexingMode; + public BicepValue IndexingMode + { + get { Initialize(); return _indexingMode!; } + set { Initialize(); _indexingMode!.Assign(value); } + } + private BicepValue? _indexingMode; /// /// List of paths to include in the indexing. /// - public BicepList IncludedPaths { get => _includedPaths; set => _includedPaths.Assign(value); } - private readonly BicepList _includedPaths; + public BicepList IncludedPaths + { + get { Initialize(); return _includedPaths!; } + set { Initialize(); _includedPaths!.Assign(value); } + } + private BicepList? _includedPaths; /// /// List of paths to exclude from indexing. /// - public BicepList ExcludedPaths { get => _excludedPaths; set => _excludedPaths.Assign(value); } - private readonly BicepList _excludedPaths; + public BicepList ExcludedPaths + { + get { Initialize(); return _excludedPaths!; } + set { Initialize(); _excludedPaths!.Assign(value); } + } + private BicepList? _excludedPaths; /// /// List of composite path list. /// - public BicepList> CompositeIndexes { get => _compositeIndexes; set => _compositeIndexes.Assign(value); } - private readonly BicepList> _compositeIndexes; + public BicepList> CompositeIndexes + { + get { Initialize(); return _compositeIndexes!; } + set { Initialize(); _compositeIndexes!.Assign(value); } + } + private BicepList>? _compositeIndexes; /// /// List of spatial specifics. /// - public BicepList SpatialIndexes { get => _spatialIndexes; set => _spatialIndexes.Assign(value); } - private readonly BicepList _spatialIndexes; + public BicepList SpatialIndexes + { + get { Initialize(); return _spatialIndexes!; } + set { Initialize(); _spatialIndexes!.Assign(value); } + } + private BicepList? _spatialIndexes; /// /// Creates a new CosmosDBIndexingPolicy. /// public CosmosDBIndexingPolicy() { - _isAutomatic = BicepValue.DefineProperty(this, "IsAutomatic", ["automatic"]); - _indexingMode = BicepValue.DefineProperty(this, "IndexingMode", ["indexingMode"]); - _includedPaths = BicepList.DefineProperty(this, "IncludedPaths", ["includedPaths"]); - _excludedPaths = BicepList.DefineProperty(this, "ExcludedPaths", ["excludedPaths"]); - _compositeIndexes = BicepList>.DefineProperty(this, "CompositeIndexes", ["compositeIndexes"]); - _spatialIndexes = BicepList.DefineProperty(this, "SpatialIndexes", ["spatialIndexes"]); + } + + /// + /// Define all the provisionable properties of CosmosDBIndexingPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isAutomatic = DefineProperty("IsAutomatic", ["automatic"]); + _indexingMode = DefineProperty("IndexingMode", ["indexingMode"]); + _includedPaths = DefineListProperty("IncludedPaths", ["includedPaths"]); + _excludedPaths = DefineListProperty("ExcludedPaths", ["excludedPaths"]); + _compositeIndexes = DefineListProperty>("CompositeIndexes", ["compositeIndexes"]); + _spatialIndexes = DefineListProperty("SpatialIndexes", ["spatialIndexes"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBKeyWrapMetadata.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBKeyWrapMetadata.cs index 2ad3b4b8243a3..91d00f3d00dce 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBKeyWrapMetadata.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBKeyWrapMetadata.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,59 @@ public partial class CosmosDBKeyWrapMetadata : ProvisionableConstruct /// /// The name of associated KeyEncryptionKey (aka CustomerManagedKey). /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// ProviderName of KeyStoreProvider. /// - public BicepValue CosmosDBKeyWrapMetadataType { get => _cosmosDBKeyWrapMetadataType; set => _cosmosDBKeyWrapMetadataType.Assign(value); } - private readonly BicepValue _cosmosDBKeyWrapMetadataType; + public BicepValue CosmosDBKeyWrapMetadataType + { + get { Initialize(); return _cosmosDBKeyWrapMetadataType!; } + set { Initialize(); _cosmosDBKeyWrapMetadataType!.Assign(value); } + } + private BicepValue? _cosmosDBKeyWrapMetadataType; /// /// Reference / link to the KeyEncryptionKey. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Algorithm used in wrapping and unwrapping of the data encryption key. /// - public BicepValue Algorithm { get => _algorithm; set => _algorithm.Assign(value); } - private readonly BicepValue _algorithm; + public BicepValue Algorithm + { + get { Initialize(); return _algorithm!; } + set { Initialize(); _algorithm!.Assign(value); } + } + private BicepValue? _algorithm; /// /// Creates a new CosmosDBKeyWrapMetadata. /// public CosmosDBKeyWrapMetadata() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _cosmosDBKeyWrapMetadataType = BicepValue.DefineProperty(this, "CosmosDBKeyWrapMetadataType", ["type"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _algorithm = BicepValue.DefineProperty(this, "Algorithm", ["algorithm"]); + } + + /// + /// Define all the provisionable properties of CosmosDBKeyWrapMetadata. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _cosmosDBKeyWrapMetadataType = DefineProperty("CosmosDBKeyWrapMetadataType", ["type"]); + _value = DefineProperty("Value", ["value"]); + _algorithm = DefineProperty("Algorithm", ["algorithm"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBPathIndexes.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBPathIndexes.cs index 3068fb0fbe65e..80c909adc3bd0 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBPathIndexes.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBPathIndexes.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class CosmosDBPathIndexes : ProvisionableConstruct /// /// The datatype for which the indexing behavior is applied to. /// - public BicepValue DataType { get => _dataType; set => _dataType.Assign(value); } - private readonly BicepValue _dataType; + public BicepValue DataType + { + get { Initialize(); return _dataType!; } + set { Initialize(); _dataType!.Assign(value); } + } + private BicepValue? _dataType; /// /// The precision of the index. -1 is maximum precision. /// - public BicepValue Precision { get => _precision; set => _precision.Assign(value); } - private readonly BicepValue _precision; + public BicepValue Precision + { + get { Initialize(); return _precision!; } + set { Initialize(); _precision!.Assign(value); } + } + private BicepValue? _precision; /// /// Indicates the type of index. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Creates a new CosmosDBPathIndexes. /// public CosmosDBPathIndexes() { - _dataType = BicepValue.DefineProperty(this, "DataType", ["dataType"]); - _precision = BicepValue.DefineProperty(this, "Precision", ["precision"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); + } + + /// + /// Define all the provisionable properties of CosmosDBPathIndexes. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _dataType = DefineProperty("DataType", ["dataType"]); + _precision = DefineProperty("Precision", ["precision"]); + _kind = DefineProperty("Kind", ["kind"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBPrivateEndpointConnectionData.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBPrivateEndpointConnectionData.cs index 2dee10b20983c..ed3aee666d1c7 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBPrivateEndpointConnectionData.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBPrivateEndpointConnectionData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -19,56 +21,90 @@ public partial class CosmosDBPrivateEndpointConnectionData : ProvisionableConstr /// /// Resource id of the private endpoint. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Connection State of the Private Endpoint Connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public CosmosDBPrivateLinkServiceConnectionStateProperty ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private CosmosDBPrivateLinkServiceConnectionStateProperty? _connectionState; /// /// Group id of the private endpoint. /// - public BicepValue GroupId { get => _groupId; set => _groupId.Assign(value); } - private readonly BicepValue _groupId; + public BicepValue GroupId + { + get { Initialize(); return _groupId!; } + set { Initialize(); _groupId!.Assign(value); } + } + private BicepValue? _groupId; /// /// Provisioning state of the private endpoint. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new CosmosDBPrivateEndpointConnectionData. /// public CosmosDBPrivateEndpointConnectionData() { - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _groupId = BicepValue.DefineProperty(this, "GroupId", ["properties", "groupId"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBPrivateEndpointConnectionData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _groupId = DefineProperty("GroupId", ["properties", "groupId"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBPrivateLinkServiceConnectionStateProperty.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBPrivateLinkServiceConnectionStateProperty.cs index 5573e35c35571..75fe8ae95b4f6 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBPrivateLinkServiceConnectionStateProperty.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBPrivateLinkServiceConnectionStateProperty.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,49 @@ public partial class CosmosDBPrivateLinkServiceConnectionStateProperty : Provisi /// /// The private link service connection status. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The private link service connection description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Any action that is required beyond basic workflow (approve/ reject/ /// disconnect). /// - public BicepValue ActionsRequired { get => _actionsRequired; } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + } + private BicepValue? _actionsRequired; /// /// Creates a new CosmosDBPrivateLinkServiceConnectionStateProperty. /// public CosmosDBPrivateLinkServiceConnectionStateProperty() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBPrivateLinkServiceConnectionStateProperty. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBServiceProperties.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBServiceProperties.cs index 9ca7c96b98481..4ce4709f6bac2 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBServiceProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBServiceProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -27,26 +29,40 @@ public partial class CosmosDBServiceProperties : ProvisionableConstruct /// /// Time of the last state change (ISO-8601 format). /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Instance type for the service. /// - public BicepValue InstanceSize { get => _instanceSize; set => _instanceSize.Assign(value); } - private readonly BicepValue _instanceSize; + public BicepValue InstanceSize + { + get { Initialize(); return _instanceSize!; } + set { Initialize(); _instanceSize!.Assign(value); } + } + private BicepValue? _instanceSize; /// /// Instance count for the service. /// - public BicepValue InstanceCount { get => _instanceCount; set => _instanceCount.Assign(value); } - private readonly BicepValue _instanceCount; + public BicepValue InstanceCount + { + get { Initialize(); return _instanceCount!; } + set { Initialize(); _instanceCount!.Assign(value); } + } + private BicepValue? _instanceCount; /// /// Describes the status of a service. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Additional Properties To assign an object to @@ -64,18 +80,30 @@ public partial class CosmosDBServiceProperties : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepDictionary AdditionalProperties { get => _additionalProperties; set => _additionalProperties.Assign(value); } - private readonly BicepDictionary _additionalProperties; + public BicepDictionary AdditionalProperties + { + get { Initialize(); return _additionalProperties!; } + set { Initialize(); _additionalProperties!.Assign(value); } + } + private BicepDictionary? _additionalProperties; /// /// Creates a new CosmosDBServiceProperties. /// public CosmosDBServiceProperties() { - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["creationTime"], isOutput: true); - _instanceSize = BicepValue.DefineProperty(this, "InstanceSize", ["instanceSize"]); - _instanceCount = BicepValue.DefineProperty(this, "InstanceCount", ["instanceCount"]); - _status = BicepValue.DefineProperty(this, "Status", ["status"], isOutput: true); - _additionalProperties = BicepDictionary.DefineProperty(this, "AdditionalProperties", ["AdditionalProperties"]); + } + + /// + /// Define all the provisionable properties of CosmosDBServiceProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _createdOn = DefineProperty("CreatedOn", ["creationTime"], isOutput: true); + _instanceSize = DefineProperty("InstanceSize", ["instanceSize"]); + _instanceCount = DefineProperty("InstanceCount", ["instanceCount"]); + _status = DefineProperty("Status", ["status"], isOutput: true); + _additionalProperties = DefineDictionaryProperty("AdditionalProperties", ["AdditionalProperties"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlClientEncryptionKeyProperties.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlClientEncryptionKeyProperties.cs index 6413ccfb73405..8bd21ee1d77b0 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlClientEncryptionKeyProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlClientEncryptionKeyProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,48 @@ public partial class CosmosDBSqlClientEncryptionKeyProperties : CosmosDBSqlClien /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new CosmosDBSqlClientEncryptionKeyProperties. /// public CosmosDBSqlClientEncryptionKeyProperties() : base() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBSqlClientEncryptionKeyProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlClientEncryptionKeyResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlClientEncryptionKeyResourceInfo.cs index 18c6c728fdc98..df0e8df530138 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlClientEncryptionKeyResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlClientEncryptionKeyResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,37 +18,62 @@ public partial class CosmosDBSqlClientEncryptionKeyResourceInfo : ProvisionableC /// /// Name of the ClientEncryptionKey. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// Encryption algorithm that will be used along with this client /// encryption key to encrypt/decrypt data. /// - public BicepValue EncryptionAlgorithm { get => _encryptionAlgorithm; set => _encryptionAlgorithm.Assign(value); } - private readonly BicepValue _encryptionAlgorithm; + public BicepValue EncryptionAlgorithm + { + get { Initialize(); return _encryptionAlgorithm!; } + set { Initialize(); _encryptionAlgorithm!.Assign(value); } + } + private BicepValue? _encryptionAlgorithm; /// /// Wrapped (encrypted) form of the key represented as a byte array. /// - public BicepValue WrappedDataEncryptionKey { get => _wrappedDataEncryptionKey; set => _wrappedDataEncryptionKey.Assign(value); } - private readonly BicepValue _wrappedDataEncryptionKey; + public BicepValue WrappedDataEncryptionKey + { + get { Initialize(); return _wrappedDataEncryptionKey!; } + set { Initialize(); _wrappedDataEncryptionKey!.Assign(value); } + } + private BicepValue? _wrappedDataEncryptionKey; /// /// Metadata for the wrapping provider that can be used to unwrap the /// wrapped client encryption key. /// - public BicepValue KeyWrapMetadata { get => _keyWrapMetadata; set => _keyWrapMetadata.Assign(value); } - private readonly BicepValue _keyWrapMetadata; + public CosmosDBKeyWrapMetadata KeyWrapMetadata + { + get { Initialize(); return _keyWrapMetadata!; } + set { Initialize(); AssignOrReplace(ref _keyWrapMetadata, value); } + } + private CosmosDBKeyWrapMetadata? _keyWrapMetadata; /// /// Creates a new CosmosDBSqlClientEncryptionKeyResourceInfo. /// public CosmosDBSqlClientEncryptionKeyResourceInfo() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _encryptionAlgorithm = BicepValue.DefineProperty(this, "EncryptionAlgorithm", ["encryptionAlgorithm"]); - _wrappedDataEncryptionKey = BicepValue.DefineProperty(this, "WrappedDataEncryptionKey", ["wrappedDataEncryptionKey"]); - _keyWrapMetadata = BicepValue.DefineProperty(this, "KeyWrapMetadata", ["keyWrapMetadata"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBSqlClientEncryptionKeyResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _encryptionAlgorithm = DefineProperty("EncryptionAlgorithm", ["encryptionAlgorithm"]); + _wrappedDataEncryptionKey = DefineProperty("WrappedDataEncryptionKey", ["wrappedDataEncryptionKey"]); + _keyWrapMetadata = DefineModelProperty("KeyWrapMetadata", ["keyWrapMetadata"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlContainerPropertiesConfig.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlContainerPropertiesConfig.cs index 5ee65c100f3b3..6215b9d6a9476 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlContainerPropertiesConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlContainerPropertiesConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class CosmosDBSqlContainerPropertiesConfig : ProvisionableConstru /// Value of the Cosmos DB resource throughput or autoscaleSettings. Use /// the ThroughputSetting resource when retrieving offer details. /// - public BicepValue Throughput { get => _throughput; set => _throughput.Assign(value); } - private readonly BicepValue _throughput; + public BicepValue Throughput + { + get { Initialize(); return _throughput!; } + set { Initialize(); _throughput!.Assign(value); } + } + private BicepValue? _throughput; /// /// Represents maximum throughput, the resource can scale up to. /// - public BicepValue AutoscaleMaxThroughput { get => _autoscaleMaxThroughput; set => _autoscaleMaxThroughput.Assign(value); } - private readonly BicepValue _autoscaleMaxThroughput; + public BicepValue AutoscaleMaxThroughput + { + get { Initialize(); return _autoscaleMaxThroughput!; } + set { Initialize(); _autoscaleMaxThroughput!.Assign(value); } + } + private BicepValue? _autoscaleMaxThroughput; /// /// Creates a new CosmosDBSqlContainerPropertiesConfig. /// public CosmosDBSqlContainerPropertiesConfig() { - _throughput = BicepValue.DefineProperty(this, "Throughput", ["throughput"]); - _autoscaleMaxThroughput = BicepValue.DefineProperty(this, "AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBSqlContainerPropertiesConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _throughput = DefineProperty("Throughput", ["throughput"]); + _autoscaleMaxThroughput = DefineProperty("AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlContainerResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlContainerResourceInfo.cs index 84dbd3d1b06bb..251f55b107982 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlContainerResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlContainerResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,95 +19,152 @@ public partial class CosmosDBSqlContainerResourceInfo : ProvisionableConstruct /// /// Name of the Cosmos DB SQL container. /// - public BicepValue ContainerName { get => _containerName; set => _containerName.Assign(value); } - private readonly BicepValue _containerName; + public BicepValue ContainerName + { + get { Initialize(); return _containerName!; } + set { Initialize(); _containerName!.Assign(value); } + } + private BicepValue? _containerName; /// /// The configuration of the indexing policy. By default, the indexing is /// automatic for all document paths within the container. /// - public BicepValue IndexingPolicy { get => _indexingPolicy; set => _indexingPolicy.Assign(value); } - private readonly BicepValue _indexingPolicy; + public CosmosDBIndexingPolicy IndexingPolicy + { + get { Initialize(); return _indexingPolicy!; } + set { Initialize(); AssignOrReplace(ref _indexingPolicy, value); } + } + private CosmosDBIndexingPolicy? _indexingPolicy; /// /// The configuration of the partition key to be used for partitioning data /// into multiple partitions. /// - public BicepValue PartitionKey { get => _partitionKey; set => _partitionKey.Assign(value); } - private readonly BicepValue _partitionKey; + public CosmosDBContainerPartitionKey PartitionKey + { + get { Initialize(); return _partitionKey!; } + set { Initialize(); AssignOrReplace(ref _partitionKey, value); } + } + private CosmosDBContainerPartitionKey? _partitionKey; /// /// Default time to live. /// - public BicepValue DefaultTtl { get => _defaultTtl; set => _defaultTtl.Assign(value); } - private readonly BicepValue _defaultTtl; + public BicepValue DefaultTtl + { + get { Initialize(); return _defaultTtl!; } + set { Initialize(); _defaultTtl!.Assign(value); } + } + private BicepValue? _defaultTtl; /// /// List of unique keys on that enforces uniqueness constraint on documents /// in the collection in the Azure Cosmos DB service. /// - public BicepList UniqueKeys { get => _uniqueKeys; set => _uniqueKeys.Assign(value); } - private readonly BicepList _uniqueKeys; + public BicepList UniqueKeys + { + get { Initialize(); return _uniqueKeys!; } + set { Initialize(); _uniqueKeys!.Assign(value); } + } + private BicepList? _uniqueKeys; /// /// The conflict resolution policy for the container. /// - public BicepValue ConflictResolutionPolicy { get => _conflictResolutionPolicy; set => _conflictResolutionPolicy.Assign(value); } - private readonly BicepValue _conflictResolutionPolicy; + public ConflictResolutionPolicy ConflictResolutionPolicy + { + get { Initialize(); return _conflictResolutionPolicy!; } + set { Initialize(); AssignOrReplace(ref _conflictResolutionPolicy, value); } + } + private ConflictResolutionPolicy? _conflictResolutionPolicy; /// /// The client encryption policy for the container. /// - public BicepValue ClientEncryptionPolicy { get => _clientEncryptionPolicy; set => _clientEncryptionPolicy.Assign(value); } - private readonly BicepValue _clientEncryptionPolicy; + public CosmosDBClientEncryptionPolicy ClientEncryptionPolicy + { + get { Initialize(); return _clientEncryptionPolicy!; } + set { Initialize(); AssignOrReplace(ref _clientEncryptionPolicy, value); } + } + private CosmosDBClientEncryptionPolicy? _clientEncryptionPolicy; /// /// Analytical TTL. /// - public BicepValue AnalyticalStorageTtl { get => _analyticalStorageTtl; set => _analyticalStorageTtl.Assign(value); } - private readonly BicepValue _analyticalStorageTtl; + public BicepValue AnalyticalStorageTtl + { + get { Initialize(); return _analyticalStorageTtl!; } + set { Initialize(); _analyticalStorageTtl!.Assign(value); } + } + private BicepValue? _analyticalStorageTtl; /// /// Parameters to indicate the information about the restore. /// - public BicepValue RestoreParameters { get => _restoreParameters; set => _restoreParameters.Assign(value); } - private readonly BicepValue _restoreParameters; + public ResourceRestoreParameters RestoreParameters + { + get { Initialize(); return _restoreParameters!; } + set { Initialize(); AssignOrReplace(ref _restoreParameters, value); } + } + private ResourceRestoreParameters? _restoreParameters; /// /// Enum to indicate the mode of resource creation. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// The configuration for defining Materialized Views. This must be /// specified only for creating a Materialized View container. /// - public BicepValue MaterializedViewDefinition { get => _materializedViewDefinition; set => _materializedViewDefinition.Assign(value); } - private readonly BicepValue _materializedViewDefinition; + public MaterializedViewDefinition MaterializedViewDefinition + { + get { Initialize(); return _materializedViewDefinition!; } + set { Initialize(); AssignOrReplace(ref _materializedViewDefinition, value); } + } + private MaterializedViewDefinition? _materializedViewDefinition; /// /// List of computed properties. /// - public BicepList ComputedProperties { get => _computedProperties; set => _computedProperties.Assign(value); } - private readonly BicepList _computedProperties; + public BicepList ComputedProperties + { + get { Initialize(); return _computedProperties!; } + set { Initialize(); _computedProperties!.Assign(value); } + } + private BicepList? _computedProperties; /// /// Creates a new CosmosDBSqlContainerResourceInfo. /// public CosmosDBSqlContainerResourceInfo() { - _containerName = BicepValue.DefineProperty(this, "ContainerName", ["id"]); - _indexingPolicy = BicepValue.DefineProperty(this, "IndexingPolicy", ["indexingPolicy"]); - _partitionKey = BicepValue.DefineProperty(this, "PartitionKey", ["partitionKey"]); - _defaultTtl = BicepValue.DefineProperty(this, "DefaultTtl", ["defaultTtl"]); - _uniqueKeys = BicepList.DefineProperty(this, "UniqueKeys", ["uniqueKeyPolicy", "uniqueKeys"]); - _conflictResolutionPolicy = BicepValue.DefineProperty(this, "ConflictResolutionPolicy", ["conflictResolutionPolicy"]); - _clientEncryptionPolicy = BicepValue.DefineProperty(this, "ClientEncryptionPolicy", ["clientEncryptionPolicy"]); - _analyticalStorageTtl = BicepValue.DefineProperty(this, "AnalyticalStorageTtl", ["analyticalStorageTtl"]); - _restoreParameters = BicepValue.DefineProperty(this, "RestoreParameters", ["restoreParameters"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["createMode"]); - _materializedViewDefinition = BicepValue.DefineProperty(this, "MaterializedViewDefinition", ["materializedViewDefinition"]); - _computedProperties = BicepList.DefineProperty(this, "ComputedProperties", ["computedProperties"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBSqlContainerResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _containerName = DefineProperty("ContainerName", ["id"]); + _indexingPolicy = DefineModelProperty("IndexingPolicy", ["indexingPolicy"]); + _partitionKey = DefineModelProperty("PartitionKey", ["partitionKey"]); + _defaultTtl = DefineProperty("DefaultTtl", ["defaultTtl"]); + _uniqueKeys = DefineListProperty("UniqueKeys", ["uniqueKeyPolicy", "uniqueKeys"]); + _conflictResolutionPolicy = DefineModelProperty("ConflictResolutionPolicy", ["conflictResolutionPolicy"]); + _clientEncryptionPolicy = DefineModelProperty("ClientEncryptionPolicy", ["clientEncryptionPolicy"]); + _analyticalStorageTtl = DefineProperty("AnalyticalStorageTtl", ["analyticalStorageTtl"]); + _restoreParameters = DefineModelProperty("RestoreParameters", ["restoreParameters"]); + _createMode = DefineProperty("CreateMode", ["createMode"]); + _materializedViewDefinition = DefineModelProperty("MaterializedViewDefinition", ["materializedViewDefinition"]); + _computedProperties = DefineListProperty("ComputedProperties", ["computedProperties"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlDatabasePropertiesConfig.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlDatabasePropertiesConfig.cs index a4517e4a4272c..66cab035dfcdf 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlDatabasePropertiesConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlDatabasePropertiesConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class CosmosDBSqlDatabasePropertiesConfig : ProvisionableConstruc /// Value of the Cosmos DB resource throughput or autoscaleSettings. Use /// the ThroughputSetting resource when retrieving offer details. /// - public BicepValue Throughput { get => _throughput; set => _throughput.Assign(value); } - private readonly BicepValue _throughput; + public BicepValue Throughput + { + get { Initialize(); return _throughput!; } + set { Initialize(); _throughput!.Assign(value); } + } + private BicepValue? _throughput; /// /// Represents maximum throughput, the resource can scale up to. /// - public BicepValue AutoscaleMaxThroughput { get => _autoscaleMaxThroughput; set => _autoscaleMaxThroughput.Assign(value); } - private readonly BicepValue _autoscaleMaxThroughput; + public BicepValue AutoscaleMaxThroughput + { + get { Initialize(); return _autoscaleMaxThroughput!; } + set { Initialize(); _autoscaleMaxThroughput!.Assign(value); } + } + private BicepValue? _autoscaleMaxThroughput; /// /// Creates a new CosmosDBSqlDatabasePropertiesConfig. /// public CosmosDBSqlDatabasePropertiesConfig() { - _throughput = BicepValue.DefineProperty(this, "Throughput", ["throughput"]); - _autoscaleMaxThroughput = BicepValue.DefineProperty(this, "AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBSqlDatabasePropertiesConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _throughput = DefineProperty("Throughput", ["throughput"]); + _autoscaleMaxThroughput = DefineProperty("AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseResourceInfo.cs index ad10c1ccb76a0..0cfaff39d4841 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,49 @@ public partial class CosmosDBSqlDatabaseResourceInfo : ProvisionableConstruct /// /// Name of the Cosmos DB SQL database. /// - public BicepValue DatabaseName { get => _databaseName; set => _databaseName.Assign(value); } - private readonly BicepValue _databaseName; + public BicepValue DatabaseName + { + get { Initialize(); return _databaseName!; } + set { Initialize(); _databaseName!.Assign(value); } + } + private BicepValue? _databaseName; /// /// Parameters to indicate the information about the restore. /// - public BicepValue RestoreParameters { get => _restoreParameters; set => _restoreParameters.Assign(value); } - private readonly BicepValue _restoreParameters; + public ResourceRestoreParameters RestoreParameters + { + get { Initialize(); return _restoreParameters!; } + set { Initialize(); AssignOrReplace(ref _restoreParameters, value); } + } + private ResourceRestoreParameters? _restoreParameters; /// /// Enum to indicate the mode of resource creation. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// Creates a new CosmosDBSqlDatabaseResourceInfo. /// public CosmosDBSqlDatabaseResourceInfo() { - _databaseName = BicepValue.DefineProperty(this, "DatabaseName", ["id"]); - _restoreParameters = BicepValue.DefineProperty(this, "RestoreParameters", ["restoreParameters"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["createMode"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBSqlDatabaseResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _databaseName = DefineProperty("DatabaseName", ["id"]); + _restoreParameters = DefineModelProperty("RestoreParameters", ["restoreParameters"]); + _createMode = DefineProperty("CreateMode", ["createMode"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlRolePermission.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlRolePermission.cs index 5f9eabb9f9109..c3a0459f44d2c 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlRolePermission.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlRolePermission.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class CosmosDBSqlRolePermission : ProvisionableConstruct /// /// An array of data actions that are allowed. /// - public BicepList DataActions { get => _dataActions; set => _dataActions.Assign(value); } - private readonly BicepList _dataActions; + public BicepList DataActions + { + get { Initialize(); return _dataActions!; } + set { Initialize(); _dataActions!.Assign(value); } + } + private BicepList? _dataActions; /// /// An array of data actions that are denied. /// - public BicepList NotDataActions { get => _notDataActions; set => _notDataActions.Assign(value); } - private readonly BicepList _notDataActions; + public BicepList NotDataActions + { + get { Initialize(); return _notDataActions!; } + set { Initialize(); _notDataActions!.Assign(value); } + } + private BicepList? _notDataActions; /// /// Creates a new CosmosDBSqlRolePermission. /// public CosmosDBSqlRolePermission() { - _dataActions = BicepList.DefineProperty(this, "DataActions", ["dataActions"]); - _notDataActions = BicepList.DefineProperty(this, "NotDataActions", ["notDataActions"]); + } + + /// + /// Define all the provisionable properties of CosmosDBSqlRolePermission. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _dataActions = DefineListProperty("DataActions", ["dataActions"]); + _notDataActions = DefineListProperty("NotDataActions", ["notDataActions"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlStoredProcedureResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlStoredProcedureResourceInfo.cs index 328069666bcdf..4e6fa08d79389 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlStoredProcedureResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlStoredProcedureResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class CosmosDBSqlStoredProcedureResourceInfo : ProvisionableConst /// /// Name of the Cosmos DB SQL storedProcedure. /// - public BicepValue StoredProcedureName { get => _storedProcedureName; set => _storedProcedureName.Assign(value); } - private readonly BicepValue _storedProcedureName; + public BicepValue StoredProcedureName + { + get { Initialize(); return _storedProcedureName!; } + set { Initialize(); _storedProcedureName!.Assign(value); } + } + private BicepValue? _storedProcedureName; /// /// Body of the Stored Procedure. /// - public BicepValue Body { get => _body; set => _body.Assign(value); } - private readonly BicepValue _body; + public BicepValue Body + { + get { Initialize(); return _body!; } + set { Initialize(); _body!.Assign(value); } + } + private BicepValue? _body; /// /// Creates a new CosmosDBSqlStoredProcedureResourceInfo. /// public CosmosDBSqlStoredProcedureResourceInfo() { - _storedProcedureName = BicepValue.DefineProperty(this, "StoredProcedureName", ["id"]); - _body = BicepValue.DefineProperty(this, "Body", ["body"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBSqlStoredProcedureResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _storedProcedureName = DefineProperty("StoredProcedureName", ["id"]); + _body = DefineProperty("Body", ["body"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlTriggerResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlTriggerResourceInfo.cs index 4bbc39945c975..51bc999b4c7d0 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlTriggerResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlTriggerResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,60 @@ public partial class CosmosDBSqlTriggerResourceInfo : ProvisionableConstruct /// /// Name of the Cosmos DB SQL trigger. /// - public BicepValue TriggerName { get => _triggerName; set => _triggerName.Assign(value); } - private readonly BicepValue _triggerName; + public BicepValue TriggerName + { + get { Initialize(); return _triggerName!; } + set { Initialize(); _triggerName!.Assign(value); } + } + private BicepValue? _triggerName; /// /// Body of the Trigger. /// - public BicepValue Body { get => _body; set => _body.Assign(value); } - private readonly BicepValue _body; + public BicepValue Body + { + get { Initialize(); return _body!; } + set { Initialize(); _body!.Assign(value); } + } + private BicepValue? _body; /// /// Type of the Trigger. /// - public BicepValue TriggerType { get => _triggerType; set => _triggerType.Assign(value); } - private readonly BicepValue _triggerType; + public BicepValue TriggerType + { + get { Initialize(); return _triggerType!; } + set { Initialize(); _triggerType!.Assign(value); } + } + private BicepValue? _triggerType; /// /// The operation the trigger is associated with. /// - public BicepValue TriggerOperation { get => _triggerOperation; set => _triggerOperation.Assign(value); } - private readonly BicepValue _triggerOperation; + public BicepValue TriggerOperation + { + get { Initialize(); return _triggerOperation!; } + set { Initialize(); _triggerOperation!.Assign(value); } + } + private BicepValue? _triggerOperation; /// /// Creates a new CosmosDBSqlTriggerResourceInfo. /// public CosmosDBSqlTriggerResourceInfo() { - _triggerName = BicepValue.DefineProperty(this, "TriggerName", ["id"]); - _body = BicepValue.DefineProperty(this, "Body", ["body"]); - _triggerType = BicepValue.DefineProperty(this, "TriggerType", ["triggerType"]); - _triggerOperation = BicepValue.DefineProperty(this, "TriggerOperation", ["triggerOperation"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBSqlTriggerResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _triggerName = DefineProperty("TriggerName", ["id"]); + _body = DefineProperty("Body", ["body"]); + _triggerType = DefineProperty("TriggerType", ["triggerType"]); + _triggerOperation = DefineProperty("TriggerOperation", ["triggerOperation"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlUserDefinedFunctionResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlUserDefinedFunctionResourceInfo.cs index 20879b3815d84..76f3db3a4e3f6 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlUserDefinedFunctionResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBSqlUserDefinedFunctionResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class CosmosDBSqlUserDefinedFunctionResourceInfo : ProvisionableC /// /// Name of the Cosmos DB SQL userDefinedFunction. /// - public BicepValue FunctionName { get => _functionName; set => _functionName.Assign(value); } - private readonly BicepValue _functionName; + public BicepValue FunctionName + { + get { Initialize(); return _functionName!; } + set { Initialize(); _functionName!.Assign(value); } + } + private BicepValue? _functionName; /// /// Body of the User Defined Function. /// - public BicepValue Body { get => _body; set => _body.Assign(value); } - private readonly BicepValue _body; + public BicepValue Body + { + get { Initialize(); return _body!; } + set { Initialize(); _body!.Assign(value); } + } + private BicepValue? _body; /// /// Creates a new CosmosDBSqlUserDefinedFunctionResourceInfo. /// public CosmosDBSqlUserDefinedFunctionResourceInfo() { - _functionName = BicepValue.DefineProperty(this, "FunctionName", ["id"]); - _body = BicepValue.DefineProperty(this, "Body", ["body"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBSqlUserDefinedFunctionResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _functionName = DefineProperty("FunctionName", ["id"]); + _body = DefineProperty("Body", ["body"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBTablePropertiesOptions.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBTablePropertiesOptions.cs index 9d82aaef3642d..120b43d5e56b8 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBTablePropertiesOptions.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBTablePropertiesOptions.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class CosmosDBTablePropertiesOptions : ProvisionableConstruct /// Value of the Cosmos DB resource throughput or autoscaleSettings. Use /// the ThroughputSetting resource when retrieving offer details. /// - public BicepValue Throughput { get => _throughput; set => _throughput.Assign(value); } - private readonly BicepValue _throughput; + public BicepValue Throughput + { + get { Initialize(); return _throughput!; } + set { Initialize(); _throughput!.Assign(value); } + } + private BicepValue? _throughput; /// /// Represents maximum throughput, the resource can scale up to. /// - public BicepValue AutoscaleMaxThroughput { get => _autoscaleMaxThroughput; set => _autoscaleMaxThroughput.Assign(value); } - private readonly BicepValue _autoscaleMaxThroughput; + public BicepValue AutoscaleMaxThroughput + { + get { Initialize(); return _autoscaleMaxThroughput!; } + set { Initialize(); _autoscaleMaxThroughput!.Assign(value); } + } + private BicepValue? _autoscaleMaxThroughput; /// /// Creates a new CosmosDBTablePropertiesOptions. /// public CosmosDBTablePropertiesOptions() { - _throughput = BicepValue.DefineProperty(this, "Throughput", ["throughput"]); - _autoscaleMaxThroughput = BicepValue.DefineProperty(this, "AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBTablePropertiesOptions. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _throughput = DefineProperty("Throughput", ["throughput"]); + _autoscaleMaxThroughput = DefineProperty("AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBTablePropertiesResource.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBTablePropertiesResource.cs index c16a889a611f8..68d1125acf6fa 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBTablePropertiesResource.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBTablePropertiesResource.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,48 @@ public partial class CosmosDBTablePropertiesResource : CosmosDBTableResourceInfo /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new CosmosDBTablePropertiesResource. /// public CosmosDBTablePropertiesResource() : base() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CosmosDBTablePropertiesResource. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBTableResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBTableResourceInfo.cs index ff6e082eceb77..13229b7ff0461 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBTableResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBTableResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class CosmosDBTableResourceInfo : ProvisionableConstruct /// /// Name of the Cosmos DB table. /// - public BicepValue TableName { get => _tableName; set => _tableName.Assign(value); } - private readonly BicepValue _tableName; + public BicepValue TableName + { + get { Initialize(); return _tableName!; } + set { Initialize(); _tableName!.Assign(value); } + } + private BicepValue? _tableName; /// /// Parameters to indicate the information about the restore. /// - public BicepValue RestoreParameters { get => _restoreParameters; set => _restoreParameters.Assign(value); } - private readonly BicepValue _restoreParameters; + public ResourceRestoreParameters RestoreParameters + { + get { Initialize(); return _restoreParameters!; } + set { Initialize(); AssignOrReplace(ref _restoreParameters, value); } + } + private ResourceRestoreParameters? _restoreParameters; /// /// Enum to indicate the mode of resource creation. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// Creates a new CosmosDBTableResourceInfo. /// public CosmosDBTableResourceInfo() { - _tableName = BicepValue.DefineProperty(this, "TableName", ["id"]); - _restoreParameters = BicepValue.DefineProperty(this, "RestoreParameters", ["restoreParameters"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["createMode"]); + } + + /// + /// Define all the provisionable properties of CosmosDBTableResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tableName = DefineProperty("TableName", ["id"]); + _restoreParameters = DefineModelProperty("RestoreParameters", ["restoreParameters"]); + _createMode = DefineProperty("CreateMode", ["createMode"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBUniqueKey.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBUniqueKey.cs index 8cc601b6f410d..60f914a2521c4 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBUniqueKey.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBUniqueKey.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,14 +21,26 @@ public partial class CosmosDBUniqueKey : ProvisionableConstruct /// List of paths must be unique for each document in the Azure Cosmos DB /// service. /// - public BicepList Paths { get => _paths; set => _paths.Assign(value); } - private readonly BicepList _paths; + public BicepList Paths + { + get { Initialize(); return _paths!; } + set { Initialize(); _paths!.Assign(value); } + } + private BicepList? _paths; /// /// Creates a new CosmosDBUniqueKey. /// public CosmosDBUniqueKey() { - _paths = BicepList.DefineProperty(this, "Paths", ["paths"]); + } + + /// + /// Define all the provisionable properties of CosmosDBUniqueKey. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _paths = DefineListProperty("Paths", ["paths"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBVirtualNetworkRule.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBVirtualNetworkRule.cs index 49ec88606c1c2..e3e2632c6ea14 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBVirtualNetworkRule.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosDBVirtualNetworkRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -18,22 +20,38 @@ public partial class CosmosDBVirtualNetworkRule : ProvisionableConstruct /// Resource ID of a subnet, for example: /// /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// Create firewall rule before the virtual network has vnet service /// endpoint enabled. /// - public BicepValue IgnoreMissingVnetServiceEndpoint { get => _ignoreMissingVnetServiceEndpoint; set => _ignoreMissingVnetServiceEndpoint.Assign(value); } - private readonly BicepValue _ignoreMissingVnetServiceEndpoint; + public BicepValue IgnoreMissingVnetServiceEndpoint + { + get { Initialize(); return _ignoreMissingVnetServiceEndpoint!; } + set { Initialize(); _ignoreMissingVnetServiceEndpoint!.Assign(value); } + } + private BicepValue? _ignoreMissingVnetServiceEndpoint; /// /// Creates a new CosmosDBVirtualNetworkRule. /// public CosmosDBVirtualNetworkRule() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _ignoreMissingVnetServiceEndpoint = BicepValue.DefineProperty(this, "IgnoreMissingVnetServiceEndpoint", ["ignoreMissingVNetServiceEndpoint"]); + } + + /// + /// Define all the provisionable properties of CosmosDBVirtualNetworkRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _ignoreMissingVnetServiceEndpoint = DefineProperty("IgnoreMissingVnetServiceEndpoint", ["ignoreMissingVNetServiceEndpoint"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosMongoDataTransferDataSourceSink.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosMongoDataTransferDataSourceSink.cs index 291e79732c6cf..15b129d2078b5 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosMongoDataTransferDataSourceSink.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosMongoDataTransferDataSourceSink.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,39 @@ public partial class CosmosMongoDataTransferDataSourceSink : BaseCosmosDataTrans /// /// Gets or sets the database name. /// - public BicepValue DatabaseName { get => _databaseName; set => _databaseName.Assign(value); } - private readonly BicepValue _databaseName; + public BicepValue DatabaseName + { + get { Initialize(); return _databaseName!; } + set { Initialize(); _databaseName!.Assign(value); } + } + private BicepValue? _databaseName; /// /// Gets or sets the collection name. /// - public BicepValue CollectionName { get => _collectionName; set => _collectionName.Assign(value); } - private readonly BicepValue _collectionName; + public BicepValue CollectionName + { + get { Initialize(); return _collectionName!; } + set { Initialize(); _collectionName!.Assign(value); } + } + private BicepValue? _collectionName; /// /// Creates a new CosmosMongoDataTransferDataSourceSink. /// public CosmosMongoDataTransferDataSourceSink() : base() { - BicepValue.DefineProperty(this, "component", ["component"], defaultValue: "CosmosDBMongo"); - _databaseName = BicepValue.DefineProperty(this, "DatabaseName", ["databaseName"]); - _collectionName = BicepValue.DefineProperty(this, "CollectionName", ["collectionName"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosMongoDataTransferDataSourceSink. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("component", ["component"], defaultValue: "CosmosDBMongo"); + _databaseName = DefineProperty("DatabaseName", ["databaseName"]); + _collectionName = DefineProperty("CollectionName", ["collectionName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosSqlDataTransferDataSourceSink.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosSqlDataTransferDataSourceSink.cs index 6642ce8a1b400..f5b731c65c123 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosSqlDataTransferDataSourceSink.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/CosmosSqlDataTransferDataSourceSink.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,39 @@ public partial class CosmosSqlDataTransferDataSourceSink : BaseCosmosDataTransfe /// /// Gets or sets the database name. /// - public BicepValue DatabaseName { get => _databaseName; set => _databaseName.Assign(value); } - private readonly BicepValue _databaseName; + public BicepValue DatabaseName + { + get { Initialize(); return _databaseName!; } + set { Initialize(); _databaseName!.Assign(value); } + } + private BicepValue? _databaseName; /// /// Gets or sets the container name. /// - public BicepValue ContainerName { get => _containerName; set => _containerName.Assign(value); } - private readonly BicepValue _containerName; + public BicepValue ContainerName + { + get { Initialize(); return _containerName!; } + set { Initialize(); _containerName!.Assign(value); } + } + private BicepValue? _containerName; /// /// Creates a new CosmosSqlDataTransferDataSourceSink. /// public CosmosSqlDataTransferDataSourceSink() : base() { - BicepValue.DefineProperty(this, "component", ["component"], defaultValue: "CosmosDBSql"); - _databaseName = BicepValue.DefineProperty(this, "DatabaseName", ["databaseName"]); - _containerName = BicepValue.DefineProperty(this, "ContainerName", ["containerName"]); + } + + /// + /// Define all the provisionable properties of + /// CosmosSqlDataTransferDataSourceSink. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("component", ["component"], defaultValue: "CosmosDBSql"); + _databaseName = DefineProperty("DatabaseName", ["databaseName"]); + _containerName = DefineProperty("ContainerName", ["containerName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferDataSourceSink.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferDataSourceSink.cs index 90d0f21a2468d..cfd52df0fac57 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferDataSourceSink.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferDataSourceSink.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.CosmosDB; @@ -29,4 +31,12 @@ public partial class DataTransferDataSourceSink : ProvisionableConstruct public DataTransferDataSourceSink() { } + + /// + /// Define all the provisionable properties of DataTransferDataSourceSink. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferJobProperties.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferJobProperties.cs index a3b9e17036976..648d2c5153529 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferJobProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferJobProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,8 +18,11 @@ public partial class DataTransferJobProperties : ProvisionableConstruct /// /// Job Name. /// - public BicepValue JobName { get => _jobName; } - private readonly BicepValue _jobName; + public BicepValue JobName + { + get { Initialize(); return _jobName!; } + } + private BicepValue? _jobName; /// /// Source DataStore details Please note @@ -33,8 +38,12 @@ public partial class DataTransferJobProperties : ProvisionableConstruct /// and /// Azure.ResourceManager.CosmosDB.Models.CosmosSqlDataTransferDataSourceSink. /// - public BicepValue Source { get => _source; set => _source.Assign(value); } - private readonly BicepValue _source; + public DataTransferDataSourceSink Source + { + get { Initialize(); return _source!; } + set { Initialize(); AssignOrReplace(ref _source, value); } + } + private DataTransferDataSourceSink? _source; /// /// Destination DataStore details Please note @@ -50,72 +59,110 @@ public partial class DataTransferJobProperties : ProvisionableConstruct /// and /// Azure.ResourceManager.CosmosDB.Models.CosmosSqlDataTransferDataSourceSink. /// - public BicepValue Destination { get => _destination; set => _destination.Assign(value); } - private readonly BicepValue _destination; + public DataTransferDataSourceSink Destination + { + get { Initialize(); return _destination!; } + set { Initialize(); AssignOrReplace(ref _destination, value); } + } + private DataTransferDataSourceSink? _destination; /// /// Job Status. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Processed Count. /// - public BicepValue ProcessedCount { get => _processedCount; } - private readonly BicepValue _processedCount; + public BicepValue ProcessedCount + { + get { Initialize(); return _processedCount!; } + } + private BicepValue? _processedCount; /// /// Total Count. /// - public BicepValue TotalCount { get => _totalCount; } - private readonly BicepValue _totalCount; + public BicepValue TotalCount + { + get { Initialize(); return _totalCount!; } + } + private BicepValue? _totalCount; /// /// Last Updated Time (ISO-8601 format). /// - public BicepValue LastUpdatedUtcOn { get => _lastUpdatedUtcOn; } - private readonly BicepValue _lastUpdatedUtcOn; + public BicepValue LastUpdatedUtcOn + { + get { Initialize(); return _lastUpdatedUtcOn!; } + } + private BicepValue? _lastUpdatedUtcOn; /// /// Worker count. /// - public BicepValue WorkerCount { get => _workerCount; set => _workerCount.Assign(value); } - private readonly BicepValue _workerCount; + public BicepValue WorkerCount + { + get { Initialize(); return _workerCount!; } + set { Initialize(); _workerCount!.Assign(value); } + } + private BicepValue? _workerCount; /// /// Error response for Faulted job. /// - public BicepValue Error { get => _error; } - private readonly BicepValue _error; + public ErrorResponse Error + { + get { Initialize(); return _error!; } + } + private ErrorResponse? _error; /// /// Total Duration of Job. /// - public BicepValue Duration { get => _duration; } - private readonly BicepValue _duration; + public BicepValue Duration + { + get { Initialize(); return _duration!; } + } + private BicepValue? _duration; /// /// Mode of job execution. /// - public BicepValue Mode { get => _mode; set => _mode.Assign(value); } - private readonly BicepValue _mode; + public BicepValue Mode + { + get { Initialize(); return _mode!; } + set { Initialize(); _mode!.Assign(value); } + } + private BicepValue? _mode; /// /// Creates a new DataTransferJobProperties. /// public DataTransferJobProperties() { - _jobName = BicepValue.DefineProperty(this, "JobName", ["jobName"], isOutput: true); - _source = BicepValue.DefineProperty(this, "Source", ["source"]); - _destination = BicepValue.DefineProperty(this, "Destination", ["destination"]); - _status = BicepValue.DefineProperty(this, "Status", ["status"], isOutput: true); - _processedCount = BicepValue.DefineProperty(this, "ProcessedCount", ["processedCount"], isOutput: true); - _totalCount = BicepValue.DefineProperty(this, "TotalCount", ["totalCount"], isOutput: true); - _lastUpdatedUtcOn = BicepValue.DefineProperty(this, "LastUpdatedUtcOn", ["lastUpdatedUtcTime"], isOutput: true); - _workerCount = BicepValue.DefineProperty(this, "WorkerCount", ["workerCount"]); - _error = BicepValue.DefineProperty(this, "Error", ["error"], isOutput: true); - _duration = BicepValue.DefineProperty(this, "Duration", ["duration"], isOutput: true); - _mode = BicepValue.DefineProperty(this, "Mode", ["mode"]); + } + + /// + /// Define all the provisionable properties of DataTransferJobProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _jobName = DefineProperty("JobName", ["jobName"], isOutput: true); + _source = DefineModelProperty("Source", ["source"]); + _destination = DefineModelProperty("Destination", ["destination"]); + _status = DefineProperty("Status", ["status"], isOutput: true); + _processedCount = DefineProperty("ProcessedCount", ["processedCount"], isOutput: true); + _totalCount = DefineProperty("TotalCount", ["totalCount"], isOutput: true); + _lastUpdatedUtcOn = DefineProperty("LastUpdatedUtcOn", ["lastUpdatedUtcTime"], isOutput: true); + _workerCount = DefineProperty("WorkerCount", ["workerCount"]); + _error = DefineModelProperty("Error", ["error"], isOutput: true); + _duration = DefineProperty("Duration", ["duration"], isOutput: true); + _mode = DefineProperty("Mode", ["mode"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferRegionalService.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferRegionalService.cs index dba5112822802..c6a30a0b79554 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferRegionalService.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferRegionalService.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,45 @@ public partial class DataTransferRegionalService : ProvisionableConstruct /// /// The regional service name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The location name. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Describes the status of a service. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Creates a new DataTransferRegionalService. /// public DataTransferRegionalService() { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["status"], isOutput: true); + } + + /// + /// Define all the provisionable properties of DataTransferRegionalService. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _status = DefineProperty("Status", ["status"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferServiceProperties.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferServiceProperties.cs index d976efa5d83c7..5925cff59746c 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferServiceProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DataTransferServiceProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,15 +20,27 @@ public partial class DataTransferServiceProperties : CosmosDBServiceProperties /// /// An array that contains all of the locations for the service. /// - public BicepList Locations { get => _locations; } - private readonly BicepList _locations; + public BicepList Locations + { + get { Initialize(); return _locations!; } + } + private BicepList? _locations; /// /// Creates a new DataTransferServiceProperties. /// public DataTransferServiceProperties() : base() { - BicepValue.DefineProperty(this, "serviceType", ["serviceType"], defaultValue: "DataTransfer"); - _locations = BicepList.DefineProperty(this, "Locations", ["locations"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// DataTransferServiceProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("serviceType", ["serviceType"], defaultValue: "DataTransfer"); + _locations = DefineListProperty("Locations", ["locations"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DatabaseAccountKeysMetadata.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DatabaseAccountKeysMetadata.cs index 1dfada5d3cb4a..1874a75ab9485 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DatabaseAccountKeysMetadata.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DatabaseAccountKeysMetadata.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,41 +21,61 @@ public partial class DatabaseAccountKeysMetadata : ProvisionableConstruct /// missing from the object, it means that the last key regeneration was /// triggered before 2022-06-18. /// - public BicepValue PrimaryMasterKeyGeneratedOn { get => _primaryMasterKeyGeneratedOn; } - private readonly BicepValue _primaryMasterKeyGeneratedOn; + public BicepValue PrimaryMasterKeyGeneratedOn + { + get { Initialize(); return _primaryMasterKeyGeneratedOn!; } + } + private BicepValue? _primaryMasterKeyGeneratedOn; /// /// Generation time in UTC of the key in ISO-8601 format. If the value is /// missing from the object, it means that the last key regeneration was /// triggered before 2022-06-18. /// - public BicepValue SecondaryMasterKeyGeneratedOn { get => _secondaryMasterKeyGeneratedOn; } - private readonly BicepValue _secondaryMasterKeyGeneratedOn; + public BicepValue SecondaryMasterKeyGeneratedOn + { + get { Initialize(); return _secondaryMasterKeyGeneratedOn!; } + } + private BicepValue? _secondaryMasterKeyGeneratedOn; /// /// Generation time in UTC of the key in ISO-8601 format. If the value is /// missing from the object, it means that the last key regeneration was /// triggered before 2022-06-18. /// - public BicepValue PrimaryReadonlyMasterKeyGeneratedOn { get => _primaryReadonlyMasterKeyGeneratedOn; } - private readonly BicepValue _primaryReadonlyMasterKeyGeneratedOn; + public BicepValue PrimaryReadonlyMasterKeyGeneratedOn + { + get { Initialize(); return _primaryReadonlyMasterKeyGeneratedOn!; } + } + private BicepValue? _primaryReadonlyMasterKeyGeneratedOn; /// /// Generation time in UTC of the key in ISO-8601 format. If the value is /// missing from the object, it means that the last key regeneration was /// triggered before 2022-06-18. /// - public BicepValue SecondaryReadonlyMasterKeyGeneratedOn { get => _secondaryReadonlyMasterKeyGeneratedOn; } - private readonly BicepValue _secondaryReadonlyMasterKeyGeneratedOn; + public BicepValue SecondaryReadonlyMasterKeyGeneratedOn + { + get { Initialize(); return _secondaryReadonlyMasterKeyGeneratedOn!; } + } + private BicepValue? _secondaryReadonlyMasterKeyGeneratedOn; /// /// Creates a new DatabaseAccountKeysMetadata. /// public DatabaseAccountKeysMetadata() { - _primaryMasterKeyGeneratedOn = BicepValue.DefineProperty(this, "PrimaryMasterKeyGeneratedOn", ["primaryMasterKey", "generationTime"], isOutput: true); - _secondaryMasterKeyGeneratedOn = BicepValue.DefineProperty(this, "SecondaryMasterKeyGeneratedOn", ["secondaryMasterKey", "generationTime"], isOutput: true); - _primaryReadonlyMasterKeyGeneratedOn = BicepValue.DefineProperty(this, "PrimaryReadonlyMasterKeyGeneratedOn", ["primaryReadonlyMasterKey", "generationTime"], isOutput: true); - _secondaryReadonlyMasterKeyGeneratedOn = BicepValue.DefineProperty(this, "SecondaryReadonlyMasterKeyGeneratedOn", ["secondaryReadonlyMasterKey", "generationTime"], isOutput: true); + } + + /// + /// Define all the provisionable properties of DatabaseAccountKeysMetadata. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _primaryMasterKeyGeneratedOn = DefineProperty("PrimaryMasterKeyGeneratedOn", ["primaryMasterKey", "generationTime"], isOutput: true); + _secondaryMasterKeyGeneratedOn = DefineProperty("SecondaryMasterKeyGeneratedOn", ["secondaryMasterKey", "generationTime"], isOutput: true); + _primaryReadonlyMasterKeyGeneratedOn = DefineProperty("PrimaryReadonlyMasterKeyGeneratedOn", ["primaryReadonlyMasterKey", "generationTime"], isOutput: true); + _secondaryReadonlyMasterKeyGeneratedOn = DefineProperty("SecondaryReadonlyMasterKeyGeneratedOn", ["secondaryReadonlyMasterKey", "generationTime"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DatabaseRestoreResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DatabaseRestoreResourceInfo.cs index 9b2cf7aed760c..8f08ffd92d706 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DatabaseRestoreResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/DatabaseRestoreResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class DatabaseRestoreResourceInfo : ProvisionableConstruct /// /// The name of the database available for restore. /// - public BicepValue DatabaseName { get => _databaseName; set => _databaseName.Assign(value); } - private readonly BicepValue _databaseName; + public BicepValue DatabaseName + { + get { Initialize(); return _databaseName!; } + set { Initialize(); _databaseName!.Assign(value); } + } + private BicepValue? _databaseName; /// /// The names of the collections available for restore. /// - public BicepList CollectionNames { get => _collectionNames; set => _collectionNames.Assign(value); } - private readonly BicepList _collectionNames; + public BicepList CollectionNames + { + get { Initialize(); return _collectionNames!; } + set { Initialize(); _collectionNames!.Assign(value); } + } + private BicepList? _collectionNames; /// /// Creates a new DatabaseRestoreResourceInfo. /// public DatabaseRestoreResourceInfo() { - _databaseName = BicepValue.DefineProperty(this, "DatabaseName", ["databaseName"]); - _collectionNames = BicepList.DefineProperty(this, "CollectionNames", ["collectionNames"]); + } + + /// + /// Define all the provisionable properties of DatabaseRestoreResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _databaseName = DefineProperty("DatabaseName", ["databaseName"]); + _collectionNames = DefineListProperty("CollectionNames", ["collectionNames"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ErrorResponse.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ErrorResponse.cs index 0f95887dd2f67..850b05c6f80bb 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ErrorResponse.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ErrorResponse.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,35 @@ public partial class ErrorResponse : ProvisionableConstruct /// /// Error code. /// - public BicepValue Code { get => _code; } - private readonly BicepValue _code; + public BicepValue Code + { + get { Initialize(); return _code!; } + } + private BicepValue? _code; /// /// Error message indicating why the operation failed. /// - public BicepValue Message { get => _message; } - private readonly BicepValue _message; + public BicepValue Message + { + get { Initialize(); return _message!; } + } + private BicepValue? _message; /// /// Creates a new ErrorResponse. /// public ErrorResponse() { - _code = BicepValue.DefineProperty(this, "Code", ["code"], isOutput: true); - _message = BicepValue.DefineProperty(this, "Message", ["message"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ErrorResponse. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _code = DefineProperty("Code", ["code"], isOutput: true); + _message = DefineProperty("Message", ["message"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCassandraKeyspaceResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCassandraKeyspaceResourceInfo.cs index 5662dc99e02dc..27ddd9171dceb 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCassandraKeyspaceResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCassandraKeyspaceResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,37 +19,59 @@ public partial class ExtendedCassandraKeyspaceResourceInfo : ProvisionableConstr /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Name of the Cosmos DB Cassandra keyspace. /// - public BicepValue KeyspaceName { get => _keyspaceName; set => _keyspaceName.Assign(value); } - private readonly BicepValue _keyspaceName; + public BicepValue KeyspaceName + { + get { Initialize(); return _keyspaceName!; } + set { Initialize(); _keyspaceName!.Assign(value); } + } + private BicepValue? _keyspaceName; /// /// Creates a new ExtendedCassandraKeyspaceResourceInfo. /// public ExtendedCassandraKeyspaceResourceInfo() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); - _keyspaceName = BicepValue.DefineProperty(this, "KeyspaceName", ["id"]); + } + + /// + /// Define all the provisionable properties of + /// ExtendedCassandraKeyspaceResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); + _keyspaceName = DefineProperty("KeyspaceName", ["id"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCassandraTableResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCassandraTableResourceInfo.cs index b40a7290b154a..87d0a76b8d7d1 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCassandraTableResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCassandraTableResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,48 @@ public partial class ExtendedCassandraTableResourceInfo : CassandraTableResource /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new ExtendedCassandraTableResourceInfo. /// public ExtendedCassandraTableResourceInfo() : base() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ExtendedCassandraTableResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlContainerResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlContainerResourceInfo.cs index 548365f71639b..7b16a46498872 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlContainerResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlContainerResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,48 @@ public partial class ExtendedCosmosDBSqlContainerResourceInfo : CosmosDBSqlConta /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new ExtendedCosmosDBSqlContainerResourceInfo. /// public ExtendedCosmosDBSqlContainerResourceInfo() : base() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ExtendedCosmosDBSqlContainerResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlDatabaseResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlDatabaseResourceInfo.cs index b7ec1d990a2fd..fb45460987a2e 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlDatabaseResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlDatabaseResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -18,45 +20,71 @@ public partial class ExtendedCosmosDBSqlDatabaseResourceInfo : CosmosDBSqlDataba /// A system generated property that specified the addressable path of the /// collections resource. /// - public BicepValue Colls { get => _colls; set => _colls.Assign(value); } - private readonly BicepValue _colls; + public BicepValue Colls + { + get { Initialize(); return _colls!; } + set { Initialize(); _colls!.Assign(value); } + } + private BicepValue? _colls; /// /// A system generated property that specifies the addressable path of the /// users resource. /// - public BicepValue Users { get => _users; set => _users.Assign(value); } - private readonly BicepValue _users; + public BicepValue Users + { + get { Initialize(); return _users!; } + set { Initialize(); _users!.Assign(value); } + } + private BicepValue? _users; /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new ExtendedCosmosDBSqlDatabaseResourceInfo. /// public ExtendedCosmosDBSqlDatabaseResourceInfo() : base() { - _colls = BicepValue.DefineProperty(this, "Colls", ["_colls"]); - _users = BicepValue.DefineProperty(this, "Users", ["_users"]); - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ExtendedCosmosDBSqlDatabaseResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _colls = DefineProperty("Colls", ["_colls"]); + _users = DefineProperty("Users", ["_users"]); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlStoredProcedureResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlStoredProcedureResourceInfo.cs index 0548eb45ce02f..2b64124d709c8 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlStoredProcedureResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlStoredProcedureResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,48 @@ public partial class ExtendedCosmosDBSqlStoredProcedureResourceInfo : CosmosDBSq /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new ExtendedCosmosDBSqlStoredProcedureResourceInfo. /// public ExtendedCosmosDBSqlStoredProcedureResourceInfo() : base() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ExtendedCosmosDBSqlStoredProcedureResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlTriggerResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlTriggerResourceInfo.cs index f6542e09eb9e9..8dedb6ca51d21 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlTriggerResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlTriggerResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,48 @@ public partial class ExtendedCosmosDBSqlTriggerResourceInfo : CosmosDBSqlTrigger /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new ExtendedCosmosDBSqlTriggerResourceInfo. /// public ExtendedCosmosDBSqlTriggerResourceInfo() : base() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ExtendedCosmosDBSqlTriggerResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlUserDefinedFunctionResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlUserDefinedFunctionResourceInfo.cs index f965994b774c5..0bce1cecebd54 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlUserDefinedFunctionResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedCosmosDBSqlUserDefinedFunctionResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,48 @@ public partial class ExtendedCosmosDBSqlUserDefinedFunctionResourceInfo : Cosmos /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new ExtendedCosmosDBSqlUserDefinedFunctionResourceInfo. /// public ExtendedCosmosDBSqlUserDefinedFunctionResourceInfo() : base() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ExtendedCosmosDBSqlUserDefinedFunctionResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedGremlinDatabaseResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedGremlinDatabaseResourceInfo.cs index 3a2f3c315c9a0..f41fe824d22bd 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedGremlinDatabaseResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedGremlinDatabaseResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,48 @@ public partial class ExtendedGremlinDatabaseResourceInfo : GremlinDatabaseResour /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new ExtendedGremlinDatabaseResourceInfo. /// public ExtendedGremlinDatabaseResourceInfo() : base() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ExtendedGremlinDatabaseResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedGremlinGraphResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedGremlinGraphResourceInfo.cs index 9c89bda3be9ae..0c80335a63200 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedGremlinGraphResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedGremlinGraphResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,48 @@ public partial class ExtendedGremlinGraphResourceInfo : GremlinGraphResourceInfo /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new ExtendedGremlinGraphResourceInfo. /// public ExtendedGremlinGraphResourceInfo() : base() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ExtendedGremlinGraphResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedMongoDBCollectionResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedMongoDBCollectionResourceInfo.cs index 5c4cf391b23d0..7469d953cc50f 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedMongoDBCollectionResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedMongoDBCollectionResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,48 @@ public partial class ExtendedMongoDBCollectionResourceInfo : MongoDBCollectionRe /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new ExtendedMongoDBCollectionResourceInfo. /// public ExtendedMongoDBCollectionResourceInfo() : base() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ExtendedMongoDBCollectionResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedMongoDBDatabaseResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedMongoDBDatabaseResourceInfo.cs index cfa8f0ec5d8d2..ba00c7cff11e0 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedMongoDBDatabaseResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedMongoDBDatabaseResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,48 @@ public partial class ExtendedMongoDBDatabaseResourceInfo : MongoDBDatabaseResour /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new ExtendedMongoDBDatabaseResourceInfo. /// public ExtendedMongoDBDatabaseResourceInfo() : base() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ExtendedMongoDBDatabaseResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedThroughputSettingsResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedThroughputSettingsResourceInfo.cs index 550f63ab54f8d..2633e81c72f70 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedThroughputSettingsResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ExtendedThroughputSettingsResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,48 @@ public partial class ExtendedThroughputSettingsResourceInfo : ThroughputSettings /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new ExtendedThroughputSettingsResourceInfo. /// public ExtendedThroughputSettingsResourceInfo() : base() { - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ExtendedThroughputSettingsResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GraphApiComputeRegionalService.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GraphApiComputeRegionalService.cs index e619dd30e2967..12750105025c4 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GraphApiComputeRegionalService.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GraphApiComputeRegionalService.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,56 @@ public partial class GraphApiComputeRegionalService : ProvisionableConstruct /// /// The regional endpoint for GraphAPICompute. /// - public BicepValue GraphApiComputeEndpoint { get => _graphApiComputeEndpoint; } - private readonly BicepValue _graphApiComputeEndpoint; + public BicepValue GraphApiComputeEndpoint + { + get { Initialize(); return _graphApiComputeEndpoint!; } + } + private BicepValue? _graphApiComputeEndpoint; /// /// The regional service name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The location name. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Describes the status of a service. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Creates a new GraphApiComputeRegionalService. /// public GraphApiComputeRegionalService() { - _graphApiComputeEndpoint = BicepValue.DefineProperty(this, "GraphApiComputeEndpoint", ["graphApiComputeEndpoint"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["status"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// GraphApiComputeRegionalService. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _graphApiComputeEndpoint = DefineProperty("GraphApiComputeEndpoint", ["graphApiComputeEndpoint"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _status = DefineProperty("Status", ["status"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GraphApiComputeServiceProperties.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GraphApiComputeServiceProperties.cs index 3dcfa861fd5ff..92723fbe5422a 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GraphApiComputeServiceProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GraphApiComputeServiceProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,22 +20,38 @@ public partial class GraphApiComputeServiceProperties : CosmosDBServicePropertie /// /// GraphAPICompute endpoint for the service. /// - public BicepValue GraphApiComputeEndpoint { get => _graphApiComputeEndpoint; set => _graphApiComputeEndpoint.Assign(value); } - private readonly BicepValue _graphApiComputeEndpoint; + public BicepValue GraphApiComputeEndpoint + { + get { Initialize(); return _graphApiComputeEndpoint!; } + set { Initialize(); _graphApiComputeEndpoint!.Assign(value); } + } + private BicepValue? _graphApiComputeEndpoint; /// /// An array that contains all of the locations for the service. /// - public BicepList Locations { get => _locations; } - private readonly BicepList _locations; + public BicepList Locations + { + get { Initialize(); return _locations!; } + } + private BicepList? _locations; /// /// Creates a new GraphApiComputeServiceProperties. /// public GraphApiComputeServiceProperties() : base() { - BicepValue.DefineProperty(this, "serviceType", ["serviceType"], defaultValue: "GraphAPICompute"); - _graphApiComputeEndpoint = BicepValue.DefineProperty(this, "GraphApiComputeEndpoint", ["graphApiComputeEndpoint"]); - _locations = BicepList.DefineProperty(this, "Locations", ["locations"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// GraphApiComputeServiceProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("serviceType", ["serviceType"], defaultValue: "GraphAPICompute"); + _graphApiComputeEndpoint = DefineProperty("GraphApiComputeEndpoint", ["graphApiComputeEndpoint"]); + _locations = DefineListProperty("Locations", ["locations"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GraphResourceGetPropertiesOptions.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GraphResourceGetPropertiesOptions.cs index 05a3101d4481e..0aa1e74260033 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GraphResourceGetPropertiesOptions.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GraphResourceGetPropertiesOptions.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class GraphResourceGetPropertiesOptions : ProvisionableConstruct /// Value of the Cosmos DB resource throughput or autoscaleSettings. Use /// the ThroughputSetting resource when retrieving offer details. /// - public BicepValue Throughput { get => _throughput; set => _throughput.Assign(value); } - private readonly BicepValue _throughput; + public BicepValue Throughput + { + get { Initialize(); return _throughput!; } + set { Initialize(); _throughput!.Assign(value); } + } + private BicepValue? _throughput; /// /// Represents maximum throughput, the resource can scale up to. /// - public BicepValue AutoscaleMaxThroughput { get => _autoscaleMaxThroughput; set => _autoscaleMaxThroughput.Assign(value); } - private readonly BicepValue _autoscaleMaxThroughput; + public BicepValue AutoscaleMaxThroughput + { + get { Initialize(); return _autoscaleMaxThroughput!; } + set { Initialize(); _autoscaleMaxThroughput!.Assign(value); } + } + private BicepValue? _autoscaleMaxThroughput; /// /// Creates a new GraphResourceGetPropertiesOptions. /// public GraphResourceGetPropertiesOptions() { - _throughput = BicepValue.DefineProperty(this, "Throughput", ["throughput"]); - _autoscaleMaxThroughput = BicepValue.DefineProperty(this, "AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); + } + + /// + /// Define all the provisionable properties of + /// GraphResourceGetPropertiesOptions. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _throughput = DefineProperty("Throughput", ["throughput"]); + _autoscaleMaxThroughput = DefineProperty("AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinDatabasePropertiesConfig.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinDatabasePropertiesConfig.cs index f25be08ab62eb..d24a3633e820f 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinDatabasePropertiesConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinDatabasePropertiesConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class GremlinDatabasePropertiesConfig : ProvisionableConstruct /// Value of the Cosmos DB resource throughput or autoscaleSettings. Use /// the ThroughputSetting resource when retrieving offer details. /// - public BicepValue Throughput { get => _throughput; set => _throughput.Assign(value); } - private readonly BicepValue _throughput; + public BicepValue Throughput + { + get { Initialize(); return _throughput!; } + set { Initialize(); _throughput!.Assign(value); } + } + private BicepValue? _throughput; /// /// Represents maximum throughput, the resource can scale up to. /// - public BicepValue AutoscaleMaxThroughput { get => _autoscaleMaxThroughput; set => _autoscaleMaxThroughput.Assign(value); } - private readonly BicepValue _autoscaleMaxThroughput; + public BicepValue AutoscaleMaxThroughput + { + get { Initialize(); return _autoscaleMaxThroughput!; } + set { Initialize(); _autoscaleMaxThroughput!.Assign(value); } + } + private BicepValue? _autoscaleMaxThroughput; /// /// Creates a new GremlinDatabasePropertiesConfig. /// public GremlinDatabasePropertiesConfig() { - _throughput = BicepValue.DefineProperty(this, "Throughput", ["throughput"]); - _autoscaleMaxThroughput = BicepValue.DefineProperty(this, "AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); + } + + /// + /// Define all the provisionable properties of + /// GremlinDatabasePropertiesConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _throughput = DefineProperty("Throughput", ["throughput"]); + _autoscaleMaxThroughput = DefineProperty("AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinDatabaseResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinDatabaseResourceInfo.cs index 95741a52ba35e..562ffc32c4383 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinDatabaseResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinDatabaseResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class GremlinDatabaseResourceInfo : ProvisionableConstruct /// /// Name of the Cosmos DB Gremlin database. /// - public BicepValue DatabaseName { get => _databaseName; set => _databaseName.Assign(value); } - private readonly BicepValue _databaseName; + public BicepValue DatabaseName + { + get { Initialize(); return _databaseName!; } + set { Initialize(); _databaseName!.Assign(value); } + } + private BicepValue? _databaseName; /// /// Parameters to indicate the information about the restore. /// - public BicepValue RestoreParameters { get => _restoreParameters; set => _restoreParameters.Assign(value); } - private readonly BicepValue _restoreParameters; + public ResourceRestoreParameters RestoreParameters + { + get { Initialize(); return _restoreParameters!; } + set { Initialize(); AssignOrReplace(ref _restoreParameters, value); } + } + private ResourceRestoreParameters? _restoreParameters; /// /// Enum to indicate the mode of resource creation. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// Creates a new GremlinDatabaseResourceInfo. /// public GremlinDatabaseResourceInfo() { - _databaseName = BicepValue.DefineProperty(this, "DatabaseName", ["id"]); - _restoreParameters = BicepValue.DefineProperty(this, "RestoreParameters", ["restoreParameters"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["createMode"]); + } + + /// + /// Define all the provisionable properties of GremlinDatabaseResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _databaseName = DefineProperty("DatabaseName", ["id"]); + _restoreParameters = DefineModelProperty("RestoreParameters", ["restoreParameters"]); + _createMode = DefineProperty("CreateMode", ["createMode"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinDatabaseRestoreResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinDatabaseRestoreResourceInfo.cs index 036ff9b51a274..5bc30abfeba6b 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinDatabaseRestoreResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinDatabaseRestoreResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class GremlinDatabaseRestoreResourceInfo : ProvisionableConstruct /// /// The name of the gremlin database available for restore. /// - public BicepValue DatabaseName { get => _databaseName; set => _databaseName.Assign(value); } - private readonly BicepValue _databaseName; + public BicepValue DatabaseName + { + get { Initialize(); return _databaseName!; } + set { Initialize(); _databaseName!.Assign(value); } + } + private BicepValue? _databaseName; /// /// The names of the graphs available for restore. /// - public BicepList GraphNames { get => _graphNames; set => _graphNames.Assign(value); } - private readonly BicepList _graphNames; + public BicepList GraphNames + { + get { Initialize(); return _graphNames!; } + set { Initialize(); _graphNames!.Assign(value); } + } + private BicepList? _graphNames; /// /// Creates a new GremlinDatabaseRestoreResourceInfo. /// public GremlinDatabaseRestoreResourceInfo() { - _databaseName = BicepValue.DefineProperty(this, "DatabaseName", ["databaseName"]); - _graphNames = BicepList.DefineProperty(this, "GraphNames", ["graphNames"]); + } + + /// + /// Define all the provisionable properties of + /// GremlinDatabaseRestoreResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _databaseName = DefineProperty("DatabaseName", ["databaseName"]); + _graphNames = DefineListProperty("GraphNames", ["graphNames"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinGraphPropertiesConfig.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinGraphPropertiesConfig.cs index d2baf3b134361..1435f66e1bc54 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinGraphPropertiesConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinGraphPropertiesConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class GremlinGraphPropertiesConfig : ProvisionableConstruct /// Value of the Cosmos DB resource throughput or autoscaleSettings. Use /// the ThroughputSetting resource when retrieving offer details. /// - public BicepValue Throughput { get => _throughput; set => _throughput.Assign(value); } - private readonly BicepValue _throughput; + public BicepValue Throughput + { + get { Initialize(); return _throughput!; } + set { Initialize(); _throughput!.Assign(value); } + } + private BicepValue? _throughput; /// /// Represents maximum throughput, the resource can scale up to. /// - public BicepValue AutoscaleMaxThroughput { get => _autoscaleMaxThroughput; set => _autoscaleMaxThroughput.Assign(value); } - private readonly BicepValue _autoscaleMaxThroughput; + public BicepValue AutoscaleMaxThroughput + { + get { Initialize(); return _autoscaleMaxThroughput!; } + set { Initialize(); _autoscaleMaxThroughput!.Assign(value); } + } + private BicepValue? _autoscaleMaxThroughput; /// /// Creates a new GremlinGraphPropertiesConfig. /// public GremlinGraphPropertiesConfig() { - _throughput = BicepValue.DefineProperty(this, "Throughput", ["throughput"]); - _autoscaleMaxThroughput = BicepValue.DefineProperty(this, "AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); + } + + /// + /// Define all the provisionable properties of GremlinGraphPropertiesConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _throughput = DefineProperty("Throughput", ["throughput"]); + _autoscaleMaxThroughput = DefineProperty("AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinGraphResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinGraphResourceInfo.cs index 69c8d62282de0..2cb91f54f2561 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinGraphResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/GremlinGraphResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,73 +19,117 @@ public partial class GremlinGraphResourceInfo : ProvisionableConstruct /// /// Name of the Cosmos DB Gremlin graph. /// - public BicepValue GraphName { get => _graphName; set => _graphName.Assign(value); } - private readonly BicepValue _graphName; + public BicepValue GraphName + { + get { Initialize(); return _graphName!; } + set { Initialize(); _graphName!.Assign(value); } + } + private BicepValue? _graphName; /// /// The configuration of the indexing policy. By default, the indexing is /// automatic for all document paths within the graph. /// - public BicepValue IndexingPolicy { get => _indexingPolicy; set => _indexingPolicy.Assign(value); } - private readonly BicepValue _indexingPolicy; + public CosmosDBIndexingPolicy IndexingPolicy + { + get { Initialize(); return _indexingPolicy!; } + set { Initialize(); AssignOrReplace(ref _indexingPolicy, value); } + } + private CosmosDBIndexingPolicy? _indexingPolicy; /// /// The configuration of the partition key to be used for partitioning data /// into multiple partitions. /// - public BicepValue PartitionKey { get => _partitionKey; set => _partitionKey.Assign(value); } - private readonly BicepValue _partitionKey; + public CosmosDBContainerPartitionKey PartitionKey + { + get { Initialize(); return _partitionKey!; } + set { Initialize(); AssignOrReplace(ref _partitionKey, value); } + } + private CosmosDBContainerPartitionKey? _partitionKey; /// /// Default time to live. /// - public BicepValue DefaultTtl { get => _defaultTtl; set => _defaultTtl.Assign(value); } - private readonly BicepValue _defaultTtl; + public BicepValue DefaultTtl + { + get { Initialize(); return _defaultTtl!; } + set { Initialize(); _defaultTtl!.Assign(value); } + } + private BicepValue? _defaultTtl; /// /// List of unique keys on that enforces uniqueness constraint on documents /// in the collection in the Azure Cosmos DB service. /// - public BicepList UniqueKeys { get => _uniqueKeys; set => _uniqueKeys.Assign(value); } - private readonly BicepList _uniqueKeys; + public BicepList UniqueKeys + { + get { Initialize(); return _uniqueKeys!; } + set { Initialize(); _uniqueKeys!.Assign(value); } + } + private BicepList? _uniqueKeys; /// /// The conflict resolution policy for the graph. /// - public BicepValue ConflictResolutionPolicy { get => _conflictResolutionPolicy; set => _conflictResolutionPolicy.Assign(value); } - private readonly BicepValue _conflictResolutionPolicy; + public ConflictResolutionPolicy ConflictResolutionPolicy + { + get { Initialize(); return _conflictResolutionPolicy!; } + set { Initialize(); AssignOrReplace(ref _conflictResolutionPolicy, value); } + } + private ConflictResolutionPolicy? _conflictResolutionPolicy; /// /// Analytical TTL. /// - public BicepValue AnalyticalStorageTtl { get => _analyticalStorageTtl; set => _analyticalStorageTtl.Assign(value); } - private readonly BicepValue _analyticalStorageTtl; + public BicepValue AnalyticalStorageTtl + { + get { Initialize(); return _analyticalStorageTtl!; } + set { Initialize(); _analyticalStorageTtl!.Assign(value); } + } + private BicepValue? _analyticalStorageTtl; /// /// Parameters to indicate the information about the restore. /// - public BicepValue RestoreParameters { get => _restoreParameters; set => _restoreParameters.Assign(value); } - private readonly BicepValue _restoreParameters; + public ResourceRestoreParameters RestoreParameters + { + get { Initialize(); return _restoreParameters!; } + set { Initialize(); AssignOrReplace(ref _restoreParameters, value); } + } + private ResourceRestoreParameters? _restoreParameters; /// /// Enum to indicate the mode of resource creation. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// Creates a new GremlinGraphResourceInfo. /// public GremlinGraphResourceInfo() { - _graphName = BicepValue.DefineProperty(this, "GraphName", ["id"]); - _indexingPolicy = BicepValue.DefineProperty(this, "IndexingPolicy", ["indexingPolicy"]); - _partitionKey = BicepValue.DefineProperty(this, "PartitionKey", ["partitionKey"]); - _defaultTtl = BicepValue.DefineProperty(this, "DefaultTtl", ["defaultTtl"]); - _uniqueKeys = BicepList.DefineProperty(this, "UniqueKeys", ["uniqueKeyPolicy", "uniqueKeys"]); - _conflictResolutionPolicy = BicepValue.DefineProperty(this, "ConflictResolutionPolicy", ["conflictResolutionPolicy"]); - _analyticalStorageTtl = BicepValue.DefineProperty(this, "AnalyticalStorageTtl", ["analyticalStorageTtl"]); - _restoreParameters = BicepValue.DefineProperty(this, "RestoreParameters", ["restoreParameters"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["createMode"]); + } + + /// + /// Define all the provisionable properties of GremlinGraphResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _graphName = DefineProperty("GraphName", ["id"]); + _indexingPolicy = DefineModelProperty("IndexingPolicy", ["indexingPolicy"]); + _partitionKey = DefineModelProperty("PartitionKey", ["partitionKey"]); + _defaultTtl = DefineProperty("DefaultTtl", ["defaultTtl"]); + _uniqueKeys = DefineListProperty("UniqueKeys", ["uniqueKeyPolicy", "uniqueKeys"]); + _conflictResolutionPolicy = DefineModelProperty("ConflictResolutionPolicy", ["conflictResolutionPolicy"]); + _analyticalStorageTtl = DefineProperty("AnalyticalStorageTtl", ["analyticalStorageTtl"]); + _restoreParameters = DefineModelProperty("RestoreParameters", ["restoreParameters"]); + _createMode = DefineProperty("CreateMode", ["createMode"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MaterializedViewDefinition.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MaterializedViewDefinition.cs index 762b5c81aa31e..146333376da64 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MaterializedViewDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MaterializedViewDefinition.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,31 +19,50 @@ public partial class MaterializedViewDefinition : ProvisionableConstruct /// An unique identifier for the source collection. This is a system /// generated property. /// - public BicepValue SourceCollectionRid { get => _sourceCollectionRid; } - private readonly BicepValue _sourceCollectionRid; + public BicepValue SourceCollectionRid + { + get { Initialize(); return _sourceCollectionRid!; } + } + private BicepValue? _sourceCollectionRid; /// /// The name of the source container on which the Materialized View will be /// created. /// - public BicepValue SourceCollectionId { get => _sourceCollectionId; set => _sourceCollectionId.Assign(value); } - private readonly BicepValue _sourceCollectionId; + public BicepValue SourceCollectionId + { + get { Initialize(); return _sourceCollectionId!; } + set { Initialize(); _sourceCollectionId!.Assign(value); } + } + private BicepValue? _sourceCollectionId; /// /// The definition should be an SQL query which would be used to fetch data /// from the source container to populate into the Materialized View /// container. /// - public BicepValue Definition { get => _definition; set => _definition.Assign(value); } - private readonly BicepValue _definition; + public BicepValue Definition + { + get { Initialize(); return _definition!; } + set { Initialize(); _definition!.Assign(value); } + } + private BicepValue? _definition; /// /// Creates a new MaterializedViewDefinition. /// public MaterializedViewDefinition() { - _sourceCollectionRid = BicepValue.DefineProperty(this, "SourceCollectionRid", ["sourceCollectionRid"], isOutput: true); - _sourceCollectionId = BicepValue.DefineProperty(this, "SourceCollectionId", ["sourceCollectionId"]); - _definition = BicepValue.DefineProperty(this, "Definition", ["definition"]); + } + + /// + /// Define all the provisionable properties of MaterializedViewDefinition. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _sourceCollectionRid = DefineProperty("SourceCollectionRid", ["sourceCollectionRid"], isOutput: true); + _sourceCollectionId = DefineProperty("SourceCollectionId", ["sourceCollectionId"]); + _definition = DefineProperty("Definition", ["definition"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MaterializedViewsBuilderRegionalService.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MaterializedViewsBuilderRegionalService.cs index 6b1961b93cc33..592d5a262c5b2 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MaterializedViewsBuilderRegionalService.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MaterializedViewsBuilderRegionalService.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,46 @@ public partial class MaterializedViewsBuilderRegionalService : ProvisionableCons /// /// The regional service name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The location name. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Describes the status of a service. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Creates a new MaterializedViewsBuilderRegionalService. /// public MaterializedViewsBuilderRegionalService() { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["status"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// MaterializedViewsBuilderRegionalService. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _status = DefineProperty("Status", ["status"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MaterializedViewsBuilderServiceProperties.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MaterializedViewsBuilderServiceProperties.cs index 44256b348ace0..c9416e75760c1 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MaterializedViewsBuilderServiceProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MaterializedViewsBuilderServiceProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,15 +20,27 @@ public partial class MaterializedViewsBuilderServiceProperties : CosmosDBService /// /// An array that contains all of the locations for the service. /// - public BicepList Locations { get => _locations; } - private readonly BicepList _locations; + public BicepList Locations + { + get { Initialize(); return _locations!; } + } + private BicepList? _locations; /// /// Creates a new MaterializedViewsBuilderServiceProperties. /// public MaterializedViewsBuilderServiceProperties() : base() { - BicepValue.DefineProperty(this, "serviceType", ["serviceType"], defaultValue: "MaterializedViewsBuilder"); - _locations = BicepList.DefineProperty(this, "Locations", ["locations"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// MaterializedViewsBuilderServiceProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("serviceType", ["serviceType"], defaultValue: "MaterializedViewsBuilder"); + _locations = DefineListProperty("Locations", ["locations"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoClusterRestoreParameters.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoClusterRestoreParameters.cs index 0f30481f3de25..9cfb539548eef 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoClusterRestoreParameters.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoClusterRestoreParameters.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class MongoClusterRestoreParameters : ProvisionableConstruct /// /// UTC point in time to restore a mongo cluster. /// - public BicepValue PointInTimeUTC { get => _pointInTimeUTC; set => _pointInTimeUTC.Assign(value); } - private readonly BicepValue _pointInTimeUTC; + public BicepValue PointInTimeUTC + { + get { Initialize(); return _pointInTimeUTC!; } + set { Initialize(); _pointInTimeUTC!.Assign(value); } + } + private BicepValue? _pointInTimeUTC; /// /// Resource ID to locate the source cluster to restore. /// - public BicepValue SourceResourceId { get => _sourceResourceId; set => _sourceResourceId.Assign(value); } - private readonly BicepValue _sourceResourceId; + public BicepValue SourceResourceId + { + get { Initialize(); return _sourceResourceId!; } + set { Initialize(); _sourceResourceId!.Assign(value); } + } + private BicepValue? _sourceResourceId; /// /// Creates a new MongoClusterRestoreParameters. /// public MongoClusterRestoreParameters() { - _pointInTimeUTC = BicepValue.DefineProperty(this, "PointInTimeUTC", ["pointInTimeUTC"]); - _sourceResourceId = BicepValue.DefineProperty(this, "SourceResourceId", ["sourceResourceId"]); + } + + /// + /// Define all the provisionable properties of + /// MongoClusterRestoreParameters. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _pointInTimeUTC = DefineProperty("PointInTimeUTC", ["pointInTimeUTC"]); + _sourceResourceId = DefineProperty("SourceResourceId", ["sourceResourceId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBCollectionPropertiesConfig.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBCollectionPropertiesConfig.cs index ca1d8a83d8e65..7830f79a168e3 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBCollectionPropertiesConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBCollectionPropertiesConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class MongoDBCollectionPropertiesConfig : ProvisionableConstruct /// Value of the Cosmos DB resource throughput or autoscaleSettings. Use /// the ThroughputSetting resource when retrieving offer details. /// - public BicepValue Throughput { get => _throughput; set => _throughput.Assign(value); } - private readonly BicepValue _throughput; + public BicepValue Throughput + { + get { Initialize(); return _throughput!; } + set { Initialize(); _throughput!.Assign(value); } + } + private BicepValue? _throughput; /// /// Represents maximum throughput, the resource can scale up to. /// - public BicepValue AutoscaleMaxThroughput { get => _autoscaleMaxThroughput; set => _autoscaleMaxThroughput.Assign(value); } - private readonly BicepValue _autoscaleMaxThroughput; + public BicepValue AutoscaleMaxThroughput + { + get { Initialize(); return _autoscaleMaxThroughput!; } + set { Initialize(); _autoscaleMaxThroughput!.Assign(value); } + } + private BicepValue? _autoscaleMaxThroughput; /// /// Creates a new MongoDBCollectionPropertiesConfig. /// public MongoDBCollectionPropertiesConfig() { - _throughput = BicepValue.DefineProperty(this, "Throughput", ["throughput"]); - _autoscaleMaxThroughput = BicepValue.DefineProperty(this, "AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); + } + + /// + /// Define all the provisionable properties of + /// MongoDBCollectionPropertiesConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _throughput = DefineProperty("Throughput", ["throughput"]); + _autoscaleMaxThroughput = DefineProperty("AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBCollectionResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBCollectionResourceInfo.cs index f849f77b1c0aa..14d01b06add9e 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBCollectionResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBCollectionResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,49 +19,82 @@ public partial class MongoDBCollectionResourceInfo : ProvisionableConstruct /// /// Name of the Cosmos DB MongoDB collection. /// - public BicepValue CollectionName { get => _collectionName; set => _collectionName.Assign(value); } - private readonly BicepValue _collectionName; + public BicepValue CollectionName + { + get { Initialize(); return _collectionName!; } + set { Initialize(); _collectionName!.Assign(value); } + } + private BicepValue? _collectionName; /// /// A key-value pair of shard keys to be applied for the request. /// - public BicepDictionary ShardKey { get => _shardKey; set => _shardKey.Assign(value); } - private readonly BicepDictionary _shardKey; + public BicepDictionary ShardKey + { + get { Initialize(); return _shardKey!; } + set { Initialize(); _shardKey!.Assign(value); } + } + private BicepDictionary? _shardKey; /// /// List of index keys. /// - public BicepList Indexes { get => _indexes; set => _indexes.Assign(value); } - private readonly BicepList _indexes; + public BicepList Indexes + { + get { Initialize(); return _indexes!; } + set { Initialize(); _indexes!.Assign(value); } + } + private BicepList? _indexes; /// /// Analytical TTL. /// - public BicepValue AnalyticalStorageTtl { get => _analyticalStorageTtl; set => _analyticalStorageTtl.Assign(value); } - private readonly BicepValue _analyticalStorageTtl; + public BicepValue AnalyticalStorageTtl + { + get { Initialize(); return _analyticalStorageTtl!; } + set { Initialize(); _analyticalStorageTtl!.Assign(value); } + } + private BicepValue? _analyticalStorageTtl; /// /// Parameters to indicate the information about the restore. /// - public BicepValue RestoreParameters { get => _restoreParameters; set => _restoreParameters.Assign(value); } - private readonly BicepValue _restoreParameters; + public ResourceRestoreParameters RestoreParameters + { + get { Initialize(); return _restoreParameters!; } + set { Initialize(); AssignOrReplace(ref _restoreParameters, value); } + } + private ResourceRestoreParameters? _restoreParameters; /// /// Enum to indicate the mode of resource creation. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// Creates a new MongoDBCollectionResourceInfo. /// public MongoDBCollectionResourceInfo() { - _collectionName = BicepValue.DefineProperty(this, "CollectionName", ["id"]); - _shardKey = BicepDictionary.DefineProperty(this, "ShardKey", ["shardKey"]); - _indexes = BicepList.DefineProperty(this, "Indexes", ["indexes"]); - _analyticalStorageTtl = BicepValue.DefineProperty(this, "AnalyticalStorageTtl", ["analyticalStorageTtl"]); - _restoreParameters = BicepValue.DefineProperty(this, "RestoreParameters", ["restoreParameters"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["createMode"]); + } + + /// + /// Define all the provisionable properties of + /// MongoDBCollectionResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _collectionName = DefineProperty("CollectionName", ["id"]); + _shardKey = DefineDictionaryProperty("ShardKey", ["shardKey"]); + _indexes = DefineListProperty("Indexes", ["indexes"]); + _analyticalStorageTtl = DefineProperty("AnalyticalStorageTtl", ["analyticalStorageTtl"]); + _restoreParameters = DefineModelProperty("RestoreParameters", ["restoreParameters"]); + _createMode = DefineProperty("CreateMode", ["createMode"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBDatabasePropertiesConfig.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBDatabasePropertiesConfig.cs index 5ae32bff65425..ddcc349ca947c 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBDatabasePropertiesConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBDatabasePropertiesConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class MongoDBDatabasePropertiesConfig : ProvisionableConstruct /// Value of the Cosmos DB resource throughput or autoscaleSettings. Use /// the ThroughputSetting resource when retrieving offer details. /// - public BicepValue Throughput { get => _throughput; set => _throughput.Assign(value); } - private readonly BicepValue _throughput; + public BicepValue Throughput + { + get { Initialize(); return _throughput!; } + set { Initialize(); _throughput!.Assign(value); } + } + private BicepValue? _throughput; /// /// Represents maximum throughput, the resource can scale up to. /// - public BicepValue AutoscaleMaxThroughput { get => _autoscaleMaxThroughput; set => _autoscaleMaxThroughput.Assign(value); } - private readonly BicepValue _autoscaleMaxThroughput; + public BicepValue AutoscaleMaxThroughput + { + get { Initialize(); return _autoscaleMaxThroughput!; } + set { Initialize(); _autoscaleMaxThroughput!.Assign(value); } + } + private BicepValue? _autoscaleMaxThroughput; /// /// Creates a new MongoDBDatabasePropertiesConfig. /// public MongoDBDatabasePropertiesConfig() { - _throughput = BicepValue.DefineProperty(this, "Throughput", ["throughput"]); - _autoscaleMaxThroughput = BicepValue.DefineProperty(this, "AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); + } + + /// + /// Define all the provisionable properties of + /// MongoDBDatabasePropertiesConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _throughput = DefineProperty("Throughput", ["throughput"]); + _autoscaleMaxThroughput = DefineProperty("AutoscaleMaxThroughput", ["autoscaleSettings", "maxThroughput"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBDatabaseResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBDatabaseResourceInfo.cs index 3014ee2c1f8cc..bed46cdd3b9dd 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBDatabaseResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBDatabaseResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class MongoDBDatabaseResourceInfo : ProvisionableConstruct /// /// Name of the Cosmos DB MongoDB database. /// - public BicepValue DatabaseName { get => _databaseName; set => _databaseName.Assign(value); } - private readonly BicepValue _databaseName; + public BicepValue DatabaseName + { + get { Initialize(); return _databaseName!; } + set { Initialize(); _databaseName!.Assign(value); } + } + private BicepValue? _databaseName; /// /// Parameters to indicate the information about the restore. /// - public BicepValue RestoreParameters { get => _restoreParameters; set => _restoreParameters.Assign(value); } - private readonly BicepValue _restoreParameters; + public ResourceRestoreParameters RestoreParameters + { + get { Initialize(); return _restoreParameters!; } + set { Initialize(); AssignOrReplace(ref _restoreParameters, value); } + } + private ResourceRestoreParameters? _restoreParameters; /// /// Enum to indicate the mode of resource creation. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// Creates a new MongoDBDatabaseResourceInfo. /// public MongoDBDatabaseResourceInfo() { - _databaseName = BicepValue.DefineProperty(this, "DatabaseName", ["id"]); - _restoreParameters = BicepValue.DefineProperty(this, "RestoreParameters", ["restoreParameters"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["createMode"]); + } + + /// + /// Define all the provisionable properties of MongoDBDatabaseResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _databaseName = DefineProperty("DatabaseName", ["id"]); + _restoreParameters = DefineModelProperty("RestoreParameters", ["restoreParameters"]); + _createMode = DefineProperty("CreateMode", ["createMode"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBIndex.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBIndex.cs index 4f53b76b22189..107edbc1bd370 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBIndex.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBIndex.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class MongoDBIndex : ProvisionableConstruct /// /// List of keys for each MongoDB collection in the Azure Cosmos DB service. /// - public BicepList Keys { get => _keys; set => _keys.Assign(value); } - private readonly BicepList _keys; + public BicepList Keys + { + get { Initialize(); return _keys!; } + set { Initialize(); _keys!.Assign(value); } + } + private BicepList? _keys; /// /// Cosmos DB MongoDB collection index key options. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public MongoDBIndexConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private MongoDBIndexConfig? _options; /// /// Creates a new MongoDBIndex. /// public MongoDBIndex() { - _keys = BicepList.DefineProperty(this, "Keys", ["key", "keys"]); - _options = BicepValue.DefineProperty(this, "Options", ["options"]); + } + + /// + /// Define all the provisionable properties of MongoDBIndex. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keys = DefineListProperty("Keys", ["key", "keys"]); + _options = DefineModelProperty("Options", ["options"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBIndexConfig.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBIndexConfig.cs index 4390058cae942..e331ddd586390 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBIndexConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBIndexConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class MongoDBIndexConfig : ProvisionableConstruct /// /// Expire after seconds. /// - public BicepValue ExpireAfterSeconds { get => _expireAfterSeconds; set => _expireAfterSeconds.Assign(value); } - private readonly BicepValue _expireAfterSeconds; + public BicepValue ExpireAfterSeconds + { + get { Initialize(); return _expireAfterSeconds!; } + set { Initialize(); _expireAfterSeconds!.Assign(value); } + } + private BicepValue? _expireAfterSeconds; /// /// Is unique or not. /// - public BicepValue IsUnique { get => _isUnique; set => _isUnique.Assign(value); } - private readonly BicepValue _isUnique; + public BicepValue IsUnique + { + get { Initialize(); return _isUnique!; } + set { Initialize(); _isUnique!.Assign(value); } + } + private BicepValue? _isUnique; /// /// Creates a new MongoDBIndexConfig. /// public MongoDBIndexConfig() { - _expireAfterSeconds = BicepValue.DefineProperty(this, "ExpireAfterSeconds", ["expireAfterSeconds"]); - _isUnique = BicepValue.DefineProperty(this, "IsUnique", ["unique"]); + } + + /// + /// Define all the provisionable properties of MongoDBIndexConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _expireAfterSeconds = DefineProperty("ExpireAfterSeconds", ["expireAfterSeconds"]); + _isUnique = DefineProperty("IsUnique", ["unique"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBPrivilege.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBPrivilege.cs index 3543b402952a9..5a8de60594edc 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBPrivilege.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBPrivilege.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class MongoDBPrivilege : ProvisionableConstruct /// /// An Azure Cosmos DB Mongo DB Resource. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public MongoDBPrivilegeResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private MongoDBPrivilegeResourceInfo? _resource; /// /// An array of actions that are allowed. /// - public BicepList Actions { get => _actions; set => _actions.Assign(value); } - private readonly BicepList _actions; + public BicepList Actions + { + get { Initialize(); return _actions!; } + set { Initialize(); _actions!.Assign(value); } + } + private BicepList? _actions; /// /// Creates a new MongoDBPrivilege. /// public MongoDBPrivilege() { - _resource = BicepValue.DefineProperty(this, "Resource", ["resource"]); - _actions = BicepList.DefineProperty(this, "Actions", ["actions"]); + } + + /// + /// Define all the provisionable properties of MongoDBPrivilege. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _resource = DefineModelProperty("Resource", ["resource"]); + _actions = DefineListProperty("Actions", ["actions"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBPrivilegeResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBPrivilegeResourceInfo.cs index dc876b2df1ffe..358cc63e87309 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBPrivilegeResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBPrivilegeResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class MongoDBPrivilegeResourceInfo : ProvisionableConstruct /// /// The database name the role is applied. /// - public BicepValue DBName { get => _dBName; set => _dBName.Assign(value); } - private readonly BicepValue _dBName; + public BicepValue DBName + { + get { Initialize(); return _dBName!; } + set { Initialize(); _dBName!.Assign(value); } + } + private BicepValue? _dBName; /// /// The collection name the role is applied. /// - public BicepValue Collection { get => _collection; set => _collection.Assign(value); } - private readonly BicepValue _collection; + public BicepValue Collection + { + get { Initialize(); return _collection!; } + set { Initialize(); _collection!.Assign(value); } + } + private BicepValue? _collection; /// /// Creates a new MongoDBPrivilegeResourceInfo. /// public MongoDBPrivilegeResourceInfo() { - _dBName = BicepValue.DefineProperty(this, "DBName", ["db"]); - _collection = BicepValue.DefineProperty(this, "Collection", ["collection"]); + } + + /// + /// Define all the provisionable properties of MongoDBPrivilegeResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _dBName = DefineProperty("DBName", ["db"]); + _collection = DefineProperty("Collection", ["collection"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBRole.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBRole.cs index 484eae84b40ed..0b7a15a67a533 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBRole.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/MongoDBRole.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class MongoDBRole : ProvisionableConstruct /// /// The database name the role is applied. /// - public BicepValue DBName { get => _dBName; set => _dBName.Assign(value); } - private readonly BicepValue _dBName; + public BicepValue DBName + { + get { Initialize(); return _dBName!; } + set { Initialize(); _dBName!.Assign(value); } + } + private BicepValue? _dBName; /// /// The role name. /// - public BicepValue Role { get => _role; set => _role.Assign(value); } - private readonly BicepValue _role; + public BicepValue Role + { + get { Initialize(); return _role!; } + set { Initialize(); _role!.Assign(value); } + } + private BicepValue? _role; /// /// Creates a new MongoDBRole. /// public MongoDBRole() { - _dBName = BicepValue.DefineProperty(this, "DBName", ["db"]); - _role = BicepValue.DefineProperty(this, "Role", ["role"]); + } + + /// + /// Define all the provisionable properties of MongoDBRole. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _dBName = DefineProperty("DBName", ["db"]); + _role = DefineProperty("Role", ["role"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/NodeGroupSpec.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/NodeGroupSpec.cs index 556c943840992..8f16b0d05ad33 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/NodeGroupSpec.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/NodeGroupSpec.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,45 +18,73 @@ public partial class NodeGroupSpec : ProvisionableConstruct /// /// The node type deployed in the node group. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The number of nodes in the node group. /// - public BicepValue NodeCount { get => _nodeCount; set => _nodeCount.Assign(value); } - private readonly BicepValue _nodeCount; + public BicepValue NodeCount + { + get { Initialize(); return _nodeCount!; } + set { Initialize(); _nodeCount!.Assign(value); } + } + private BicepValue? _nodeCount; /// /// The resource sku for the node group. This defines the size of CPU and /// memory that is provisioned for each node. Example values: /// 'M30', 'M40'. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public BicepValue Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); _sku!.Assign(value); } + } + private BicepValue? _sku; /// /// The disk storage size for the node group in GB. Example values: 128, /// 256, 512, 1024. /// - public BicepValue DiskSizeInGB { get => _diskSizeInGB; set => _diskSizeInGB.Assign(value); } - private readonly BicepValue _diskSizeInGB; + public BicepValue DiskSizeInGB + { + get { Initialize(); return _diskSizeInGB!; } + set { Initialize(); _diskSizeInGB!.Assign(value); } + } + private BicepValue? _diskSizeInGB; /// /// Whether high availability is enabled on the node group. /// - public BicepValue EnableHa { get => _enableHa; set => _enableHa.Assign(value); } - private readonly BicepValue _enableHa; + public BicepValue EnableHa + { + get { Initialize(); return _enableHa!; } + set { Initialize(); _enableHa!.Assign(value); } + } + private BicepValue? _enableHa; /// /// Creates a new NodeGroupSpec. /// public NodeGroupSpec() { - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _nodeCount = BicepValue.DefineProperty(this, "NodeCount", ["nodeCount"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _diskSizeInGB = BicepValue.DefineProperty(this, "DiskSizeInGB", ["diskSizeGB"]); - _enableHa = BicepValue.DefineProperty(this, "EnableHa", ["enableHa"]); + } + + /// + /// Define all the provisionable properties of NodeGroupSpec. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _kind = DefineProperty("Kind", ["kind"]); + _nodeCount = DefineProperty("NodeCount", ["nodeCount"]); + _sku = DefineProperty("Sku", ["sku"]); + _diskSizeInGB = DefineProperty("DiskSizeInGB", ["diskSizeGB"]); + _enableHa = DefineProperty("EnableHa", ["enableHa"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/PeriodicModeBackupPolicy.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/PeriodicModeBackupPolicy.cs index 1bde41da6f222..1cd306d22d48b 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/PeriodicModeBackupPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/PeriodicModeBackupPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,27 @@ public partial class PeriodicModeBackupPolicy : CosmosDBAccountBackupPolicy /// /// Configuration values for periodic mode backup. /// - public BicepValue PeriodicModeProperties { get => _periodicModeProperties; set => _periodicModeProperties.Assign(value); } - private readonly BicepValue _periodicModeProperties; + public PeriodicModeProperties PeriodicModeProperties + { + get { Initialize(); return _periodicModeProperties!; } + set { Initialize(); AssignOrReplace(ref _periodicModeProperties, value); } + } + private PeriodicModeProperties? _periodicModeProperties; /// /// Creates a new PeriodicModeBackupPolicy. /// public PeriodicModeBackupPolicy() : base() { - BicepValue.DefineProperty(this, "type", ["type"], defaultValue: "Periodic"); - _periodicModeProperties = BicepValue.DefineProperty(this, "PeriodicModeProperties", ["periodicModeProperties"]); + } + + /// + /// Define all the provisionable properties of PeriodicModeBackupPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("type", ["type"], defaultValue: "Periodic"); + _periodicModeProperties = DefineModelProperty("PeriodicModeProperties", ["periodicModeProperties"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/PeriodicModeProperties.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/PeriodicModeProperties.cs index e0d55748968a8..f49998e2ee486 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/PeriodicModeProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/PeriodicModeProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,49 @@ public partial class PeriodicModeProperties : ProvisionableConstruct /// /// An integer representing the interval in minutes between two backups. /// - public BicepValue BackupIntervalInMinutes { get => _backupIntervalInMinutes; set => _backupIntervalInMinutes.Assign(value); } - private readonly BicepValue _backupIntervalInMinutes; + public BicepValue BackupIntervalInMinutes + { + get { Initialize(); return _backupIntervalInMinutes!; } + set { Initialize(); _backupIntervalInMinutes!.Assign(value); } + } + private BicepValue? _backupIntervalInMinutes; /// /// An integer representing the time (in hours) that each backup is /// retained. /// - public BicepValue BackupRetentionIntervalInHours { get => _backupRetentionIntervalInHours; set => _backupRetentionIntervalInHours.Assign(value); } - private readonly BicepValue _backupRetentionIntervalInHours; + public BicepValue BackupRetentionIntervalInHours + { + get { Initialize(); return _backupRetentionIntervalInHours!; } + set { Initialize(); _backupRetentionIntervalInHours!.Assign(value); } + } + private BicepValue? _backupRetentionIntervalInHours; /// /// Enum to indicate type of backup residency. /// - public BicepValue BackupStorageRedundancy { get => _backupStorageRedundancy; set => _backupStorageRedundancy.Assign(value); } - private readonly BicepValue _backupStorageRedundancy; + public BicepValue BackupStorageRedundancy + { + get { Initialize(); return _backupStorageRedundancy!; } + set { Initialize(); _backupStorageRedundancy!.Assign(value); } + } + private BicepValue? _backupStorageRedundancy; /// /// Creates a new PeriodicModeProperties. /// public PeriodicModeProperties() { - _backupIntervalInMinutes = BicepValue.DefineProperty(this, "BackupIntervalInMinutes", ["backupIntervalInMinutes"]); - _backupRetentionIntervalInHours = BicepValue.DefineProperty(this, "BackupRetentionIntervalInHours", ["backupRetentionIntervalInHours"]); - _backupStorageRedundancy = BicepValue.DefineProperty(this, "BackupStorageRedundancy", ["backupStorageRedundancy"]); + } + + /// + /// Define all the provisionable properties of PeriodicModeProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _backupIntervalInMinutes = DefineProperty("BackupIntervalInMinutes", ["backupIntervalInMinutes"]); + _backupRetentionIntervalInHours = DefineProperty("BackupRetentionIntervalInHours", ["backupRetentionIntervalInHours"]); + _backupStorageRedundancy = DefineProperty("BackupStorageRedundancy", ["backupStorageRedundancy"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ResourceRestoreParameters.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ResourceRestoreParameters.cs index e5a3d99436983..9c6ef3e73a9f3 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ResourceRestoreParameters.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ResourceRestoreParameters.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,29 +20,49 @@ public partial class ResourceRestoreParameters : ProvisionableConstruct /// be initiated. For example: /// /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}. /// - public BicepValue RestoreSource { get => _restoreSource; set => _restoreSource.Assign(value); } - private readonly BicepValue _restoreSource; + public BicepValue RestoreSource + { + get { Initialize(); return _restoreSource!; } + set { Initialize(); _restoreSource!.Assign(value); } + } + private BicepValue? _restoreSource; /// /// Time to which the account has to be restored (ISO-8601 format). /// - public BicepValue RestoreTimestampInUtc { get => _restoreTimestampInUtc; set => _restoreTimestampInUtc.Assign(value); } - private readonly BicepValue _restoreTimestampInUtc; + public BicepValue RestoreTimestampInUtc + { + get { Initialize(); return _restoreTimestampInUtc!; } + set { Initialize(); _restoreTimestampInUtc!.Assign(value); } + } + private BicepValue? _restoreTimestampInUtc; /// /// Specifies whether the restored account will have Time-To-Live disabled /// upon the successful restore. /// - public BicepValue IsRestoreWithTtlDisabled { get => _isRestoreWithTtlDisabled; set => _isRestoreWithTtlDisabled.Assign(value); } - private readonly BicepValue _isRestoreWithTtlDisabled; + public BicepValue IsRestoreWithTtlDisabled + { + get { Initialize(); return _isRestoreWithTtlDisabled!; } + set { Initialize(); _isRestoreWithTtlDisabled!.Assign(value); } + } + private BicepValue? _isRestoreWithTtlDisabled; /// /// Creates a new ResourceRestoreParameters. /// public ResourceRestoreParameters() { - _restoreSource = BicepValue.DefineProperty(this, "RestoreSource", ["restoreSource"]); - _restoreTimestampInUtc = BicepValue.DefineProperty(this, "RestoreTimestampInUtc", ["restoreTimestampInUtc"]); - _isRestoreWithTtlDisabled = BicepValue.DefineProperty(this, "IsRestoreWithTtlDisabled", ["restoreWithTtlDisabled"]); + } + + /// + /// Define all the provisionable properties of ResourceRestoreParameters. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _restoreSource = DefineProperty("RestoreSource", ["restoreSource"]); + _restoreTimestampInUtc = DefineProperty("RestoreTimestampInUtc", ["restoreTimestampInUtc"]); + _isRestoreWithTtlDisabled = DefineProperty("IsRestoreWithTtlDisabled", ["restoreWithTtlDisabled"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/RestorableSqlContainerPropertiesResourceContainer.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/RestorableSqlContainerPropertiesResourceContainer.cs index b0769120ca02a..69645fe6fd72e 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/RestorableSqlContainerPropertiesResourceContainer.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/RestorableSqlContainerPropertiesResourceContainer.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -18,37 +20,58 @@ public partial class RestorableSqlContainerPropertiesResourceContainer : CosmosD /// A system generated property that specifies the addressable path of the /// container resource. /// - public BicepValue Self { get => _self; } - private readonly BicepValue _self; + public BicepValue Self + { + get { Initialize(); return _self!; } + } + private BicepValue? _self; /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new RestorableSqlContainerPropertiesResourceContainer. /// public RestorableSqlContainerPropertiesResourceContainer() : base() { - _self = BicepValue.DefineProperty(this, "Self", ["_self"], isOutput: true); - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// RestorableSqlContainerPropertiesResourceContainer. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _self = DefineProperty("Self", ["_self"], isOutput: true); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/RestorableSqlDatabasePropertiesResourceDatabase.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/RestorableSqlDatabasePropertiesResourceDatabase.cs index 3fdfc12fd5626..44663efda5395 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/RestorableSqlDatabasePropertiesResourceDatabase.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/RestorableSqlDatabasePropertiesResourceDatabase.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning.Primitives; using System; @@ -18,53 +20,80 @@ public partial class RestorableSqlDatabasePropertiesResourceDatabase : CosmosDBS /// A system generated property that specified the addressable path of the /// collections resource. /// - public BicepValue Colls { get => _colls; } - private readonly BicepValue _colls; + public BicepValue Colls + { + get { Initialize(); return _colls!; } + } + private BicepValue? _colls; /// /// A system generated property that specifies the addressable path of the /// users resource. /// - public BicepValue Users { get => _users; } - private readonly BicepValue _users; + public BicepValue Users + { + get { Initialize(); return _users!; } + } + private BicepValue? _users; /// /// A system generated property that specifies the addressable path of the /// database resource. /// - public BicepValue Self { get => _self; } - private readonly BicepValue _self; + public BicepValue Self + { + get { Initialize(); return _self!; } + } + private BicepValue? _self; /// /// A system generated property. A unique identifier. /// - public BicepValue Rid { get => _rid; } - private readonly BicepValue _rid; + public BicepValue Rid + { + get { Initialize(); return _rid!; } + } + private BicepValue? _rid; /// /// A system generated property that denotes the last updated timestamp of /// the resource. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// A system generated property representing the resource etag required for /// optimistic concurrency control. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Creates a new RestorableSqlDatabasePropertiesResourceDatabase. /// public RestorableSqlDatabasePropertiesResourceDatabase() : base() { - _colls = BicepValue.DefineProperty(this, "Colls", ["_colls"], isOutput: true); - _users = BicepValue.DefineProperty(this, "Users", ["_users"], isOutput: true); - _self = BicepValue.DefineProperty(this, "Self", ["_self"], isOutput: true); - _rid = BicepValue.DefineProperty(this, "Rid", ["_rid"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["_ts"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["_etag"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// RestorableSqlDatabasePropertiesResourceDatabase. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _colls = DefineProperty("Colls", ["_colls"], isOutput: true); + _users = DefineProperty("Users", ["_users"], isOutput: true); + _self = DefineProperty("Self", ["_self"], isOutput: true); + _rid = DefineProperty("Rid", ["_rid"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["_ts"], isOutput: true); + _eTag = DefineProperty("ETag", ["_etag"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/SpatialSpec.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/SpatialSpec.cs index 76f18bae2b2f6..d85a6516081ff 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/SpatialSpec.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/SpatialSpec.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,37 @@ public partial class SpatialSpec : ProvisionableConstruct /// The path for which the indexing behavior applies to. Index paths /// typically start with root and end with wildcard (/path/*). /// - public BicepValue Path { get => _path; set => _path.Assign(value); } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + set { Initialize(); _path!.Assign(value); } + } + private BicepValue? _path; /// /// List of path's spatial type. /// - public BicepList Types { get => _types; set => _types.Assign(value); } - private readonly BicepList _types; + public BicepList Types + { + get { Initialize(); return _types!; } + set { Initialize(); _types!.Assign(value); } + } + private BicepList? _types; /// /// Creates a new SpatialSpec. /// public SpatialSpec() { - _path = BicepValue.DefineProperty(this, "Path", ["path"]); - _types = BicepList.DefineProperty(this, "Types", ["types"]); + } + + /// + /// Define all the provisionable properties of SpatialSpec. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _path = DefineProperty("Path", ["path"]); + _types = DefineListProperty("Types", ["types"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/SqlDedicatedGatewayRegionalService.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/SqlDedicatedGatewayRegionalService.cs index 41508f4bd8502..eb3c6734370c5 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/SqlDedicatedGatewayRegionalService.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/SqlDedicatedGatewayRegionalService.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,56 @@ public partial class SqlDedicatedGatewayRegionalService : ProvisionableConstruct /// /// The regional endpoint for SqlDedicatedGateway. /// - public BicepValue SqlDedicatedGatewayEndpoint { get => _sqlDedicatedGatewayEndpoint; } - private readonly BicepValue _sqlDedicatedGatewayEndpoint; + public BicepValue SqlDedicatedGatewayEndpoint + { + get { Initialize(); return _sqlDedicatedGatewayEndpoint!; } + } + private BicepValue? _sqlDedicatedGatewayEndpoint; /// /// The regional service name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The location name. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Describes the status of a service. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Creates a new SqlDedicatedGatewayRegionalService. /// public SqlDedicatedGatewayRegionalService() { - _sqlDedicatedGatewayEndpoint = BicepValue.DefineProperty(this, "SqlDedicatedGatewayEndpoint", ["sqlDedicatedGatewayEndpoint"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["status"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// SqlDedicatedGatewayRegionalService. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _sqlDedicatedGatewayEndpoint = DefineProperty("SqlDedicatedGatewayEndpoint", ["sqlDedicatedGatewayEndpoint"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _status = DefineProperty("Status", ["status"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/SqlDedicatedGatewayServiceProperties.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/SqlDedicatedGatewayServiceProperties.cs index f26e85605451b..9ead85577f198 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/SqlDedicatedGatewayServiceProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/SqlDedicatedGatewayServiceProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,22 +20,38 @@ public partial class SqlDedicatedGatewayServiceProperties : CosmosDBServicePrope /// /// SqlDedicatedGateway endpoint for the service. /// - public BicepValue SqlDedicatedGatewayEndpoint { get => _sqlDedicatedGatewayEndpoint; set => _sqlDedicatedGatewayEndpoint.Assign(value); } - private readonly BicepValue _sqlDedicatedGatewayEndpoint; + public BicepValue SqlDedicatedGatewayEndpoint + { + get { Initialize(); return _sqlDedicatedGatewayEndpoint!; } + set { Initialize(); _sqlDedicatedGatewayEndpoint!.Assign(value); } + } + private BicepValue? _sqlDedicatedGatewayEndpoint; /// /// An array that contains all of the locations for the service. /// - public BicepList Locations { get => _locations; } - private readonly BicepList _locations; + public BicepList Locations + { + get { Initialize(); return _locations!; } + } + private BicepList? _locations; /// /// Creates a new SqlDedicatedGatewayServiceProperties. /// public SqlDedicatedGatewayServiceProperties() : base() { - BicepValue.DefineProperty(this, "serviceType", ["serviceType"], defaultValue: "SqlDedicatedGateway"); - _sqlDedicatedGatewayEndpoint = BicepValue.DefineProperty(this, "SqlDedicatedGatewayEndpoint", ["sqlDedicatedGatewayEndpoint"]); - _locations = BicepList.DefineProperty(this, "Locations", ["locations"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// SqlDedicatedGatewayServiceProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("serviceType", ["serviceType"], defaultValue: "SqlDedicatedGateway"); + _sqlDedicatedGatewayEndpoint = DefineProperty("SqlDedicatedGatewayEndpoint", ["sqlDedicatedGatewayEndpoint"]); + _locations = DefineListProperty("Locations", ["locations"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ThroughputPolicyResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ThroughputPolicyResourceInfo.cs index 32e6fdd3ab976..9be798b00cf9d 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ThroughputPolicyResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ThroughputPolicyResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,38 @@ public partial class ThroughputPolicyResourceInfo : ProvisionableConstruct /// /// Determines whether the ThroughputPolicy is active or not. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Represents the percentage by which throughput can increase every time /// throughput policy kicks in. /// - public BicepValue IncrementPercent { get => _incrementPercent; set => _incrementPercent.Assign(value); } - private readonly BicepValue _incrementPercent; + public BicepValue IncrementPercent + { + get { Initialize(); return _incrementPercent!; } + set { Initialize(); _incrementPercent!.Assign(value); } + } + private BicepValue? _incrementPercent; /// /// Creates a new ThroughputPolicyResourceInfo. /// public ThroughputPolicyResourceInfo() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["isEnabled"]); - _incrementPercent = BicepValue.DefineProperty(this, "IncrementPercent", ["incrementPercent"]); + } + + /// + /// Define all the provisionable properties of ThroughputPolicyResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["isEnabled"]); + _incrementPercent = DefineProperty("IncrementPercent", ["incrementPercent"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ThroughputSettingsResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ThroughputSettingsResourceInfo.cs index d66a9c4fc5b94..6aa6d0e6fa11d 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ThroughputSettingsResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/Models/ThroughputSettingsResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,52 +20,81 @@ public partial class ThroughputSettingsResourceInfo : ProvisionableConstruct /// Value of the Cosmos DB resource throughput. Either throughput is /// required or autoscaleSettings is required, but not both. /// - public BicepValue Throughput { get => _throughput; set => _throughput.Assign(value); } - private readonly BicepValue _throughput; + public BicepValue Throughput + { + get { Initialize(); return _throughput!; } + set { Initialize(); _throughput!.Assign(value); } + } + private BicepValue? _throughput; /// /// Cosmos DB resource for autoscale settings. Either throughput is /// required or autoscaleSettings is required, but not both. /// - public BicepValue AutoscaleSettings { get => _autoscaleSettings; set => _autoscaleSettings.Assign(value); } - private readonly BicepValue _autoscaleSettings; + public AutoscaleSettingsResourceInfo AutoscaleSettings + { + get { Initialize(); return _autoscaleSettings!; } + set { Initialize(); AssignOrReplace(ref _autoscaleSettings, value); } + } + private AutoscaleSettingsResourceInfo? _autoscaleSettings; /// /// The minimum throughput of the resource. /// - public BicepValue MinimumThroughput { get => _minimumThroughput; } - private readonly BicepValue _minimumThroughput; + public BicepValue MinimumThroughput + { + get { Initialize(); return _minimumThroughput!; } + } + private BicepValue? _minimumThroughput; /// /// The throughput replace is pending. /// - public BicepValue OfferReplacePending { get => _offerReplacePending; } - private readonly BicepValue _offerReplacePending; + public BicepValue OfferReplacePending + { + get { Initialize(); return _offerReplacePending!; } + } + private BicepValue? _offerReplacePending; /// /// The offer throughput value to instantly scale up without triggering /// splits. /// - public BicepValue InstantMaximumThroughput { get => _instantMaximumThroughput; } - private readonly BicepValue _instantMaximumThroughput; + public BicepValue InstantMaximumThroughput + { + get { Initialize(); return _instantMaximumThroughput!; } + } + private BicepValue? _instantMaximumThroughput; /// /// The maximum throughput value or the maximum maxThroughput value (for /// autoscale) that can be specified. /// - public BicepValue SoftAllowedMaximumThroughput { get => _softAllowedMaximumThroughput; } - private readonly BicepValue _softAllowedMaximumThroughput; + public BicepValue SoftAllowedMaximumThroughput + { + get { Initialize(); return _softAllowedMaximumThroughput!; } + } + private BicepValue? _softAllowedMaximumThroughput; /// /// Creates a new ThroughputSettingsResourceInfo. /// public ThroughputSettingsResourceInfo() { - _throughput = BicepValue.DefineProperty(this, "Throughput", ["throughput"]); - _autoscaleSettings = BicepValue.DefineProperty(this, "AutoscaleSettings", ["autoscaleSettings"]); - _minimumThroughput = BicepValue.DefineProperty(this, "MinimumThroughput", ["minimumThroughput"], isOutput: true); - _offerReplacePending = BicepValue.DefineProperty(this, "OfferReplacePending", ["offerReplacePending"], isOutput: true); - _instantMaximumThroughput = BicepValue.DefineProperty(this, "InstantMaximumThroughput", ["instantMaximumThroughput"], isOutput: true); - _softAllowedMaximumThroughput = BicepValue.DefineProperty(this, "SoftAllowedMaximumThroughput", ["softAllowedMaximumThroughput"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ThroughputSettingsResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _throughput = DefineProperty("Throughput", ["throughput"]); + _autoscaleSettings = DefineModelProperty("AutoscaleSettings", ["autoscaleSettings"]); + _minimumThroughput = DefineProperty("MinimumThroughput", ["minimumThroughput"], isOutput: true); + _offerReplacePending = DefineProperty("OfferReplacePending", ["offerReplacePending"], isOutput: true); + _instantMaximumThroughput = DefineProperty("InstantMaximumThroughput", ["instantMaximumThroughput"], isOutput: true); + _softAllowedMaximumThroughput = DefineProperty("SoftAllowedMaximumThroughput", ["softAllowedMaximumThroughput"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoCluster.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoCluster.cs index e719f9e48235f..0f2f36b9be43c 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoCluster.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoCluster.cs @@ -21,93 +21,147 @@ public partial class MongoCluster : ProvisionableResource /// /// The name of the mongo cluster. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The administrator's login for the mongo cluster. /// - public BicepValue AdministratorLogin { get => _administratorLogin; set => _administratorLogin.Assign(value); } - private readonly BicepValue _administratorLogin; + public BicepValue AdministratorLogin + { + get { Initialize(); return _administratorLogin!; } + set { Initialize(); _administratorLogin!.Assign(value); } + } + private BicepValue? _administratorLogin; /// /// The password of the administrator login. /// - public BicepValue AdministratorLoginPassword { get => _administratorLoginPassword; set => _administratorLoginPassword.Assign(value); } - private readonly BicepValue _administratorLoginPassword; + public BicepValue AdministratorLoginPassword + { + get { Initialize(); return _administratorLoginPassword!; } + set { Initialize(); _administratorLoginPassword!.Assign(value); } + } + private BicepValue? _administratorLoginPassword; /// /// The mode to create a mongo cluster. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// The list of node group specs in the cluster. /// - public BicepList NodeGroupSpecs { get => _nodeGroupSpecs; set => _nodeGroupSpecs.Assign(value); } - private readonly BicepList _nodeGroupSpecs; + public BicepList NodeGroupSpecs + { + get { Initialize(); return _nodeGroupSpecs!; } + set { Initialize(); _nodeGroupSpecs!.Assign(value); } + } + private BicepList? _nodeGroupSpecs; /// /// Parameters used for restore operations. /// - public BicepValue RestoreParameters { get => _restoreParameters; set => _restoreParameters.Assign(value); } - private readonly BicepValue _restoreParameters; + public MongoClusterRestoreParameters RestoreParameters + { + get { Initialize(); return _restoreParameters!; } + set { Initialize(); AssignOrReplace(ref _restoreParameters, value); } + } + private MongoClusterRestoreParameters? _restoreParameters; /// /// The Mongo DB server version. Defaults to the latest available version /// if not specified. /// - public BicepValue ServerVersion { get => _serverVersion; set => _serverVersion.Assign(value); } - private readonly BicepValue _serverVersion; + public BicepValue ServerVersion + { + get { Initialize(); return _serverVersion!; } + set { Initialize(); _serverVersion!.Assign(value); } + } + private BicepValue? _serverVersion; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// A status of the mongo cluster. /// - public BicepValue ClusterStatus { get => _clusterStatus; } - private readonly BicepValue _clusterStatus; + public BicepValue ClusterStatus + { + get { Initialize(); return _clusterStatus!; } + } + private BicepValue? _clusterStatus; /// /// The default mongo connection string for the cluster. /// - public BicepValue ConnectionString { get => _connectionString; } - private readonly BicepValue _connectionString; + public BicepValue ConnectionString + { + get { Initialize(); return _connectionString!; } + } + private BicepValue? _connectionString; /// /// Earliest restore timestamp in UTC ISO8601 format. /// - public BicepValue EarliestRestoreTime { get => _earliestRestoreTime; } - private readonly BicepValue _earliestRestoreTime; + public BicepValue EarliestRestoreTime + { + get { Initialize(); return _earliestRestoreTime!; } + } + private BicepValue? _earliestRestoreTime; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// A provisioning state of the mongo cluster. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new MongoCluster. @@ -122,21 +176,28 @@ public partial class MongoCluster : ProvisionableResource public MongoCluster(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/mongoClusters", resourceVersion ?? "2024-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _administratorLogin = BicepValue.DefineProperty(this, "AdministratorLogin", ["properties", "administratorLogin"]); - _administratorLoginPassword = BicepValue.DefineProperty(this, "AdministratorLoginPassword", ["properties", "administratorLoginPassword"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["properties", "createMode"]); - _nodeGroupSpecs = BicepList.DefineProperty(this, "NodeGroupSpecs", ["properties", "nodeGroupSpecs"]); - _restoreParameters = BicepValue.DefineProperty(this, "RestoreParameters", ["properties", "restoreParameters"]); - _serverVersion = BicepValue.DefineProperty(this, "ServerVersion", ["properties", "serverVersion"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _clusterStatus = BicepValue.DefineProperty(this, "ClusterStatus", ["properties", "clusterStatus"], isOutput: true); - _connectionString = BicepValue.DefineProperty(this, "ConnectionString", ["properties", "connectionString"], isOutput: true); - _earliestRestoreTime = BicepValue.DefineProperty(this, "EarliestRestoreTime", ["properties", "earliestRestoreTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of MongoCluster. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _administratorLogin = DefineProperty("AdministratorLogin", ["properties", "administratorLogin"]); + _administratorLoginPassword = DefineProperty("AdministratorLoginPassword", ["properties", "administratorLoginPassword"]); + _createMode = DefineProperty("CreateMode", ["properties", "createMode"]); + _nodeGroupSpecs = DefineListProperty("NodeGroupSpecs", ["properties", "nodeGroupSpecs"]); + _restoreParameters = DefineModelProperty("RestoreParameters", ["properties", "restoreParameters"]); + _serverVersion = DefineProperty("ServerVersion", ["properties", "serverVersion"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _clusterStatus = DefineProperty("ClusterStatus", ["properties", "clusterStatus"], isOutput: true); + _connectionString = DefineProperty("ConnectionString", ["properties", "connectionString"], isOutput: true); + _earliestRestoreTime = DefineProperty("EarliestRestoreTime", ["properties", "earliestRestoreTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBCollection.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBCollection.cs index 2767280f6d564..f0da9073e9d44 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBCollection.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBCollection.cs @@ -21,57 +21,91 @@ public partial class MongoDBCollection : ProvisionableResource /// /// Cosmos DB collection name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a MongoDB collection. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public MongoDBCollectionResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private MongoDBCollectionResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent MongoDBDatabase. /// - public MongoDBDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public MongoDBDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new MongoDBCollection. @@ -86,15 +120,22 @@ public partial class MongoDBCollection : ProvisionableResource public MongoDBCollection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of MongoDBCollection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBCollectionThroughputSetting.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBCollectionThroughputSetting.cs index a82267e1a3db4..3316aa0ccfa09 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBCollectionThroughputSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBCollectionThroughputSetting.cs @@ -21,50 +21,79 @@ public partial class MongoDBCollectionThroughputSetting : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a resource throughput. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public ThroughputSettingsResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private ThroughputSettingsResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent MongoDBCollection. /// - public MongoDBCollection? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public MongoDBCollection? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new MongoDBCollectionThroughputSetting. @@ -79,14 +108,22 @@ public partial class MongoDBCollectionThroughputSetting : ProvisionableResource public MongoDBCollectionThroughputSetting(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// MongoDBCollectionThroughputSetting. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBDatabase.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBDatabase.cs index 1624c5d32ee08..5bdfa8e077e8f 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBDatabase.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBDatabase.cs @@ -21,57 +21,91 @@ public partial class MongoDBDatabase : ProvisionableResource /// /// Cosmos DB database name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a MongoDB database. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public MongoDBDatabaseResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private MongoDBDatabaseResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A key-value pair of options to be applied for the request. This /// corresponds to the headers sent with the request. /// - public BicepValue Options { get => _options; set => _options.Assign(value); } - private readonly BicepValue _options; + public CosmosDBCreateUpdateConfig Options + { + get { Initialize(); return _options!; } + set { Initialize(); AssignOrReplace(ref _options, value); } + } + private CosmosDBCreateUpdateConfig? _options; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBAccount. /// - public CosmosDBAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new MongoDBDatabase. @@ -86,15 +120,22 @@ public partial class MongoDBDatabase : ProvisionableResource public MongoDBDatabase(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _options = BicepValue.DefineProperty(this, "Options", ["properties", "options"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of MongoDBDatabase. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _options = DefineModelProperty("Options", ["properties", "options"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBDatabaseThroughputSetting.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBDatabaseThroughputSetting.cs index eb1368226e7ec..49b0d058372ec 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBDatabaseThroughputSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBDatabaseThroughputSetting.cs @@ -21,50 +21,79 @@ public partial class MongoDBDatabaseThroughputSetting : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The standard JSON format of a resource throughput. /// - public BicepValue Resource { get => _resource; set => _resource.Assign(value); } - private readonly BicepValue _resource; + public ThroughputSettingsResourceInfo Resource + { + get { Initialize(); return _resource!; } + set { Initialize(); AssignOrReplace(ref _resource, value); } + } + private ThroughputSettingsResourceInfo? _resource; /// /// Identity for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent MongoDBDatabase. /// - public MongoDBDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public MongoDBDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new MongoDBDatabaseThroughputSetting. @@ -79,14 +108,22 @@ public partial class MongoDBDatabaseThroughputSetting : ProvisionableResource public MongoDBDatabaseThroughputSetting(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _resource = BicepValue.DefineProperty(this, "Resource", ["properties", "resource"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// MongoDBDatabaseThroughputSetting. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _resource = DefineModelProperty("Resource", ["properties", "resource"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBRoleDefinition.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBRoleDefinition.cs index 19a833a0e3a31..86bed9be38745 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBRoleDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBRoleDefinition.cs @@ -21,21 +21,32 @@ public partial class MongoDBRoleDefinition : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The database name for which access is being granted for this Role /// Definition. /// - public BicepValue DatabaseName { get => _databaseName; set => _databaseName.Assign(value); } - private readonly BicepValue _databaseName; + public BicepValue DatabaseName + { + get { Initialize(); return _databaseName!; } + set { Initialize(); _databaseName!.Assign(value); } + } + private BicepValue? _databaseName; /// /// Indicates whether the Role Definition was built-in or user created. /// - public BicepValue DefinitionType { get => _definitionType; set => _definitionType.Assign(value); } - private readonly BicepValue _definitionType; + public BicepValue DefinitionType + { + get { Initialize(); return _definitionType!; } + set { Initialize(); _definitionType!.Assign(value); } + } + private BicepValue? _definitionType; /// /// A set of privileges contained by the Role Definition. This will allow @@ -43,39 +54,61 @@ public partial class MongoDBRoleDefinition : ProvisionableResource /// any underlying Database / Collection. Scopes higher than Database are /// not enforceable as privilege. /// - public BicepList Privileges { get => _privileges; set => _privileges.Assign(value); } - private readonly BicepList _privileges; + public BicepList Privileges + { + get { Initialize(); return _privileges!; } + set { Initialize(); _privileges!.Assign(value); } + } + private BicepList? _privileges; /// /// A user-friendly name for the Role Definition. Must be unique for the /// database account. /// - public BicepValue RoleName { get => _roleName; set => _roleName.Assign(value); } - private readonly BicepValue _roleName; + public BicepValue RoleName + { + get { Initialize(); return _roleName!; } + set { Initialize(); _roleName!.Assign(value); } + } + private BicepValue? _roleName; /// /// The set of roles inherited by this Role Definition. /// - public BicepList Roles { get => _roles; set => _roles.Assign(value); } - private readonly BicepList _roles; + public BicepList Roles + { + get { Initialize(); return _roles!; } + set { Initialize(); _roles!.Assign(value); } + } + private BicepList? _roles; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBAccount. /// - public CosmosDBAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new MongoDBRoleDefinition. @@ -90,15 +123,22 @@ public partial class MongoDBRoleDefinition : ProvisionableResource public MongoDBRoleDefinition(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _databaseName = BicepValue.DefineProperty(this, "DatabaseName", ["properties", "databaseName"]); - _definitionType = BicepValue.DefineProperty(this, "DefinitionType", ["properties", "type"]); - _privileges = BicepList.DefineProperty(this, "Privileges", ["properties", "privileges"]); - _roleName = BicepValue.DefineProperty(this, "RoleName", ["properties", "roleName"]); - _roles = BicepList.DefineProperty(this, "Roles", ["properties", "roles"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of MongoDBRoleDefinition. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _databaseName = DefineProperty("DatabaseName", ["properties", "databaseName"]); + _definitionType = DefineProperty("DefinitionType", ["properties", "type"]); + _privileges = DefineListProperty("Privileges", ["properties", "privileges"]); + _roleName = DefineProperty("RoleName", ["properties", "roleName"]); + _roles = DefineListProperty("Roles", ["properties", "roles"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBUserDefinition.cs b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBUserDefinition.cs index 3ba269ab74285..b99ab1c120136 100644 --- a/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBUserDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning.CosmosDB/src/Generated/MongoDBUserDefinition.cs @@ -21,65 +21,102 @@ public partial class MongoDBUserDefinition : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// A custom definition for the USer Definition. /// - public BicepValue CustomData { get => _customData; set => _customData.Assign(value); } - private readonly BicepValue _customData; + public BicepValue CustomData + { + get { Initialize(); return _customData!; } + set { Initialize(); _customData!.Assign(value); } + } + private BicepValue? _customData; /// /// The database name for which access is being granted for this User /// Definition. /// - public BicepValue DatabaseName { get => _databaseName; set => _databaseName.Assign(value); } - private readonly BicepValue _databaseName; + public BicepValue DatabaseName + { + get { Initialize(); return _databaseName!; } + set { Initialize(); _databaseName!.Assign(value); } + } + private BicepValue? _databaseName; /// /// The Mongo Auth mechanism. For now, we only support auth mechanism /// SCRAM-SHA-256. /// - public BicepValue Mechanisms { get => _mechanisms; set => _mechanisms.Assign(value); } - private readonly BicepValue _mechanisms; + public BicepValue Mechanisms + { + get { Initialize(); return _mechanisms!; } + set { Initialize(); _mechanisms!.Assign(value); } + } + private BicepValue? _mechanisms; /// /// The password for User Definition. Response does not contain user /// password. /// - public BicepValue Password { get => _password; set => _password.Assign(value); } - private readonly BicepValue _password; + public BicepValue Password + { + get { Initialize(); return _password!; } + set { Initialize(); _password!.Assign(value); } + } + private BicepValue? _password; /// /// The set of roles inherited by the User Definition. /// - public BicepList Roles { get => _roles; set => _roles.Assign(value); } - private readonly BicepList _roles; + public BicepList Roles + { + get { Initialize(); return _roles!; } + set { Initialize(); _roles!.Assign(value); } + } + private BicepList? _roles; /// /// The user name for User Definition. /// - public BicepValue UserName { get => _userName; set => _userName.Assign(value); } - private readonly BicepValue _userName; + public BicepValue UserName + { + get { Initialize(); return _userName!; } + set { Initialize(); _userName!.Assign(value); } + } + private BicepValue? _userName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent CosmosDBAccount. /// - public CosmosDBAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public CosmosDBAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new MongoDBUserDefinition. @@ -94,16 +131,23 @@ public partial class MongoDBUserDefinition : ProvisionableResource public MongoDBUserDefinition(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions", resourceVersion ?? "2024-08-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _customData = BicepValue.DefineProperty(this, "CustomData", ["properties", "customData"]); - _databaseName = BicepValue.DefineProperty(this, "DatabaseName", ["properties", "databaseName"]); - _mechanisms = BicepValue.DefineProperty(this, "Mechanisms", ["properties", "mechanisms"]); - _password = BicepValue.DefineProperty(this, "Password", ["properties", "password"]); - _roles = BicepList.DefineProperty(this, "Roles", ["properties", "roles"]); - _userName = BicepValue.DefineProperty(this, "UserName", ["properties", "userName"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of MongoDBUserDefinition. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _customData = DefineProperty("CustomData", ["properties", "customData"]); + _databaseName = DefineProperty("DatabaseName", ["properties", "databaseName"]); + _mechanisms = DefineProperty("Mechanisms", ["properties", "mechanisms"]); + _password = DefineProperty("Password", ["properties", "password"]); + _roles = DefineListProperty("Roles", ["properties", "roles"]); + _userName = DefineProperty("UserName", ["properties", "userName"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/api/Azure.Provisioning.EventGrid.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/api/Azure.Provisioning.EventGrid.netstandard2.0.cs index 5e561b211a480..403975692dbe7 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/api/Azure.Provisioning.EventGrid.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/api/Azure.Provisioning.EventGrid.netstandard2.0.cs @@ -4,6 +4,7 @@ public partial class AdvancedFilter : Azure.Provisioning.Primitives.Provisionabl { public AdvancedFilter() { } public Azure.Provisioning.BicepValue Key { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum AlternativeAuthenticationNameSource { @@ -19,6 +20,7 @@ public partial class AzureADPartnerClientAuthentication : Azure.Provisioning.Eve public AzureADPartnerClientAuthentication() { } public Azure.Provisioning.BicepValue AzureActiveDirectoryApplicationIdOrUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue AzureActiveDirectoryTenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class AzureFunctionEventSubscriptionDestination : Azure.Provisioning.EventGrid.EventSubscriptionDestination { @@ -27,16 +29,19 @@ public AzureFunctionEventSubscriptionDestination() { } public Azure.Provisioning.BicepValue MaxEventsPerBatch { get { throw null; } set { } } public Azure.Provisioning.BicepValue PreferredBatchSizeInKilobytes { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class BoolEqualsAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public BoolEqualsAdvancedFilter() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class BoolEqualsFilter : Azure.Provisioning.EventGrid.EventGridFilter { public BoolEqualsFilter() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CaCertificate : Azure.Provisioning.Primitives.ProvisionableResource { @@ -49,7 +54,8 @@ public partial class CaCertificate : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.EventGridNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.CaCertificate FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -69,13 +75,15 @@ public partial class ClientAuthenticationSettings : Azure.Provisioning.Primitive { public ClientAuthenticationSettings() { } public Azure.Provisioning.BicepList AlternativeAuthenticationNameSources { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CustomJwtAuthentication { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.CustomJwtAuthenticationSettings CustomJwtAuthentication { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ClientCertificateAuthentication : Azure.Provisioning.Primitives.ProvisionableConstruct { public ClientCertificateAuthentication() { } public Azure.Provisioning.BicepList AllowedThumbprints { get { throw null; } set { } } public Azure.Provisioning.BicepValue ValidationScheme { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ClientCertificateValidationScheme { @@ -104,14 +112,16 @@ public CustomDomainConfiguration() { } public Azure.Provisioning.BicepValue ExpectedTxtRecordName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExpectedTxtRecordValue { get { throw null; } set { } } public Azure.Provisioning.BicepValue FullyQualifiedDomainName { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.CustomDomainIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue ValidationState { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class CustomDomainIdentity : Azure.Provisioning.Primitives.ProvisionableConstruct { public CustomDomainIdentity() { } public Azure.Provisioning.BicepValue IdentityType { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserAssignedIdentity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CustomDomainIdentityType { @@ -129,6 +139,7 @@ public partial class CustomJwtAuthenticationManagedIdentity : Azure.Provisioning public CustomJwtAuthenticationManagedIdentity() { } public Azure.Provisioning.BicepValue IdentityType { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserAssignedIdentity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CustomJwtAuthenticationManagedIdentityType { @@ -140,6 +151,7 @@ public partial class CustomJwtAuthenticationSettings : Azure.Provisioning.Primit public CustomJwtAuthenticationSettings() { } public Azure.Provisioning.BicepList IssuerCertificates { get { throw null; } set { } } public Azure.Provisioning.BicepValue TokenIssuer { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum DataResidencyBoundary { @@ -149,24 +161,28 @@ public enum DataResidencyBoundary public partial class DeadLetterDestination : Azure.Provisioning.Primitives.ProvisionableConstruct { public DeadLetterDestination() { } + protected override void DefineProvisionableProperties() { } } public partial class DeadLetterWithResourceIdentity : Azure.Provisioning.Primitives.ProvisionableConstruct { public DeadLetterWithResourceIdentity() { } - public Azure.Provisioning.BicepValue DeadLetterDestination { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterDestination DeadLetterDestination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionIdentity Identity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class DeliveryAttributeMapping : Azure.Provisioning.Primitives.ProvisionableConstruct { public DeliveryAttributeMapping() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class DeliveryConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public DeliveryConfiguration() { } public Azure.Provisioning.BicepValue DeliveryMode { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Push { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Queue { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.PushInfo Push { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.QueueInfo Queue { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum DeliveryMode { @@ -181,27 +197,29 @@ public enum DeliverySchema public partial class DeliveryWithResourceIdentity : Azure.Provisioning.Primitives.ProvisionableConstruct { public DeliveryWithResourceIdentity() { } - public Azure.Provisioning.BicepValue Destination { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionDestination Destination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionIdentity Identity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class DomainEventSubscription : Azure.Provisioning.Primitives.ProvisionableResource { public DomainEventSubscription(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue DeadLetterDestination { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeadLetterWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeliveryWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Destination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterDestination DeadLetterDestination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeliveryWithResourceIdentity DeliveryWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionDestination Destination { get { throw null; } set { } } public Azure.Provisioning.BicepValue EventDeliverySchema { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Filter { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionFilter Filter { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepList Labels { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.EventGridDomain? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue RetryPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.EventGrid.EventSubscriptionRetryPolicy RetryPolicy { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Topic { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.DomainEventSubscription FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -218,7 +236,8 @@ public partial class DomainTopic : Azure.Provisioning.Primitives.ProvisionableRe public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.EventGridDomain? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.DomainTopic FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -233,21 +252,22 @@ public static partial class ResourceVersions public partial class DomainTopicEventSubscription : Azure.Provisioning.Primitives.ProvisionableResource { public DomainTopicEventSubscription(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue DeadLetterDestination { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeadLetterWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeliveryWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Destination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterDestination DeadLetterDestination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeliveryWithResourceIdentity DeliveryWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionDestination Destination { get { throw null; } set { } } public Azure.Provisioning.BicepValue EventDeliverySchema { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Filter { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionFilter Filter { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepList Labels { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.DomainTopic? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue RetryPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.EventGrid.EventSubscriptionRetryPolicy RetryPolicy { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Topic { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.DomainTopicEventSubscription FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -270,12 +290,14 @@ public partial class DynamicDeliveryAttributeMapping : Azure.Provisioning.EventG { public DynamicDeliveryAttributeMapping() { } public Azure.Provisioning.BicepValue SourceField { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class DynamicRoutingEnrichment : Azure.Provisioning.Primitives.ProvisionableConstruct { public DynamicRoutingEnrichment() { } public Azure.Provisioning.BicepValue Key { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EventDefinitionKind { @@ -316,12 +338,12 @@ public partial class EventGridDomain : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.BicepValue AutoDeleteTopicWithLastSubscription { get { throw null; } set { } } public Azure.Provisioning.BicepValue DataResidencyBoundary { get { throw null; } set { } } public Azure.Provisioning.BicepValue Endpoint { get { throw null; } } - public Azure.Provisioning.BicepValue EventTypeInfo { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.PartnerTopicEventTypeInfo EventTypeInfo { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepList InboundIPRules { get { throw null; } set { } } public Azure.Provisioning.BicepValue InputSchema { get { throw null; } set { } } - public Azure.Provisioning.BicepValue InputSchemaMapping { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventGridInputSchemaMapping InputSchemaMapping { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsLocalAuthDisabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue MetricResourceId { get { throw null; } } @@ -331,8 +353,9 @@ public partial class EventGridDomain : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue SkuName { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.EventGridDomain FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -347,14 +370,15 @@ public static partial class ResourceVersions public partial class EventGridDomainPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public EventGridDomainPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventGridPrivateEndpointConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepList GroupIds { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.EventGridDomain? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.EventGridDomainPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -377,12 +401,14 @@ public partial class EventGridFilter : Azure.Provisioning.Primitives.Provisionab { public EventGridFilter() { } public Azure.Provisioning.BicepValue Key { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class EventGridInboundIPRule : Azure.Provisioning.Primitives.ProvisionableConstruct { public EventGridInboundIPRule() { } public Azure.Provisioning.BicepValue Action { get { throw null; } set { } } public Azure.Provisioning.BicepValue IPMask { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EventGridInputSchema { @@ -393,6 +419,7 @@ public enum EventGridInputSchema public partial class EventGridInputSchemaMapping : Azure.Provisioning.Primitives.ProvisionableConstruct { public EventGridInputSchemaMapping() { } + protected override void DefineProvisionableProperties() { } } public enum EventGridIPActionType { @@ -401,18 +428,19 @@ public enum EventGridIPActionType public partial class EventGridJsonInputSchemaMapping : Azure.Provisioning.EventGrid.EventGridInputSchemaMapping { public EventGridJsonInputSchemaMapping() { } - public Azure.Provisioning.BicepValue DataVersion { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.JsonFieldWithDefault DataVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue EventTimeSourceField { get { throw null; } set { } } - public Azure.Provisioning.BicepValue EventType { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.JsonFieldWithDefault EventType { get { throw null; } set { } } public Azure.Provisioning.BicepValue IdSourceField { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Subject { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.JsonFieldWithDefault Subject { get { throw null; } set { } } public Azure.Provisioning.BicepValue TopicSourceField { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class EventGridNamespace : Azure.Provisioning.Primitives.ProvisionableResource { public EventGridNamespace(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepList InboundIPRules { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsZoneRedundant { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } @@ -421,11 +449,12 @@ public partial class EventGridNamespace : Azure.Provisioning.Primitives.Provisio public Azure.Provisioning.BicepList PrivateEndpointConnections { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.EventGrid.NamespaceSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TopicsConfiguration { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TopicSpacesConfiguration { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.TopicsConfiguration TopicsConfiguration { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.TopicSpacesConfiguration TopicSpacesConfiguration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.EventGridNamespace FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public partial class EventGridNamespaceClientGroup : Azure.Provisioning.Primitives.ProvisionableResource @@ -437,7 +466,8 @@ public partial class EventGridNamespaceClientGroup : Azure.Provisioning.Primitiv public Azure.Provisioning.EventGrid.EventGridNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue Query { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.EventGridNamespaceClientGroup FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -458,14 +488,15 @@ public partial class EventGridNamespaceClientResource : Azure.Provisioning.Primi public EventGridNamespaceClientResource(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepDictionary Attributes { get { throw null; } set { } } public Azure.Provisioning.BicepValue AuthenticationName { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ClientCertificateAuthentication { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.ClientCertificateAuthentication ClientCertificateAuthentication { get { throw null; } set { } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.EventGridNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.EventGridNamespaceClientResource FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -486,8 +517,9 @@ public partial class EventGridNamespacePermissionBinding : Azure.Provisioning.Pr public Azure.Provisioning.EventGrid.EventGridNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Permission { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TopicSpaceName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.EventGridNamespacePermissionBinding FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -499,18 +531,20 @@ public EventGridPartnerContent() { } public Azure.Provisioning.BicepValue AuthorizationExpireOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue PartnerName { get { throw null; } set { } } public Azure.Provisioning.BicepValue PartnerRegistrationImmutableId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class EventGridPartnerNamespacePrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public EventGridPartnerNamespacePrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventGridPrivateEndpointConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepList GroupIds { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.PartnerNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.EventGridPartnerNamespacePrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -520,13 +554,14 @@ public static partial class ResourceVersions public partial class EventGridPrivateEndpointConnectionData : Azure.Provisioning.Primitives.ProvisionableConstruct { public EventGridPrivateEndpointConnectionData() { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventGridPrivateEndpointConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepList GroupIds { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class EventGridPrivateEndpointConnectionState : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -534,6 +569,7 @@ public EventGridPrivateEndpointConnectionState() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EventGridPrivateEndpointPersistedConnectionStatus { @@ -571,13 +607,13 @@ public partial class EventGridTopic : Azure.Provisioning.Primitives.Provisionabl public EventGridTopic(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue DataResidencyBoundary { get { throw null; } set { } } public Azure.Provisioning.BicepValue Endpoint { get { throw null; } } - public Azure.Provisioning.BicepValue EventTypeInfo { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ExtendedLocation { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.PartnerTopicEventTypeInfo EventTypeInfo { get { throw null; } set { } } + public Azure.Provisioning.Resources.ExtendedAzureLocation ExtendedLocation { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepList InboundIPRules { get { throw null; } set { } } public Azure.Provisioning.BicepValue InputSchema { get { throw null; } set { } } - public Azure.Provisioning.BicepValue InputSchemaMapping { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventGridInputSchemaMapping InputSchemaMapping { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsLocalAuthDisabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } @@ -588,8 +624,9 @@ public partial class EventGridTopic : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue SkuName { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.EventGridTopic FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -606,14 +643,15 @@ public static partial class ResourceVersions public partial class EventGridTopicPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public EventGridTopicPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventGridPrivateEndpointConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepList GroupIds { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.EventGridTopic? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.EventGridTopicPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -639,6 +677,7 @@ public partial class EventHubEventSubscriptionDestination : Azure.Provisioning.E public EventHubEventSubscriptionDestination() { } public Azure.Provisioning.BicepList DeliveryAttributeMappings { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EventInputSchema { @@ -648,20 +687,21 @@ public enum EventInputSchema public partial class EventSubscription : Azure.Provisioning.Primitives.ProvisionableResource { public EventSubscription(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue DeadLetterDestination { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeadLetterWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeliveryWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Destination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterDestination DeadLetterDestination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeliveryWithResourceIdentity DeliveryWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionDestination Destination { get { throw null; } set { } } public Azure.Provisioning.BicepValue EventDeliverySchema { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Filter { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionFilter Filter { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepList Labels { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue RetryPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.EventGrid.EventSubscriptionRetryPolicy RetryPolicy { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Topic { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.EventSubscription FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -678,6 +718,7 @@ public static partial class ResourceVersions public partial class EventSubscriptionDestination : Azure.Provisioning.Primitives.ProvisionableConstruct { public EventSubscriptionDestination() { } + protected override void DefineProvisionableProperties() { } } public partial class EventSubscriptionFilter : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -688,12 +729,14 @@ public EventSubscriptionFilter() { } public Azure.Provisioning.BicepValue IsSubjectCaseSensitive { get { throw null; } set { } } public Azure.Provisioning.BicepValue SubjectBeginsWith { get { throw null; } set { } } public Azure.Provisioning.BicepValue SubjectEndsWith { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class EventSubscriptionIdentity : Azure.Provisioning.Primitives.ProvisionableConstruct { public EventSubscriptionIdentity() { } public Azure.Provisioning.BicepValue IdentityType { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserAssignedIdentity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EventSubscriptionIdentityType { @@ -715,18 +758,21 @@ public partial class EventSubscriptionRetryPolicy : Azure.Provisioning.Primitive public EventSubscriptionRetryPolicy() { } public Azure.Provisioning.BicepValue EventTimeToLiveInMinutes { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxDeliveryAttempts { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class FiltersConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public FiltersConfiguration() { } public Azure.Provisioning.BicepList Filters { get { throw null; } set { } } public Azure.Provisioning.BicepList IncludedEventTypes { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class HybridConnectionEventSubscriptionDestination : Azure.Provisioning.EventGrid.EventSubscriptionDestination { public HybridConnectionEventSubscriptionDestination() { } public Azure.Provisioning.BicepList DeliveryAttributeMappings { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class InlineEventProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -735,34 +781,41 @@ public InlineEventProperties() { } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue DisplayName { get { throw null; } set { } } public Azure.Provisioning.BicepValue DocumentationUri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class IsNotNullAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public IsNotNullAdvancedFilter() { } + protected override void DefineProvisionableProperties() { } } public partial class IsNotNullFilter : Azure.Provisioning.EventGrid.EventGridFilter { public IsNotNullFilter() { } + protected override void DefineProvisionableProperties() { } } public partial class IsNullOrUndefinedAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public IsNullOrUndefinedAdvancedFilter() { } + protected override void DefineProvisionableProperties() { } } public partial class IsNullOrUndefinedFilter : Azure.Provisioning.EventGrid.EventGridFilter { public IsNullOrUndefinedFilter() { } + protected override void DefineProvisionableProperties() { } } public partial class IssuerCertificateInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public IssuerCertificateInfo() { } public Azure.Provisioning.BicepValue CertificateUri { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.CustomJwtAuthenticationManagedIdentity Identity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class JsonFieldWithDefault : Azure.Provisioning.Primitives.ProvisionableConstruct { public JsonFieldWithDefault() { } public Azure.Provisioning.BicepValue DefaultValue { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceField { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class MonitorAlertEventSubscriptionDestination : Azure.Provisioning.EventGrid.EventSubscriptionDestination { @@ -770,6 +823,7 @@ public MonitorAlertEventSubscriptionDestination() { } public Azure.Provisioning.BicepList ActionGroups { get { throw null; } set { } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Severity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum MonitorAlertSeverity { @@ -797,6 +851,7 @@ public partial class NamespaceSku : Azure.Provisioning.Primitives.ProvisionableC public NamespaceSku() { } public Azure.Provisioning.BicepValue Capacity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NamespaceTopic : Azure.Provisioning.Primitives.ProvisionableResource { @@ -808,27 +863,30 @@ public partial class NamespaceTopic : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.EventGrid.EventGridNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublisherType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.NamespaceTopic FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public partial class NamespaceTopicEventSubscription : Azure.Provisioning.Primitives.ProvisionableResource { public NamespaceTopicEventSubscription(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue DeliveryConfiguration { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeliveryConfiguration DeliveryConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue EventDeliverySchema { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } set { } } - public Azure.Provisioning.BicepValue FiltersConfiguration { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.FiltersConfiguration FiltersConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.NamespaceTopic? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.NamespaceTopicEventSubscription FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public partial class NamespaceTopicEventSubscriptionDestination : Azure.Provisioning.EventGrid.EventSubscriptionDestination { public NamespaceTopicEventSubscriptionDestination() { } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum NamespaceTopicProvisioningState { @@ -847,91 +905,109 @@ public partial class NumberGreaterThanAdvancedFilter : Azure.Provisioning.EventG { public NumberGreaterThanAdvancedFilter() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberGreaterThanFilter : Azure.Provisioning.EventGrid.EventGridFilter { public NumberGreaterThanFilter() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberGreaterThanOrEqualsAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public NumberGreaterThanOrEqualsAdvancedFilter() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberGreaterThanOrEqualsFilter : Azure.Provisioning.EventGrid.EventGridFilter { public NumberGreaterThanOrEqualsFilter() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberInAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public NumberInAdvancedFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberInFilter : Azure.Provisioning.EventGrid.EventGridFilter { public NumberInFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberInRangeAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public NumberInRangeAdvancedFilter() { } public Azure.Provisioning.BicepList> Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberInRangeFilter : Azure.Provisioning.EventGrid.EventGridFilter { public NumberInRangeFilter() { } public Azure.Provisioning.BicepList> Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberLessThanAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public NumberLessThanAdvancedFilter() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberLessThanFilter : Azure.Provisioning.EventGrid.EventGridFilter { public NumberLessThanFilter() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberLessThanOrEqualsAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public NumberLessThanOrEqualsAdvancedFilter() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberLessThanOrEqualsFilter : Azure.Provisioning.EventGrid.EventGridFilter { public NumberLessThanOrEqualsFilter() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberNotInAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public NumberNotInAdvancedFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberNotInFilter : Azure.Provisioning.EventGrid.EventGridFilter { public NumberNotInFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberNotInRangeAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public NumberNotInRangeAdvancedFilter() { } public Azure.Provisioning.BicepList> Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NumberNotInRangeFilter : Azure.Provisioning.EventGrid.EventGridFilter { public NumberNotInRangeFilter() { } public Azure.Provisioning.BicepList> Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PartnerAuthorization : Azure.Provisioning.Primitives.ProvisionableConstruct { public PartnerAuthorization() { } public Azure.Provisioning.BicepList AuthorizedPartnersList { get { throw null; } set { } } public Azure.Provisioning.BicepValue DefaultMaximumExpirationTimeInDays { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PartnerClientAuthentication : Azure.Provisioning.Primitives.ProvisionableConstruct { public PartnerClientAuthentication() { } + protected override void DefineProvisionableProperties() { } } public partial class PartnerConfiguration : Azure.Provisioning.Primitives.ProvisionableResource { @@ -939,10 +1015,11 @@ public partial class PartnerConfiguration : Azure.Provisioning.Primitives.Provis public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } - public Azure.Provisioning.BicepValue PartnerAuthorization { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.PartnerAuthorization PartnerAuthorization { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.PartnerConfiguration FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -971,8 +1048,9 @@ public partial class PartnerDestination : Azure.Provisioning.Primitives.Provisio public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue PartnerRegistrationImmutableId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.PartnerDestination FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public enum PartnerDestinationActivationState @@ -988,6 +1066,7 @@ public PartnerDestinationInfo() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceGroupName { get { throw null; } set { } } public Azure.Provisioning.BicepList ResourceMoveChangeHistory { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum PartnerDestinationProvisioningState { @@ -1003,6 +1082,7 @@ public partial class PartnerEventSubscriptionDestination : Azure.Provisioning.Ev { public PartnerEventSubscriptionDestination() { } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PartnerNamespace : Azure.Provisioning.Primitives.ProvisionableResource { @@ -1019,8 +1099,9 @@ public partial class PartnerNamespace : Azure.Provisioning.Primitives.Provisiona public Azure.Provisioning.BicepList PrivateEndpointConnections { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.PartnerNamespace FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1036,11 +1117,12 @@ public partial class PartnerNamespaceChannel : Azure.Provisioning.Primitives.Pro public Azure.Provisioning.BicepValue MessageForActivation { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.PartnerNamespace? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue PartnerDestinationInfo { get { throw null; } set { } } - public Azure.Provisioning.BicepValue PartnerTopicInfo { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.PartnerDestinationInfo PartnerDestinationInfo { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.PartnerTopicInfo PartnerTopicInfo { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReadinessState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.PartnerNamespaceChannel FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1080,8 +1162,9 @@ public partial class PartnerRegistration : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue PartnerRegistrationImmutableId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.PartnerRegistration FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1101,10 +1184,10 @@ public partial class PartnerTopic : Azure.Provisioning.Primitives.ProvisionableR { public PartnerTopic(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue ActivationState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue EventTypeInfo { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.PartnerTopicEventTypeInfo EventTypeInfo { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExpireOnIfNotActivated { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue MessageForActivation { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } @@ -1112,8 +1195,9 @@ public partial class PartnerTopic : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepValue PartnerTopicFriendlyDescription { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue Source { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.PartnerTopic FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1129,21 +1213,22 @@ public enum PartnerTopicActivationState public partial class PartnerTopicEventSubscription : Azure.Provisioning.Primitives.ProvisionableResource { public PartnerTopicEventSubscription(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue DeadLetterDestination { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeadLetterWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeliveryWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Destination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterDestination DeadLetterDestination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeliveryWithResourceIdentity DeliveryWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionDestination Destination { get { throw null; } set { } } public Azure.Provisioning.BicepValue EventDeliverySchema { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Filter { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionFilter Filter { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepList Labels { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.PartnerTopic? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue RetryPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.EventGrid.EventSubscriptionRetryPolicy RetryPolicy { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Topic { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.PartnerTopicEventSubscription FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1155,15 +1240,17 @@ public partial class PartnerTopicEventTypeInfo : Azure.Provisioning.Primitives.P public PartnerTopicEventTypeInfo() { } public Azure.Provisioning.BicepDictionary InlineEventTypes { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PartnerTopicInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public PartnerTopicInfo() { } public Azure.Provisioning.BicepValue AzureSubscriptionId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue EventTypeInfo { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.PartnerTopicEventTypeInfo EventTypeInfo { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceGroupName { get { throw null; } set { } } public Azure.Provisioning.BicepValue Source { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum PartnerTopicProvisioningState { @@ -1207,19 +1294,21 @@ public enum PublisherType public partial class PushInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public PushInfo() { } - public Azure.Provisioning.BicepValue DeadLetterDestinationWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeliveryWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Destination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterWithResourceIdentity DeadLetterDestinationWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeliveryWithResourceIdentity DeliveryWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionDestination Destination { get { throw null; } set { } } public Azure.Provisioning.BicepValue EventTimeToLive { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxDeliveryCount { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class QueueInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public QueueInfo() { } - public Azure.Provisioning.BicepValue DeadLetterDestinationWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterWithResourceIdentity DeadLetterDestinationWithResourceIdentity { get { throw null; } set { } } public Azure.Provisioning.BicepValue EventTimeToLive { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxDeliveryCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReceiveLockDurationInSeconds { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ResourceKind { @@ -1232,18 +1321,21 @@ public ResourceMoveChangeHistory() { } public Azure.Provisioning.BicepValue AzureSubscriptionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ChangedTimeUtc { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceGroupName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RoutingEnrichments : Azure.Provisioning.Primitives.ProvisionableConstruct { public RoutingEnrichments() { } public Azure.Provisioning.BicepList Dynamic { get { throw null; } set { } } public Azure.Provisioning.BicepList Static { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RoutingIdentityInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public RoutingIdentityInfo() { } public Azure.Provisioning.BicepValue IdentityType { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserAssignedIdentity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum RoutingIdentityType { @@ -1256,34 +1348,40 @@ public partial class ServiceBusQueueEventSubscriptionDestination : Azure.Provisi public ServiceBusQueueEventSubscriptionDestination() { } public Azure.Provisioning.BicepList DeliveryAttributeMappings { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ServiceBusTopicEventSubscriptionDestination : Azure.Provisioning.EventGrid.EventSubscriptionDestination { public ServiceBusTopicEventSubscriptionDestination() { } public Azure.Provisioning.BicepList DeliveryAttributeMappings { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StaticDeliveryAttributeMapping : Azure.Provisioning.EventGrid.DeliveryAttributeMapping { public StaticDeliveryAttributeMapping() { } public Azure.Provisioning.BicepValue IsSecret { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StaticRoutingEnrichment : Azure.Provisioning.Primitives.ProvisionableConstruct { public StaticRoutingEnrichment() { } public Azure.Provisioning.BicepValue Key { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StaticStringRoutingEnrichment : Azure.Provisioning.EventGrid.StaticRoutingEnrichment { public StaticStringRoutingEnrichment() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageBlobDeadLetterDestination : Azure.Provisioning.EventGrid.DeadLetterDestination { public StorageBlobDeadLetterDestination() { } public Azure.Provisioning.BicepValue BlobContainerName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageQueueEventSubscriptionDestination : Azure.Provisioning.EventGrid.EventSubscriptionDestination { @@ -1291,86 +1389,103 @@ public StorageQueueEventSubscriptionDestination() { } public Azure.Provisioning.BicepValue QueueMessageTimeToLiveInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue QueueName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringBeginsWithAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public StringBeginsWithAdvancedFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringBeginsWithFilter : Azure.Provisioning.EventGrid.EventGridFilter { public StringBeginsWithFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringContainsAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public StringContainsAdvancedFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringContainsFilter : Azure.Provisioning.EventGrid.EventGridFilter { public StringContainsFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringEndsWithAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public StringEndsWithAdvancedFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringEndsWithFilter : Azure.Provisioning.EventGrid.EventGridFilter { public StringEndsWithFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringInAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public StringInAdvancedFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringInFilter : Azure.Provisioning.EventGrid.EventGridFilter { public StringInFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringNotBeginsWithAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public StringNotBeginsWithAdvancedFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringNotBeginsWithFilter : Azure.Provisioning.EventGrid.EventGridFilter { public StringNotBeginsWithFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringNotContainsAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public StringNotContainsAdvancedFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringNotContainsFilter : Azure.Provisioning.EventGrid.EventGridFilter { public StringNotContainsFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringNotEndsWithAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public StringNotEndsWithAdvancedFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringNotEndsWithFilter : Azure.Provisioning.EventGrid.EventGridFilter { public StringNotEndsWithFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringNotInAdvancedFilter : Azure.Provisioning.EventGrid.AdvancedFilter { public StringNotInAdvancedFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StringNotInFilter : Azure.Provisioning.EventGrid.EventGridFilter { public StringNotInFilter() { } public Azure.Provisioning.BicepList Values { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SubscriptionProvisioningState { @@ -1390,15 +1505,16 @@ public partial class SystemTopic : Azure.Provisioning.Primitives.ProvisionableRe { public SystemTopic(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue MetricResourceId { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue Source { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TopicType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.SystemTopic FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1409,21 +1525,22 @@ public static partial class ResourceVersions public partial class SystemTopicEventSubscription : Azure.Provisioning.Primitives.ProvisionableResource { public SystemTopicEventSubscription(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue DeadLetterDestination { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeadLetterWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeliveryWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Destination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterDestination DeadLetterDestination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeliveryWithResourceIdentity DeliveryWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionDestination Destination { get { throw null; } set { } } public Azure.Provisioning.BicepValue EventDeliverySchema { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Filter { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionFilter Filter { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepList Labels { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.SystemTopic? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue RetryPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.EventGrid.EventSubscriptionRetryPolicy RetryPolicy { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Topic { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.SystemTopicEventSubscription FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1443,21 +1560,22 @@ public enum TlsVersion public partial class TopicEventSubscription : Azure.Provisioning.Primitives.ProvisionableResource { public TopicEventSubscription(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue DeadLetterDestination { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeadLetterWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeliveryWithResourceIdentity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Destination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterDestination DeadLetterDestination { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.DeliveryWithResourceIdentity DeliveryWithResourceIdentity { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionDestination Destination { get { throw null; } set { } } public Azure.Provisioning.BicepValue EventDeliverySchema { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Filter { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.EventSubscriptionFilter Filter { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepList Labels { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.EventGridTopic? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue RetryPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.EventGrid.EventSubscriptionRetryPolicy RetryPolicy { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Topic { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.TopicEventSubscription FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1474,6 +1592,7 @@ public partial class TopicsConfiguration : Azure.Provisioning.Primitives.Provisi public TopicsConfiguration() { } public Azure.Provisioning.BicepList CustomDomains { get { throw null; } set { } } public Azure.Provisioning.BicepValue Hostname { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class TopicSpace : Azure.Provisioning.Primitives.ProvisionableResource { @@ -1483,8 +1602,9 @@ public partial class TopicSpace : Azure.Provisioning.Primitives.ProvisionableRes public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventGrid.EventGridNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepList TopicTemplates { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventGrid.TopicSpace FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public enum TopicSpaceProvisioningState @@ -1500,15 +1620,16 @@ public enum TopicSpaceProvisioningState public partial class TopicSpacesConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public TopicSpacesConfiguration() { } - public Azure.Provisioning.BicepValue ClientAuthentication { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.ClientAuthenticationSettings ClientAuthentication { get { throw null; } set { } } public Azure.Provisioning.BicepList CustomDomains { get { throw null; } set { } } public Azure.Provisioning.BicepValue Hostname { get { throw null; } } public Azure.Provisioning.BicepValue MaximumClientSessionsPerAuthenticationName { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaximumSessionExpiryInHours { get { throw null; } set { } } public Azure.Provisioning.BicepValue RouteTopicResourceId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RoutingEnrichments { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RoutingIdentityInfo { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.RoutingEnrichments RoutingEnrichments { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.RoutingIdentityInfo RoutingIdentityInfo { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum TopicSpacesConfigurationState { @@ -1526,12 +1647,14 @@ public WebHookEventSubscriptionDestination() { } public Azure.Provisioning.BicepValue MinimumTlsVersionAllowed { get { throw null; } set { } } public Azure.Provisioning.BicepValue PreferredBatchSizeInKilobytes { get { throw null; } set { } } public Azure.Provisioning.BicepValue UriOrAzureActiveDirectoryApplicationId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class WebhookPartnerDestinationInfo : Azure.Provisioning.EventGrid.PartnerDestinationInfo { public WebhookPartnerDestinationInfo() { } - public Azure.Provisioning.BicepValue ClientAuthentication { get { throw null; } set { } } + public Azure.Provisioning.EventGrid.PartnerClientAuthentication ClientAuthentication { get { throw null; } set { } } public Azure.Provisioning.BicepValue EndpointBaseUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue EndpointUri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/CaCertificate.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/CaCertificate.cs index dfb321e16cd72..4aff312213c28 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/CaCertificate.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/CaCertificate.cs @@ -20,56 +20,87 @@ public partial class CaCertificate : ProvisionableResource /// /// The CA certificate name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Description for the CA Certificate resource. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Base64 encoded PEM (Privacy Enhanced Mail) format certificate data. /// - public BicepValue EncodedCertificate { get => _encodedCertificate; set => _encodedCertificate.Assign(value); } - private readonly BicepValue _encodedCertificate; + public BicepValue EncodedCertificate + { + get { Initialize(); return _encodedCertificate!; } + set { Initialize(); _encodedCertificate!.Assign(value); } + } + private BicepValue? _encodedCertificate; /// /// Certificate expiry time in UTC. This is a read-only field. /// - public BicepValue ExpiryTimeInUtc { get => _expiryTimeInUtc; } - private readonly BicepValue _expiryTimeInUtc; + public BicepValue ExpiryTimeInUtc + { + get { Initialize(); return _expiryTimeInUtc!; } + } + private BicepValue? _expiryTimeInUtc; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Certificate issue time in UTC. This is a read-only field. /// - public BicepValue IssueTimeInUtc { get => _issueTimeInUtc; } - private readonly BicepValue _issueTimeInUtc; + public BicepValue IssueTimeInUtc + { + get { Initialize(); return _issueTimeInUtc!; } + } + private BicepValue? _issueTimeInUtc; /// /// Provisioning state of the CA Certificate resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventGridNamespace. /// - public EventGridNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventGridNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new CaCertificate. @@ -84,15 +115,22 @@ public partial class CaCertificate : ProvisionableResource public CaCertificate(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/namespaces/caCertificates", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _encodedCertificate = BicepValue.DefineProperty(this, "EncodedCertificate", ["properties", "encodedCertificate"]); - _expiryTimeInUtc = BicepValue.DefineProperty(this, "ExpiryTimeInUtc", ["properties", "expiryTimeInUtc"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _issueTimeInUtc = BicepValue.DefineProperty(this, "IssueTimeInUtc", ["properties", "issueTimeInUtc"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of CaCertificate. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _description = DefineProperty("Description", ["properties", "description"]); + _encodedCertificate = DefineProperty("EncodedCertificate", ["properties", "encodedCertificate"]); + _expiryTimeInUtc = DefineProperty("ExpiryTimeInUtc", ["properties", "expiryTimeInUtc"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _issueTimeInUtc = DefineProperty("IssueTimeInUtc", ["properties", "issueTimeInUtc"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/DomainEventSubscription.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/DomainEventSubscription.cs index 1c5e36c8de5e3..8ee0ac5b7c06d 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/DomainEventSubscription.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/DomainEventSubscription.cs @@ -23,8 +23,12 @@ public partial class DomainEventSubscription : ProvisionableResource /// must be between 3 and 64 characters in length and use alphanumeric /// letters only. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The dead letter destination of the event subscription. Any event that @@ -39,8 +43,12 @@ public partial class DomainEventSubscription : ProvisionableResource /// available derived classes include /// Azure.ResourceManager.EventGrid.Models.StorageBlobDeadLetterDestination. /// - public BicepValue DeadLetterDestination { get => _deadLetterDestination; set => _deadLetterDestination.Assign(value); } - private readonly BicepValue _deadLetterDestination; + public DeadLetterDestination DeadLetterDestination + { + get { Initialize(); return _deadLetterDestination!; } + set { Initialize(); AssignOrReplace(ref _deadLetterDestination, value); } + } + private DeadLetterDestination? _deadLetterDestination; /// /// The dead letter destination of the event subscription. Any event that @@ -49,8 +57,12 @@ public partial class DomainEventSubscription : ProvisionableResource /// parent resource (namely, topic or domain) to acquire the /// authentication tokens being used during delivery / dead-lettering. /// - public BicepValue DeadLetterWithResourceIdentity { get => _deadLetterWithResourceIdentity; set => _deadLetterWithResourceIdentity.Assign(value); } - private readonly BicepValue _deadLetterWithResourceIdentity; + public DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity + { + get { Initialize(); return _deadLetterWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deadLetterWithResourceIdentity, value); } + } + private DeadLetterWithResourceIdentity? _deadLetterWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -58,8 +70,12 @@ public partial class DomainEventSubscription : ProvisionableResource /// the parent resource (namely, topic or domain) to acquire the /// authentication tokens being used during delivery / dead-lettering. /// - public BicepValue DeliveryWithResourceIdentity { get => _deliveryWithResourceIdentity; set => _deliveryWithResourceIdentity.Assign(value); } - private readonly BicepValue _deliveryWithResourceIdentity; + public DeliveryWithResourceIdentity DeliveryWithResourceIdentity + { + get { Initialize(); return _deliveryWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deliveryWithResourceIdentity, value); } + } + private DeliveryWithResourceIdentity? _deliveryWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -83,69 +99,109 @@ public partial class DomainEventSubscription : ProvisionableResource /// and /// Azure.ResourceManager.EventGrid.Models.WebHookEventSubscriptionDestination. /// - public BicepValue Destination { get => _destination; set => _destination.Assign(value); } - private readonly BicepValue _destination; + public EventSubscriptionDestination Destination + { + get { Initialize(); return _destination!; } + set { Initialize(); AssignOrReplace(ref _destination, value); } + } + private EventSubscriptionDestination? _destination; /// /// The event delivery schema for the event subscription. /// - public BicepValue EventDeliverySchema { get => _eventDeliverySchema; set => _eventDeliverySchema.Assign(value); } - private readonly BicepValue _eventDeliverySchema; + public BicepValue EventDeliverySchema + { + get { Initialize(); return _eventDeliverySchema!; } + set { Initialize(); _eventDeliverySchema!.Assign(value); } + } + private BicepValue? _eventDeliverySchema; /// /// Expiration time of the event subscription. /// - public BicepValue ExpireOn { get => _expireOn; set => _expireOn.Assign(value); } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + set { Initialize(); _expireOn!.Assign(value); } + } + private BicepValue? _expireOn; /// /// Information about the filter for the event subscription. /// - public BicepValue Filter { get => _filter; set => _filter.Assign(value); } - private readonly BicepValue _filter; + public EventSubscriptionFilter Filter + { + get { Initialize(); return _filter!; } + set { Initialize(); AssignOrReplace(ref _filter, value); } + } + private EventSubscriptionFilter? _filter; /// /// List of user defined labels. /// - public BicepList Labels { get => _labels; set => _labels.Assign(value); } - private readonly BicepList _labels; + public BicepList Labels + { + get { Initialize(); return _labels!; } + set { Initialize(); _labels!.Assign(value); } + } + private BicepList? _labels; /// /// The retry policy for events. This can be used to configure maximum /// number of delivery attempts and time to live for events. /// - public BicepValue RetryPolicy { get => _retryPolicy; set => _retryPolicy.Assign(value); } - private readonly BicepValue _retryPolicy; + public EventSubscriptionRetryPolicy RetryPolicy + { + get { Initialize(); return _retryPolicy!; } + set { Initialize(); AssignOrReplace(ref _retryPolicy, value); } + } + private EventSubscriptionRetryPolicy? _retryPolicy; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the event subscription. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Name of the topic of the event subscription. /// - public BicepValue Topic { get => _topic; } - private readonly BicepValue _topic; + public BicepValue Topic + { + get { Initialize(); return _topic!; } + } + private BicepValue? _topic; /// /// Gets or sets a reference to the parent EventGridDomain. /// - public EventGridDomain? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventGridDomain? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new DomainEventSubscription. @@ -160,21 +216,28 @@ public partial class DomainEventSubscription : ProvisionableResource public DomainEventSubscription(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/domains/eventSubscriptions", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _deadLetterDestination = BicepValue.DefineProperty(this, "DeadLetterDestination", ["properties", "deadLetterDestination"]); - _deadLetterWithResourceIdentity = BicepValue.DefineProperty(this, "DeadLetterWithResourceIdentity", ["properties", "deadLetterWithResourceIdentity"]); - _deliveryWithResourceIdentity = BicepValue.DefineProperty(this, "DeliveryWithResourceIdentity", ["properties", "deliveryWithResourceIdentity"]); - _destination = BicepValue.DefineProperty(this, "Destination", ["properties", "destination"]); - _eventDeliverySchema = BicepValue.DefineProperty(this, "EventDeliverySchema", ["properties", "eventDeliverySchema"]); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["properties", "expirationTimeUtc"]); - _filter = BicepValue.DefineProperty(this, "Filter", ["properties", "filter"]); - _labels = BicepList.DefineProperty(this, "Labels", ["properties", "labels"]); - _retryPolicy = BicepValue.DefineProperty(this, "RetryPolicy", ["properties", "retryPolicy"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _topic = BicepValue.DefineProperty(this, "Topic", ["properties", "topic"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of DomainEventSubscription. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _deadLetterDestination = DefineModelProperty("DeadLetterDestination", ["properties", "deadLetterDestination"]); + _deadLetterWithResourceIdentity = DefineModelProperty("DeadLetterWithResourceIdentity", ["properties", "deadLetterWithResourceIdentity"]); + _deliveryWithResourceIdentity = DefineModelProperty("DeliveryWithResourceIdentity", ["properties", "deliveryWithResourceIdentity"]); + _destination = DefineModelProperty("Destination", ["properties", "destination"]); + _eventDeliverySchema = DefineProperty("EventDeliverySchema", ["properties", "eventDeliverySchema"]); + _expireOn = DefineProperty("ExpireOn", ["properties", "expirationTimeUtc"]); + _filter = DefineModelProperty("Filter", ["properties", "filter"]); + _labels = DefineListProperty("Labels", ["properties", "labels"]); + _retryPolicy = DefineModelProperty("RetryPolicy", ["properties", "retryPolicy"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _topic = DefineProperty("Topic", ["properties", "topic"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/DomainTopic.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/DomainTopic.cs index 8188151e98aac..cf4a7cb9dcae1 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/DomainTopic.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/DomainTopic.cs @@ -21,32 +21,49 @@ public partial class DomainTopic : ProvisionableResource /// /// Name of the domain topic. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the domain topic. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventGridDomain. /// - public EventGridDomain? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventGridDomain? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new DomainTopic. @@ -61,11 +78,18 @@ public partial class DomainTopic : ProvisionableResource public DomainTopic(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/domains/topics", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of DomainTopic. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/DomainTopicEventSubscription.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/DomainTopicEventSubscription.cs index 933c45a91d4f2..4e80353182931 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/DomainTopicEventSubscription.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/DomainTopicEventSubscription.cs @@ -23,8 +23,12 @@ public partial class DomainTopicEventSubscription : ProvisionableResource /// must be between 3 and 64 characters in length and use alphanumeric /// letters only. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The dead letter destination of the event subscription. Any event that @@ -39,8 +43,12 @@ public partial class DomainTopicEventSubscription : ProvisionableResource /// available derived classes include /// Azure.ResourceManager.EventGrid.Models.StorageBlobDeadLetterDestination. /// - public BicepValue DeadLetterDestination { get => _deadLetterDestination; set => _deadLetterDestination.Assign(value); } - private readonly BicepValue _deadLetterDestination; + public DeadLetterDestination DeadLetterDestination + { + get { Initialize(); return _deadLetterDestination!; } + set { Initialize(); AssignOrReplace(ref _deadLetterDestination, value); } + } + private DeadLetterDestination? _deadLetterDestination; /// /// The dead letter destination of the event subscription. Any event that @@ -49,8 +57,12 @@ public partial class DomainTopicEventSubscription : ProvisionableResource /// parent resource (namely, topic or domain) to acquire the /// authentication tokens being used during delivery / dead-lettering. /// - public BicepValue DeadLetterWithResourceIdentity { get => _deadLetterWithResourceIdentity; set => _deadLetterWithResourceIdentity.Assign(value); } - private readonly BicepValue _deadLetterWithResourceIdentity; + public DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity + { + get { Initialize(); return _deadLetterWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deadLetterWithResourceIdentity, value); } + } + private DeadLetterWithResourceIdentity? _deadLetterWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -58,8 +70,12 @@ public partial class DomainTopicEventSubscription : ProvisionableResource /// the parent resource (namely, topic or domain) to acquire the /// authentication tokens being used during delivery / dead-lettering. /// - public BicepValue DeliveryWithResourceIdentity { get => _deliveryWithResourceIdentity; set => _deliveryWithResourceIdentity.Assign(value); } - private readonly BicepValue _deliveryWithResourceIdentity; + public DeliveryWithResourceIdentity DeliveryWithResourceIdentity + { + get { Initialize(); return _deliveryWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deliveryWithResourceIdentity, value); } + } + private DeliveryWithResourceIdentity? _deliveryWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -83,69 +99,109 @@ public partial class DomainTopicEventSubscription : ProvisionableResource /// and /// Azure.ResourceManager.EventGrid.Models.WebHookEventSubscriptionDestination. /// - public BicepValue Destination { get => _destination; set => _destination.Assign(value); } - private readonly BicepValue _destination; + public EventSubscriptionDestination Destination + { + get { Initialize(); return _destination!; } + set { Initialize(); AssignOrReplace(ref _destination, value); } + } + private EventSubscriptionDestination? _destination; /// /// The event delivery schema for the event subscription. /// - public BicepValue EventDeliverySchema { get => _eventDeliverySchema; set => _eventDeliverySchema.Assign(value); } - private readonly BicepValue _eventDeliverySchema; + public BicepValue EventDeliverySchema + { + get { Initialize(); return _eventDeliverySchema!; } + set { Initialize(); _eventDeliverySchema!.Assign(value); } + } + private BicepValue? _eventDeliverySchema; /// /// Expiration time of the event subscription. /// - public BicepValue ExpireOn { get => _expireOn; set => _expireOn.Assign(value); } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + set { Initialize(); _expireOn!.Assign(value); } + } + private BicepValue? _expireOn; /// /// Information about the filter for the event subscription. /// - public BicepValue Filter { get => _filter; set => _filter.Assign(value); } - private readonly BicepValue _filter; + public EventSubscriptionFilter Filter + { + get { Initialize(); return _filter!; } + set { Initialize(); AssignOrReplace(ref _filter, value); } + } + private EventSubscriptionFilter? _filter; /// /// List of user defined labels. /// - public BicepList Labels { get => _labels; set => _labels.Assign(value); } - private readonly BicepList _labels; + public BicepList Labels + { + get { Initialize(); return _labels!; } + set { Initialize(); _labels!.Assign(value); } + } + private BicepList? _labels; /// /// The retry policy for events. This can be used to configure maximum /// number of delivery attempts and time to live for events. /// - public BicepValue RetryPolicy { get => _retryPolicy; set => _retryPolicy.Assign(value); } - private readonly BicepValue _retryPolicy; + public EventSubscriptionRetryPolicy RetryPolicy + { + get { Initialize(); return _retryPolicy!; } + set { Initialize(); AssignOrReplace(ref _retryPolicy, value); } + } + private EventSubscriptionRetryPolicy? _retryPolicy; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the event subscription. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Name of the topic of the event subscription. /// - public BicepValue Topic { get => _topic; } - private readonly BicepValue _topic; + public BicepValue Topic + { + get { Initialize(); return _topic!; } + } + private BicepValue? _topic; /// /// Gets or sets a reference to the parent DomainTopic. /// - public DomainTopic? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public DomainTopic? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new DomainTopicEventSubscription. @@ -160,21 +216,28 @@ public partial class DomainTopicEventSubscription : ProvisionableResource public DomainTopicEventSubscription(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/domains/topics/eventSubscriptions", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _deadLetterDestination = BicepValue.DefineProperty(this, "DeadLetterDestination", ["properties", "deadLetterDestination"]); - _deadLetterWithResourceIdentity = BicepValue.DefineProperty(this, "DeadLetterWithResourceIdentity", ["properties", "deadLetterWithResourceIdentity"]); - _deliveryWithResourceIdentity = BicepValue.DefineProperty(this, "DeliveryWithResourceIdentity", ["properties", "deliveryWithResourceIdentity"]); - _destination = BicepValue.DefineProperty(this, "Destination", ["properties", "destination"]); - _eventDeliverySchema = BicepValue.DefineProperty(this, "EventDeliverySchema", ["properties", "eventDeliverySchema"]); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["properties", "expirationTimeUtc"]); - _filter = BicepValue.DefineProperty(this, "Filter", ["properties", "filter"]); - _labels = BicepList.DefineProperty(this, "Labels", ["properties", "labels"]); - _retryPolicy = BicepValue.DefineProperty(this, "RetryPolicy", ["properties", "retryPolicy"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _topic = BicepValue.DefineProperty(this, "Topic", ["properties", "topic"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of DomainTopicEventSubscription. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _deadLetterDestination = DefineModelProperty("DeadLetterDestination", ["properties", "deadLetterDestination"]); + _deadLetterWithResourceIdentity = DefineModelProperty("DeadLetterWithResourceIdentity", ["properties", "deadLetterWithResourceIdentity"]); + _deliveryWithResourceIdentity = DefineModelProperty("DeliveryWithResourceIdentity", ["properties", "deliveryWithResourceIdentity"]); + _destination = DefineModelProperty("Destination", ["properties", "destination"]); + _eventDeliverySchema = DefineProperty("EventDeliverySchema", ["properties", "eventDeliverySchema"]); + _expireOn = DefineProperty("ExpireOn", ["properties", "expirationTimeUtc"]); + _filter = DefineModelProperty("Filter", ["properties", "filter"]); + _labels = DefineListProperty("Labels", ["properties", "labels"]); + _retryPolicy = DefineModelProperty("RetryPolicy", ["properties", "retryPolicy"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _topic = DefineProperty("Topic", ["properties", "topic"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridDomain.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridDomain.cs index 4a19080e91376..d93cd711d8f96 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridDomain.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridDomain.cs @@ -22,14 +22,22 @@ public partial class EventGridDomain : ProvisionableResource /// /// Name of the domain. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// This Boolean is used to specify the creation mechanism for @@ -49,8 +57,12 @@ public partial class EventGridDomain : ProvisionableResource /// creation mode, user is allowed to create the domain topic /// on demand if needed. /// - public BicepValue AutoCreateTopicWithFirstSubscription { get => _autoCreateTopicWithFirstSubscription; set => _autoCreateTopicWithFirstSubscription.Assign(value); } - private readonly BicepValue _autoCreateTopicWithFirstSubscription; + public BicepValue AutoCreateTopicWithFirstSubscription + { + get { Initialize(); return _autoCreateTopicWithFirstSubscription!; } + set { Initialize(); _autoCreateTopicWithFirstSubscription!.Assign(value); } + } + private BicepValue? _autoCreateTopicWithFirstSubscription; /// /// This Boolean is used to specify the deletion mechanism for @@ -69,42 +81,66 @@ public partial class EventGridDomain : ProvisionableResource /// while auto-managed mode provides the flexibility to perform less /// operations and manage fewer resources by the user. /// - public BicepValue AutoDeleteTopicWithLastSubscription { get => _autoDeleteTopicWithLastSubscription; set => _autoDeleteTopicWithLastSubscription.Assign(value); } - private readonly BicepValue _autoDeleteTopicWithLastSubscription; + public BicepValue AutoDeleteTopicWithLastSubscription + { + get { Initialize(); return _autoDeleteTopicWithLastSubscription!; } + set { Initialize(); _autoDeleteTopicWithLastSubscription!.Assign(value); } + } + private BicepValue? _autoDeleteTopicWithLastSubscription; /// /// Data Residency Boundary of the resource. /// - public BicepValue DataResidencyBoundary { get => _dataResidencyBoundary; set => _dataResidencyBoundary.Assign(value); } - private readonly BicepValue _dataResidencyBoundary; + public BicepValue DataResidencyBoundary + { + get { Initialize(); return _dataResidencyBoundary!; } + set { Initialize(); _dataResidencyBoundary!.Assign(value); } + } + private BicepValue? _dataResidencyBoundary; /// /// Event Type Information for the domain. This information is provided by /// the publisher and can be used by the subscriber to view /// different types of events that are published. /// - public BicepValue EventTypeInfo { get => _eventTypeInfo; set => _eventTypeInfo.Assign(value); } - private readonly BicepValue _eventTypeInfo; + public PartnerTopicEventTypeInfo EventTypeInfo + { + get { Initialize(); return _eventTypeInfo!; } + set { Initialize(); AssignOrReplace(ref _eventTypeInfo, value); } + } + private PartnerTopicEventTypeInfo? _eventTypeInfo; /// /// Identity information for the Event Grid Domain resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// This can be used to restrict traffic from specific IPs instead of all /// IPs. Note: These are considered only if PublicNetworkAccess is enabled. /// - public BicepList InboundIPRules { get => _inboundIPRules; set => _inboundIPRules.Assign(value); } - private readonly BicepList _inboundIPRules; + public BicepList InboundIPRules + { + get { Initialize(); return _inboundIPRules!; } + set { Initialize(); _inboundIPRules!.Assign(value); } + } + private BicepList? _inboundIPRules; /// /// This determines the format that Event Grid should expect for incoming /// events published to the Event Grid Domain Resource. /// - public BicepValue InputSchema { get => _inputSchema; set => _inputSchema.Assign(value); } - private readonly BicepValue _inputSchema; + public BicepValue InputSchema + { + get { Initialize(); return _inputSchema!; } + set { Initialize(); _inputSchema!.Assign(value); } + } + private BicepValue? _inputSchema; /// /// Information about the InputSchemaMapping which specified the info about @@ -116,22 +152,34 @@ public partial class EventGridDomain : ProvisionableResource /// available derived classes include /// Azure.ResourceManager.EventGrid.Models.EventGridJsonInputSchemaMapping. /// - public BicepValue InputSchemaMapping { get => _inputSchemaMapping; set => _inputSchemaMapping.Assign(value); } - private readonly BicepValue _inputSchemaMapping; + public EventGridInputSchemaMapping InputSchemaMapping + { + get { Initialize(); return _inputSchemaMapping!; } + set { Initialize(); AssignOrReplace(ref _inputSchemaMapping, value); } + } + private EventGridInputSchemaMapping? _inputSchemaMapping; /// /// This boolean is used to enable or disable local auth. Default value is /// false. When the property is set to true, only AAD token will be used /// to authenticate if user is allowed to publish to the domain. /// - public BicepValue IsLocalAuthDisabled { get => _isLocalAuthDisabled; set => _isLocalAuthDisabled.Assign(value); } - private readonly BicepValue _isLocalAuthDisabled; + public BicepValue IsLocalAuthDisabled + { + get { Initialize(); return _isLocalAuthDisabled!; } + set { Initialize(); _isLocalAuthDisabled!.Assign(value); } + } + private BicepValue? _isLocalAuthDisabled; /// /// Minimum TLS version of the publisher allowed to publish to this domain. /// - public BicepValue MinimumTlsVersionAllowed { get => _minimumTlsVersionAllowed; set => _minimumTlsVersionAllowed.Assign(value); } - private readonly BicepValue _minimumTlsVersionAllowed; + public BicepValue MinimumTlsVersionAllowed + { + get { Initialize(); return _minimumTlsVersionAllowed!; } + set { Initialize(); _minimumTlsVersionAllowed!.Assign(value); } + } + private BicepValue? _minimumTlsVersionAllowed; /// /// This determines if traffic is allowed over public network. By default @@ -140,57 +188,87 @@ public partial class EventGridDomain : ProvisionableResource /// cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.DomainProperties.InboundIpRules" /// /> /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// The Sku name of the resource. The possible values are: Basic or Premium. /// - public BicepValue SkuName { get => _skuName; set => _skuName.Assign(value); } - private readonly BicepValue _skuName; + public BicepValue SkuName + { + get { Initialize(); return _skuName!; } + set { Initialize(); _skuName!.Assign(value); } + } + private BicepValue? _skuName; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Endpoint for the Event Grid Domain Resource which is used for /// publishing the events. /// - public BicepValue Endpoint { get => _endpoint; } - private readonly BicepValue _endpoint; + public BicepValue Endpoint + { + get { Initialize(); return _endpoint!; } + } + private BicepValue? _endpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Metric resource id for the Event Grid Domain Resource. /// - public BicepValue MetricResourceId { get => _metricResourceId; } - private readonly BicepValue _metricResourceId; + public BicepValue MetricResourceId + { + get { Initialize(); return _metricResourceId!; } + } + private BicepValue? _metricResourceId; /// /// List of private endpoint connections. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// Provisioning state of the Event Grid Domain Resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new EventGridDomain. @@ -205,27 +283,34 @@ public partial class EventGridDomain : ProvisionableResource public EventGridDomain(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/domains", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _autoCreateTopicWithFirstSubscription = BicepValue.DefineProperty(this, "AutoCreateTopicWithFirstSubscription", ["properties", "autoCreateTopicWithFirstSubscription"]); - _autoDeleteTopicWithLastSubscription = BicepValue.DefineProperty(this, "AutoDeleteTopicWithLastSubscription", ["properties", "autoDeleteTopicWithLastSubscription"]); - _dataResidencyBoundary = BicepValue.DefineProperty(this, "DataResidencyBoundary", ["properties", "dataResidencyBoundary"]); - _eventTypeInfo = BicepValue.DefineProperty(this, "EventTypeInfo", ["properties", "eventTypeInfo"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _inboundIPRules = BicepList.DefineProperty(this, "InboundIPRules", ["properties", "inboundIpRules"]); - _inputSchema = BicepValue.DefineProperty(this, "InputSchema", ["properties", "inputSchema"]); - _inputSchemaMapping = BicepValue.DefineProperty(this, "InputSchemaMapping", ["properties", "inputSchemaMapping"]); - _isLocalAuthDisabled = BicepValue.DefineProperty(this, "IsLocalAuthDisabled", ["properties", "disableLocalAuth"]); - _minimumTlsVersionAllowed = BicepValue.DefineProperty(this, "MinimumTlsVersionAllowed", ["properties", "minimumTlsVersionAllowed"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _skuName = BicepValue.DefineProperty(this, "SkuName", ["sku", "name"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _endpoint = BicepValue.DefineProperty(this, "Endpoint", ["properties", "endpoint"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _metricResourceId = BicepValue.DefineProperty(this, "MetricResourceId", ["properties", "metricResourceId"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of EventGridDomain. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _autoCreateTopicWithFirstSubscription = DefineProperty("AutoCreateTopicWithFirstSubscription", ["properties", "autoCreateTopicWithFirstSubscription"]); + _autoDeleteTopicWithLastSubscription = DefineProperty("AutoDeleteTopicWithLastSubscription", ["properties", "autoDeleteTopicWithLastSubscription"]); + _dataResidencyBoundary = DefineProperty("DataResidencyBoundary", ["properties", "dataResidencyBoundary"]); + _eventTypeInfo = DefineModelProperty("EventTypeInfo", ["properties", "eventTypeInfo"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _inboundIPRules = DefineListProperty("InboundIPRules", ["properties", "inboundIpRules"]); + _inputSchema = DefineProperty("InputSchema", ["properties", "inputSchema"]); + _inputSchemaMapping = DefineModelProperty("InputSchemaMapping", ["properties", "inputSchemaMapping"]); + _isLocalAuthDisabled = DefineProperty("IsLocalAuthDisabled", ["properties", "disableLocalAuth"]); + _minimumTlsVersionAllowed = DefineProperty("MinimumTlsVersionAllowed", ["properties", "minimumTlsVersionAllowed"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _skuName = DefineProperty("SkuName", ["sku", "name"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _endpoint = DefineProperty("Endpoint", ["properties", "endpoint"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _metricResourceId = DefineProperty("MetricResourceId", ["properties", "metricResourceId"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridDomainPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridDomainPrivateEndpointConnection.cs index fb3b1ca9935c8..8c56c37da1be6 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridDomainPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridDomainPrivateEndpointConnection.cs @@ -21,50 +21,80 @@ public partial class EventGridDomainPrivateEndpointConnection : ProvisionableRes /// /// The name of the private endpoint connection connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Details about the state of the connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public EventGridPrivateEndpointConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private EventGridPrivateEndpointConnectionState? _connectionState; /// /// GroupIds from the private link service resource. /// - public BicepList GroupIds { get => _groupIds; set => _groupIds.Assign(value); } - private readonly BicepList _groupIds; + public BicepList GroupIds + { + get { Initialize(); return _groupIds!; } + set { Initialize(); _groupIds!.Assign(value); } + } + private BicepList? _groupIds; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Provisioning state of the Private Endpoint Connection. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventGridDomain. /// - public EventGridDomain? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventGridDomain? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventGridDomainPrivateEndpointConnection. @@ -80,14 +110,22 @@ public partial class EventGridDomainPrivateEndpointConnection : ProvisionableRes public EventGridDomainPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/domains/privateEndpointConnections", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _groupIds = BicepList.DefineProperty(this, "GroupIds", ["properties", "groupIds"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// EventGridDomainPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _groupIds = DefineListProperty("GroupIds", ["properties", "groupIds"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespace.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespace.cs index a73c735bc0d64..bb21cf56c2833 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespace.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespace.cs @@ -21,27 +21,43 @@ public partial class EventGridNamespace : ProvisionableResource /// /// Name of the namespace. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Identity information for the Namespace resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// This can be used to restrict traffic from specific IPs instead of all /// IPs. Note: These are considered only if PublicNetworkAccess is enabled. /// - public BicepList InboundIPRules { get => _inboundIPRules; set => _inboundIPRules.Assign(value); } - private readonly BicepList _inboundIPRules; + public BicepList InboundIPRules + { + get { Initialize(); return _inboundIPRules!; } + set { Initialize(); _inboundIPRules!.Assign(value); } + } + private BicepList? _inboundIPRules; /// /// This is an optional property and it allows the user to specify if the @@ -53,21 +69,33 @@ public partial class EventGridNamespace : ProvisionableResource /// regions - The default property value would be false. Once /// specified, this property cannot be updated. /// - public BicepValue IsZoneRedundant { get => _isZoneRedundant; set => _isZoneRedundant.Assign(value); } - private readonly BicepValue _isZoneRedundant; + public BicepValue IsZoneRedundant + { + get { Initialize(); return _isZoneRedundant!; } + set { Initialize(); _isZoneRedundant!.Assign(value); } + } + private BicepValue? _isZoneRedundant; /// /// Minimum TLS version of the publisher allowed to publish to this /// namespace. Only TLS version 1.2 is supported. /// - public BicepValue MinimumTlsVersionAllowed { get => _minimumTlsVersionAllowed; set => _minimumTlsVersionAllowed.Assign(value); } - private readonly BicepValue _minimumTlsVersionAllowed; + public BicepValue MinimumTlsVersionAllowed + { + get { Initialize(); return _minimumTlsVersionAllowed!; } + set { Initialize(); _minimumTlsVersionAllowed!.Assign(value); } + } + private BicepValue? _minimumTlsVersionAllowed; /// /// List of private endpoint connections. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; set => _privateEndpointConnections.Assign(value); } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + set { Initialize(); _privateEndpointConnections!.Assign(value); } + } + private BicepList? _privateEndpointConnections; /// /// This determines if traffic is allowed over public network. By default @@ -76,50 +104,79 @@ public partial class EventGridNamespace : ProvisionableResource /// cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PubSub.NamespaceProperties.InboundIpRules" /// /> /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Represents available Sku pricing tiers. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public NamespaceSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private NamespaceSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Topics configuration information for the namespace resource. /// - public BicepValue TopicsConfiguration { get => _topicsConfiguration; set => _topicsConfiguration.Assign(value); } - private readonly BicepValue _topicsConfiguration; + public TopicsConfiguration TopicsConfiguration + { + get { Initialize(); return _topicsConfiguration!; } + set { Initialize(); AssignOrReplace(ref _topicsConfiguration, value); } + } + private TopicsConfiguration? _topicsConfiguration; /// /// Topic spaces configuration information for the namespace resource. /// - public BicepValue TopicSpacesConfiguration { get => _topicSpacesConfiguration; set => _topicSpacesConfiguration.Assign(value); } - private readonly BicepValue _topicSpacesConfiguration; + public TopicSpacesConfiguration TopicSpacesConfiguration + { + get { Initialize(); return _topicSpacesConfiguration!; } + set { Initialize(); AssignOrReplace(ref _topicSpacesConfiguration, value); } + } + private TopicSpacesConfiguration? _topicSpacesConfiguration; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the namespace resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new EventGridNamespace. @@ -134,21 +191,28 @@ public partial class EventGridNamespace : ProvisionableResource public EventGridNamespace(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/namespaces", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _inboundIPRules = BicepList.DefineProperty(this, "InboundIPRules", ["properties", "inboundIpRules"]); - _isZoneRedundant = BicepValue.DefineProperty(this, "IsZoneRedundant", ["properties", "isZoneRedundant"]); - _minimumTlsVersionAllowed = BicepValue.DefineProperty(this, "MinimumTlsVersionAllowed", ["properties", "minimumTlsVersionAllowed"]); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _topicsConfiguration = BicepValue.DefineProperty(this, "TopicsConfiguration", ["properties", "topicsConfiguration"]); - _topicSpacesConfiguration = BicepValue.DefineProperty(this, "TopicSpacesConfiguration", ["properties", "topicSpacesConfiguration"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of EventGridNamespace. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _inboundIPRules = DefineListProperty("InboundIPRules", ["properties", "inboundIpRules"]); + _isZoneRedundant = DefineProperty("IsZoneRedundant", ["properties", "isZoneRedundant"]); + _minimumTlsVersionAllowed = DefineProperty("MinimumTlsVersionAllowed", ["properties", "minimumTlsVersionAllowed"]); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _topicsConfiguration = DefineModelProperty("TopicsConfiguration", ["properties", "topicsConfiguration"]); + _topicSpacesConfiguration = DefineModelProperty("TopicSpacesConfiguration", ["properties", "topicSpacesConfiguration"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespaceClientGroup.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespaceClientGroup.cs index a1309aa49800b..080a9020f3ba6 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespaceClientGroup.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespaceClientGroup.cs @@ -20,45 +20,70 @@ public partial class EventGridNamespaceClientGroup : ProvisionableResource /// /// The client group name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Description for the Client Group resource. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The grouping query for the clients. Example : /// attributes.keyName IN ['a', 'b', 'c']. /// - public BicepValue Query { get => _query; set => _query.Assign(value); } - private readonly BicepValue _query; + public BicepValue Query + { + get { Initialize(); return _query!; } + set { Initialize(); _query!.Assign(value); } + } + private BicepValue? _query; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the ClientGroup resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventGridNamespace. /// - public EventGridNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventGridNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventGridNamespaceClientGroup. @@ -73,13 +98,21 @@ public partial class EventGridNamespaceClientGroup : ProvisionableResource public EventGridNamespaceClientGroup(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/namespaces/clientGroups", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _query = BicepValue.DefineProperty(this, "Query", ["properties", "query"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// EventGridNamespaceClientGroup. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _description = DefineProperty("Description", ["properties", "description"]); + _query = DefineProperty("Query", ["properties", "query"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespaceClientResource.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespaceClientResource.cs index 3e83731f32a6f..3355920a514e0 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespaceClientResource.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespaceClientResource.cs @@ -21,8 +21,12 @@ public partial class EventGridNamespaceClientResource : ProvisionableResource /// /// The client name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Attributes for the client. Supported values are int, bool, string, @@ -44,57 +48,90 @@ public partial class EventGridNamespaceClientResource : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepDictionary Attributes { get => _attributes; set => _attributes.Assign(value); } - private readonly BicepDictionary _attributes; + public BicepDictionary Attributes + { + get { Initialize(); return _attributes!; } + set { Initialize(); _attributes!.Assign(value); } + } + private BicepDictionary? _attributes; /// /// The name presented by the client for authentication. The default value /// is the name of the resource. /// - public BicepValue AuthenticationName { get => _authenticationName; set => _authenticationName.Assign(value); } - private readonly BicepValue _authenticationName; + public BicepValue AuthenticationName + { + get { Initialize(); return _authenticationName!; } + set { Initialize(); _authenticationName!.Assign(value); } + } + private BicepValue? _authenticationName; /// /// The client certificate authentication information. /// - public BicepValue ClientCertificateAuthentication { get => _clientCertificateAuthentication; set => _clientCertificateAuthentication.Assign(value); } - private readonly BicepValue _clientCertificateAuthentication; + public ClientCertificateAuthentication ClientCertificateAuthentication + { + get { Initialize(); return _clientCertificateAuthentication!; } + set { Initialize(); AssignOrReplace(ref _clientCertificateAuthentication, value); } + } + private ClientCertificateAuthentication? _clientCertificateAuthentication; /// /// Description for the Client resource. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Indicates if the client is enabled or not. Default value is Enabled. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the Client resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventGridNamespace. /// - public EventGridNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventGridNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventGridNamespaceClientResource. @@ -109,16 +146,24 @@ public partial class EventGridNamespaceClientResource : ProvisionableResource public EventGridNamespaceClientResource(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/namespaces/clients", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _attributes = BicepDictionary.DefineProperty(this, "Attributes", ["properties", "attributes"]); - _authenticationName = BicepValue.DefineProperty(this, "AuthenticationName", ["properties", "authenticationName"]); - _clientCertificateAuthentication = BicepValue.DefineProperty(this, "ClientCertificateAuthentication", ["properties", "clientCertificateAuthentication"]); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// EventGridNamespaceClientResource. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _attributes = DefineDictionaryProperty("Attributes", ["properties", "attributes"]); + _authenticationName = DefineProperty("AuthenticationName", ["properties", "authenticationName"]); + _clientCertificateAuthentication = DefineModelProperty("ClientCertificateAuthentication", ["properties", "clientCertificateAuthentication"]); + _description = DefineProperty("Description", ["properties", "description"]); + _state = DefineProperty("State", ["properties", "state"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespacePermissionBinding.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespacePermissionBinding.cs index 44b459a62a73c..2687f0d292a44 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespacePermissionBinding.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridNamespacePermissionBinding.cs @@ -20,60 +20,93 @@ public partial class EventGridNamespacePermissionBinding : ProvisionableResource /// /// The permission binding name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The name of the client group resource that the permission is bound to. /// The client group needs to be a resource under the same /// namespace the permission binding is a part of. /// - public BicepValue ClientGroupName { get => _clientGroupName; set => _clientGroupName.Assign(value); } - private readonly BicepValue _clientGroupName; + public BicepValue ClientGroupName + { + get { Initialize(); return _clientGroupName!; } + set { Initialize(); _clientGroupName!.Assign(value); } + } + private BicepValue? _clientGroupName; /// /// Description for the Permission Binding resource. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The allowed permission. /// - public BicepValue Permission { get => _permission; set => _permission.Assign(value); } - private readonly BicepValue _permission; + public BicepValue Permission + { + get { Initialize(); return _permission!; } + set { Initialize(); _permission!.Assign(value); } + } + private BicepValue? _permission; /// /// The name of the Topic Space resource that the permission is bound to. /// The Topic space needs to be a resource under the same /// namespace the permission binding is a part of. /// - public BicepValue TopicSpaceName { get => _topicSpaceName; set => _topicSpaceName.Assign(value); } - private readonly BicepValue _topicSpaceName; + public BicepValue TopicSpaceName + { + get { Initialize(); return _topicSpaceName!; } + set { Initialize(); _topicSpaceName!.Assign(value); } + } + private BicepValue? _topicSpaceName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the PermissionBinding resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventGridNamespace. /// - public EventGridNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventGridNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventGridNamespacePermissionBinding. @@ -88,15 +121,23 @@ public partial class EventGridNamespacePermissionBinding : ProvisionableResource public EventGridNamespacePermissionBinding(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/namespaces/permissionBindings", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _clientGroupName = BicepValue.DefineProperty(this, "ClientGroupName", ["properties", "clientGroupName"]); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _permission = BicepValue.DefineProperty(this, "Permission", ["properties", "permission"]); - _topicSpaceName = BicepValue.DefineProperty(this, "TopicSpaceName", ["properties", "topicSpaceName"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// EventGridNamespacePermissionBinding. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _clientGroupName = DefineProperty("ClientGroupName", ["properties", "clientGroupName"]); + _description = DefineProperty("Description", ["properties", "description"]); + _permission = DefineProperty("Permission", ["properties", "permission"]); + _topicSpaceName = DefineProperty("TopicSpaceName", ["properties", "topicSpaceName"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridPartnerNamespacePrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridPartnerNamespacePrivateEndpointConnection.cs index ddd525152c060..c0a0e954f615b 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridPartnerNamespacePrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridPartnerNamespacePrivateEndpointConnection.cs @@ -21,50 +21,80 @@ public partial class EventGridPartnerNamespacePrivateEndpointConnection : Provis /// /// The name of the private endpoint connection connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Details about the state of the connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public EventGridPrivateEndpointConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private EventGridPrivateEndpointConnectionState? _connectionState; /// /// GroupIds from the private link service resource. /// - public BicepList GroupIds { get => _groupIds; set => _groupIds.Assign(value); } - private readonly BicepList _groupIds; + public BicepList GroupIds + { + get { Initialize(); return _groupIds!; } + set { Initialize(); _groupIds!.Assign(value); } + } + private BicepList? _groupIds; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Provisioning state of the Private Endpoint Connection. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent PartnerNamespace. /// - public PartnerNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PartnerNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventGridPartnerNamespacePrivateEndpointConnection. @@ -80,14 +110,22 @@ public partial class EventGridPartnerNamespacePrivateEndpointConnection : Provis public EventGridPartnerNamespacePrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/partnerNamespaces/privateEndpointConnections", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _groupIds = BicepList.DefineProperty(this, "GroupIds", ["properties", "groupIds"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// EventGridPartnerNamespacePrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _groupIds = DefineListProperty("GroupIds", ["properties", "groupIds"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridTopic.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridTopic.cs index 1bac61e459336..31be5d20c76cc 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridTopic.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridTopic.cs @@ -22,54 +22,86 @@ public partial class EventGridTopic : ProvisionableResource /// /// Name of the topic. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Data Residency Boundary of the resource. /// - public BicepValue DataResidencyBoundary { get => _dataResidencyBoundary; set => _dataResidencyBoundary.Assign(value); } - private readonly BicepValue _dataResidencyBoundary; + public BicepValue DataResidencyBoundary + { + get { Initialize(); return _dataResidencyBoundary!; } + set { Initialize(); _dataResidencyBoundary!.Assign(value); } + } + private BicepValue? _dataResidencyBoundary; /// /// Event Type Information for the user topic. This information is provided /// by the publisher and can be used by the subscriber to view /// different types of events that are published. /// - public BicepValue EventTypeInfo { get => _eventTypeInfo; set => _eventTypeInfo.Assign(value); } - private readonly BicepValue _eventTypeInfo; + public PartnerTopicEventTypeInfo EventTypeInfo + { + get { Initialize(); return _eventTypeInfo!; } + set { Initialize(); AssignOrReplace(ref _eventTypeInfo, value); } + } + private PartnerTopicEventTypeInfo? _eventTypeInfo; /// /// Extended location of the resource. /// - public BicepValue ExtendedLocation { get => _extendedLocation; set => _extendedLocation.Assign(value); } - private readonly BicepValue _extendedLocation; + public ExtendedAzureLocation ExtendedLocation + { + get { Initialize(); return _extendedLocation!; } + set { Initialize(); AssignOrReplace(ref _extendedLocation, value); } + } + private ExtendedAzureLocation? _extendedLocation; /// /// Identity information for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// This can be used to restrict traffic from specific IPs instead of all /// IPs. Note: These are considered only if PublicNetworkAccess is enabled. /// - public BicepList InboundIPRules { get => _inboundIPRules; set => _inboundIPRules.Assign(value); } - private readonly BicepList _inboundIPRules; + public BicepList InboundIPRules + { + get { Initialize(); return _inboundIPRules!; } + set { Initialize(); _inboundIPRules!.Assign(value); } + } + private BicepList? _inboundIPRules; /// /// This determines the format that Event Grid should expect for incoming /// events published to the topic. /// - public BicepValue InputSchema { get => _inputSchema; set => _inputSchema.Assign(value); } - private readonly BicepValue _inputSchema; + public BicepValue InputSchema + { + get { Initialize(); return _inputSchema!; } + set { Initialize(); _inputSchema!.Assign(value); } + } + private BicepValue? _inputSchema; /// /// This enables publishing using custom event schemas. An @@ -83,28 +115,44 @@ public partial class EventGridTopic : ProvisionableResource /// available derived classes include /// Azure.ResourceManager.EventGrid.Models.EventGridJsonInputSchemaMapping. /// - public BicepValue InputSchemaMapping { get => _inputSchemaMapping; set => _inputSchemaMapping.Assign(value); } - private readonly BicepValue _inputSchemaMapping; + public EventGridInputSchemaMapping InputSchemaMapping + { + get { Initialize(); return _inputSchemaMapping!; } + set { Initialize(); AssignOrReplace(ref _inputSchemaMapping, value); } + } + private EventGridInputSchemaMapping? _inputSchemaMapping; /// /// This boolean is used to enable or disable local auth. Default value is /// false. When the property is set to true, only AAD token will be used /// to authenticate if user is allowed to publish to the topic. /// - public BicepValue IsLocalAuthDisabled { get => _isLocalAuthDisabled; set => _isLocalAuthDisabled.Assign(value); } - private readonly BicepValue _isLocalAuthDisabled; + public BicepValue IsLocalAuthDisabled + { + get { Initialize(); return _isLocalAuthDisabled!; } + set { Initialize(); _isLocalAuthDisabled!.Assign(value); } + } + private BicepValue? _isLocalAuthDisabled; /// /// Kind of the resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Minimum TLS version of the publisher allowed to publish to this topic. /// - public BicepValue MinimumTlsVersionAllowed { get => _minimumTlsVersionAllowed; set => _minimumTlsVersionAllowed.Assign(value); } - private readonly BicepValue _minimumTlsVersionAllowed; + public BicepValue MinimumTlsVersionAllowed + { + get { Initialize(); return _minimumTlsVersionAllowed!; } + set { Initialize(); _minimumTlsVersionAllowed!.Assign(value); } + } + private BicepValue? _minimumTlsVersionAllowed; /// /// This determines if traffic is allowed over public network. By default @@ -113,56 +161,86 @@ public partial class EventGridTopic : ProvisionableResource /// cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.TopicProperties.InboundIpRules" /// /> /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// The Sku name of the resource. The possible values are: Basic or Premium. /// - public BicepValue SkuName { get => _skuName; set => _skuName.Assign(value); } - private readonly BicepValue _skuName; + public BicepValue SkuName + { + get { Initialize(); return _skuName!; } + set { Initialize(); _skuName!.Assign(value); } + } + private BicepValue? _skuName; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Endpoint for the topic. /// - public BicepValue Endpoint { get => _endpoint; } - private readonly BicepValue _endpoint; + public BicepValue Endpoint + { + get { Initialize(); return _endpoint!; } + } + private BicepValue? _endpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Metric resource id for the topic. /// - public BicepValue MetricResourceId { get => _metricResourceId; } - private readonly BicepValue _metricResourceId; + public BicepValue MetricResourceId + { + get { Initialize(); return _metricResourceId!; } + } + private BicepValue? _metricResourceId; /// /// List of private endpoint connections. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// Provisioning state of the topic. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new EventGridTopic. @@ -177,27 +255,34 @@ public partial class EventGridTopic : ProvisionableResource public EventGridTopic(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/topics", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _dataResidencyBoundary = BicepValue.DefineProperty(this, "DataResidencyBoundary", ["properties", "dataResidencyBoundary"]); - _eventTypeInfo = BicepValue.DefineProperty(this, "EventTypeInfo", ["properties", "eventTypeInfo"]); - _extendedLocation = BicepValue.DefineProperty(this, "ExtendedLocation", ["extendedLocation"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _inboundIPRules = BicepList.DefineProperty(this, "InboundIPRules", ["properties", "inboundIpRules"]); - _inputSchema = BicepValue.DefineProperty(this, "InputSchema", ["properties", "inputSchema"]); - _inputSchemaMapping = BicepValue.DefineProperty(this, "InputSchemaMapping", ["properties", "inputSchemaMapping"]); - _isLocalAuthDisabled = BicepValue.DefineProperty(this, "IsLocalAuthDisabled", ["properties", "disableLocalAuth"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _minimumTlsVersionAllowed = BicepValue.DefineProperty(this, "MinimumTlsVersionAllowed", ["properties", "minimumTlsVersionAllowed"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _skuName = BicepValue.DefineProperty(this, "SkuName", ["sku", "name"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _endpoint = BicepValue.DefineProperty(this, "Endpoint", ["properties", "endpoint"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _metricResourceId = BicepValue.DefineProperty(this, "MetricResourceId", ["properties", "metricResourceId"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of EventGridTopic. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _dataResidencyBoundary = DefineProperty("DataResidencyBoundary", ["properties", "dataResidencyBoundary"]); + _eventTypeInfo = DefineModelProperty("EventTypeInfo", ["properties", "eventTypeInfo"]); + _extendedLocation = DefineModelProperty("ExtendedLocation", ["extendedLocation"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _inboundIPRules = DefineListProperty("InboundIPRules", ["properties", "inboundIpRules"]); + _inputSchema = DefineProperty("InputSchema", ["properties", "inputSchema"]); + _inputSchemaMapping = DefineModelProperty("InputSchemaMapping", ["properties", "inputSchemaMapping"]); + _isLocalAuthDisabled = DefineProperty("IsLocalAuthDisabled", ["properties", "disableLocalAuth"]); + _kind = DefineProperty("Kind", ["kind"]); + _minimumTlsVersionAllowed = DefineProperty("MinimumTlsVersionAllowed", ["properties", "minimumTlsVersionAllowed"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _skuName = DefineProperty("SkuName", ["sku", "name"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _endpoint = DefineProperty("Endpoint", ["properties", "endpoint"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _metricResourceId = DefineProperty("MetricResourceId", ["properties", "metricResourceId"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridTopicPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridTopicPrivateEndpointConnection.cs index 1db55afab49bb..a670dc673c581 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridTopicPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventGridTopicPrivateEndpointConnection.cs @@ -21,50 +21,80 @@ public partial class EventGridTopicPrivateEndpointConnection : ProvisionableReso /// /// The name of the private endpoint connection connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Details about the state of the connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public EventGridPrivateEndpointConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private EventGridPrivateEndpointConnectionState? _connectionState; /// /// GroupIds from the private link service resource. /// - public BicepList GroupIds { get => _groupIds; set => _groupIds.Assign(value); } - private readonly BicepList _groupIds; + public BicepList GroupIds + { + get { Initialize(); return _groupIds!; } + set { Initialize(); _groupIds!.Assign(value); } + } + private BicepList? _groupIds; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Provisioning state of the Private Endpoint Connection. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventGridTopic. /// - public EventGridTopic? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventGridTopic? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventGridTopicPrivateEndpointConnection. @@ -79,14 +109,22 @@ public partial class EventGridTopicPrivateEndpointConnection : ProvisionableReso public EventGridTopicPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/topics/privateEndpointConnections", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _groupIds = BicepList.DefineProperty(this, "GroupIds", ["properties", "groupIds"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// EventGridTopicPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _groupIds = DefineListProperty("GroupIds", ["properties", "groupIds"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventSubscription.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventSubscription.cs index ca8c7d607a3b0..1a63a17fcccc4 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventSubscription.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/EventSubscription.cs @@ -24,8 +24,12 @@ public partial class EventSubscription : ProvisionableResource /// must be between 3 and 64 characters in length and should use /// alphanumeric letters only. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The dead letter destination of the event subscription. Any event that @@ -40,8 +44,12 @@ public partial class EventSubscription : ProvisionableResource /// available derived classes include /// Azure.ResourceManager.EventGrid.Models.StorageBlobDeadLetterDestination. /// - public BicepValue DeadLetterDestination { get => _deadLetterDestination; set => _deadLetterDestination.Assign(value); } - private readonly BicepValue _deadLetterDestination; + public DeadLetterDestination DeadLetterDestination + { + get { Initialize(); return _deadLetterDestination!; } + set { Initialize(); AssignOrReplace(ref _deadLetterDestination, value); } + } + private DeadLetterDestination? _deadLetterDestination; /// /// The dead letter destination of the event subscription. Any event that @@ -50,8 +58,12 @@ public partial class EventSubscription : ProvisionableResource /// parent resource (namely, topic or domain) to acquire the /// authentication tokens being used during delivery / dead-lettering. /// - public BicepValue DeadLetterWithResourceIdentity { get => _deadLetterWithResourceIdentity; set => _deadLetterWithResourceIdentity.Assign(value); } - private readonly BicepValue _deadLetterWithResourceIdentity; + public DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity + { + get { Initialize(); return _deadLetterWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deadLetterWithResourceIdentity, value); } + } + private DeadLetterWithResourceIdentity? _deadLetterWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -59,8 +71,12 @@ public partial class EventSubscription : ProvisionableResource /// the parent resource (namely, topic or domain) to acquire the /// authentication tokens being used during delivery / dead-lettering. /// - public BicepValue DeliveryWithResourceIdentity { get => _deliveryWithResourceIdentity; set => _deliveryWithResourceIdentity.Assign(value); } - private readonly BicepValue _deliveryWithResourceIdentity; + public DeliveryWithResourceIdentity DeliveryWithResourceIdentity + { + get { Initialize(); return _deliveryWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deliveryWithResourceIdentity, value); } + } + private DeliveryWithResourceIdentity? _deliveryWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -84,63 +100,99 @@ public partial class EventSubscription : ProvisionableResource /// and /// Azure.ResourceManager.EventGrid.Models.WebHookEventSubscriptionDestination. /// - public BicepValue Destination { get => _destination; set => _destination.Assign(value); } - private readonly BicepValue _destination; + public EventSubscriptionDestination Destination + { + get { Initialize(); return _destination!; } + set { Initialize(); AssignOrReplace(ref _destination, value); } + } + private EventSubscriptionDestination? _destination; /// /// The event delivery schema for the event subscription. /// - public BicepValue EventDeliverySchema { get => _eventDeliverySchema; set => _eventDeliverySchema.Assign(value); } - private readonly BicepValue _eventDeliverySchema; + public BicepValue EventDeliverySchema + { + get { Initialize(); return _eventDeliverySchema!; } + set { Initialize(); _eventDeliverySchema!.Assign(value); } + } + private BicepValue? _eventDeliverySchema; /// /// Expiration time of the event subscription. /// - public BicepValue ExpireOn { get => _expireOn; set => _expireOn.Assign(value); } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + set { Initialize(); _expireOn!.Assign(value); } + } + private BicepValue? _expireOn; /// /// Information about the filter for the event subscription. /// - public BicepValue Filter { get => _filter; set => _filter.Assign(value); } - private readonly BicepValue _filter; + public EventSubscriptionFilter Filter + { + get { Initialize(); return _filter!; } + set { Initialize(); AssignOrReplace(ref _filter, value); } + } + private EventSubscriptionFilter? _filter; /// /// List of user defined labels. /// - public BicepList Labels { get => _labels; set => _labels.Assign(value); } - private readonly BicepList _labels; + public BicepList Labels + { + get { Initialize(); return _labels!; } + set { Initialize(); _labels!.Assign(value); } + } + private BicepList? _labels; /// /// The retry policy for events. This can be used to configure maximum /// number of delivery attempts and time to live for events. /// - public BicepValue RetryPolicy { get => _retryPolicy; set => _retryPolicy.Assign(value); } - private readonly BicepValue _retryPolicy; + public EventSubscriptionRetryPolicy RetryPolicy + { + get { Initialize(); return _retryPolicy!; } + set { Initialize(); AssignOrReplace(ref _retryPolicy, value); } + } + private EventSubscriptionRetryPolicy? _retryPolicy; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the event subscription. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Name of the topic of the event subscription. /// - public BicepValue Topic { get => _topic; } - private readonly BicepValue _topic; + public BicepValue Topic + { + get { Initialize(); return _topic!; } + } + private BicepValue? _topic; /// /// Creates a new EventSubscription. @@ -155,20 +207,27 @@ public partial class EventSubscription : ProvisionableResource public EventSubscription(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/eventSubscriptions", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _deadLetterDestination = BicepValue.DefineProperty(this, "DeadLetterDestination", ["properties", "deadLetterDestination"]); - _deadLetterWithResourceIdentity = BicepValue.DefineProperty(this, "DeadLetterWithResourceIdentity", ["properties", "deadLetterWithResourceIdentity"]); - _deliveryWithResourceIdentity = BicepValue.DefineProperty(this, "DeliveryWithResourceIdentity", ["properties", "deliveryWithResourceIdentity"]); - _destination = BicepValue.DefineProperty(this, "Destination", ["properties", "destination"]); - _eventDeliverySchema = BicepValue.DefineProperty(this, "EventDeliverySchema", ["properties", "eventDeliverySchema"]); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["properties", "expirationTimeUtc"]); - _filter = BicepValue.DefineProperty(this, "Filter", ["properties", "filter"]); - _labels = BicepList.DefineProperty(this, "Labels", ["properties", "labels"]); - _retryPolicy = BicepValue.DefineProperty(this, "RetryPolicy", ["properties", "retryPolicy"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _topic = BicepValue.DefineProperty(this, "Topic", ["properties", "topic"], isOutput: true); + } + + /// + /// Define all the provisionable properties of EventSubscription. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _deadLetterDestination = DefineModelProperty("DeadLetterDestination", ["properties", "deadLetterDestination"]); + _deadLetterWithResourceIdentity = DefineModelProperty("DeadLetterWithResourceIdentity", ["properties", "deadLetterWithResourceIdentity"]); + _deliveryWithResourceIdentity = DefineModelProperty("DeliveryWithResourceIdentity", ["properties", "deliveryWithResourceIdentity"]); + _destination = DefineModelProperty("Destination", ["properties", "destination"]); + _eventDeliverySchema = DefineProperty("EventDeliverySchema", ["properties", "eventDeliverySchema"]); + _expireOn = DefineProperty("ExpireOn", ["properties", "expirationTimeUtc"]); + _filter = DefineModelProperty("Filter", ["properties", "filter"]); + _labels = DefineListProperty("Labels", ["properties", "labels"]); + _retryPolicy = DefineModelProperty("RetryPolicy", ["properties", "retryPolicy"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _topic = DefineProperty("Topic", ["properties", "topic"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/AdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/AdvancedFilter.cs index e44f5bfb7b12f..03247d394e0f5 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/AdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/AdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -44,14 +46,26 @@ public partial class AdvancedFilter : ProvisionableConstruct /// /// The field/property in the event based on which you want to filter. /// - public BicepValue Key { get => _key; set => _key.Assign(value); } - private readonly BicepValue _key; + public BicepValue Key + { + get { Initialize(); return _key!; } + set { Initialize(); _key!.Assign(value); } + } + private BicepValue? _key; /// /// Creates a new AdvancedFilter. /// public AdvancedFilter() { - _key = BicepValue.DefineProperty(this, "Key", ["key"]); + } + + /// + /// Define all the provisionable properties of AdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _key = DefineProperty("Key", ["key"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/AzureADPartnerClientAuthentication.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/AzureADPartnerClientAuthentication.cs index 9bd69fa1b92d9..f56ec7a819d20 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/AzureADPartnerClientAuthentication.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/AzureADPartnerClientAuthentication.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,23 +19,40 @@ public partial class AzureADPartnerClientAuthentication : PartnerClientAuthentic /// The Azure Active Directory Tenant ID to get the access token that will /// be included as the bearer token in delivery requests. /// - public BicepValue AzureActiveDirectoryTenantId { get => _azureActiveDirectoryTenantId; set => _azureActiveDirectoryTenantId.Assign(value); } - private readonly BicepValue _azureActiveDirectoryTenantId; + public BicepValue AzureActiveDirectoryTenantId + { + get { Initialize(); return _azureActiveDirectoryTenantId!; } + set { Initialize(); _azureActiveDirectoryTenantId!.Assign(value); } + } + private BicepValue? _azureActiveDirectoryTenantId; /// /// The Azure Active Directory Application ID or URI to get the access /// token that will be included as the bearer token in delivery requests. /// - public BicepValue AzureActiveDirectoryApplicationIdOrUri { get => _azureActiveDirectoryApplicationIdOrUri; set => _azureActiveDirectoryApplicationIdOrUri.Assign(value); } - private readonly BicepValue _azureActiveDirectoryApplicationIdOrUri; + public BicepValue AzureActiveDirectoryApplicationIdOrUri + { + get { Initialize(); return _azureActiveDirectoryApplicationIdOrUri!; } + set { Initialize(); _azureActiveDirectoryApplicationIdOrUri!.Assign(value); } + } + private BicepValue? _azureActiveDirectoryApplicationIdOrUri; /// /// Creates a new AzureADPartnerClientAuthentication. /// public AzureADPartnerClientAuthentication() : base() { - BicepValue.DefineProperty(this, "clientAuthenticationType", ["clientAuthenticationType"], defaultValue: "AzureAD"); - _azureActiveDirectoryTenantId = BicepValue.DefineProperty(this, "AzureActiveDirectoryTenantId", ["properties", "azureActiveDirectoryTenantId"]); - _azureActiveDirectoryApplicationIdOrUri = BicepValue.DefineProperty(this, "AzureActiveDirectoryApplicationIdOrUri", ["properties", "azureActiveDirectoryApplicationIdOrUri"]); + } + + /// + /// Define all the provisionable properties of + /// AzureADPartnerClientAuthentication. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("clientAuthenticationType", ["clientAuthenticationType"], defaultValue: "AzureAD"); + _azureActiveDirectoryTenantId = DefineProperty("AzureActiveDirectoryTenantId", ["properties", "azureActiveDirectoryTenantId"]); + _azureActiveDirectoryApplicationIdOrUri = DefineProperty("AzureActiveDirectoryApplicationIdOrUri", ["properties", "azureActiveDirectoryApplicationIdOrUri"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/AzureFunctionEventSubscriptionDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/AzureFunctionEventSubscriptionDestination.cs index 04a89a395ea45..78b227d407115 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/AzureFunctionEventSubscriptionDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/AzureFunctionEventSubscriptionDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -19,20 +21,32 @@ public partial class AzureFunctionEventSubscriptionDestination : EventSubscripti /// The Azure Resource Id that represents the endpoint of the Azure /// Function destination of an event subscription. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// Maximum number of events per batch. /// - public BicepValue MaxEventsPerBatch { get => _maxEventsPerBatch; set => _maxEventsPerBatch.Assign(value); } - private readonly BicepValue _maxEventsPerBatch; + public BicepValue MaxEventsPerBatch + { + get { Initialize(); return _maxEventsPerBatch!; } + set { Initialize(); _maxEventsPerBatch!.Assign(value); } + } + private BicepValue? _maxEventsPerBatch; /// /// Preferred batch size in Kilobytes. /// - public BicepValue PreferredBatchSizeInKilobytes { get => _preferredBatchSizeInKilobytes; set => _preferredBatchSizeInKilobytes.Assign(value); } - private readonly BicepValue _preferredBatchSizeInKilobytes; + public BicepValue PreferredBatchSizeInKilobytes + { + get { Initialize(); return _preferredBatchSizeInKilobytes!; } + set { Initialize(); _preferredBatchSizeInKilobytes!.Assign(value); } + } + private BicepValue? _preferredBatchSizeInKilobytes; /// /// Delivery attribute details. Please note @@ -45,18 +59,31 @@ public partial class AzureFunctionEventSubscriptionDestination : EventSubscripti /// and /// Azure.ResourceManager.EventGrid.Models.StaticDeliveryAttributeMapping. /// - public BicepList DeliveryAttributeMappings { get => _deliveryAttributeMappings; set => _deliveryAttributeMappings.Assign(value); } - private readonly BicepList _deliveryAttributeMappings; + public BicepList DeliveryAttributeMappings + { + get { Initialize(); return _deliveryAttributeMappings!; } + set { Initialize(); _deliveryAttributeMappings!.Assign(value); } + } + private BicepList? _deliveryAttributeMappings; /// /// Creates a new AzureFunctionEventSubscriptionDestination. /// public AzureFunctionEventSubscriptionDestination() : base() { - BicepValue.DefineProperty(this, "endpointType", ["endpointType"], defaultValue: "AzureFunction"); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceId"]); - _maxEventsPerBatch = BicepValue.DefineProperty(this, "MaxEventsPerBatch", ["properties", "maxEventsPerBatch"]); - _preferredBatchSizeInKilobytes = BicepValue.DefineProperty(this, "PreferredBatchSizeInKilobytes", ["properties", "preferredBatchSizeInKilobytes"]); - _deliveryAttributeMappings = BicepList.DefineProperty(this, "DeliveryAttributeMappings", ["properties", "deliveryAttributeMappings"]); + } + + /// + /// Define all the provisionable properties of + /// AzureFunctionEventSubscriptionDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("endpointType", ["endpointType"], defaultValue: "AzureFunction"); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceId"]); + _maxEventsPerBatch = DefineProperty("MaxEventsPerBatch", ["properties", "maxEventsPerBatch"]); + _preferredBatchSizeInKilobytes = DefineProperty("PreferredBatchSizeInKilobytes", ["properties", "preferredBatchSizeInKilobytes"]); + _deliveryAttributeMappings = DefineListProperty("DeliveryAttributeMappings", ["properties", "deliveryAttributeMappings"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/BoolEqualsAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/BoolEqualsAdvancedFilter.cs index 8dccdd1f0a961..6260ed3407b4b 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/BoolEqualsAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/BoolEqualsAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,27 @@ public partial class BoolEqualsAdvancedFilter : AdvancedFilter /// /// The boolean filter value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new BoolEqualsAdvancedFilter. /// public BoolEqualsAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "BoolEquals"); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of BoolEqualsAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "BoolEquals"); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/BoolEqualsFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/BoolEqualsFilter.cs index aba9f2ae94c6b..c0ebdf83dcfd9 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/BoolEqualsFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/BoolEqualsFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,27 @@ public partial class BoolEqualsFilter : EventGridFilter /// /// The boolean filter value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new BoolEqualsFilter. /// public BoolEqualsFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "BoolEquals"); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of BoolEqualsFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "BoolEquals"); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ClientAuthenticationSettings.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ClientAuthenticationSettings.cs index 381fe65d1ad80..74cd20ab18283 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ClientAuthenticationSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ClientAuthenticationSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,37 @@ public partial class ClientAuthenticationSettings : ProvisionableConstruct /// Alternative authentication name sources related to client /// authentication settings for namespace resource. /// - public BicepList AlternativeAuthenticationNameSources { get => _alternativeAuthenticationNameSources; set => _alternativeAuthenticationNameSources.Assign(value); } - private readonly BicepList _alternativeAuthenticationNameSources; + public BicepList AlternativeAuthenticationNameSources + { + get { Initialize(); return _alternativeAuthenticationNameSources!; } + set { Initialize(); _alternativeAuthenticationNameSources!.Assign(value); } + } + private BicepList? _alternativeAuthenticationNameSources; /// /// Custom JWT authentication settings for namespace resource. /// - public BicepValue CustomJwtAuthentication { get => _customJwtAuthentication; set => _customJwtAuthentication.Assign(value); } - private readonly BicepValue _customJwtAuthentication; + public CustomJwtAuthenticationSettings CustomJwtAuthentication + { + get { Initialize(); return _customJwtAuthentication!; } + set { Initialize(); AssignOrReplace(ref _customJwtAuthentication, value); } + } + private CustomJwtAuthenticationSettings? _customJwtAuthentication; /// /// Creates a new ClientAuthenticationSettings. /// public ClientAuthenticationSettings() { - _alternativeAuthenticationNameSources = BicepList.DefineProperty(this, "AlternativeAuthenticationNameSources", ["alternativeAuthenticationNameSources"]); - _customJwtAuthentication = BicepValue.DefineProperty(this, "CustomJwtAuthentication", ["customJwtAuthentication"]); + } + + /// + /// Define all the provisionable properties of ClientAuthenticationSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _alternativeAuthenticationNameSources = DefineListProperty("AlternativeAuthenticationNameSources", ["alternativeAuthenticationNameSources"]); + _customJwtAuthentication = DefineModelProperty("CustomJwtAuthentication", ["customJwtAuthentication"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ClientCertificateAuthentication.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ClientCertificateAuthentication.cs index a0d397ef4c5b3..d749ffb61cbc9 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ClientCertificateAuthentication.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ClientCertificateAuthentication.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,23 +20,40 @@ public partial class ClientCertificateAuthentication : ProvisionableConstruct /// The validation scheme used to authenticate the client. Default value is /// SubjectMatchesAuthenticationName. /// - public BicepValue ValidationScheme { get => _validationScheme; set => _validationScheme.Assign(value); } - private readonly BicepValue _validationScheme; + public BicepValue ValidationScheme + { + get { Initialize(); return _validationScheme!; } + set { Initialize(); _validationScheme!.Assign(value); } + } + private BicepValue? _validationScheme; /// /// The list of thumbprints that are allowed during client authentication. /// This property is required only if the validationScheme is /// 'ThumbprintMatch'. /// - public BicepList AllowedThumbprints { get => _allowedThumbprints; set => _allowedThumbprints.Assign(value); } - private readonly BicepList _allowedThumbprints; + public BicepList AllowedThumbprints + { + get { Initialize(); return _allowedThumbprints!; } + set { Initialize(); _allowedThumbprints!.Assign(value); } + } + private BicepList? _allowedThumbprints; /// /// Creates a new ClientCertificateAuthentication. /// public ClientCertificateAuthentication() { - _validationScheme = BicepValue.DefineProperty(this, "ValidationScheme", ["validationScheme"]); - _allowedThumbprints = BicepList.DefineProperty(this, "AllowedThumbprints", ["allowedThumbprints"]); + } + + /// + /// Define all the provisionable properties of + /// ClientCertificateAuthentication. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _validationScheme = DefineProperty("ValidationScheme", ["validationScheme"]); + _allowedThumbprints = DefineListProperty("AllowedThumbprints", ["allowedThumbprints"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomDomainConfiguration.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomDomainConfiguration.cs index f37282310b3a4..15de3b27c38c9 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomDomainConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomDomainConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,8 +19,12 @@ public partial class CustomDomainConfiguration : ProvisionableConstruct /// /// Fully Qualified Domain Name (FQDN) for the custom domain. /// - public BicepValue FullyQualifiedDomainName { get => _fullyQualifiedDomainName; set => _fullyQualifiedDomainName.Assign(value); } - private readonly BicepValue _fullyQualifiedDomainName; + public BicepValue FullyQualifiedDomainName + { + get { Initialize(); return _fullyQualifiedDomainName!; } + set { Initialize(); _fullyQualifiedDomainName!.Assign(value); } + } + private BicepValue? _fullyQualifiedDomainName; /// /// Validation state for the custom domain. This is a read only property @@ -26,16 +32,24 @@ public partial class CustomDomainConfiguration : ProvisionableConstruct /// 'Approved' by Event Grid only after ownership of the domain /// name has been successfully validated. /// - public BicepValue ValidationState { get => _validationState; set => _validationState.Assign(value); } - private readonly BicepValue _validationState; + public BicepValue ValidationState + { + get { Initialize(); return _validationState!; } + set { Initialize(); _validationState!.Assign(value); } + } + private BicepValue? _validationState; /// /// Identity info for accessing the certificate for the custom domain. This /// identity info must match an identity that has been set on the /// namespace. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public CustomDomainIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private CustomDomainIdentity? _identity; /// /// The URL for the certificate that is used for publishing to the custom @@ -48,8 +62,12 @@ public partial class CustomDomainConfiguration : ProvisionableConstruct /// we support unversioned certificate URL only (e.g., /// https://contosovault.vault.azure.net/certificates/contosocert) /// - public BicepValue CertificateUri { get => _certificateUri; set => _certificateUri.Assign(value); } - private readonly BicepValue _certificateUri; + public BicepValue CertificateUri + { + get { Initialize(); return _certificateUri!; } + set { Initialize(); _certificateUri!.Assign(value); } + } + private BicepValue? _certificateUri; /// /// Expected DNS TXT record name. Event Grid will check for a TXT record @@ -57,27 +75,43 @@ public partial class CustomDomainConfiguration : ProvisionableConstruct /// prove ownership over the domain. The values under this TXT /// record must contain the expected TXT record value. /// - public BicepValue ExpectedTxtRecordName { get => _expectedTxtRecordName; set => _expectedTxtRecordName.Assign(value); } - private readonly BicepValue _expectedTxtRecordName; + public BicepValue ExpectedTxtRecordName + { + get { Initialize(); return _expectedTxtRecordName!; } + set { Initialize(); _expectedTxtRecordName!.Assign(value); } + } + private BicepValue? _expectedTxtRecordName; /// /// Expected DNS TXT record value. Event Grid will check for a TXT record /// with this value in the DNS record set of the custom domain name to /// prove ownership over the domain. /// - public BicepValue ExpectedTxtRecordValue { get => _expectedTxtRecordValue; set => _expectedTxtRecordValue.Assign(value); } - private readonly BicepValue _expectedTxtRecordValue; + public BicepValue ExpectedTxtRecordValue + { + get { Initialize(); return _expectedTxtRecordValue!; } + set { Initialize(); _expectedTxtRecordValue!.Assign(value); } + } + private BicepValue? _expectedTxtRecordValue; /// /// Creates a new CustomDomainConfiguration. /// public CustomDomainConfiguration() { - _fullyQualifiedDomainName = BicepValue.DefineProperty(this, "FullyQualifiedDomainName", ["fullyQualifiedDomainName"]); - _validationState = BicepValue.DefineProperty(this, "ValidationState", ["validationState"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _certificateUri = BicepValue.DefineProperty(this, "CertificateUri", ["certificateUrl"]); - _expectedTxtRecordName = BicepValue.DefineProperty(this, "ExpectedTxtRecordName", ["expectedTxtRecordName"]); - _expectedTxtRecordValue = BicepValue.DefineProperty(this, "ExpectedTxtRecordValue", ["expectedTxtRecordValue"]); + } + + /// + /// Define all the provisionable properties of CustomDomainConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _fullyQualifiedDomainName = DefineProperty("FullyQualifiedDomainName", ["fullyQualifiedDomainName"]); + _validationState = DefineProperty("ValidationState", ["validationState"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _certificateUri = DefineProperty("CertificateUri", ["certificateUrl"]); + _expectedTxtRecordName = DefineProperty("ExpectedTxtRecordName", ["expectedTxtRecordName"]); + _expectedTxtRecordValue = DefineProperty("ExpectedTxtRecordValue", ["expectedTxtRecordValue"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomDomainIdentity.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomDomainIdentity.cs index ee7f60b08e9c5..f30a59436a103 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomDomainIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomDomainIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,37 @@ public partial class CustomDomainIdentity : ProvisionableConstruct /// The type of managed identity used. Can be either /// 'SystemAssigned' or 'UserAssigned'. /// - public BicepValue IdentityType { get => _identityType; set => _identityType.Assign(value); } - private readonly BicepValue _identityType; + public BicepValue IdentityType + { + get { Initialize(); return _identityType!; } + set { Initialize(); _identityType!.Assign(value); } + } + private BicepValue? _identityType; /// /// The user identity associated with the resource. /// - public BicepValue UserAssignedIdentity { get => _userAssignedIdentity; set => _userAssignedIdentity.Assign(value); } - private readonly BicepValue _userAssignedIdentity; + public BicepValue UserAssignedIdentity + { + get { Initialize(); return _userAssignedIdentity!; } + set { Initialize(); _userAssignedIdentity!.Assign(value); } + } + private BicepValue? _userAssignedIdentity; /// /// Creates a new CustomDomainIdentity. /// public CustomDomainIdentity() { - _identityType = BicepValue.DefineProperty(this, "IdentityType", ["type"]); - _userAssignedIdentity = BicepValue.DefineProperty(this, "UserAssignedIdentity", ["userAssignedIdentity"]); + } + + /// + /// Define all the provisionable properties of CustomDomainIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _identityType = DefineProperty("IdentityType", ["type"]); + _userAssignedIdentity = DefineProperty("UserAssignedIdentity", ["userAssignedIdentity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomJwtAuthenticationManagedIdentity.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomJwtAuthenticationManagedIdentity.cs index c98e80db54a59..b0758bbb4c7ec 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomJwtAuthenticationManagedIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomJwtAuthenticationManagedIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,38 @@ public partial class CustomJwtAuthenticationManagedIdentity : ProvisionableConst /// The type of managed identity used. Can be either /// 'SystemAssigned' or 'UserAssigned'. /// - public BicepValue IdentityType { get => _identityType; set => _identityType.Assign(value); } - private readonly BicepValue _identityType; + public BicepValue IdentityType + { + get { Initialize(); return _identityType!; } + set { Initialize(); _identityType!.Assign(value); } + } + private BicepValue? _identityType; /// /// The user identity associated with the resource. /// - public BicepValue UserAssignedIdentity { get => _userAssignedIdentity; set => _userAssignedIdentity.Assign(value); } - private readonly BicepValue _userAssignedIdentity; + public BicepValue UserAssignedIdentity + { + get { Initialize(); return _userAssignedIdentity!; } + set { Initialize(); _userAssignedIdentity!.Assign(value); } + } + private BicepValue? _userAssignedIdentity; /// /// Creates a new CustomJwtAuthenticationManagedIdentity. /// public CustomJwtAuthenticationManagedIdentity() { - _identityType = BicepValue.DefineProperty(this, "IdentityType", ["type"]); - _userAssignedIdentity = BicepValue.DefineProperty(this, "UserAssignedIdentity", ["userAssignedIdentity"]); + } + + /// + /// Define all the provisionable properties of + /// CustomJwtAuthenticationManagedIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _identityType = DefineProperty("IdentityType", ["type"]); + _userAssignedIdentity = DefineProperty("UserAssignedIdentity", ["userAssignedIdentity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomJwtAuthenticationSettings.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomJwtAuthenticationSettings.cs index e2d0acb40e500..8f64ea821139f 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomJwtAuthenticationSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/CustomJwtAuthenticationSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,22 +19,39 @@ public partial class CustomJwtAuthenticationSettings : ProvisionableConstruct /// /// Expected JWT token issuer. /// - public BicepValue TokenIssuer { get => _tokenIssuer; set => _tokenIssuer.Assign(value); } - private readonly BicepValue _tokenIssuer; + public BicepValue TokenIssuer + { + get { Initialize(); return _tokenIssuer!; } + set { Initialize(); _tokenIssuer!.Assign(value); } + } + private BicepValue? _tokenIssuer; /// /// Information about the certificate that is used for token validation. We /// currently support maximum 2 certificates. /// - public BicepList IssuerCertificates { get => _issuerCertificates; set => _issuerCertificates.Assign(value); } - private readonly BicepList _issuerCertificates; + public BicepList IssuerCertificates + { + get { Initialize(); return _issuerCertificates!; } + set { Initialize(); _issuerCertificates!.Assign(value); } + } + private BicepList? _issuerCertificates; /// /// Creates a new CustomJwtAuthenticationSettings. /// public CustomJwtAuthenticationSettings() { - _tokenIssuer = BicepValue.DefineProperty(this, "TokenIssuer", ["tokenIssuer"]); - _issuerCertificates = BicepList.DefineProperty(this, "IssuerCertificates", ["issuerCertificates"]); + } + + /// + /// Define all the provisionable properties of + /// CustomJwtAuthenticationSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tokenIssuer = DefineProperty("TokenIssuer", ["tokenIssuer"]); + _issuerCertificates = DefineListProperty("IssuerCertificates", ["issuerCertificates"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeadLetterDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeadLetterDestination.cs index 305d83ac8e059..4a320dfc70fe4 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeadLetterDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeadLetterDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.EventGrid; @@ -28,4 +30,12 @@ public partial class DeadLetterDestination : ProvisionableConstruct public DeadLetterDestination() { } + + /// + /// Define all the provisionable properties of DeadLetterDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeadLetterWithResourceIdentity.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeadLetterWithResourceIdentity.cs index fb55a65460f5f..58e684e2b1369 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeadLetterWithResourceIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeadLetterWithResourceIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,8 +18,12 @@ public partial class DeadLetterWithResourceIdentity : ProvisionableConstruct /// /// The identity to use when dead-lettering events. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public EventSubscriptionIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private EventSubscriptionIdentity? _identity; /// /// Information about the destination where events have to be delivered for @@ -32,15 +38,28 @@ public partial class DeadLetterWithResourceIdentity : ProvisionableConstruct /// available derived classes include /// Azure.ResourceManager.EventGrid.Models.StorageBlobDeadLetterDestination. /// - public BicepValue DeadLetterDestination { get => _deadLetterDestination; set => _deadLetterDestination.Assign(value); } - private readonly BicepValue _deadLetterDestination; + public DeadLetterDestination DeadLetterDestination + { + get { Initialize(); return _deadLetterDestination!; } + set { Initialize(); AssignOrReplace(ref _deadLetterDestination, value); } + } + private DeadLetterDestination? _deadLetterDestination; /// /// Creates a new DeadLetterWithResourceIdentity. /// public DeadLetterWithResourceIdentity() { - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _deadLetterDestination = BicepValue.DefineProperty(this, "DeadLetterDestination", ["deadLetterDestination"]); + } + + /// + /// Define all the provisionable properties of + /// DeadLetterWithResourceIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _identity = DefineModelProperty("Identity", ["identity"]); + _deadLetterDestination = DefineModelProperty("DeadLetterDestination", ["deadLetterDestination"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeliveryAttributeMapping.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeliveryAttributeMapping.cs index e9f282f80ea3d..05c505de5b717 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeliveryAttributeMapping.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeliveryAttributeMapping.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -23,14 +25,26 @@ public partial class DeliveryAttributeMapping : ProvisionableConstruct /// /// Name of the delivery attribute or header. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new DeliveryAttributeMapping. /// public DeliveryAttributeMapping() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of DeliveryAttributeMapping. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeliveryConfiguration.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeliveryConfiguration.cs index 487228fad563d..a4b2e847f1281 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeliveryConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeliveryConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,50 @@ public partial class DeliveryConfiguration : ProvisionableConstruct /// /// Delivery mode of the event subscription. /// - public BicepValue DeliveryMode { get => _deliveryMode; set => _deliveryMode.Assign(value); } - private readonly BicepValue _deliveryMode; + public BicepValue DeliveryMode + { + get { Initialize(); return _deliveryMode!; } + set { Initialize(); _deliveryMode!.Assign(value); } + } + private BicepValue? _deliveryMode; /// /// This property should be populated when deliveryMode is queue and /// represents information about the queue subscription. /// - public BicepValue Queue { get => _queue; set => _queue.Assign(value); } - private readonly BicepValue _queue; + public QueueInfo Queue + { + get { Initialize(); return _queue!; } + set { Initialize(); AssignOrReplace(ref _queue, value); } + } + private QueueInfo? _queue; /// /// This property should be populated when deliveryMode is push and /// represents information about the push subscription. /// - public BicepValue Push { get => _push; set => _push.Assign(value); } - private readonly BicepValue _push; + public PushInfo Push + { + get { Initialize(); return _push!; } + set { Initialize(); AssignOrReplace(ref _push, value); } + } + private PushInfo? _push; /// /// Creates a new DeliveryConfiguration. /// public DeliveryConfiguration() { - _deliveryMode = BicepValue.DefineProperty(this, "DeliveryMode", ["deliveryMode"]); - _queue = BicepValue.DefineProperty(this, "Queue", ["queue"]); - _push = BicepValue.DefineProperty(this, "Push", ["push"]); + } + + /// + /// Define all the provisionable properties of DeliveryConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _deliveryMode = DefineProperty("DeliveryMode", ["deliveryMode"]); + _queue = DefineModelProperty("Queue", ["queue"]); + _push = DefineModelProperty("Push", ["push"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeliveryWithResourceIdentity.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeliveryWithResourceIdentity.cs index a9910827f4710..44db25067b3ec 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeliveryWithResourceIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DeliveryWithResourceIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,8 +19,12 @@ public partial class DeliveryWithResourceIdentity : ProvisionableConstruct /// /// The identity to use when delivering events. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public EventSubscriptionIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private EventSubscriptionIdentity? _identity; /// /// Information about the destination where events have to be delivered for @@ -43,15 +49,27 @@ public partial class DeliveryWithResourceIdentity : ProvisionableConstruct /// and /// Azure.ResourceManager.EventGrid.Models.WebHookEventSubscriptionDestination. /// - public BicepValue Destination { get => _destination; set => _destination.Assign(value); } - private readonly BicepValue _destination; + public EventSubscriptionDestination Destination + { + get { Initialize(); return _destination!; } + set { Initialize(); AssignOrReplace(ref _destination, value); } + } + private EventSubscriptionDestination? _destination; /// /// Creates a new DeliveryWithResourceIdentity. /// public DeliveryWithResourceIdentity() { - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _destination = BicepValue.DefineProperty(this, "Destination", ["destination"]); + } + + /// + /// Define all the provisionable properties of DeliveryWithResourceIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _identity = DefineModelProperty("Identity", ["identity"]); + _destination = DefineModelProperty("Destination", ["destination"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DynamicDeliveryAttributeMapping.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DynamicDeliveryAttributeMapping.cs index 2f5b7e66ec097..25adc10aea9f6 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DynamicDeliveryAttributeMapping.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DynamicDeliveryAttributeMapping.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,28 @@ public partial class DynamicDeliveryAttributeMapping : DeliveryAttributeMapping /// /// JSON path in the event which contains attribute value. /// - public BicepValue SourceField { get => _sourceField; set => _sourceField.Assign(value); } - private readonly BicepValue _sourceField; + public BicepValue SourceField + { + get { Initialize(); return _sourceField!; } + set { Initialize(); _sourceField!.Assign(value); } + } + private BicepValue? _sourceField; /// /// Creates a new DynamicDeliveryAttributeMapping. /// public DynamicDeliveryAttributeMapping() : base() { - BicepValue.DefineProperty(this, "type", ["type"], defaultValue: "Dynamic"); - _sourceField = BicepValue.DefineProperty(this, "SourceField", ["properties", "sourceField"]); + } + + /// + /// Define all the provisionable properties of + /// DynamicDeliveryAttributeMapping. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("type", ["type"], defaultValue: "Dynamic"); + _sourceField = DefineProperty("SourceField", ["properties", "sourceField"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DynamicRoutingEnrichment.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DynamicRoutingEnrichment.cs index fc0cff44abb1b..a0a4b20917708 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DynamicRoutingEnrichment.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/DynamicRoutingEnrichment.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class DynamicRoutingEnrichment : ProvisionableConstruct /// /// Dynamic routing enrichment key. /// - public BicepValue Key { get => _key; set => _key.Assign(value); } - private readonly BicepValue _key; + public BicepValue Key + { + get { Initialize(); return _key!; } + set { Initialize(); _key!.Assign(value); } + } + private BicepValue? _key; /// /// Dynamic routing enrichment value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new DynamicRoutingEnrichment. /// public DynamicRoutingEnrichment() { - _key = BicepValue.DefineProperty(this, "Key", ["key"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of DynamicRoutingEnrichment. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _key = DefineProperty("Key", ["key"]); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridFilter.cs index bd605152ff527..109d0d43abad1 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -43,14 +45,26 @@ public partial class EventGridFilter : ProvisionableConstruct /// /// The field/property in the event based on which you want to filter. /// - public BicepValue Key { get => _key; set => _key.Assign(value); } - private readonly BicepValue _key; + public BicepValue Key + { + get { Initialize(); return _key!; } + set { Initialize(); _key!.Assign(value); } + } + private BicepValue? _key; /// /// Creates a new EventGridFilter. /// public EventGridFilter() { - _key = BicepValue.DefineProperty(this, "Key", ["key"]); + } + + /// + /// Define all the provisionable properties of EventGridFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _key = DefineProperty("Key", ["key"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridInboundIPRule.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridInboundIPRule.cs index c1bbf2ed1c005..e03b00d727316 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridInboundIPRule.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridInboundIPRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class EventGridInboundIPRule : ProvisionableConstruct /// /// IP Address in CIDR notation e.g., 10.0.0.0/8. /// - public BicepValue IPMask { get => _iPMask; set => _iPMask.Assign(value); } - private readonly BicepValue _iPMask; + public BicepValue IPMask + { + get { Initialize(); return _iPMask!; } + set { Initialize(); _iPMask!.Assign(value); } + } + private BicepValue? _iPMask; /// /// Action to perform based on the match or no match of the IpMask. /// - public BicepValue Action { get => _action; set => _action.Assign(value); } - private readonly BicepValue _action; + public BicepValue Action + { + get { Initialize(); return _action!; } + set { Initialize(); _action!.Assign(value); } + } + private BicepValue? _action; /// /// Creates a new EventGridInboundIPRule. /// public EventGridInboundIPRule() { - _iPMask = BicepValue.DefineProperty(this, "IPMask", ["ipMask"]); - _action = BicepValue.DefineProperty(this, "Action", ["action"]); + } + + /// + /// Define all the provisionable properties of EventGridInboundIPRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _iPMask = DefineProperty("IPMask", ["ipMask"]); + _action = DefineProperty("Action", ["action"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridInputSchemaMapping.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridInputSchemaMapping.cs index 7178339e55fa4..0dd2fd3647912 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridInputSchemaMapping.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridInputSchemaMapping.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.EventGrid; @@ -28,4 +30,12 @@ public partial class EventGridInputSchemaMapping : ProvisionableConstruct public EventGridInputSchemaMapping() { } + + /// + /// Define all the provisionable properties of EventGridInputSchemaMapping. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridJsonInputSchemaMapping.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridJsonInputSchemaMapping.cs index fd8e4b6232328..16f331ce67dcf 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridJsonInputSchemaMapping.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridJsonInputSchemaMapping.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,55 +21,88 @@ public partial class EventGridJsonInputSchemaMapping : EventGridInputSchemaMappi /// Name of a field in the input event schema that's to be used as the /// source of a mapping. /// - public BicepValue IdSourceField { get => _idSourceField; set => _idSourceField.Assign(value); } - private readonly BicepValue _idSourceField; + public BicepValue IdSourceField + { + get { Initialize(); return _idSourceField!; } + set { Initialize(); _idSourceField!.Assign(value); } + } + private BicepValue? _idSourceField; /// /// Name of a field in the input event schema that's to be used as the /// source of a mapping. /// - public BicepValue TopicSourceField { get => _topicSourceField; set => _topicSourceField.Assign(value); } - private readonly BicepValue _topicSourceField; + public BicepValue TopicSourceField + { + get { Initialize(); return _topicSourceField!; } + set { Initialize(); _topicSourceField!.Assign(value); } + } + private BicepValue? _topicSourceField; /// /// Name of a field in the input event schema that's to be used as the /// source of a mapping. /// - public BicepValue EventTimeSourceField { get => _eventTimeSourceField; set => _eventTimeSourceField.Assign(value); } - private readonly BicepValue _eventTimeSourceField; + public BicepValue EventTimeSourceField + { + get { Initialize(); return _eventTimeSourceField!; } + set { Initialize(); _eventTimeSourceField!.Assign(value); } + } + private BicepValue? _eventTimeSourceField; /// /// The mapping information for the EventType property of the Event Grid /// Event. /// - public BicepValue EventType { get => _eventType; set => _eventType.Assign(value); } - private readonly BicepValue _eventType; + public JsonFieldWithDefault EventType + { + get { Initialize(); return _eventType!; } + set { Initialize(); AssignOrReplace(ref _eventType, value); } + } + private JsonFieldWithDefault? _eventType; /// /// The mapping information for the Subject property of the Event Grid /// Event. /// - public BicepValue Subject { get => _subject; set => _subject.Assign(value); } - private readonly BicepValue _subject; + public JsonFieldWithDefault Subject + { + get { Initialize(); return _subject!; } + set { Initialize(); AssignOrReplace(ref _subject, value); } + } + private JsonFieldWithDefault? _subject; /// /// The mapping information for the DataVersion property of the Event Grid /// Event. /// - public BicepValue DataVersion { get => _dataVersion; set => _dataVersion.Assign(value); } - private readonly BicepValue _dataVersion; + public JsonFieldWithDefault DataVersion + { + get { Initialize(); return _dataVersion!; } + set { Initialize(); AssignOrReplace(ref _dataVersion, value); } + } + private JsonFieldWithDefault? _dataVersion; /// /// Creates a new EventGridJsonInputSchemaMapping. /// public EventGridJsonInputSchemaMapping() : base() { - BicepValue.DefineProperty(this, "inputSchemaMappingType", ["inputSchemaMappingType"], defaultValue: "Json"); - _idSourceField = BicepValue.DefineProperty(this, "IdSourceField", ["properties", "id", "sourceField"]); - _topicSourceField = BicepValue.DefineProperty(this, "TopicSourceField", ["properties", "topic", "sourceField"]); - _eventTimeSourceField = BicepValue.DefineProperty(this, "EventTimeSourceField", ["properties", "eventTime", "sourceField"]); - _eventType = BicepValue.DefineProperty(this, "EventType", ["properties", "eventType"]); - _subject = BicepValue.DefineProperty(this, "Subject", ["properties", "subject"]); - _dataVersion = BicepValue.DefineProperty(this, "DataVersion", ["properties", "dataVersion"]); + } + + /// + /// Define all the provisionable properties of + /// EventGridJsonInputSchemaMapping. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("inputSchemaMappingType", ["inputSchemaMappingType"], defaultValue: "Json"); + _idSourceField = DefineProperty("IdSourceField", ["properties", "id", "sourceField"]); + _topicSourceField = DefineProperty("TopicSourceField", ["properties", "topic", "sourceField"]); + _eventTimeSourceField = DefineProperty("EventTimeSourceField", ["properties", "eventTime", "sourceField"]); + _eventType = DefineModelProperty("EventType", ["properties", "eventType"]); + _subject = DefineModelProperty("Subject", ["properties", "subject"]); + _dataVersion = DefineModelProperty("DataVersion", ["properties", "dataVersion"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridPartnerContent.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridPartnerContent.cs index 4a0b3fe8bbae0..8b2b89ea417cd 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridPartnerContent.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridPartnerContent.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,14 +18,22 @@ public partial class EventGridPartnerContent : ProvisionableConstruct /// /// The immutableId of the corresponding partner registration. /// - public BicepValue PartnerRegistrationImmutableId { get => _partnerRegistrationImmutableId; set => _partnerRegistrationImmutableId.Assign(value); } - private readonly BicepValue _partnerRegistrationImmutableId; + public BicepValue PartnerRegistrationImmutableId + { + get { Initialize(); return _partnerRegistrationImmutableId!; } + set { Initialize(); _partnerRegistrationImmutableId!.Assign(value); } + } + private BicepValue? _partnerRegistrationImmutableId; /// /// The partner name. /// - public BicepValue PartnerName { get => _partnerName; set => _partnerName.Assign(value); } - private readonly BicepValue _partnerName; + public BicepValue PartnerName + { + get { Initialize(); return _partnerName!; } + set { Initialize(); _partnerName!.Assign(value); } + } + private BicepValue? _partnerName; /// /// Expiration time of the partner authorization. If this timer expires, @@ -35,16 +45,28 @@ public partial class EventGridPartnerContent : ProvisionableConstruct /// defaultMaximumExpirationTimeInDays specified in PartnerConfiguration /// or 7 if this value is not specified. /// - public BicepValue AuthorizationExpireOn { get => _authorizationExpireOn; set => _authorizationExpireOn.Assign(value); } - private readonly BicepValue _authorizationExpireOn; + public BicepValue AuthorizationExpireOn + { + get { Initialize(); return _authorizationExpireOn!; } + set { Initialize(); _authorizationExpireOn!.Assign(value); } + } + private BicepValue? _authorizationExpireOn; /// /// Creates a new EventGridPartnerContent. /// public EventGridPartnerContent() { - _partnerRegistrationImmutableId = BicepValue.DefineProperty(this, "PartnerRegistrationImmutableId", ["partnerRegistrationImmutableId"]); - _partnerName = BicepValue.DefineProperty(this, "PartnerName", ["partnerName"]); - _authorizationExpireOn = BicepValue.DefineProperty(this, "AuthorizationExpireOn", ["authorizationExpirationTimeInUtc"]); + } + + /// + /// Define all the provisionable properties of EventGridPartnerContent. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _partnerRegistrationImmutableId = DefineProperty("PartnerRegistrationImmutableId", ["partnerRegistrationImmutableId"]); + _partnerName = DefineProperty("PartnerName", ["partnerName"]); + _authorizationExpireOn = DefineProperty("AuthorizationExpireOn", ["authorizationExpirationTimeInUtc"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridPrivateEndpointConnectionData.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridPrivateEndpointConnectionData.cs index bf50bf0cf3883..448d5aa098f8e 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridPrivateEndpointConnectionData.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridPrivateEndpointConnectionData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -19,56 +21,90 @@ public partial class EventGridPrivateEndpointConnectionData : ProvisionableConst /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// GroupIds from the private link service resource. /// - public BicepList GroupIds { get => _groupIds; set => _groupIds.Assign(value); } - private readonly BicepList _groupIds; + public BicepList GroupIds + { + get { Initialize(); return _groupIds!; } + set { Initialize(); _groupIds!.Assign(value); } + } + private BicepList? _groupIds; /// /// Details about the state of the connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public EventGridPrivateEndpointConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private EventGridPrivateEndpointConnectionState? _connectionState; /// /// Provisioning state of the Private Endpoint Connection. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new EventGridPrivateEndpointConnectionData. /// public EventGridPrivateEndpointConnectionData() { - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _groupIds = BicepList.DefineProperty(this, "GroupIds", ["properties", "groupIds"]); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// EventGridPrivateEndpointConnectionData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _groupIds = DefineListProperty("GroupIds", ["properties", "groupIds"]); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridPrivateEndpointConnectionState.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridPrivateEndpointConnectionState.cs index d11d3f281e31c..4c1a866facc86 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridPrivateEndpointConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventGridPrivateEndpointConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,49 @@ public partial class EventGridPrivateEndpointConnectionState : ProvisionableCons /// /// Status of the connection. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Description of the connection state. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Actions required (if any). /// - public BicepValue ActionsRequired { get => _actionsRequired; set => _actionsRequired.Assign(value); } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + set { Initialize(); _actionsRequired!.Assign(value); } + } + private BicepValue? _actionsRequired; /// /// Creates a new EventGridPrivateEndpointConnectionState. /// public EventGridPrivateEndpointConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"]); + } + + /// + /// Define all the provisionable properties of + /// EventGridPrivateEndpointConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventHubEventSubscriptionDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventHubEventSubscriptionDestination.cs index 117af059ff312..486317bad183c 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventHubEventSubscriptionDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventHubEventSubscriptionDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -19,8 +21,12 @@ public partial class EventHubEventSubscriptionDestination : EventSubscriptionDes /// The Azure Resource Id that represents the endpoint of an Event Hub /// destination of an event subscription. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// Delivery attribute details. Please note @@ -33,16 +39,29 @@ public partial class EventHubEventSubscriptionDestination : EventSubscriptionDes /// and /// Azure.ResourceManager.EventGrid.Models.StaticDeliveryAttributeMapping. /// - public BicepList DeliveryAttributeMappings { get => _deliveryAttributeMappings; set => _deliveryAttributeMappings.Assign(value); } - private readonly BicepList _deliveryAttributeMappings; + public BicepList DeliveryAttributeMappings + { + get { Initialize(); return _deliveryAttributeMappings!; } + set { Initialize(); _deliveryAttributeMappings!.Assign(value); } + } + private BicepList? _deliveryAttributeMappings; /// /// Creates a new EventHubEventSubscriptionDestination. /// public EventHubEventSubscriptionDestination() : base() { - BicepValue.DefineProperty(this, "endpointType", ["endpointType"], defaultValue: "EventHub"); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceId"]); - _deliveryAttributeMappings = BicepList.DefineProperty(this, "DeliveryAttributeMappings", ["properties", "deliveryAttributeMappings"]); + } + + /// + /// Define all the provisionable properties of + /// EventHubEventSubscriptionDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("endpointType", ["endpointType"], defaultValue: "EventHub"); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceId"]); + _deliveryAttributeMappings = DefineListProperty("DeliveryAttributeMappings", ["properties", "deliveryAttributeMappings"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionDestination.cs index a7b3c46b18aa9..393d22122492c 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.EventGrid; @@ -35,4 +37,12 @@ public partial class EventSubscriptionDestination : ProvisionableConstruct public EventSubscriptionDestination() { } + + /// + /// Define all the provisionable properties of EventSubscriptionDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionFilter.cs index 64168325acece..934c5fed99a38 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -20,38 +22,58 @@ public partial class EventSubscriptionFilter : ProvisionableConstruct /// publisher of the events. Wildcard characters are not /// supported in this path. /// - public BicepValue SubjectBeginsWith { get => _subjectBeginsWith; set => _subjectBeginsWith.Assign(value); } - private readonly BicepValue _subjectBeginsWith; + public BicepValue SubjectBeginsWith + { + get { Initialize(); return _subjectBeginsWith!; } + set { Initialize(); _subjectBeginsWith!.Assign(value); } + } + private BicepValue? _subjectBeginsWith; /// /// An optional string to filter events for an event subscription based on /// a resource path suffix. Wildcard characters are not /// supported in this path. /// - public BicepValue SubjectEndsWith { get => _subjectEndsWith; set => _subjectEndsWith.Assign(value); } - private readonly BicepValue _subjectEndsWith; + public BicepValue SubjectEndsWith + { + get { Initialize(); return _subjectEndsWith!; } + set { Initialize(); _subjectEndsWith!.Assign(value); } + } + private BicepValue? _subjectEndsWith; /// /// A list of applicable event types that need to be part of the event /// subscription. If it is desired to subscribe to all default event /// types, set the IncludedEventTypes to null. /// - public BicepList IncludedEventTypes { get => _includedEventTypes; set => _includedEventTypes.Assign(value); } - private readonly BicepList _includedEventTypes; + public BicepList IncludedEventTypes + { + get { Initialize(); return _includedEventTypes!; } + set { Initialize(); _includedEventTypes!.Assign(value); } + } + private BicepList? _includedEventTypes; /// /// Specifies if the SubjectBeginsWith and SubjectEndsWith properties of /// the filter should be compared in a case sensitive manner. /// - public BicepValue IsSubjectCaseSensitive { get => _isSubjectCaseSensitive; set => _isSubjectCaseSensitive.Assign(value); } - private readonly BicepValue _isSubjectCaseSensitive; + public BicepValue IsSubjectCaseSensitive + { + get { Initialize(); return _isSubjectCaseSensitive!; } + set { Initialize(); _isSubjectCaseSensitive!.Assign(value); } + } + private BicepValue? _isSubjectCaseSensitive; /// /// Allows advanced filters to be evaluated against an array of values /// instead of expecting a singular value. /// - public BicepValue IsAdvancedFilteringOnArraysEnabled { get => _isAdvancedFilteringOnArraysEnabled; set => _isAdvancedFilteringOnArraysEnabled.Assign(value); } - private readonly BicepValue _isAdvancedFilteringOnArraysEnabled; + public BicepValue IsAdvancedFilteringOnArraysEnabled + { + get { Initialize(); return _isAdvancedFilteringOnArraysEnabled!; } + set { Initialize(); _isAdvancedFilteringOnArraysEnabled!.Assign(value); } + } + private BicepValue? _isAdvancedFilteringOnArraysEnabled; /// /// An array of advanced filters that are used for filtering event @@ -81,19 +103,31 @@ public partial class EventSubscriptionFilter : ProvisionableConstruct /// Azure.ResourceManager.EventGrid.Models.StringNotEndsWithAdvancedFilter /// and Azure.ResourceManager.EventGrid.Models.StringNotInAdvancedFilter. /// - public BicepList AdvancedFilters { get => _advancedFilters; set => _advancedFilters.Assign(value); } - private readonly BicepList _advancedFilters; + public BicepList AdvancedFilters + { + get { Initialize(); return _advancedFilters!; } + set { Initialize(); _advancedFilters!.Assign(value); } + } + private BicepList? _advancedFilters; /// /// Creates a new EventSubscriptionFilter. /// public EventSubscriptionFilter() { - _subjectBeginsWith = BicepValue.DefineProperty(this, "SubjectBeginsWith", ["subjectBeginsWith"]); - _subjectEndsWith = BicepValue.DefineProperty(this, "SubjectEndsWith", ["subjectEndsWith"]); - _includedEventTypes = BicepList.DefineProperty(this, "IncludedEventTypes", ["includedEventTypes"]); - _isSubjectCaseSensitive = BicepValue.DefineProperty(this, "IsSubjectCaseSensitive", ["isSubjectCaseSensitive"]); - _isAdvancedFilteringOnArraysEnabled = BicepValue.DefineProperty(this, "IsAdvancedFilteringOnArraysEnabled", ["enableAdvancedFilteringOnArrays"]); - _advancedFilters = BicepList.DefineProperty(this, "AdvancedFilters", ["advancedFilters"]); + } + + /// + /// Define all the provisionable properties of EventSubscriptionFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _subjectBeginsWith = DefineProperty("SubjectBeginsWith", ["subjectBeginsWith"]); + _subjectEndsWith = DefineProperty("SubjectEndsWith", ["subjectEndsWith"]); + _includedEventTypes = DefineListProperty("IncludedEventTypes", ["includedEventTypes"]); + _isSubjectCaseSensitive = DefineProperty("IsSubjectCaseSensitive", ["isSubjectCaseSensitive"]); + _isAdvancedFilteringOnArraysEnabled = DefineProperty("IsAdvancedFilteringOnArraysEnabled", ["enableAdvancedFilteringOnArrays"]); + _advancedFilters = DefineListProperty("AdvancedFilters", ["advancedFilters"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionIdentity.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionIdentity.cs index dc124d3e5c497..4a8f2cd491a21 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class EventSubscriptionIdentity : ProvisionableConstruct /// The type of managed identity used. Can be either /// 'SystemAssigned' or 'UserAssigned'. /// - public BicepValue IdentityType { get => _identityType; set => _identityType.Assign(value); } - private readonly BicepValue _identityType; + public BicepValue IdentityType + { + get { Initialize(); return _identityType!; } + set { Initialize(); _identityType!.Assign(value); } + } + private BicepValue? _identityType; /// /// The user identity associated with the resource. /// - public BicepValue UserAssignedIdentity { get => _userAssignedIdentity; set => _userAssignedIdentity.Assign(value); } - private readonly BicepValue _userAssignedIdentity; + public BicepValue UserAssignedIdentity + { + get { Initialize(); return _userAssignedIdentity!; } + set { Initialize(); _userAssignedIdentity!.Assign(value); } + } + private BicepValue? _userAssignedIdentity; /// /// Creates a new EventSubscriptionIdentity. /// public EventSubscriptionIdentity() { - _identityType = BicepValue.DefineProperty(this, "IdentityType", ["type"]); - _userAssignedIdentity = BicepValue.DefineProperty(this, "UserAssignedIdentity", ["userAssignedIdentity"]); + } + + /// + /// Define all the provisionable properties of EventSubscriptionIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _identityType = DefineProperty("IdentityType", ["type"]); + _userAssignedIdentity = DefineProperty("UserAssignedIdentity", ["userAssignedIdentity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionRetryPolicy.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionRetryPolicy.cs index a582d10aa2301..ec7640ba76f5e 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionRetryPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/EventSubscriptionRetryPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class EventSubscriptionRetryPolicy : ProvisionableConstruct /// /// Maximum number of delivery retry attempts for events. /// - public BicepValue MaxDeliveryAttempts { get => _maxDeliveryAttempts; set => _maxDeliveryAttempts.Assign(value); } - private readonly BicepValue _maxDeliveryAttempts; + public BicepValue MaxDeliveryAttempts + { + get { Initialize(); return _maxDeliveryAttempts!; } + set { Initialize(); _maxDeliveryAttempts!.Assign(value); } + } + private BicepValue? _maxDeliveryAttempts; /// /// Time To Live (in minutes) for events. /// - public BicepValue EventTimeToLiveInMinutes { get => _eventTimeToLiveInMinutes; set => _eventTimeToLiveInMinutes.Assign(value); } - private readonly BicepValue _eventTimeToLiveInMinutes; + public BicepValue EventTimeToLiveInMinutes + { + get { Initialize(); return _eventTimeToLiveInMinutes!; } + set { Initialize(); _eventTimeToLiveInMinutes!.Assign(value); } + } + private BicepValue? _eventTimeToLiveInMinutes; /// /// Creates a new EventSubscriptionRetryPolicy. /// public EventSubscriptionRetryPolicy() { - _maxDeliveryAttempts = BicepValue.DefineProperty(this, "MaxDeliveryAttempts", ["maxDeliveryAttempts"]); - _eventTimeToLiveInMinutes = BicepValue.DefineProperty(this, "EventTimeToLiveInMinutes", ["eventTimeToLiveInMinutes"]); + } + + /// + /// Define all the provisionable properties of EventSubscriptionRetryPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _maxDeliveryAttempts = DefineProperty("MaxDeliveryAttempts", ["maxDeliveryAttempts"]); + _eventTimeToLiveInMinutes = DefineProperty("EventTimeToLiveInMinutes", ["eventTimeToLiveInMinutes"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/FiltersConfiguration.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/FiltersConfiguration.cs index 7b4d9e1be15b5..5f914a95ca3ef 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/FiltersConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/FiltersConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,8 +21,12 @@ public partial class FiltersConfiguration : ProvisionableConstruct /// subscription. If it is desired to subscribe to all default event /// types, set the IncludedEventTypes to null. /// - public BicepList IncludedEventTypes { get => _includedEventTypes; set => _includedEventTypes.Assign(value); } - private readonly BicepList _includedEventTypes; + public BicepList IncludedEventTypes + { + get { Initialize(); return _includedEventTypes!; } + set { Initialize(); _includedEventTypes!.Assign(value); } + } + private BicepList? _includedEventTypes; /// /// An array of filters that are used for filtering event subscriptions. @@ -50,15 +56,27 @@ public partial class FiltersConfiguration : ProvisionableConstruct /// Azure.ResourceManager.EventGrid.Models.StringNotEndsWithFilter and /// Azure.ResourceManager.EventGrid.Models.StringNotInFilter. /// - public BicepList Filters { get => _filters; set => _filters.Assign(value); } - private readonly BicepList _filters; + public BicepList Filters + { + get { Initialize(); return _filters!; } + set { Initialize(); _filters!.Assign(value); } + } + private BicepList? _filters; /// /// Creates a new FiltersConfiguration. /// public FiltersConfiguration() { - _includedEventTypes = BicepList.DefineProperty(this, "IncludedEventTypes", ["includedEventTypes"]); - _filters = BicepList.DefineProperty(this, "Filters", ["filters"]); + } + + /// + /// Define all the provisionable properties of FiltersConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _includedEventTypes = DefineListProperty("IncludedEventTypes", ["includedEventTypes"]); + _filters = DefineListProperty("Filters", ["filters"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/HybridConnectionEventSubscriptionDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/HybridConnectionEventSubscriptionDestination.cs index 90a84dbc46390..325a4354a1932 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/HybridConnectionEventSubscriptionDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/HybridConnectionEventSubscriptionDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -20,8 +22,12 @@ public partial class HybridConnectionEventSubscriptionDestination : EventSubscri /// The Azure Resource ID of an hybrid connection that is the destination /// of an event subscription. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// Delivery attribute details. Please note @@ -34,16 +40,29 @@ public partial class HybridConnectionEventSubscriptionDestination : EventSubscri /// and /// Azure.ResourceManager.EventGrid.Models.StaticDeliveryAttributeMapping. /// - public BicepList DeliveryAttributeMappings { get => _deliveryAttributeMappings; set => _deliveryAttributeMappings.Assign(value); } - private readonly BicepList _deliveryAttributeMappings; + public BicepList DeliveryAttributeMappings + { + get { Initialize(); return _deliveryAttributeMappings!; } + set { Initialize(); _deliveryAttributeMappings!.Assign(value); } + } + private BicepList? _deliveryAttributeMappings; /// /// Creates a new HybridConnectionEventSubscriptionDestination. /// public HybridConnectionEventSubscriptionDestination() : base() { - BicepValue.DefineProperty(this, "endpointType", ["endpointType"], defaultValue: "HybridConnection"); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceId"]); - _deliveryAttributeMappings = BicepList.DefineProperty(this, "DeliveryAttributeMappings", ["properties", "deliveryAttributeMappings"]); + } + + /// + /// Define all the provisionable properties of + /// HybridConnectionEventSubscriptionDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("endpointType", ["endpointType"], defaultValue: "HybridConnection"); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceId"]); + _deliveryAttributeMappings = DefineListProperty("DeliveryAttributeMappings", ["properties", "deliveryAttributeMappings"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/InlineEventProperties.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/InlineEventProperties.cs index 7dfd0cd8b01f2..765a52eb7d1a0 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/InlineEventProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/InlineEventProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class InlineEventProperties : ProvisionableConstruct /// /// The description for the inline event. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The displayName for the inline event. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// The documentationUrl for the inline event. /// - public BicepValue DocumentationUri { get => _documentationUri; set => _documentationUri.Assign(value); } - private readonly BicepValue _documentationUri; + public BicepValue DocumentationUri + { + get { Initialize(); return _documentationUri!; } + set { Initialize(); _documentationUri!.Assign(value); } + } + private BicepValue? _documentationUri; /// /// The dataSchemaUrl for the inline event. /// - public BicepValue DataSchemaUri { get => _dataSchemaUri; set => _dataSchemaUri.Assign(value); } - private readonly BicepValue _dataSchemaUri; + public BicepValue DataSchemaUri + { + get { Initialize(); return _dataSchemaUri!; } + set { Initialize(); _dataSchemaUri!.Assign(value); } + } + private BicepValue? _dataSchemaUri; /// /// Creates a new InlineEventProperties. /// public InlineEventProperties() { - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"]); - _documentationUri = BicepValue.DefineProperty(this, "DocumentationUri", ["documentationUrl"]); - _dataSchemaUri = BicepValue.DefineProperty(this, "DataSchemaUri", ["dataSchemaUrl"]); + } + + /// + /// Define all the provisionable properties of InlineEventProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _description = DefineProperty("Description", ["description"]); + _displayName = DefineProperty("DisplayName", ["displayName"]); + _documentationUri = DefineProperty("DocumentationUri", ["documentationUrl"]); + _dataSchemaUri = DefineProperty("DataSchemaUri", ["dataSchemaUrl"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNotNullAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNotNullAdvancedFilter.cs index d97718ae123ac..669692d80867e 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNotNullAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNotNullAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.EventGrid; @@ -17,6 +19,14 @@ public partial class IsNotNullAdvancedFilter : AdvancedFilter /// public IsNotNullAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "IsNotNull"); + } + + /// + /// Define all the provisionable properties of IsNotNullAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "IsNotNull"); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNotNullFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNotNullFilter.cs index e7930097819c5..5e0f5bdf8bc24 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNotNullFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNotNullFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.EventGrid; @@ -17,6 +19,14 @@ public partial class IsNotNullFilter : EventGridFilter /// public IsNotNullFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "IsNotNull"); + } + + /// + /// Define all the provisionable properties of IsNotNullFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "IsNotNull"); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNullOrUndefinedAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNullOrUndefinedAdvancedFilter.cs index 652ed85f862eb..2fa414335938b 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNullOrUndefinedAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNullOrUndefinedAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.EventGrid; @@ -17,6 +19,15 @@ public partial class IsNullOrUndefinedAdvancedFilter : AdvancedFilter /// public IsNullOrUndefinedAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "IsNullOrUndefined"); + } + + /// + /// Define all the provisionable properties of + /// IsNullOrUndefinedAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "IsNullOrUndefined"); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNullOrUndefinedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNullOrUndefinedFilter.cs index 406b660c0a7c8..bae55815b3086 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNullOrUndefinedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IsNullOrUndefinedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.EventGrid; @@ -17,6 +19,14 @@ public partial class IsNullOrUndefinedFilter : EventGridFilter /// public IsNullOrUndefinedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "IsNullOrUndefined"); + } + + /// + /// Define all the provisionable properties of IsNullOrUndefinedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "IsNullOrUndefined"); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IssuerCertificateInfo.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IssuerCertificateInfo.cs index 5584c0b2db3de..f2d9b067cb279 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IssuerCertificateInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/IssuerCertificateInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,37 @@ public partial class IssuerCertificateInfo : ProvisionableConstruct /// https://keyvaultname.vault.azure.net/certificates/certificateName/certificateVersion /// format. /// - public BicepValue CertificateUri { get => _certificateUri; set => _certificateUri.Assign(value); } - private readonly BicepValue _certificateUri; + public BicepValue CertificateUri + { + get { Initialize(); return _certificateUri!; } + set { Initialize(); _certificateUri!.Assign(value); } + } + private BicepValue? _certificateUri; /// /// The identity that will be used to access the certificate. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public CustomJwtAuthenticationManagedIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private CustomJwtAuthenticationManagedIdentity? _identity; /// /// Creates a new IssuerCertificateInfo. /// public IssuerCertificateInfo() { - _certificateUri = BicepValue.DefineProperty(this, "CertificateUri", ["certificateUrl"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); + } + + /// + /// Define all the provisionable properties of IssuerCertificateInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _certificateUri = DefineProperty("CertificateUri", ["certificateUrl"]); + _identity = DefineModelProperty("Identity", ["identity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/JsonFieldWithDefault.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/JsonFieldWithDefault.cs index b5f8ac0b0eaef..993416fb19565 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/JsonFieldWithDefault.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/JsonFieldWithDefault.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -23,23 +25,39 @@ public partial class JsonFieldWithDefault : ProvisionableConstruct /// Name of a field in the input event schema that's to be used as the /// source of a mapping. /// - public BicepValue SourceField { get => _sourceField; set => _sourceField.Assign(value); } - private readonly BicepValue _sourceField; + public BicepValue SourceField + { + get { Initialize(); return _sourceField!; } + set { Initialize(); _sourceField!.Assign(value); } + } + private BicepValue? _sourceField; /// /// The default value to be used for mapping when a SourceField is not /// provided or if there's no property with the specified name in the /// published JSON event payload. /// - public BicepValue DefaultValue { get => _defaultValue; set => _defaultValue.Assign(value); } - private readonly BicepValue _defaultValue; + public BicepValue DefaultValue + { + get { Initialize(); return _defaultValue!; } + set { Initialize(); _defaultValue!.Assign(value); } + } + private BicepValue? _defaultValue; /// /// Creates a new JsonFieldWithDefault. /// public JsonFieldWithDefault() { - _sourceField = BicepValue.DefineProperty(this, "SourceField", ["sourceField"]); - _defaultValue = BicepValue.DefineProperty(this, "DefaultValue", ["defaultValue"]); + } + + /// + /// Define all the provisionable properties of JsonFieldWithDefault. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _sourceField = DefineProperty("SourceField", ["sourceField"]); + _defaultValue = DefineProperty("DefaultValue", ["defaultValue"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/MonitorAlertEventSubscriptionDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/MonitorAlertEventSubscriptionDestination.cs index f9f3f02d1d956..90e94ea52532b 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/MonitorAlertEventSubscriptionDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/MonitorAlertEventSubscriptionDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -19,15 +21,23 @@ public partial class MonitorAlertEventSubscriptionDestination : EventSubscriptio /// The severity that will be attached to every Alert fired through this /// event subscription. This field must be provided. /// - public BicepValue Severity { get => _severity; set => _severity.Assign(value); } - private readonly BicepValue _severity; + public BicepValue Severity + { + get { Initialize(); return _severity!; } + set { Initialize(); _severity!.Assign(value); } + } + private BicepValue? _severity; /// /// The description that will be attached to every Alert fired through this /// event subscription. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The list of ARM Ids of Action Groups that will be triggered on every @@ -35,17 +45,30 @@ public partial class MonitorAlertEventSubscriptionDestination : EventSubscriptio /// ARM Id should follow this pattern: /// /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Insights/actionGroups/{ActionGroupName}. /// - public BicepList ActionGroups { get => _actionGroups; set => _actionGroups.Assign(value); } - private readonly BicepList _actionGroups; + public BicepList ActionGroups + { + get { Initialize(); return _actionGroups!; } + set { Initialize(); _actionGroups!.Assign(value); } + } + private BicepList? _actionGroups; /// /// Creates a new MonitorAlertEventSubscriptionDestination. /// public MonitorAlertEventSubscriptionDestination() : base() { - BicepValue.DefineProperty(this, "endpointType", ["endpointType"], defaultValue: "MonitorAlert"); - _severity = BicepValue.DefineProperty(this, "Severity", ["properties", "severity"]); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _actionGroups = BicepList.DefineProperty(this, "ActionGroups", ["properties", "actionGroups"]); + } + + /// + /// Define all the provisionable properties of + /// MonitorAlertEventSubscriptionDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("endpointType", ["endpointType"], defaultValue: "MonitorAlert"); + _severity = DefineProperty("Severity", ["properties", "severity"]); + _description = DefineProperty("Description", ["properties", "description"]); + _actionGroups = DefineListProperty("ActionGroups", ["properties", "actionGroups"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NamespaceSku.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NamespaceSku.cs index da001eebed178..d05665762047a 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NamespaceSku.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NamespaceSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,8 +18,12 @@ public partial class NamespaceSku : ProvisionableConstruct /// /// The name of the SKU. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Specifies the number of Throughput Units that defines the capacity for @@ -26,15 +32,27 @@ public partial class NamespaceSku : ProvisionableConstruct /// namespace. Min capacity is 1 and max allowed capacity is /// 20. /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// Creates a new NamespaceSku. /// public NamespaceSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); + } + + /// + /// Define all the provisionable properties of NamespaceSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _capacity = DefineProperty("Capacity", ["capacity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NamespaceTopicEventSubscriptionDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NamespaceTopicEventSubscriptionDestination.cs index 274d6fce1b337..5128f4abb2069 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NamespaceTopicEventSubscriptionDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NamespaceTopicEventSubscriptionDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -20,15 +22,28 @@ public partial class NamespaceTopicEventSubscriptionDestination : EventSubscript /// exist. The resource ARM Id should follow this pattern: /// /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.EventGrid/namespaces/{NamespaceName}/topics/{TopicName}. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// Creates a new NamespaceTopicEventSubscriptionDestination. /// public NamespaceTopicEventSubscriptionDestination() : base() { - BicepValue.DefineProperty(this, "endpointType", ["endpointType"], defaultValue: "NamespaceTopic"); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceId"]); + } + + /// + /// Define all the provisionable properties of + /// NamespaceTopicEventSubscriptionDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("endpointType", ["endpointType"], defaultValue: "NamespaceTopic"); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanAdvancedFilter.cs index 66da0cfdc1120..cdbd68e27cd56 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,28 @@ public partial class NumberGreaterThanAdvancedFilter : AdvancedFilter /// /// The filter value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new NumberGreaterThanAdvancedFilter. /// public NumberGreaterThanAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberGreaterThan"); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of + /// NumberGreaterThanAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberGreaterThan"); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanFilter.cs index dbf6a68904d69..fd5b50c43c9a7 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,27 @@ public partial class NumberGreaterThanFilter : EventGridFilter /// /// The filter value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new NumberGreaterThanFilter. /// public NumberGreaterThanFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberGreaterThan"); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of NumberGreaterThanFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberGreaterThan"); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanOrEqualsAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanOrEqualsAdvancedFilter.cs index e33c1e67faabb..94cb8da8efead 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanOrEqualsAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanOrEqualsAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,28 @@ public partial class NumberGreaterThanOrEqualsAdvancedFilter : AdvancedFilter /// /// The filter value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new NumberGreaterThanOrEqualsAdvancedFilter. /// public NumberGreaterThanOrEqualsAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberGreaterThanOrEquals"); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of + /// NumberGreaterThanOrEqualsAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberGreaterThanOrEquals"); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanOrEqualsFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanOrEqualsFilter.cs index 27fe04ef1c669..21cd33f2893a6 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanOrEqualsFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberGreaterThanOrEqualsFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,28 @@ public partial class NumberGreaterThanOrEqualsFilter : EventGridFilter /// /// The filter value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new NumberGreaterThanOrEqualsFilter. /// public NumberGreaterThanOrEqualsFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberGreaterThanOrEquals"); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of + /// NumberGreaterThanOrEqualsFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberGreaterThanOrEquals"); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInAdvancedFilter.cs index b456e0dffb240..5e93db6dbe5c3 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class NumberInAdvancedFilter : AdvancedFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new NumberInAdvancedFilter. /// public NumberInAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberIn"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of NumberInAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberIn"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInFilter.cs index eee5b657cb8f3..089d709771fb2 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class NumberInFilter : EventGridFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new NumberInFilter. /// public NumberInFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberIn"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of NumberInFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberIn"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInRangeAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInRangeAdvancedFilter.cs index 1f94c598ce897..1c1a729ca905b 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInRangeAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInRangeAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class NumberInRangeAdvancedFilter : AdvancedFilter /// /// The set of filter values. /// - public BicepList> Values { get => _values; set => _values.Assign(value); } - private readonly BicepList> _values; + public BicepList> Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList>? _values; /// /// Creates a new NumberInRangeAdvancedFilter. /// public NumberInRangeAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberInRange"); - _values = BicepList>.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of NumberInRangeAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberInRange"); + _values = DefineListProperty>("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInRangeFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInRangeFilter.cs index a6b161c67c16f..896e5bd78e0b2 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInRangeFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberInRangeFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class NumberInRangeFilter : EventGridFilter /// /// The set of filter values. /// - public BicepList> Values { get => _values; set => _values.Assign(value); } - private readonly BicepList> _values; + public BicepList> Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList>? _values; /// /// Creates a new NumberInRangeFilter. /// public NumberInRangeFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberInRange"); - _values = BicepList>.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of NumberInRangeFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberInRange"); + _values = DefineListProperty>("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanAdvancedFilter.cs index c42ab0e18c49a..446dad753f7e5 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,27 @@ public partial class NumberLessThanAdvancedFilter : AdvancedFilter /// /// The filter value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new NumberLessThanAdvancedFilter. /// public NumberLessThanAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberLessThan"); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of NumberLessThanAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberLessThan"); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanFilter.cs index cff8a5586ca63..839d284fd03af 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,27 @@ public partial class NumberLessThanFilter : EventGridFilter /// /// The filter value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new NumberLessThanFilter. /// public NumberLessThanFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberLessThan"); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of NumberLessThanFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberLessThan"); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanOrEqualsAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanOrEqualsAdvancedFilter.cs index 57e2d6cd903a0..a27690f6970fc 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanOrEqualsAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanOrEqualsAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,28 @@ public partial class NumberLessThanOrEqualsAdvancedFilter : AdvancedFilter /// /// The filter value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new NumberLessThanOrEqualsAdvancedFilter. /// public NumberLessThanOrEqualsAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberLessThanOrEquals"); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of + /// NumberLessThanOrEqualsAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberLessThanOrEquals"); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanOrEqualsFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanOrEqualsFilter.cs index 1864e61688810..d1e76c90cf0f6 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanOrEqualsFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberLessThanOrEqualsFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,27 @@ public partial class NumberLessThanOrEqualsFilter : EventGridFilter /// /// The filter value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new NumberLessThanOrEqualsFilter. /// public NumberLessThanOrEqualsFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberLessThanOrEquals"); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of NumberLessThanOrEqualsFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberLessThanOrEquals"); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInAdvancedFilter.cs index 46fea6fd644c2..63432316cbf98 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class NumberNotInAdvancedFilter : AdvancedFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new NumberNotInAdvancedFilter. /// public NumberNotInAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberNotIn"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of NumberNotInAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberNotIn"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInFilter.cs index 111a25b2eedb9..91306fce52403 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class NumberNotInFilter : EventGridFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new NumberNotInFilter. /// public NumberNotInFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberNotIn"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of NumberNotInFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberNotIn"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInRangeAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInRangeAdvancedFilter.cs index b2a4ed3033a87..f6aeb59f3e803 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInRangeAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInRangeAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,28 @@ public partial class NumberNotInRangeAdvancedFilter : AdvancedFilter /// /// The set of filter values. /// - public BicepList> Values { get => _values; set => _values.Assign(value); } - private readonly BicepList> _values; + public BicepList> Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList>? _values; /// /// Creates a new NumberNotInRangeAdvancedFilter. /// public NumberNotInRangeAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberNotInRange"); - _values = BicepList>.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of + /// NumberNotInRangeAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberNotInRange"); + _values = DefineListProperty>("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInRangeFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInRangeFilter.cs index c47731180ff65..908cc7c20da47 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInRangeFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/NumberNotInRangeFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class NumberNotInRangeFilter : EventGridFilter /// /// The set of filter values. /// - public BicepList> Values { get => _values; set => _values.Assign(value); } - private readonly BicepList> _values; + public BicepList> Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList>? _values; /// /// Creates a new NumberNotInRangeFilter. /// public NumberNotInRangeFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "NumberNotInRange"); - _values = BicepList>.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of NumberNotInRangeFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "NumberNotInRange"); + _values = DefineListProperty>("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerAuthorization.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerAuthorization.cs index ada4ab152da7b..3dc9ffea4b601 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerAuthorization.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerAuthorization.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -20,21 +22,37 @@ public partial class PartnerAuthorization : ProvisionableConstruct /// not specified, the default is 7 days. Otherwise, allowed /// values are between 1 and 365 days. /// - public BicepValue DefaultMaximumExpirationTimeInDays { get => _defaultMaximumExpirationTimeInDays; set => _defaultMaximumExpirationTimeInDays.Assign(value); } - private readonly BicepValue _defaultMaximumExpirationTimeInDays; + public BicepValue DefaultMaximumExpirationTimeInDays + { + get { Initialize(); return _defaultMaximumExpirationTimeInDays!; } + set { Initialize(); _defaultMaximumExpirationTimeInDays!.Assign(value); } + } + private BicepValue? _defaultMaximumExpirationTimeInDays; /// /// The list of authorized partners. /// - public BicepList AuthorizedPartnersList { get => _authorizedPartnersList; set => _authorizedPartnersList.Assign(value); } - private readonly BicepList _authorizedPartnersList; + public BicepList AuthorizedPartnersList + { + get { Initialize(); return _authorizedPartnersList!; } + set { Initialize(); _authorizedPartnersList!.Assign(value); } + } + private BicepList? _authorizedPartnersList; /// /// Creates a new PartnerAuthorization. /// public PartnerAuthorization() { - _defaultMaximumExpirationTimeInDays = BicepValue.DefineProperty(this, "DefaultMaximumExpirationTimeInDays", ["defaultMaximumExpirationTimeInDays"]); - _authorizedPartnersList = BicepList.DefineProperty(this, "AuthorizedPartnersList", ["authorizedPartnersList"]); + } + + /// + /// Define all the provisionable properties of PartnerAuthorization. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _defaultMaximumExpirationTimeInDays = DefineProperty("DefaultMaximumExpirationTimeInDays", ["defaultMaximumExpirationTimeInDays"]); + _authorizedPartnersList = DefineListProperty("AuthorizedPartnersList", ["authorizedPartnersList"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerClientAuthentication.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerClientAuthentication.cs index 34b2f1ab5ed2f..d782533667569 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerClientAuthentication.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerClientAuthentication.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.EventGrid; @@ -24,4 +26,12 @@ public partial class PartnerClientAuthentication : ProvisionableConstruct public PartnerClientAuthentication() { } + + /// + /// Define all the provisionable properties of PartnerClientAuthentication. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerDestinationInfo.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerDestinationInfo.cs index 1c78a5dcd363f..c74588771cd78 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerDestinationInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerDestinationInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -26,44 +28,72 @@ public partial class PartnerDestinationInfo : ProvisionableConstruct /// associated with the channel will be created under this /// Azure subscription. /// - public BicepValue AzureSubscriptionId { get => _azureSubscriptionId; set => _azureSubscriptionId.Assign(value); } - private readonly BicepValue _azureSubscriptionId; + public BicepValue AzureSubscriptionId + { + get { Initialize(); return _azureSubscriptionId!; } + set { Initialize(); _azureSubscriptionId!.Assign(value); } + } + private BicepValue? _azureSubscriptionId; /// /// Azure Resource Group of the subscriber. The partner destination /// associated with the channel will be created under this /// resource group. /// - public BicepValue ResourceGroupName { get => _resourceGroupName; set => _resourceGroupName.Assign(value); } - private readonly BicepValue _resourceGroupName; + public BicepValue ResourceGroupName + { + get { Initialize(); return _resourceGroupName!; } + set { Initialize(); _resourceGroupName!.Assign(value); } + } + private BicepValue? _resourceGroupName; /// /// Name of the partner destination associated with the channel. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Additional context of the partner destination endpoint. /// - public BicepValue EndpointServiceContext { get => _endpointServiceContext; set => _endpointServiceContext.Assign(value); } - private readonly BicepValue _endpointServiceContext; + public BicepValue EndpointServiceContext + { + get { Initialize(); return _endpointServiceContext!; } + set { Initialize(); _endpointServiceContext!.Assign(value); } + } + private BicepValue? _endpointServiceContext; /// /// Change history of the resource move. /// - public BicepList ResourceMoveChangeHistory { get => _resourceMoveChangeHistory; set => _resourceMoveChangeHistory.Assign(value); } - private readonly BicepList _resourceMoveChangeHistory; + public BicepList ResourceMoveChangeHistory + { + get { Initialize(); return _resourceMoveChangeHistory!; } + set { Initialize(); _resourceMoveChangeHistory!.Assign(value); } + } + private BicepList? _resourceMoveChangeHistory; /// /// Creates a new PartnerDestinationInfo. /// public PartnerDestinationInfo() { - _azureSubscriptionId = BicepValue.DefineProperty(this, "AzureSubscriptionId", ["azureSubscriptionId"]); - _resourceGroupName = BicepValue.DefineProperty(this, "ResourceGroupName", ["resourceGroupName"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _endpointServiceContext = BicepValue.DefineProperty(this, "EndpointServiceContext", ["endpointServiceContext"]); - _resourceMoveChangeHistory = BicepList.DefineProperty(this, "ResourceMoveChangeHistory", ["resourceMoveChangeHistory"]); + } + + /// + /// Define all the provisionable properties of PartnerDestinationInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _azureSubscriptionId = DefineProperty("AzureSubscriptionId", ["azureSubscriptionId"]); + _resourceGroupName = DefineProperty("ResourceGroupName", ["resourceGroupName"]); + _name = DefineProperty("Name", ["name"]); + _endpointServiceContext = DefineProperty("EndpointServiceContext", ["endpointServiceContext"]); + _resourceMoveChangeHistory = DefineListProperty("ResourceMoveChangeHistory", ["resourceMoveChangeHistory"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerEventSubscriptionDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerEventSubscriptionDestination.cs index f6883f70459c9..9a926292055b2 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerEventSubscriptionDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerEventSubscriptionDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,28 @@ public partial class PartnerEventSubscriptionDestination : EventSubscriptionDest /// The Azure Resource Id that represents the endpoint of a Partner /// Destination of an event subscription. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// Creates a new PartnerEventSubscriptionDestination. /// public PartnerEventSubscriptionDestination() : base() { - BicepValue.DefineProperty(this, "endpointType", ["endpointType"], defaultValue: "PartnerDestination"); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceId"]); + } + + /// + /// Define all the provisionable properties of + /// PartnerEventSubscriptionDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("endpointType", ["endpointType"], defaultValue: "PartnerDestination"); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerTopicEventTypeInfo.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerTopicEventTypeInfo.cs index 44a5f73d7f3d9..55ba3b29753cb 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerTopicEventTypeInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerTopicEventTypeInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,8 +19,12 @@ public partial class PartnerTopicEventTypeInfo : ProvisionableConstruct /// /// The kind of event type used. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// A collection of inline event types for the resource. The inline event @@ -28,15 +34,27 @@ public partial class PartnerTopicEventTypeInfo : ProvisionableConstruct /// values are of type InlineEventProperties and will contain additional /// information for every inline event type. /// - public BicepDictionary InlineEventTypes { get => _inlineEventTypes; set => _inlineEventTypes.Assign(value); } - private readonly BicepDictionary _inlineEventTypes; + public BicepDictionary InlineEventTypes + { + get { Initialize(); return _inlineEventTypes!; } + set { Initialize(); _inlineEventTypes!.Assign(value); } + } + private BicepDictionary? _inlineEventTypes; /// /// Creates a new PartnerTopicEventTypeInfo. /// public PartnerTopicEventTypeInfo() { - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _inlineEventTypes = BicepDictionary.DefineProperty(this, "InlineEventTypes", ["inlineEventTypes"]); + } + + /// + /// Define all the provisionable properties of PartnerTopicEventTypeInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _kind = DefineProperty("Kind", ["kind"]); + _inlineEventTypes = DefineDictionaryProperty("InlineEventTypes", ["inlineEventTypes"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerTopicInfo.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerTopicInfo.cs index 7bb398e409536..7e25cf1d1891a 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerTopicInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PartnerTopicInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,21 +21,33 @@ public partial class PartnerTopicInfo : ProvisionableConstruct /// with the channel will be created under this Azure /// subscription. /// - public BicepValue AzureSubscriptionId { get => _azureSubscriptionId; set => _azureSubscriptionId.Assign(value); } - private readonly BicepValue _azureSubscriptionId; + public BicepValue AzureSubscriptionId + { + get { Initialize(); return _azureSubscriptionId!; } + set { Initialize(); _azureSubscriptionId!.Assign(value); } + } + private BicepValue? _azureSubscriptionId; /// /// Azure Resource Group of the subscriber. The partner topic associated /// with the channel will be created under this resource group. /// - public BicepValue ResourceGroupName { get => _resourceGroupName; set => _resourceGroupName.Assign(value); } - private readonly BicepValue _resourceGroupName; + public BicepValue ResourceGroupName + { + get { Initialize(); return _resourceGroupName!; } + set { Initialize(); _resourceGroupName!.Assign(value); } + } + private BicepValue? _resourceGroupName; /// /// Name of the partner topic associated with the channel. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Event Type Information for the partner topic. This information is @@ -41,8 +55,12 @@ public partial class PartnerTopicInfo : ProvisionableConstruct /// subscriber to view different types of events that are /// published. /// - public BicepValue EventTypeInfo { get => _eventTypeInfo; set => _eventTypeInfo.Assign(value); } - private readonly BicepValue _eventTypeInfo; + public PartnerTopicEventTypeInfo EventTypeInfo + { + get { Initialize(); return _eventTypeInfo!; } + set { Initialize(); AssignOrReplace(ref _eventTypeInfo, value); } + } + private PartnerTopicEventTypeInfo? _eventTypeInfo; /// /// The source information is provided by the publisher to determine the @@ -50,18 +68,30 @@ public partial class PartnerTopicInfo : ProvisionableConstruct /// This information can be used by the subscriber during the approval /// process of the created partner topic. /// - public BicepValue Source { get => _source; set => _source.Assign(value); } - private readonly BicepValue _source; + public BicepValue Source + { + get { Initialize(); return _source!; } + set { Initialize(); _source!.Assign(value); } + } + private BicepValue? _source; /// /// Creates a new PartnerTopicInfo. /// public PartnerTopicInfo() { - _azureSubscriptionId = BicepValue.DefineProperty(this, "AzureSubscriptionId", ["azureSubscriptionId"]); - _resourceGroupName = BicepValue.DefineProperty(this, "ResourceGroupName", ["resourceGroupName"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _eventTypeInfo = BicepValue.DefineProperty(this, "EventTypeInfo", ["eventTypeInfo"]); - _source = BicepValue.DefineProperty(this, "Source", ["source"]); + } + + /// + /// Define all the provisionable properties of PartnerTopicInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _azureSubscriptionId = DefineProperty("AzureSubscriptionId", ["azureSubscriptionId"]); + _resourceGroupName = DefineProperty("ResourceGroupName", ["resourceGroupName"]); + _name = DefineProperty("Name", ["name"]); + _eventTypeInfo = DefineModelProperty("EventTypeInfo", ["eventTypeInfo"]); + _source = DefineProperty("Source", ["source"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PushInfo.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PushInfo.cs index 0b445b8acb3fe..9d13e0c69df0a 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PushInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/PushInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,8 +18,12 @@ public partial class PushInfo : ProvisionableConstruct /// /// The maximum delivery count of the events. /// - public BicepValue MaxDeliveryCount { get => _maxDeliveryCount; set => _maxDeliveryCount.Assign(value); } - private readonly BicepValue _maxDeliveryCount; + public BicepValue MaxDeliveryCount + { + get { Initialize(); return _maxDeliveryCount!; } + set { Initialize(); _maxDeliveryCount!.Assign(value); } + } + private BicepValue? _maxDeliveryCount; /// /// Time span duration in ISO 8601 format that determines how long messages @@ -47,8 +53,12 @@ public partial class PushInfo : ProvisionableConstruct /// - \'P1D\' or \'P1DT0H0M0S\': for /// duration of 1 day. /// - public BicepValue EventTimeToLive { get => _eventTimeToLive; set => _eventTimeToLive.Assign(value); } - private readonly BicepValue _eventTimeToLive; + public BicepValue EventTimeToLive + { + get { Initialize(); return _eventTimeToLive!; } + set { Initialize(); _eventTimeToLive!.Assign(value); } + } + private BicepValue? _eventTimeToLive; /// /// The dead letter destination of the event subscription. Any event that @@ -57,8 +67,12 @@ public partial class PushInfo : ProvisionableConstruct /// parent resource (namely, namespace) to acquire the authentication /// tokens being used during dead-lettering. /// - public BicepValue DeadLetterDestinationWithResourceIdentity { get => _deadLetterDestinationWithResourceIdentity; set => _deadLetterDestinationWithResourceIdentity.Assign(value); } - private readonly BicepValue _deadLetterDestinationWithResourceIdentity; + public DeadLetterWithResourceIdentity DeadLetterDestinationWithResourceIdentity + { + get { Initialize(); return _deadLetterDestinationWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deadLetterDestinationWithResourceIdentity, value); } + } + private DeadLetterWithResourceIdentity? _deadLetterDestinationWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -66,8 +80,12 @@ public partial class PushInfo : ProvisionableConstruct /// the parent resource (namely, topic or domain) to acquire the /// authentication tokens being used during delivery. /// - public BicepValue DeliveryWithResourceIdentity { get => _deliveryWithResourceIdentity; set => _deliveryWithResourceIdentity.Assign(value); } - private readonly BicepValue _deliveryWithResourceIdentity; + public DeliveryWithResourceIdentity DeliveryWithResourceIdentity + { + get { Initialize(); return _deliveryWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deliveryWithResourceIdentity, value); } + } + private DeliveryWithResourceIdentity? _deliveryWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -91,18 +109,30 @@ public partial class PushInfo : ProvisionableConstruct /// and /// Azure.ResourceManager.EventGrid.Models.WebHookEventSubscriptionDestination. /// - public BicepValue Destination { get => _destination; set => _destination.Assign(value); } - private readonly BicepValue _destination; + public EventSubscriptionDestination Destination + { + get { Initialize(); return _destination!; } + set { Initialize(); AssignOrReplace(ref _destination, value); } + } + private EventSubscriptionDestination? _destination; /// /// Creates a new PushInfo. /// public PushInfo() { - _maxDeliveryCount = BicepValue.DefineProperty(this, "MaxDeliveryCount", ["maxDeliveryCount"]); - _eventTimeToLive = BicepValue.DefineProperty(this, "EventTimeToLive", ["eventTimeToLive"]); - _deadLetterDestinationWithResourceIdentity = BicepValue.DefineProperty(this, "DeadLetterDestinationWithResourceIdentity", ["deadLetterDestinationWithResourceIdentity"]); - _deliveryWithResourceIdentity = BicepValue.DefineProperty(this, "DeliveryWithResourceIdentity", ["deliveryWithResourceIdentity"]); - _destination = BicepValue.DefineProperty(this, "Destination", ["destination"]); + } + + /// + /// Define all the provisionable properties of PushInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _maxDeliveryCount = DefineProperty("MaxDeliveryCount", ["maxDeliveryCount"]); + _eventTimeToLive = DefineProperty("EventTimeToLive", ["eventTimeToLive"]); + _deadLetterDestinationWithResourceIdentity = DefineModelProperty("DeadLetterDestinationWithResourceIdentity", ["deadLetterDestinationWithResourceIdentity"]); + _deliveryWithResourceIdentity = DefineModelProperty("DeliveryWithResourceIdentity", ["deliveryWithResourceIdentity"]); + _destination = DefineModelProperty("Destination", ["destination"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/QueueInfo.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/QueueInfo.cs index 6b3acbdd046b6..b29615f97db8a 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/QueueInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/QueueInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -22,14 +24,22 @@ public partial class QueueInfo : ProvisionableConstruct /// redelivery. This is an optional field, where default is 60 seconds, /// minimum is 60 seconds and maximum is 300 seconds. /// - public BicepValue ReceiveLockDurationInSeconds { get => _receiveLockDurationInSeconds; set => _receiveLockDurationInSeconds.Assign(value); } - private readonly BicepValue _receiveLockDurationInSeconds; + public BicepValue ReceiveLockDurationInSeconds + { + get { Initialize(); return _receiveLockDurationInSeconds!; } + set { Initialize(); _receiveLockDurationInSeconds!.Assign(value); } + } + private BicepValue? _receiveLockDurationInSeconds; /// /// The maximum delivery count of the events. /// - public BicepValue MaxDeliveryCount { get => _maxDeliveryCount; set => _maxDeliveryCount.Assign(value); } - private readonly BicepValue _maxDeliveryCount; + public BicepValue MaxDeliveryCount + { + get { Initialize(); return _maxDeliveryCount!; } + set { Initialize(); _maxDeliveryCount!.Assign(value); } + } + private BicepValue? _maxDeliveryCount; /// /// The dead letter destination of the event subscription. Any event that @@ -38,8 +48,12 @@ public partial class QueueInfo : ProvisionableConstruct /// parent resource (namely, topic) to acquire the authentication tokens /// being used during delivery / dead-lettering. /// - public BicepValue DeadLetterDestinationWithResourceIdentity { get => _deadLetterDestinationWithResourceIdentity; set => _deadLetterDestinationWithResourceIdentity.Assign(value); } - private readonly BicepValue _deadLetterDestinationWithResourceIdentity; + public DeadLetterWithResourceIdentity DeadLetterDestinationWithResourceIdentity + { + get { Initialize(); return _deadLetterDestinationWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deadLetterDestinationWithResourceIdentity, value); } + } + private DeadLetterWithResourceIdentity? _deadLetterDestinationWithResourceIdentity; /// /// Time span duration in ISO 8601 format that determines how long messages @@ -69,17 +83,29 @@ public partial class QueueInfo : ProvisionableConstruct /// - \'P1D\' or \'P1DT0H0M0S\': for /// duration of 1 day. /// - public BicepValue EventTimeToLive { get => _eventTimeToLive; set => _eventTimeToLive.Assign(value); } - private readonly BicepValue _eventTimeToLive; + public BicepValue EventTimeToLive + { + get { Initialize(); return _eventTimeToLive!; } + set { Initialize(); _eventTimeToLive!.Assign(value); } + } + private BicepValue? _eventTimeToLive; /// /// Creates a new QueueInfo. /// public QueueInfo() { - _receiveLockDurationInSeconds = BicepValue.DefineProperty(this, "ReceiveLockDurationInSeconds", ["receiveLockDurationInSeconds"]); - _maxDeliveryCount = BicepValue.DefineProperty(this, "MaxDeliveryCount", ["maxDeliveryCount"]); - _deadLetterDestinationWithResourceIdentity = BicepValue.DefineProperty(this, "DeadLetterDestinationWithResourceIdentity", ["deadLetterDestinationWithResourceIdentity"]); - _eventTimeToLive = BicepValue.DefineProperty(this, "EventTimeToLive", ["eventTimeToLive"], format: "P"); + } + + /// + /// Define all the provisionable properties of QueueInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _receiveLockDurationInSeconds = DefineProperty("ReceiveLockDurationInSeconds", ["receiveLockDurationInSeconds"]); + _maxDeliveryCount = DefineProperty("MaxDeliveryCount", ["maxDeliveryCount"]); + _deadLetterDestinationWithResourceIdentity = DefineModelProperty("DeadLetterDestinationWithResourceIdentity", ["deadLetterDestinationWithResourceIdentity"]); + _eventTimeToLive = DefineProperty("EventTimeToLive", ["eventTimeToLive"], format: "P"); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ResourceMoveChangeHistory.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ResourceMoveChangeHistory.cs index 5c6d1fe563ebe..d8483a25bf1e3 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ResourceMoveChangeHistory.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ResourceMoveChangeHistory.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class ResourceMoveChangeHistory : ProvisionableConstruct /// /// Azure subscription ID of the resource. /// - public BicepValue AzureSubscriptionId { get => _azureSubscriptionId; set => _azureSubscriptionId.Assign(value); } - private readonly BicepValue _azureSubscriptionId; + public BicepValue AzureSubscriptionId + { + get { Initialize(); return _azureSubscriptionId!; } + set { Initialize(); _azureSubscriptionId!.Assign(value); } + } + private BicepValue? _azureSubscriptionId; /// /// Azure Resource Group of the resource. /// - public BicepValue ResourceGroupName { get => _resourceGroupName; set => _resourceGroupName.Assign(value); } - private readonly BicepValue _resourceGroupName; + public BicepValue ResourceGroupName + { + get { Initialize(); return _resourceGroupName!; } + set { Initialize(); _resourceGroupName!.Assign(value); } + } + private BicepValue? _resourceGroupName; /// /// UTC timestamp of when the resource was changed. /// - public BicepValue ChangedTimeUtc { get => _changedTimeUtc; set => _changedTimeUtc.Assign(value); } - private readonly BicepValue _changedTimeUtc; + public BicepValue ChangedTimeUtc + { + get { Initialize(); return _changedTimeUtc!; } + set { Initialize(); _changedTimeUtc!.Assign(value); } + } + private BicepValue? _changedTimeUtc; /// /// Creates a new ResourceMoveChangeHistory. /// public ResourceMoveChangeHistory() { - _azureSubscriptionId = BicepValue.DefineProperty(this, "AzureSubscriptionId", ["azureSubscriptionId"]); - _resourceGroupName = BicepValue.DefineProperty(this, "ResourceGroupName", ["resourceGroupName"]); - _changedTimeUtc = BicepValue.DefineProperty(this, "ChangedTimeUtc", ["changedTimeUtc"]); + } + + /// + /// Define all the provisionable properties of ResourceMoveChangeHistory. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _azureSubscriptionId = DefineProperty("AzureSubscriptionId", ["azureSubscriptionId"]); + _resourceGroupName = DefineProperty("ResourceGroupName", ["resourceGroupName"]); + _changedTimeUtc = DefineProperty("ChangedTimeUtc", ["changedTimeUtc"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/RoutingEnrichments.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/RoutingEnrichments.cs index 79065aa6d2e06..6f09ebb166565 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/RoutingEnrichments.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/RoutingEnrichments.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -23,21 +25,37 @@ public partial class RoutingEnrichments : ProvisionableConstruct /// available derived classes include /// Azure.ResourceManager.EventGrid.Models.StaticStringRoutingEnrichment. /// - public BicepList Static { get => _static; set => _static.Assign(value); } - private readonly BicepList _static; + public BicepList Static + { + get { Initialize(); return _static!; } + set { Initialize(); _static!.Assign(value); } + } + private BicepList? _static; /// /// Gets the dynamic. /// - public BicepList Dynamic { get => _dynamic; set => _dynamic.Assign(value); } - private readonly BicepList _dynamic; + public BicepList Dynamic + { + get { Initialize(); return _dynamic!; } + set { Initialize(); _dynamic!.Assign(value); } + } + private BicepList? _dynamic; /// /// Creates a new RoutingEnrichments. /// public RoutingEnrichments() { - _static = BicepList.DefineProperty(this, "Static", ["static"]); - _dynamic = BicepList.DefineProperty(this, "Dynamic", ["dynamic"]); + } + + /// + /// Define all the provisionable properties of RoutingEnrichments. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _static = DefineListProperty("Static", ["static"]); + _dynamic = DefineListProperty("Dynamic", ["dynamic"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/RoutingIdentityInfo.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/RoutingIdentityInfo.cs index a4c25110d2b4f..9593d3080902d 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/RoutingIdentityInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/RoutingIdentityInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class RoutingIdentityInfo : ProvisionableConstruct /// /// Routing identity type for topic spaces configuration. /// - public BicepValue IdentityType { get => _identityType; set => _identityType.Assign(value); } - private readonly BicepValue _identityType; + public BicepValue IdentityType + { + get { Initialize(); return _identityType!; } + set { Initialize(); _identityType!.Assign(value); } + } + private BicepValue? _identityType; /// /// Gets or sets the user assigned identity. /// - public BicepValue UserAssignedIdentity { get => _userAssignedIdentity; set => _userAssignedIdentity.Assign(value); } - private readonly BicepValue _userAssignedIdentity; + public BicepValue UserAssignedIdentity + { + get { Initialize(); return _userAssignedIdentity!; } + set { Initialize(); _userAssignedIdentity!.Assign(value); } + } + private BicepValue? _userAssignedIdentity; /// /// Creates a new RoutingIdentityInfo. /// public RoutingIdentityInfo() { - _identityType = BicepValue.DefineProperty(this, "IdentityType", ["type"]); - _userAssignedIdentity = BicepValue.DefineProperty(this, "UserAssignedIdentity", ["userAssignedIdentity"]); + } + + /// + /// Define all the provisionable properties of RoutingIdentityInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _identityType = DefineProperty("IdentityType", ["type"]); + _userAssignedIdentity = DefineProperty("UserAssignedIdentity", ["userAssignedIdentity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ServiceBusQueueEventSubscriptionDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ServiceBusQueueEventSubscriptionDestination.cs index 89bdd2a8bc724..24d2fc4d0ba24 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ServiceBusQueueEventSubscriptionDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ServiceBusQueueEventSubscriptionDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -19,8 +21,12 @@ public partial class ServiceBusQueueEventSubscriptionDestination : EventSubscrip /// The Azure Resource Id that represents the endpoint of the Service Bus /// destination of an event subscription. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// Delivery attribute details. Please note @@ -33,16 +39,29 @@ public partial class ServiceBusQueueEventSubscriptionDestination : EventSubscrip /// and /// Azure.ResourceManager.EventGrid.Models.StaticDeliveryAttributeMapping. /// - public BicepList DeliveryAttributeMappings { get => _deliveryAttributeMappings; set => _deliveryAttributeMappings.Assign(value); } - private readonly BicepList _deliveryAttributeMappings; + public BicepList DeliveryAttributeMappings + { + get { Initialize(); return _deliveryAttributeMappings!; } + set { Initialize(); _deliveryAttributeMappings!.Assign(value); } + } + private BicepList? _deliveryAttributeMappings; /// /// Creates a new ServiceBusQueueEventSubscriptionDestination. /// public ServiceBusQueueEventSubscriptionDestination() : base() { - BicepValue.DefineProperty(this, "endpointType", ["endpointType"], defaultValue: "ServiceBusQueue"); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceId"]); - _deliveryAttributeMappings = BicepList.DefineProperty(this, "DeliveryAttributeMappings", ["properties", "deliveryAttributeMappings"]); + } + + /// + /// Define all the provisionable properties of + /// ServiceBusQueueEventSubscriptionDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("endpointType", ["endpointType"], defaultValue: "ServiceBusQueue"); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceId"]); + _deliveryAttributeMappings = DefineListProperty("DeliveryAttributeMappings", ["properties", "deliveryAttributeMappings"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ServiceBusTopicEventSubscriptionDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ServiceBusTopicEventSubscriptionDestination.cs index 90a44f424c8e4..ee48bf19d2bc0 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ServiceBusTopicEventSubscriptionDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/ServiceBusTopicEventSubscriptionDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -20,8 +22,12 @@ public partial class ServiceBusTopicEventSubscriptionDestination : EventSubscrip /// The Azure Resource Id that represents the endpoint of the Service Bus /// Topic destination of an event subscription. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// Delivery attribute details. Please note @@ -34,16 +40,29 @@ public partial class ServiceBusTopicEventSubscriptionDestination : EventSubscrip /// and /// Azure.ResourceManager.EventGrid.Models.StaticDeliveryAttributeMapping. /// - public BicepList DeliveryAttributeMappings { get => _deliveryAttributeMappings; set => _deliveryAttributeMappings.Assign(value); } - private readonly BicepList _deliveryAttributeMappings; + public BicepList DeliveryAttributeMappings + { + get { Initialize(); return _deliveryAttributeMappings!; } + set { Initialize(); _deliveryAttributeMappings!.Assign(value); } + } + private BicepList? _deliveryAttributeMappings; /// /// Creates a new ServiceBusTopicEventSubscriptionDestination. /// public ServiceBusTopicEventSubscriptionDestination() : base() { - BicepValue.DefineProperty(this, "endpointType", ["endpointType"], defaultValue: "ServiceBusTopic"); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceId"]); - _deliveryAttributeMappings = BicepList.DefineProperty(this, "DeliveryAttributeMappings", ["properties", "deliveryAttributeMappings"]); + } + + /// + /// Define all the provisionable properties of + /// ServiceBusTopicEventSubscriptionDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("endpointType", ["endpointType"], defaultValue: "ServiceBusTopic"); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceId"]); + _deliveryAttributeMappings = DefineListProperty("DeliveryAttributeMappings", ["properties", "deliveryAttributeMappings"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StaticDeliveryAttributeMapping.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StaticDeliveryAttributeMapping.cs index 068abcc2d8fa1..90aa712593306 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StaticDeliveryAttributeMapping.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StaticDeliveryAttributeMapping.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,39 @@ public partial class StaticDeliveryAttributeMapping : DeliveryAttributeMapping /// /// Value of the delivery attribute. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Boolean flag to tell if the attribute contains sensitive information . /// - public BicepValue IsSecret { get => _isSecret; set => _isSecret.Assign(value); } - private readonly BicepValue _isSecret; + public BicepValue IsSecret + { + get { Initialize(); return _isSecret!; } + set { Initialize(); _isSecret!.Assign(value); } + } + private BicepValue? _isSecret; /// /// Creates a new StaticDeliveryAttributeMapping. /// public StaticDeliveryAttributeMapping() : base() { - BicepValue.DefineProperty(this, "type", ["type"], defaultValue: "Static"); - _value = BicepValue.DefineProperty(this, "Value", ["properties", "value"]); - _isSecret = BicepValue.DefineProperty(this, "IsSecret", ["properties", "isSecret"]); + } + + /// + /// Define all the provisionable properties of + /// StaticDeliveryAttributeMapping. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("type", ["type"], defaultValue: "Static"); + _value = DefineProperty("Value", ["properties", "value"]); + _isSecret = DefineProperty("IsSecret", ["properties", "isSecret"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StaticRoutingEnrichment.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StaticRoutingEnrichment.cs index 75476d069706a..574efe9be7d4d 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StaticRoutingEnrichment.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StaticRoutingEnrichment.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -22,14 +24,26 @@ public partial class StaticRoutingEnrichment : ProvisionableConstruct /// /// Static routing enrichment key. /// - public BicepValue Key { get => _key; set => _key.Assign(value); } - private readonly BicepValue _key; + public BicepValue Key + { + get { Initialize(); return _key!; } + set { Initialize(); _key!.Assign(value); } + } + private BicepValue? _key; /// /// Creates a new StaticRoutingEnrichment. /// public StaticRoutingEnrichment() { - _key = BicepValue.DefineProperty(this, "Key", ["key"]); + } + + /// + /// Define all the provisionable properties of StaticRoutingEnrichment. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _key = DefineProperty("Key", ["key"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StaticStringRoutingEnrichment.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StaticStringRoutingEnrichment.cs index 7f5b7b364d98a..f563efa2538fc 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StaticStringRoutingEnrichment.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StaticStringRoutingEnrichment.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,28 @@ public partial class StaticStringRoutingEnrichment : StaticRoutingEnrichment /// /// String type routing enrichment value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new StaticStringRoutingEnrichment. /// public StaticStringRoutingEnrichment() : base() { - BicepValue.DefineProperty(this, "valueType", ["valueType"], defaultValue: "String"); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of + /// StaticStringRoutingEnrichment. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("valueType", ["valueType"], defaultValue: "String"); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StorageBlobDeadLetterDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StorageBlobDeadLetterDestination.cs index 5b09048e34b48..7ed8c2d1aaee9 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StorageBlobDeadLetterDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StorageBlobDeadLetterDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -18,23 +20,40 @@ public partial class StorageBlobDeadLetterDestination : DeadLetterDestination /// The Azure Resource ID of the storage account that is the destination of /// the deadletter events. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// The name of the Storage blob container that is the destination of the /// deadletter events. /// - public BicepValue BlobContainerName { get => _blobContainerName; set => _blobContainerName.Assign(value); } - private readonly BicepValue _blobContainerName; + public BicepValue BlobContainerName + { + get { Initialize(); return _blobContainerName!; } + set { Initialize(); _blobContainerName!.Assign(value); } + } + private BicepValue? _blobContainerName; /// /// Creates a new StorageBlobDeadLetterDestination. /// public StorageBlobDeadLetterDestination() : base() { - BicepValue.DefineProperty(this, "endpointType", ["endpointType"], defaultValue: "StorageBlob"); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceId"]); - _blobContainerName = BicepValue.DefineProperty(this, "BlobContainerName", ["properties", "blobContainerName"]); + } + + /// + /// Define all the provisionable properties of + /// StorageBlobDeadLetterDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("endpointType", ["endpointType"], defaultValue: "StorageBlob"); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceId"]); + _blobContainerName = DefineProperty("BlobContainerName", ["properties", "blobContainerName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StorageQueueEventSubscriptionDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StorageQueueEventSubscriptionDestination.cs index 10a4b481740b2..cd7c33f0dd6bd 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StorageQueueEventSubscriptionDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StorageQueueEventSubscriptionDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -18,32 +20,53 @@ public partial class StorageQueueEventSubscriptionDestination : EventSubscriptio /// The Azure Resource ID of the storage account that contains the queue /// that is the destination of an event subscription. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// The name of the Storage queue under a storage account that is the /// destination of an event subscription. /// - public BicepValue QueueName { get => _queueName; set => _queueName.Assign(value); } - private readonly BicepValue _queueName; + public BicepValue QueueName + { + get { Initialize(); return _queueName!; } + set { Initialize(); _queueName!.Assign(value); } + } + private BicepValue? _queueName; /// /// Storage queue message time to live in seconds. This value cannot be /// zero or negative with the exception of using -1 to indicate that the /// Time To Live of the message is Infinite. /// - public BicepValue QueueMessageTimeToLiveInSeconds { get => _queueMessageTimeToLiveInSeconds; set => _queueMessageTimeToLiveInSeconds.Assign(value); } - private readonly BicepValue _queueMessageTimeToLiveInSeconds; + public BicepValue QueueMessageTimeToLiveInSeconds + { + get { Initialize(); return _queueMessageTimeToLiveInSeconds!; } + set { Initialize(); _queueMessageTimeToLiveInSeconds!.Assign(value); } + } + private BicepValue? _queueMessageTimeToLiveInSeconds; /// /// Creates a new StorageQueueEventSubscriptionDestination. /// public StorageQueueEventSubscriptionDestination() : base() { - BicepValue.DefineProperty(this, "endpointType", ["endpointType"], defaultValue: "StorageQueue"); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceId"]); - _queueName = BicepValue.DefineProperty(this, "QueueName", ["properties", "queueName"]); - _queueMessageTimeToLiveInSeconds = BicepValue.DefineProperty(this, "QueueMessageTimeToLiveInSeconds", ["properties", "queueMessageTimeToLiveInSeconds"]); + } + + /// + /// Define all the provisionable properties of + /// StorageQueueEventSubscriptionDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("endpointType", ["endpointType"], defaultValue: "StorageQueue"); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceId"]); + _queueName = DefineProperty("QueueName", ["properties", "queueName"]); + _queueMessageTimeToLiveInSeconds = DefineProperty("QueueMessageTimeToLiveInSeconds", ["properties", "queueMessageTimeToLiveInSeconds"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringBeginsWithAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringBeginsWithAdvancedFilter.cs index 5bf0ac62c8936..f58cfb3acf404 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringBeginsWithAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringBeginsWithAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,28 @@ public partial class StringBeginsWithAdvancedFilter : AdvancedFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringBeginsWithAdvancedFilter. /// public StringBeginsWithAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringBeginsWith"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of + /// StringBeginsWithAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringBeginsWith"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringBeginsWithFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringBeginsWithFilter.cs index 46a5e13d09b58..91bb66e4e92cb 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringBeginsWithFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringBeginsWithFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class StringBeginsWithFilter : EventGridFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringBeginsWithFilter. /// public StringBeginsWithFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringBeginsWith"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of StringBeginsWithFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringBeginsWith"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringContainsAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringContainsAdvancedFilter.cs index dde97d4b29df8..304e1230743b5 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringContainsAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringContainsAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class StringContainsAdvancedFilter : AdvancedFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringContainsAdvancedFilter. /// public StringContainsAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringContains"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of StringContainsAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringContains"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringContainsFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringContainsFilter.cs index 95c167996d3cd..a3a05b62e911b 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringContainsFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringContainsFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class StringContainsFilter : EventGridFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringContainsFilter. /// public StringContainsFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringContains"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of StringContainsFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringContains"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringEndsWithAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringEndsWithAdvancedFilter.cs index 9ee74046a6f6f..919ce0efea3a7 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringEndsWithAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringEndsWithAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class StringEndsWithAdvancedFilter : AdvancedFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringEndsWithAdvancedFilter. /// public StringEndsWithAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringEndsWith"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of StringEndsWithAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringEndsWith"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringEndsWithFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringEndsWithFilter.cs index 06f7dfc19e136..46c0bebf33ec0 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringEndsWithFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringEndsWithFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class StringEndsWithFilter : EventGridFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringEndsWithFilter. /// public StringEndsWithFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringEndsWith"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of StringEndsWithFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringEndsWith"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringInAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringInAdvancedFilter.cs index ea6a4a2f6829f..8496819678047 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringInAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringInAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class StringInAdvancedFilter : AdvancedFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringInAdvancedFilter. /// public StringInAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringIn"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of StringInAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringIn"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringInFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringInFilter.cs index 3afb5e3afe87a..22ee3072d68c5 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringInFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringInFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class StringInFilter : EventGridFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringInFilter. /// public StringInFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringIn"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of StringInFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringIn"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotBeginsWithAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotBeginsWithAdvancedFilter.cs index 8ab4ea495e48e..007f2520b1480 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotBeginsWithAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotBeginsWithAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,28 @@ public partial class StringNotBeginsWithAdvancedFilter : AdvancedFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringNotBeginsWithAdvancedFilter. /// public StringNotBeginsWithAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringNotBeginsWith"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of + /// StringNotBeginsWithAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringNotBeginsWith"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotBeginsWithFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotBeginsWithFilter.cs index 3319679e2cab0..f32e4d0ab3748 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotBeginsWithFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotBeginsWithFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class StringNotBeginsWithFilter : EventGridFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringNotBeginsWithFilter. /// public StringNotBeginsWithFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringNotBeginsWith"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of StringNotBeginsWithFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringNotBeginsWith"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotContainsAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotContainsAdvancedFilter.cs index 0359fa9772eba..27cb7f75f254e 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotContainsAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotContainsAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,28 @@ public partial class StringNotContainsAdvancedFilter : AdvancedFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringNotContainsAdvancedFilter. /// public StringNotContainsAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringNotContains"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of + /// StringNotContainsAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringNotContains"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotContainsFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotContainsFilter.cs index 7e461b8797775..40abd3cd7bd54 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotContainsFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotContainsFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class StringNotContainsFilter : EventGridFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringNotContainsFilter. /// public StringNotContainsFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringNotContains"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of StringNotContainsFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringNotContains"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotEndsWithAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotEndsWithAdvancedFilter.cs index 3d169217ea680..532321831fadf 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotEndsWithAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotEndsWithAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,28 @@ public partial class StringNotEndsWithAdvancedFilter : AdvancedFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringNotEndsWithAdvancedFilter. /// public StringNotEndsWithAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringNotEndsWith"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of + /// StringNotEndsWithAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringNotEndsWith"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotEndsWithFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotEndsWithFilter.cs index ddc5690298010..e007415fb15c4 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotEndsWithFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotEndsWithFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class StringNotEndsWithFilter : EventGridFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringNotEndsWithFilter. /// public StringNotEndsWithFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringNotEndsWith"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of StringNotEndsWithFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringNotEndsWith"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotInAdvancedFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotInAdvancedFilter.cs index e1ec735100cd4..a9adc055414f7 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotInAdvancedFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotInAdvancedFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class StringNotInAdvancedFilter : AdvancedFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringNotInAdvancedFilter. /// public StringNotInAdvancedFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringNotIn"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of StringNotInAdvancedFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringNotIn"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotInFilter.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotInFilter.cs index 5a3a42f0f1a0f..173a8803cf563 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotInFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/StringNotInFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,27 @@ public partial class StringNotInFilter : EventGridFilter /// /// The set of filter values. /// - public BicepList Values { get => _values; set => _values.Assign(value); } - private readonly BicepList _values; + public BicepList Values + { + get { Initialize(); return _values!; } + set { Initialize(); _values!.Assign(value); } + } + private BicepList? _values; /// /// Creates a new StringNotInFilter. /// public StringNotInFilter() : base() { - BicepValue.DefineProperty(this, "operatorType", ["operatorType"], defaultValue: "StringNotIn"); - _values = BicepList.DefineProperty(this, "Values", ["values"]); + } + + /// + /// Define all the provisionable properties of StringNotInFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("operatorType", ["operatorType"], defaultValue: "StringNotIn"); + _values = DefineListProperty("Values", ["values"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/TopicSpacesConfiguration.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/TopicSpacesConfiguration.cs index 4da5eb282b03e..c2b1f5cf760a6 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/TopicSpacesConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/TopicSpacesConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,8 +20,12 @@ public partial class TopicSpacesConfiguration : ProvisionableConstruct /// Indicate if Topic Spaces Configuration is enabled for the namespace. /// Default is Disabled. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Fully qualified Azure Resource Id for the Event Grid Topic to which @@ -29,69 +35,108 @@ public partial class TopicSpacesConfiguration : ProvisionableConstruct /// This topic should reside in the same region where /// namespace is located. /// - public BicepValue RouteTopicResourceId { get => _routeTopicResourceId; set => _routeTopicResourceId.Assign(value); } - private readonly BicepValue _routeTopicResourceId; + public BicepValue RouteTopicResourceId + { + get { Initialize(); return _routeTopicResourceId!; } + set { Initialize(); _routeTopicResourceId!.Assign(value); } + } + private BicepValue? _routeTopicResourceId; /// /// The endpoint for the topic spaces configuration. This is a read-only /// property. /// - public BicepValue Hostname { get => _hostname; } - private readonly BicepValue _hostname; + public BicepValue Hostname + { + get { Initialize(); return _hostname!; } + } + private BicepValue? _hostname; /// /// Routing enrichments for topic spaces configuration. /// - public BicepValue RoutingEnrichments { get => _routingEnrichments; set => _routingEnrichments.Assign(value); } - private readonly BicepValue _routingEnrichments; + public RoutingEnrichments RoutingEnrichments + { + get { Initialize(); return _routingEnrichments!; } + set { Initialize(); AssignOrReplace(ref _routingEnrichments, value); } + } + private RoutingEnrichments? _routingEnrichments; /// /// Client authentication settings for topic spaces configuration. /// - public BicepValue ClientAuthentication { get => _clientAuthentication; set => _clientAuthentication.Assign(value); } - private readonly BicepValue _clientAuthentication; + public ClientAuthenticationSettings ClientAuthentication + { + get { Initialize(); return _clientAuthentication!; } + set { Initialize(); AssignOrReplace(ref _clientAuthentication, value); } + } + private ClientAuthenticationSettings? _clientAuthentication; /// /// The maximum session expiry in hours. The property default value is 1 /// hour. Min allowed value is 1 hour and max allowed value is /// 8 hours. /// - public BicepValue MaximumSessionExpiryInHours { get => _maximumSessionExpiryInHours; set => _maximumSessionExpiryInHours.Assign(value); } - private readonly BicepValue _maximumSessionExpiryInHours; + public BicepValue MaximumSessionExpiryInHours + { + get { Initialize(); return _maximumSessionExpiryInHours!; } + set { Initialize(); _maximumSessionExpiryInHours!.Assign(value); } + } + private BicepValue? _maximumSessionExpiryInHours; /// /// The maximum number of sessions per authentication name. The property /// default value is 1. Min allowed value is 1 and max allowed /// value is 100. /// - public BicepValue MaximumClientSessionsPerAuthenticationName { get => _maximumClientSessionsPerAuthenticationName; set => _maximumClientSessionsPerAuthenticationName.Assign(value); } - private readonly BicepValue _maximumClientSessionsPerAuthenticationName; + public BicepValue MaximumClientSessionsPerAuthenticationName + { + get { Initialize(); return _maximumClientSessionsPerAuthenticationName!; } + set { Initialize(); _maximumClientSessionsPerAuthenticationName!.Assign(value); } + } + private BicepValue? _maximumClientSessionsPerAuthenticationName; /// /// Routing identity info for topic spaces configuration. /// - public BicepValue RoutingIdentityInfo { get => _routingIdentityInfo; set => _routingIdentityInfo.Assign(value); } - private readonly BicepValue _routingIdentityInfo; + public RoutingIdentityInfo RoutingIdentityInfo + { + get { Initialize(); return _routingIdentityInfo!; } + set { Initialize(); AssignOrReplace(ref _routingIdentityInfo, value); } + } + private RoutingIdentityInfo? _routingIdentityInfo; /// /// List of custom domain configurations for the namespace. /// - public BicepList CustomDomains { get => _customDomains; set => _customDomains.Assign(value); } - private readonly BicepList _customDomains; + public BicepList CustomDomains + { + get { Initialize(); return _customDomains!; } + set { Initialize(); _customDomains!.Assign(value); } + } + private BicepList? _customDomains; /// /// Creates a new TopicSpacesConfiguration. /// public TopicSpacesConfiguration() { - _state = BicepValue.DefineProperty(this, "State", ["state"]); - _routeTopicResourceId = BicepValue.DefineProperty(this, "RouteTopicResourceId", ["routeTopicResourceId"]); - _hostname = BicepValue.DefineProperty(this, "Hostname", ["hostname"], isOutput: true); - _routingEnrichments = BicepValue.DefineProperty(this, "RoutingEnrichments", ["routingEnrichments"]); - _clientAuthentication = BicepValue.DefineProperty(this, "ClientAuthentication", ["clientAuthentication"]); - _maximumSessionExpiryInHours = BicepValue.DefineProperty(this, "MaximumSessionExpiryInHours", ["maximumSessionExpiryInHours"]); - _maximumClientSessionsPerAuthenticationName = BicepValue.DefineProperty(this, "MaximumClientSessionsPerAuthenticationName", ["maximumClientSessionsPerAuthenticationName"]); - _routingIdentityInfo = BicepValue.DefineProperty(this, "RoutingIdentityInfo", ["routingIdentityInfo"]); - _customDomains = BicepList.DefineProperty(this, "CustomDomains", ["customDomains"]); + } + + /// + /// Define all the provisionable properties of TopicSpacesConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _state = DefineProperty("State", ["state"]); + _routeTopicResourceId = DefineProperty("RouteTopicResourceId", ["routeTopicResourceId"]); + _hostname = DefineProperty("Hostname", ["hostname"], isOutput: true); + _routingEnrichments = DefineModelProperty("RoutingEnrichments", ["routingEnrichments"]); + _clientAuthentication = DefineModelProperty("ClientAuthentication", ["clientAuthentication"]); + _maximumSessionExpiryInHours = DefineProperty("MaximumSessionExpiryInHours", ["maximumSessionExpiryInHours"]); + _maximumClientSessionsPerAuthenticationName = DefineProperty("MaximumClientSessionsPerAuthenticationName", ["maximumClientSessionsPerAuthenticationName"]); + _routingIdentityInfo = DefineModelProperty("RoutingIdentityInfo", ["routingIdentityInfo"]); + _customDomains = DefineListProperty("CustomDomains", ["customDomains"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/TopicsConfiguration.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/TopicsConfiguration.cs index 213ff204be58f..d72fe710a47e4 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/TopicsConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/TopicsConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,36 @@ public partial class TopicsConfiguration : ProvisionableConstruct /// /// The hostname for the topics configuration. This is a read-only property. /// - public BicepValue Hostname { get => _hostname; } - private readonly BicepValue _hostname; + public BicepValue Hostname + { + get { Initialize(); return _hostname!; } + } + private BicepValue? _hostname; /// /// List of custom domain configurations for the namespace. /// - public BicepList CustomDomains { get => _customDomains; set => _customDomains.Assign(value); } - private readonly BicepList _customDomains; + public BicepList CustomDomains + { + get { Initialize(); return _customDomains!; } + set { Initialize(); _customDomains!.Assign(value); } + } + private BicepList? _customDomains; /// /// Creates a new TopicsConfiguration. /// public TopicsConfiguration() { - _hostname = BicepValue.DefineProperty(this, "Hostname", ["hostname"], isOutput: true); - _customDomains = BicepList.DefineProperty(this, "CustomDomains", ["customDomains"]); + } + + /// + /// Define all the provisionable properties of TopicsConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _hostname = DefineProperty("Hostname", ["hostname"], isOutput: true); + _customDomains = DefineListProperty("CustomDomains", ["customDomains"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/WebHookEventSubscriptionDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/WebHookEventSubscriptionDestination.cs index e040a9b543c79..f38735bd924ef 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/WebHookEventSubscriptionDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/WebHookEventSubscriptionDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,41 +20,64 @@ public partial class WebHookEventSubscriptionDestination : EventSubscriptionDest /// The URL that represents the endpoint of the destination of an event /// subscription. /// - public BicepValue Endpoint { get => _endpoint; set => _endpoint.Assign(value); } - private readonly BicepValue _endpoint; + public BicepValue Endpoint + { + get { Initialize(); return _endpoint!; } + set { Initialize(); _endpoint!.Assign(value); } + } + private BicepValue? _endpoint; /// /// The base URL that represents the endpoint of the destination of an /// event subscription. /// - public BicepValue BaseEndpoint { get => _baseEndpoint; } - private readonly BicepValue _baseEndpoint; + public BicepValue BaseEndpoint + { + get { Initialize(); return _baseEndpoint!; } + } + private BicepValue? _baseEndpoint; /// /// Maximum number of events per batch. /// - public BicepValue MaxEventsPerBatch { get => _maxEventsPerBatch; set => _maxEventsPerBatch.Assign(value); } - private readonly BicepValue _maxEventsPerBatch; + public BicepValue MaxEventsPerBatch + { + get { Initialize(); return _maxEventsPerBatch!; } + set { Initialize(); _maxEventsPerBatch!.Assign(value); } + } + private BicepValue? _maxEventsPerBatch; /// /// Preferred batch size in Kilobytes. /// - public BicepValue PreferredBatchSizeInKilobytes { get => _preferredBatchSizeInKilobytes; set => _preferredBatchSizeInKilobytes.Assign(value); } - private readonly BicepValue _preferredBatchSizeInKilobytes; + public BicepValue PreferredBatchSizeInKilobytes + { + get { Initialize(); return _preferredBatchSizeInKilobytes!; } + set { Initialize(); _preferredBatchSizeInKilobytes!.Assign(value); } + } + private BicepValue? _preferredBatchSizeInKilobytes; /// /// The Azure Active Directory Tenant ID to get the access token that will /// be included as the bearer token in delivery requests. /// - public BicepValue AzureActiveDirectoryTenantId { get => _azureActiveDirectoryTenantId; set => _azureActiveDirectoryTenantId.Assign(value); } - private readonly BicepValue _azureActiveDirectoryTenantId; + public BicepValue AzureActiveDirectoryTenantId + { + get { Initialize(); return _azureActiveDirectoryTenantId!; } + set { Initialize(); _azureActiveDirectoryTenantId!.Assign(value); } + } + private BicepValue? _azureActiveDirectoryTenantId; /// /// The Azure Active Directory Application ID or URI to get the access /// token that will be included as the bearer token in delivery requests. /// - public BicepValue UriOrAzureActiveDirectoryApplicationId { get => _uriOrAzureActiveDirectoryApplicationId; set => _uriOrAzureActiveDirectoryApplicationId.Assign(value); } - private readonly BicepValue _uriOrAzureActiveDirectoryApplicationId; + public BicepValue UriOrAzureActiveDirectoryApplicationId + { + get { Initialize(); return _uriOrAzureActiveDirectoryApplicationId!; } + set { Initialize(); _uriOrAzureActiveDirectoryApplicationId!.Assign(value); } + } + private BicepValue? _uriOrAzureActiveDirectoryApplicationId; /// /// Delivery attribute details. Please note @@ -65,28 +90,45 @@ public partial class WebHookEventSubscriptionDestination : EventSubscriptionDest /// and /// Azure.ResourceManager.EventGrid.Models.StaticDeliveryAttributeMapping. /// - public BicepList DeliveryAttributeMappings { get => _deliveryAttributeMappings; set => _deliveryAttributeMappings.Assign(value); } - private readonly BicepList _deliveryAttributeMappings; + public BicepList DeliveryAttributeMappings + { + get { Initialize(); return _deliveryAttributeMappings!; } + set { Initialize(); _deliveryAttributeMappings!.Assign(value); } + } + private BicepList? _deliveryAttributeMappings; /// /// Minimum TLS version that should be supported by webhook endpoint. /// - public BicepValue MinimumTlsVersionAllowed { get => _minimumTlsVersionAllowed; set => _minimumTlsVersionAllowed.Assign(value); } - private readonly BicepValue _minimumTlsVersionAllowed; + public BicepValue MinimumTlsVersionAllowed + { + get { Initialize(); return _minimumTlsVersionAllowed!; } + set { Initialize(); _minimumTlsVersionAllowed!.Assign(value); } + } + private BicepValue? _minimumTlsVersionAllowed; /// /// Creates a new WebHookEventSubscriptionDestination. /// public WebHookEventSubscriptionDestination() : base() { - BicepValue.DefineProperty(this, "endpointType", ["endpointType"], defaultValue: "WebHook"); - _endpoint = BicepValue.DefineProperty(this, "Endpoint", ["properties", "endpointUrl"]); - _baseEndpoint = BicepValue.DefineProperty(this, "BaseEndpoint", ["properties", "endpointBaseUrl"], isOutput: true); - _maxEventsPerBatch = BicepValue.DefineProperty(this, "MaxEventsPerBatch", ["properties", "maxEventsPerBatch"]); - _preferredBatchSizeInKilobytes = BicepValue.DefineProperty(this, "PreferredBatchSizeInKilobytes", ["properties", "preferredBatchSizeInKilobytes"]); - _azureActiveDirectoryTenantId = BicepValue.DefineProperty(this, "AzureActiveDirectoryTenantId", ["properties", "azureActiveDirectoryTenantId"]); - _uriOrAzureActiveDirectoryApplicationId = BicepValue.DefineProperty(this, "UriOrAzureActiveDirectoryApplicationId", ["properties", "azureActiveDirectoryApplicationIdOrUri"]); - _deliveryAttributeMappings = BicepList.DefineProperty(this, "DeliveryAttributeMappings", ["properties", "deliveryAttributeMappings"]); - _minimumTlsVersionAllowed = BicepValue.DefineProperty(this, "MinimumTlsVersionAllowed", ["properties", "minimumTlsVersionAllowed"]); + } + + /// + /// Define all the provisionable properties of + /// WebHookEventSubscriptionDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("endpointType", ["endpointType"], defaultValue: "WebHook"); + _endpoint = DefineProperty("Endpoint", ["properties", "endpointUrl"]); + _baseEndpoint = DefineProperty("BaseEndpoint", ["properties", "endpointBaseUrl"], isOutput: true); + _maxEventsPerBatch = DefineProperty("MaxEventsPerBatch", ["properties", "maxEventsPerBatch"]); + _preferredBatchSizeInKilobytes = DefineProperty("PreferredBatchSizeInKilobytes", ["properties", "preferredBatchSizeInKilobytes"]); + _azureActiveDirectoryTenantId = DefineProperty("AzureActiveDirectoryTenantId", ["properties", "azureActiveDirectoryTenantId"]); + _uriOrAzureActiveDirectoryApplicationId = DefineProperty("UriOrAzureActiveDirectoryApplicationId", ["properties", "azureActiveDirectoryApplicationIdOrUri"]); + _deliveryAttributeMappings = DefineListProperty("DeliveryAttributeMappings", ["properties", "deliveryAttributeMappings"]); + _minimumTlsVersionAllowed = DefineProperty("MinimumTlsVersionAllowed", ["properties", "minimumTlsVersionAllowed"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/WebhookPartnerDestinationInfo.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/WebhookPartnerDestinationInfo.cs index e50db84d8b79e..7910f06fa2964 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/WebhookPartnerDestinationInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/Models/WebhookPartnerDestinationInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,14 +18,22 @@ public partial class WebhookPartnerDestinationInfo : PartnerDestinationInfo /// /// The URL that represents the endpoint of the partner destination. /// - public BicepValue EndpointUri { get => _endpointUri; set => _endpointUri.Assign(value); } - private readonly BicepValue _endpointUri; + public BicepValue EndpointUri + { + get { Initialize(); return _endpointUri!; } + set { Initialize(); _endpointUri!.Assign(value); } + } + private BicepValue? _endpointUri; /// /// The base URL that represents the endpoint of the partner destination. /// - public BicepValue EndpointBaseUri { get => _endpointBaseUri; set => _endpointBaseUri.Assign(value); } - private readonly BicepValue _endpointBaseUri; + public BicepValue EndpointBaseUri + { + get { Initialize(); return _endpointBaseUri!; } + set { Initialize(); _endpointBaseUri!.Assign(value); } + } + private BicepValue? _endpointBaseUri; /// /// Partner client authentication Please note @@ -34,17 +44,30 @@ public partial class WebhookPartnerDestinationInfo : PartnerDestinationInfo /// available derived classes include /// Azure.ResourceManager.EventGrid.Models.AzureADPartnerClientAuthentication. /// - public BicepValue ClientAuthentication { get => _clientAuthentication; set => _clientAuthentication.Assign(value); } - private readonly BicepValue _clientAuthentication; + public PartnerClientAuthentication ClientAuthentication + { + get { Initialize(); return _clientAuthentication!; } + set { Initialize(); AssignOrReplace(ref _clientAuthentication, value); } + } + private PartnerClientAuthentication? _clientAuthentication; /// /// Creates a new WebhookPartnerDestinationInfo. /// public WebhookPartnerDestinationInfo() : base() { - BicepValue.DefineProperty(this, "endpointType", ["endpointType"], defaultValue: "WebHook"); - _endpointUri = BicepValue.DefineProperty(this, "EndpointUri", ["properties", "endpointUrl"]); - _endpointBaseUri = BicepValue.DefineProperty(this, "EndpointBaseUri", ["properties", "endpointBaseUrl"]); - _clientAuthentication = BicepValue.DefineProperty(this, "ClientAuthentication", ["properties", "clientAuthentication"]); + } + + /// + /// Define all the provisionable properties of + /// WebhookPartnerDestinationInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("endpointType", ["endpointType"], defaultValue: "WebHook"); + _endpointUri = DefineProperty("EndpointUri", ["properties", "endpointUrl"]); + _endpointBaseUri = DefineProperty("EndpointBaseUri", ["properties", "endpointBaseUrl"]); + _clientAuthentication = DefineModelProperty("ClientAuthentication", ["properties", "clientAuthentication"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/NamespaceTopic.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/NamespaceTopic.cs index 7a406e88d0c37..06401245910f8 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/NamespaceTopic.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/NamespaceTopic.cs @@ -20,53 +20,82 @@ public partial class NamespaceTopic : ProvisionableResource /// /// Name of the namespace topic. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Event retention for the namespace topic expressed in days. The property /// default value is 1 day. Min event retention duration value /// is 1 day and max event retention duration value is 1 day. /// - public BicepValue EventRetentionInDays { get => _eventRetentionInDays; set => _eventRetentionInDays.Assign(value); } - private readonly BicepValue _eventRetentionInDays; + public BicepValue EventRetentionInDays + { + get { Initialize(); return _eventRetentionInDays!; } + set { Initialize(); _eventRetentionInDays!.Assign(value); } + } + private BicepValue? _eventRetentionInDays; /// /// This determines the format that is expected for incoming events /// published to the topic. /// - public BicepValue InputSchema { get => _inputSchema; set => _inputSchema.Assign(value); } - private readonly BicepValue _inputSchema; + public BicepValue InputSchema + { + get { Initialize(); return _inputSchema!; } + set { Initialize(); _inputSchema!.Assign(value); } + } + private BicepValue? _inputSchema; /// /// Publisher type of the namespace topic. /// - public BicepValue PublisherType { get => _publisherType; set => _publisherType.Assign(value); } - private readonly BicepValue _publisherType; + public BicepValue PublisherType + { + get { Initialize(); return _publisherType!; } + set { Initialize(); _publisherType!.Assign(value); } + } + private BicepValue? _publisherType; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the namespace topic. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventGridNamespace. /// - public EventGridNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventGridNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new NamespaceTopic. @@ -81,14 +110,21 @@ public partial class NamespaceTopic : ProvisionableResource public NamespaceTopic(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/namespaces/topics", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _eventRetentionInDays = BicepValue.DefineProperty(this, "EventRetentionInDays", ["properties", "eventRetentionInDays"]); - _inputSchema = BicepValue.DefineProperty(this, "InputSchema", ["properties", "inputSchema"]); - _publisherType = BicepValue.DefineProperty(this, "PublisherType", ["properties", "publisherType"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of NamespaceTopic. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _eventRetentionInDays = DefineProperty("EventRetentionInDays", ["properties", "eventRetentionInDays"]); + _inputSchema = DefineProperty("InputSchema", ["properties", "inputSchema"]); + _publisherType = DefineProperty("PublisherType", ["properties", "publisherType"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/NamespaceTopicEventSubscription.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/NamespaceTopicEventSubscription.cs index 005f72ee60c4b..e692965fa980e 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/NamespaceTopicEventSubscription.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/NamespaceTopicEventSubscription.cs @@ -23,56 +23,89 @@ public partial class NamespaceTopicEventSubscription : ProvisionableResource /// must be between 3 and 50 characters in length and use alphanumeric /// letters only. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Information about the delivery configuration of the event subscription. /// - public BicepValue DeliveryConfiguration { get => _deliveryConfiguration; set => _deliveryConfiguration.Assign(value); } - private readonly BicepValue _deliveryConfiguration; + public DeliveryConfiguration DeliveryConfiguration + { + get { Initialize(); return _deliveryConfiguration!; } + set { Initialize(); AssignOrReplace(ref _deliveryConfiguration, value); } + } + private DeliveryConfiguration? _deliveryConfiguration; /// /// The event delivery schema for the event subscription. /// - public BicepValue EventDeliverySchema { get => _eventDeliverySchema; set => _eventDeliverySchema.Assign(value); } - private readonly BicepValue _eventDeliverySchema; + public BicepValue EventDeliverySchema + { + get { Initialize(); return _eventDeliverySchema!; } + set { Initialize(); _eventDeliverySchema!.Assign(value); } + } + private BicepValue? _eventDeliverySchema; /// /// Expiration time of the event subscription. /// - public BicepValue ExpireOn { get => _expireOn; set => _expireOn.Assign(value); } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + set { Initialize(); _expireOn!.Assign(value); } + } + private BicepValue? _expireOn; /// /// Information about the filter for the event subscription. /// - public BicepValue FiltersConfiguration { get => _filtersConfiguration; set => _filtersConfiguration.Assign(value); } - private readonly BicepValue _filtersConfiguration; + public FiltersConfiguration FiltersConfiguration + { + get { Initialize(); return _filtersConfiguration!; } + set { Initialize(); AssignOrReplace(ref _filtersConfiguration, value); } + } + private FiltersConfiguration? _filtersConfiguration; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the event subscription. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent NamespaceTopic. /// - public NamespaceTopic? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public NamespaceTopic? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new NamespaceTopicEventSubscription. @@ -87,15 +120,23 @@ public partial class NamespaceTopicEventSubscription : ProvisionableResource public NamespaceTopicEventSubscription(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/namespaces/topics/eventSubscriptions", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _deliveryConfiguration = BicepValue.DefineProperty(this, "DeliveryConfiguration", ["properties", "deliveryConfiguration"]); - _eventDeliverySchema = BicepValue.DefineProperty(this, "EventDeliverySchema", ["properties", "eventDeliverySchema"]); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["properties", "expirationTimeUtc"]); - _filtersConfiguration = BicepValue.DefineProperty(this, "FiltersConfiguration", ["properties", "filtersConfiguration"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// NamespaceTopicEventSubscription. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _deliveryConfiguration = DefineModelProperty("DeliveryConfiguration", ["properties", "deliveryConfiguration"]); + _eventDeliverySchema = DefineProperty("EventDeliverySchema", ["properties", "eventDeliverySchema"]); + _expireOn = DefineProperty("ExpireOn", ["properties", "expirationTimeUtc"]); + _filtersConfiguration = DefineModelProperty("FiltersConfiguration", ["properties", "filtersConfiguration"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerConfiguration.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerConfiguration.cs index f82f66e3cf964..065e3a31531d2 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerConfiguration.cs @@ -21,44 +21,69 @@ public partial class PartnerConfiguration : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The details of authorized partners. /// - public BicepValue PartnerAuthorization { get => _partnerAuthorization; set => _partnerAuthorization.Assign(value); } - private readonly BicepValue _partnerAuthorization; + public PartnerAuthorization PartnerAuthorization + { + get { Initialize(); return _partnerAuthorization!; } + set { Initialize(); AssignOrReplace(ref _partnerAuthorization, value); } + } + private PartnerAuthorization? _partnerAuthorization; /// /// Provisioning state of the partner configuration. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new PartnerConfiguration. @@ -73,13 +98,20 @@ public partial class PartnerConfiguration : ProvisionableResource public PartnerConfiguration(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/partnerConfigurations", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _partnerAuthorization = BicepValue.DefineProperty(this, "PartnerAuthorization", ["properties", "partnerAuthorization"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PartnerConfiguration. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _partnerAuthorization = DefineModelProperty("PartnerAuthorization", ["properties", "partnerAuthorization"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerDestination.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerDestination.cs index 7de5853daa372..9629df09322c6 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerDestination.cs @@ -21,76 +21,121 @@ public partial class PartnerDestination : ProvisionableResource /// /// Name of the partner destination. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Activation state of the partner destination. /// - public BicepValue ActivationState { get => _activationState; set => _activationState.Assign(value); } - private readonly BicepValue _activationState; + public BicepValue ActivationState + { + get { Initialize(); return _activationState!; } + set { Initialize(); _activationState!.Assign(value); } + } + private BicepValue? _activationState; /// /// Endpoint Base URL of the partner destination. /// - public BicepValue EndpointBaseUri { get => _endpointBaseUri; set => _endpointBaseUri.Assign(value); } - private readonly BicepValue _endpointBaseUri; + public BicepValue EndpointBaseUri + { + get { Initialize(); return _endpointBaseUri!; } + set { Initialize(); _endpointBaseUri!.Assign(value); } + } + private BicepValue? _endpointBaseUri; /// /// Endpoint context associated with this partner destination. /// - public BicepValue EndpointServiceContext { get => _endpointServiceContext; set => _endpointServiceContext.Assign(value); } - private readonly BicepValue _endpointServiceContext; + public BicepValue EndpointServiceContext + { + get { Initialize(); return _endpointServiceContext!; } + set { Initialize(); _endpointServiceContext!.Assign(value); } + } + private BicepValue? _endpointServiceContext; /// /// Expiration time of the partner destination. If this timer expires and /// the partner destination was never activated, the partner /// destination and corresponding channel are deleted. /// - public BicepValue ExpirationTimeIfNotActivatedUtc { get => _expirationTimeIfNotActivatedUtc; set => _expirationTimeIfNotActivatedUtc.Assign(value); } - private readonly BicepValue _expirationTimeIfNotActivatedUtc; + public BicepValue ExpirationTimeIfNotActivatedUtc + { + get { Initialize(); return _expirationTimeIfNotActivatedUtc!; } + set { Initialize(); _expirationTimeIfNotActivatedUtc!.Assign(value); } + } + private BicepValue? _expirationTimeIfNotActivatedUtc; /// /// Context or helpful message that can be used during the approval process. /// - public BicepValue MessageForActivation { get => _messageForActivation; set => _messageForActivation.Assign(value); } - private readonly BicepValue _messageForActivation; + public BicepValue MessageForActivation + { + get { Initialize(); return _messageForActivation!; } + set { Initialize(); _messageForActivation!.Assign(value); } + } + private BicepValue? _messageForActivation; /// /// The immutable Id of the corresponding partner registration. /// - public BicepValue PartnerRegistrationImmutableId { get => _partnerRegistrationImmutableId; set => _partnerRegistrationImmutableId.Assign(value); } - private readonly BicepValue _partnerRegistrationImmutableId; + public BicepValue PartnerRegistrationImmutableId + { + get { Initialize(); return _partnerRegistrationImmutableId!; } + set { Initialize(); _partnerRegistrationImmutableId!.Assign(value); } + } + private BicepValue? _partnerRegistrationImmutableId; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the partner destination. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new PartnerDestination. @@ -105,18 +150,25 @@ public partial class PartnerDestination : ProvisionableResource public PartnerDestination(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/partnerDestinations", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _activationState = BicepValue.DefineProperty(this, "ActivationState", ["properties", "activationState"]); - _endpointBaseUri = BicepValue.DefineProperty(this, "EndpointBaseUri", ["properties", "endpointBaseUrl"]); - _endpointServiceContext = BicepValue.DefineProperty(this, "EndpointServiceContext", ["properties", "endpointServiceContext"]); - _expirationTimeIfNotActivatedUtc = BicepValue.DefineProperty(this, "ExpirationTimeIfNotActivatedUtc", ["properties", "expirationTimeIfNotActivatedUtc"]); - _messageForActivation = BicepValue.DefineProperty(this, "MessageForActivation", ["properties", "messageForActivation"]); - _partnerRegistrationImmutableId = BicepValue.DefineProperty(this, "PartnerRegistrationImmutableId", ["properties", "partnerRegistrationImmutableId"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PartnerDestination. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _activationState = DefineProperty("ActivationState", ["properties", "activationState"]); + _endpointBaseUri = DefineProperty("EndpointBaseUri", ["properties", "endpointBaseUrl"]); + _endpointServiceContext = DefineProperty("EndpointServiceContext", ["properties", "endpointServiceContext"]); + _expirationTimeIfNotActivatedUtc = DefineProperty("ExpirationTimeIfNotActivatedUtc", ["properties", "expirationTimeIfNotActivatedUtc"]); + _messageForActivation = DefineProperty("MessageForActivation", ["properties", "messageForActivation"]); + _partnerRegistrationImmutableId = DefineProperty("PartnerRegistrationImmutableId", ["properties", "partnerRegistrationImmutableId"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerNamespace.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerNamespace.cs index a2779ec7477a8..23dfc92f24eae 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerNamespace.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerNamespace.cs @@ -21,36 +21,56 @@ public partial class PartnerNamespace : ProvisionableResource /// /// Name of the partner namespace. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// This can be used to restrict traffic from specific IPs instead of all /// IPs. Note: These are considered only if PublicNetworkAccess is enabled. /// - public BicepList InboundIPRules { get => _inboundIPRules; set => _inboundIPRules.Assign(value); } - private readonly BicepList _inboundIPRules; + public BicepList InboundIPRules + { + get { Initialize(); return _inboundIPRules!; } + set { Initialize(); _inboundIPRules!.Assign(value); } + } + private BicepList? _inboundIPRules; /// /// This boolean is used to enable or disable local auth. Default value is /// false. When the property is set to true, only AAD token will be used /// to authenticate if user is allowed to publish to the partner namespace. /// - public BicepValue IsLocalAuthDisabled { get => _isLocalAuthDisabled; set => _isLocalAuthDisabled.Assign(value); } - private readonly BicepValue _isLocalAuthDisabled; + public BicepValue IsLocalAuthDisabled + { + get { Initialize(); return _isLocalAuthDisabled!; } + set { Initialize(); _isLocalAuthDisabled!.Assign(value); } + } + private BicepValue? _isLocalAuthDisabled; /// /// Minimum TLS version of the publisher allowed to publish to this partner /// namespace. /// - public BicepValue MinimumTlsVersionAllowed { get => _minimumTlsVersionAllowed; set => _minimumTlsVersionAllowed.Assign(value); } - private readonly BicepValue _minimumTlsVersionAllowed; + public BicepValue MinimumTlsVersionAllowed + { + get { Initialize(); return _minimumTlsVersionAllowed!; } + set { Initialize(); _minimumTlsVersionAllowed!.Assign(value); } + } + private BicepValue? _minimumTlsVersionAllowed; /// /// The fully qualified ARM Id of the partner registration that should be @@ -58,8 +78,12 @@ public partial class PartnerNamespace : ProvisionableResource /// format: /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}. /// - public BicepValue PartnerRegistrationFullyQualifiedId { get => _partnerRegistrationFullyQualifiedId; set => _partnerRegistrationFullyQualifiedId.Assign(value); } - private readonly BicepValue _partnerRegistrationFullyQualifiedId; + public BicepValue PartnerRegistrationFullyQualifiedId + { + get { Initialize(); return _partnerRegistrationFullyQualifiedId!; } + set { Initialize(); _partnerRegistrationFullyQualifiedId!.Assign(value); } + } + private BicepValue? _partnerRegistrationFullyQualifiedId; /// /// This determines if events published to this partner namespace should @@ -68,8 +92,12 @@ public partial class PartnerNamespace : ProvisionableResource /// is specified, source attribute routing will be used to match the /// partner topic. /// - public BicepValue PartnerTopicRoutingMode { get => _partnerTopicRoutingMode; set => _partnerTopicRoutingMode.Assign(value); } - private readonly BicepValue _partnerTopicRoutingMode; + public BicepValue PartnerTopicRoutingMode + { + get { Initialize(); return _partnerTopicRoutingMode!; } + set { Initialize(); _partnerTopicRoutingMode!.Assign(value); } + } + private BicepValue? _partnerTopicRoutingMode; /// /// This determines if traffic is allowed over public network. By default @@ -78,44 +106,67 @@ public partial class PartnerNamespace : ProvisionableResource /// cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceProperties.InboundIpRules" /// /> /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Endpoint for the partner namespace. /// - public BicepValue Endpoint { get => _endpoint; } - private readonly BicepValue _endpoint; + public BicepValue Endpoint + { + get { Initialize(); return _endpoint!; } + } + private BicepValue? _endpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// List of private endpoint connections. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// Provisioning state of the partner namespace. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new PartnerNamespace. @@ -130,20 +181,27 @@ public partial class PartnerNamespace : ProvisionableResource public PartnerNamespace(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/partnerNamespaces", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _inboundIPRules = BicepList.DefineProperty(this, "InboundIPRules", ["properties", "inboundIpRules"]); - _isLocalAuthDisabled = BicepValue.DefineProperty(this, "IsLocalAuthDisabled", ["properties", "disableLocalAuth"]); - _minimumTlsVersionAllowed = BicepValue.DefineProperty(this, "MinimumTlsVersionAllowed", ["properties", "minimumTlsVersionAllowed"]); - _partnerRegistrationFullyQualifiedId = BicepValue.DefineProperty(this, "PartnerRegistrationFullyQualifiedId", ["properties", "partnerRegistrationFullyQualifiedId"]); - _partnerTopicRoutingMode = BicepValue.DefineProperty(this, "PartnerTopicRoutingMode", ["properties", "partnerTopicRoutingMode"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _endpoint = BicepValue.DefineProperty(this, "Endpoint", ["properties", "endpoint"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PartnerNamespace. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _inboundIPRules = DefineListProperty("InboundIPRules", ["properties", "inboundIpRules"]); + _isLocalAuthDisabled = DefineProperty("IsLocalAuthDisabled", ["properties", "disableLocalAuth"]); + _minimumTlsVersionAllowed = DefineProperty("MinimumTlsVersionAllowed", ["properties", "minimumTlsVersionAllowed"]); + _partnerRegistrationFullyQualifiedId = DefineProperty("PartnerRegistrationFullyQualifiedId", ["properties", "partnerRegistrationFullyQualifiedId"]); + _partnerTopicRoutingMode = DefineProperty("PartnerTopicRoutingMode", ["properties", "partnerTopicRoutingMode"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _endpoint = DefineProperty("Endpoint", ["properties", "endpoint"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerNamespaceChannel.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerNamespaceChannel.cs index d059c86b03d23..b44e754183972 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerNamespaceChannel.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerNamespaceChannel.cs @@ -21,30 +21,46 @@ public partial class PartnerNamespaceChannel : ProvisionableResource /// /// Name of the channel. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The type of the event channel which represents the direction flow of /// events. /// - public BicepValue ChannelType { get => _channelType; set => _channelType.Assign(value); } - private readonly BicepValue _channelType; + public BicepValue ChannelType + { + get { Initialize(); return _channelType!; } + set { Initialize(); _channelType!.Assign(value); } + } + private BicepValue? _channelType; /// /// Expiration time of the channel. If this timer expires while the /// corresponding partner topic is never activated, the /// channel and corresponding partner topic are deleted. /// - public BicepValue ExpireOnIfNotActivated { get => _expireOnIfNotActivated; set => _expireOnIfNotActivated.Assign(value); } - private readonly BicepValue _expireOnIfNotActivated; + public BicepValue ExpireOnIfNotActivated + { + get { Initialize(); return _expireOnIfNotActivated!; } + set { Initialize(); _expireOnIfNotActivated!.Assign(value); } + } + private BicepValue? _expireOnIfNotActivated; /// /// Context or helpful message that can be used during the approval process /// by the subscriber. /// - public BicepValue MessageForActivation { get => _messageForActivation; set => _messageForActivation.Assign(value); } - private readonly BicepValue _messageForActivation; + public BicepValue MessageForActivation + { + get { Initialize(); return _messageForActivation!; } + set { Initialize(); _messageForActivation!.Assign(value); } + } + private BicepValue? _messageForActivation; /// /// This property should be populated when channelType is @@ -57,46 +73,72 @@ public partial class PartnerNamespaceChannel : ProvisionableResource /// available derived classes include /// Azure.ResourceManager.EventGrid.Models.WebhookPartnerDestinationInfo. /// - public BicepValue PartnerDestinationInfo { get => _partnerDestinationInfo; set => _partnerDestinationInfo.Assign(value); } - private readonly BicepValue _partnerDestinationInfo; + public PartnerDestinationInfo PartnerDestinationInfo + { + get { Initialize(); return _partnerDestinationInfo!; } + set { Initialize(); AssignOrReplace(ref _partnerDestinationInfo, value); } + } + private PartnerDestinationInfo? _partnerDestinationInfo; /// /// This property should be populated when channelType is PartnerTopic and /// represents information about the partner topic resource corresponding /// to the channel. /// - public BicepValue PartnerTopicInfo { get => _partnerTopicInfo; set => _partnerTopicInfo.Assign(value); } - private readonly BicepValue _partnerTopicInfo; + public PartnerTopicInfo PartnerTopicInfo + { + get { Initialize(); return _partnerTopicInfo!; } + set { Initialize(); AssignOrReplace(ref _partnerTopicInfo, value); } + } + private PartnerTopicInfo? _partnerTopicInfo; /// /// Provisioning state of the channel. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// The readiness state of the corresponding partner topic. /// - public BicepValue ReadinessState { get => _readinessState; set => _readinessState.Assign(value); } - private readonly BicepValue _readinessState; + public BicepValue ReadinessState + { + get { Initialize(); return _readinessState!; } + set { Initialize(); _readinessState!.Assign(value); } + } + private BicepValue? _readinessState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent PartnerNamespace. /// - public PartnerNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PartnerNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PartnerNamespaceChannel. @@ -111,17 +153,24 @@ public partial class PartnerNamespaceChannel : ProvisionableResource public PartnerNamespaceChannel(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/partnerNamespaces/channels", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _channelType = BicepValue.DefineProperty(this, "ChannelType", ["properties", "channelType"]); - _expireOnIfNotActivated = BicepValue.DefineProperty(this, "ExpireOnIfNotActivated", ["properties", "expirationTimeIfNotActivatedUtc"]); - _messageForActivation = BicepValue.DefineProperty(this, "MessageForActivation", ["properties", "messageForActivation"]); - _partnerDestinationInfo = BicepValue.DefineProperty(this, "PartnerDestinationInfo", ["properties", "partnerDestinationInfo"]); - _partnerTopicInfo = BicepValue.DefineProperty(this, "PartnerTopicInfo", ["properties", "partnerTopicInfo"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _readinessState = BicepValue.DefineProperty(this, "ReadinessState", ["properties", "readinessState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of PartnerNamespaceChannel. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _channelType = DefineProperty("ChannelType", ["properties", "channelType"]); + _expireOnIfNotActivated = DefineProperty("ExpireOnIfNotActivated", ["properties", "expirationTimeIfNotActivatedUtc"]); + _messageForActivation = DefineProperty("MessageForActivation", ["properties", "messageForActivation"]); + _partnerDestinationInfo = DefineModelProperty("PartnerDestinationInfo", ["properties", "partnerDestinationInfo"]); + _partnerTopicInfo = DefineModelProperty("PartnerTopicInfo", ["properties", "partnerTopicInfo"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _readinessState = DefineProperty("ReadinessState", ["properties", "readinessState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerRegistration.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerRegistration.cs index 1a99128570b76..a085febb98afb 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerRegistration.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerRegistration.cs @@ -21,46 +21,71 @@ public partial class PartnerRegistration : ProvisionableResource /// /// Name of the partner registration. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The immutableId of the corresponding partner registration. /// Note: This property is marked for deprecation and is not /// supported in any future GA API version /// - public BicepValue PartnerRegistrationImmutableId { get => _partnerRegistrationImmutableId; set => _partnerRegistrationImmutableId.Assign(value); } - private readonly BicepValue _partnerRegistrationImmutableId; + public BicepValue PartnerRegistrationImmutableId + { + get { Initialize(); return _partnerRegistrationImmutableId!; } + set { Initialize(); _partnerRegistrationImmutableId!.Assign(value); } + } + private BicepValue? _partnerRegistrationImmutableId; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the partner registration. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new PartnerRegistration. @@ -75,13 +100,20 @@ public partial class PartnerRegistration : ProvisionableResource public PartnerRegistration(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/partnerRegistrations", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _partnerRegistrationImmutableId = BicepValue.DefineProperty(this, "PartnerRegistrationImmutableId", ["properties", "partnerRegistrationImmutableId"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PartnerRegistration. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _partnerRegistrationImmutableId = DefineProperty("PartnerRegistrationImmutableId", ["properties", "partnerRegistrationImmutableId"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerTopic.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerTopic.cs index e727726d23fae..ca17f012879f5 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerTopic.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerTopic.cs @@ -21,53 +21,85 @@ public partial class PartnerTopic : ProvisionableResource /// /// Name of the partner topic. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Activation state of the partner topic. /// - public BicepValue ActivationState { get => _activationState; set => _activationState.Assign(value); } - private readonly BicepValue _activationState; + public BicepValue ActivationState + { + get { Initialize(); return _activationState!; } + set { Initialize(); _activationState!.Assign(value); } + } + private BicepValue? _activationState; /// /// Event Type information from the corresponding event channel. /// - public BicepValue EventTypeInfo { get => _eventTypeInfo; set => _eventTypeInfo.Assign(value); } - private readonly BicepValue _eventTypeInfo; + public PartnerTopicEventTypeInfo EventTypeInfo + { + get { Initialize(); return _eventTypeInfo!; } + set { Initialize(); AssignOrReplace(ref _eventTypeInfo, value); } + } + private PartnerTopicEventTypeInfo? _eventTypeInfo; /// /// Expiration time of the partner topic. If this timer expires while the /// partner topic is still never activated, the partner topic /// and corresponding event channel are deleted. /// - public BicepValue ExpireOnIfNotActivated { get => _expireOnIfNotActivated; set => _expireOnIfNotActivated.Assign(value); } - private readonly BicepValue _expireOnIfNotActivated; + public BicepValue ExpireOnIfNotActivated + { + get { Initialize(); return _expireOnIfNotActivated!; } + set { Initialize(); _expireOnIfNotActivated!.Assign(value); } + } + private BicepValue? _expireOnIfNotActivated; /// /// Identity information for the Partner Topic resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Context or helpful message that can be used during the approval process /// by the subscriber. /// - public BicepValue MessageForActivation { get => _messageForActivation; set => _messageForActivation.Assign(value); } - private readonly BicepValue _messageForActivation; + public BicepValue MessageForActivation + { + get { Initialize(); return _messageForActivation!; } + set { Initialize(); _messageForActivation!.Assign(value); } + } + private BicepValue? _messageForActivation; /// /// The immutableId of the corresponding partner registration. /// - public BicepValue PartnerRegistrationImmutableId { get => _partnerRegistrationImmutableId; set => _partnerRegistrationImmutableId.Assign(value); } - private readonly BicepValue _partnerRegistrationImmutableId; + public BicepValue PartnerRegistrationImmutableId + { + get { Initialize(); return _partnerRegistrationImmutableId!; } + set { Initialize(); _partnerRegistrationImmutableId!.Assign(value); } + } + private BicepValue? _partnerRegistrationImmutableId; /// /// Friendly description about the topic. This can be set by the @@ -75,39 +107,60 @@ public partial class PartnerTopic : ProvisionableResource /// topic. This will be helpful to remove any ambiguity of the /// origin of creation of the partner topic for the customer. /// - public BicepValue PartnerTopicFriendlyDescription { get => _partnerTopicFriendlyDescription; set => _partnerTopicFriendlyDescription.Assign(value); } - private readonly BicepValue _partnerTopicFriendlyDescription; + public BicepValue PartnerTopicFriendlyDescription + { + get { Initialize(); return _partnerTopicFriendlyDescription!; } + set { Initialize(); _partnerTopicFriendlyDescription!.Assign(value); } + } + private BicepValue? _partnerTopicFriendlyDescription; /// /// Source associated with this partner topic. This represents a unique /// partner resource. /// - public BicepValue Source { get => _source; set => _source.Assign(value); } - private readonly BicepValue _source; + public BicepValue Source + { + get { Initialize(); return _source!; } + set { Initialize(); _source!.Assign(value); } + } + private BicepValue? _source; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the partner topic. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new PartnerTopic. @@ -122,20 +175,27 @@ public partial class PartnerTopic : ProvisionableResource public PartnerTopic(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/partnerTopics", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _activationState = BicepValue.DefineProperty(this, "ActivationState", ["properties", "activationState"]); - _eventTypeInfo = BicepValue.DefineProperty(this, "EventTypeInfo", ["properties", "eventTypeInfo"]); - _expireOnIfNotActivated = BicepValue.DefineProperty(this, "ExpireOnIfNotActivated", ["properties", "expirationTimeIfNotActivatedUtc"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _messageForActivation = BicepValue.DefineProperty(this, "MessageForActivation", ["properties", "messageForActivation"]); - _partnerRegistrationImmutableId = BicepValue.DefineProperty(this, "PartnerRegistrationImmutableId", ["properties", "partnerRegistrationImmutableId"]); - _partnerTopicFriendlyDescription = BicepValue.DefineProperty(this, "PartnerTopicFriendlyDescription", ["properties", "partnerTopicFriendlyDescription"]); - _source = BicepValue.DefineProperty(this, "Source", ["properties", "source"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PartnerTopic. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _activationState = DefineProperty("ActivationState", ["properties", "activationState"]); + _eventTypeInfo = DefineModelProperty("EventTypeInfo", ["properties", "eventTypeInfo"]); + _expireOnIfNotActivated = DefineProperty("ExpireOnIfNotActivated", ["properties", "expirationTimeIfNotActivatedUtc"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _messageForActivation = DefineProperty("MessageForActivation", ["properties", "messageForActivation"]); + _partnerRegistrationImmutableId = DefineProperty("PartnerRegistrationImmutableId", ["properties", "partnerRegistrationImmutableId"]); + _partnerTopicFriendlyDescription = DefineProperty("PartnerTopicFriendlyDescription", ["properties", "partnerTopicFriendlyDescription"]); + _source = DefineProperty("Source", ["properties", "source"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerTopicEventSubscription.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerTopicEventSubscription.cs index 6dd687f911927..62cf6af0245a0 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerTopicEventSubscription.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/PartnerTopicEventSubscription.cs @@ -23,8 +23,12 @@ public partial class PartnerTopicEventSubscription : ProvisionableResource /// must be between 3 and 64 characters in length and use alphanumeric /// letters only. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The dead letter destination of the event subscription. Any event that @@ -39,8 +43,12 @@ public partial class PartnerTopicEventSubscription : ProvisionableResource /// available derived classes include /// Azure.ResourceManager.EventGrid.Models.StorageBlobDeadLetterDestination. /// - public BicepValue DeadLetterDestination { get => _deadLetterDestination; set => _deadLetterDestination.Assign(value); } - private readonly BicepValue _deadLetterDestination; + public DeadLetterDestination DeadLetterDestination + { + get { Initialize(); return _deadLetterDestination!; } + set { Initialize(); AssignOrReplace(ref _deadLetterDestination, value); } + } + private DeadLetterDestination? _deadLetterDestination; /// /// The dead letter destination of the event subscription. Any event that @@ -49,8 +57,12 @@ public partial class PartnerTopicEventSubscription : ProvisionableResource /// parent resource (namely, topic or domain) to acquire the /// authentication tokens being used during delivery / dead-lettering. /// - public BicepValue DeadLetterWithResourceIdentity { get => _deadLetterWithResourceIdentity; set => _deadLetterWithResourceIdentity.Assign(value); } - private readonly BicepValue _deadLetterWithResourceIdentity; + public DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity + { + get { Initialize(); return _deadLetterWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deadLetterWithResourceIdentity, value); } + } + private DeadLetterWithResourceIdentity? _deadLetterWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -58,8 +70,12 @@ public partial class PartnerTopicEventSubscription : ProvisionableResource /// the parent resource (namely, topic or domain) to acquire the /// authentication tokens being used during delivery / dead-lettering. /// - public BicepValue DeliveryWithResourceIdentity { get => _deliveryWithResourceIdentity; set => _deliveryWithResourceIdentity.Assign(value); } - private readonly BicepValue _deliveryWithResourceIdentity; + public DeliveryWithResourceIdentity DeliveryWithResourceIdentity + { + get { Initialize(); return _deliveryWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deliveryWithResourceIdentity, value); } + } + private DeliveryWithResourceIdentity? _deliveryWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -83,69 +99,109 @@ public partial class PartnerTopicEventSubscription : ProvisionableResource /// and /// Azure.ResourceManager.EventGrid.Models.WebHookEventSubscriptionDestination. /// - public BicepValue Destination { get => _destination; set => _destination.Assign(value); } - private readonly BicepValue _destination; + public EventSubscriptionDestination Destination + { + get { Initialize(); return _destination!; } + set { Initialize(); AssignOrReplace(ref _destination, value); } + } + private EventSubscriptionDestination? _destination; /// /// The event delivery schema for the event subscription. /// - public BicepValue EventDeliverySchema { get => _eventDeliverySchema; set => _eventDeliverySchema.Assign(value); } - private readonly BicepValue _eventDeliverySchema; + public BicepValue EventDeliverySchema + { + get { Initialize(); return _eventDeliverySchema!; } + set { Initialize(); _eventDeliverySchema!.Assign(value); } + } + private BicepValue? _eventDeliverySchema; /// /// Expiration time of the event subscription. /// - public BicepValue ExpireOn { get => _expireOn; set => _expireOn.Assign(value); } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + set { Initialize(); _expireOn!.Assign(value); } + } + private BicepValue? _expireOn; /// /// Information about the filter for the event subscription. /// - public BicepValue Filter { get => _filter; set => _filter.Assign(value); } - private readonly BicepValue _filter; + public EventSubscriptionFilter Filter + { + get { Initialize(); return _filter!; } + set { Initialize(); AssignOrReplace(ref _filter, value); } + } + private EventSubscriptionFilter? _filter; /// /// List of user defined labels. /// - public BicepList Labels { get => _labels; set => _labels.Assign(value); } - private readonly BicepList _labels; + public BicepList Labels + { + get { Initialize(); return _labels!; } + set { Initialize(); _labels!.Assign(value); } + } + private BicepList? _labels; /// /// The retry policy for events. This can be used to configure maximum /// number of delivery attempts and time to live for events. /// - public BicepValue RetryPolicy { get => _retryPolicy; set => _retryPolicy.Assign(value); } - private readonly BicepValue _retryPolicy; + public EventSubscriptionRetryPolicy RetryPolicy + { + get { Initialize(); return _retryPolicy!; } + set { Initialize(); AssignOrReplace(ref _retryPolicy, value); } + } + private EventSubscriptionRetryPolicy? _retryPolicy; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the event subscription. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Name of the topic of the event subscription. /// - public BicepValue Topic { get => _topic; } - private readonly BicepValue _topic; + public BicepValue Topic + { + get { Initialize(); return _topic!; } + } + private BicepValue? _topic; /// /// Gets or sets a reference to the parent PartnerTopic. /// - public PartnerTopic? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PartnerTopic? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PartnerTopicEventSubscription. @@ -160,21 +216,29 @@ public partial class PartnerTopicEventSubscription : ProvisionableResource public PartnerTopicEventSubscription(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/partnerTopics/eventSubscriptions", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _deadLetterDestination = BicepValue.DefineProperty(this, "DeadLetterDestination", ["properties", "deadLetterDestination"]); - _deadLetterWithResourceIdentity = BicepValue.DefineProperty(this, "DeadLetterWithResourceIdentity", ["properties", "deadLetterWithResourceIdentity"]); - _deliveryWithResourceIdentity = BicepValue.DefineProperty(this, "DeliveryWithResourceIdentity", ["properties", "deliveryWithResourceIdentity"]); - _destination = BicepValue.DefineProperty(this, "Destination", ["properties", "destination"]); - _eventDeliverySchema = BicepValue.DefineProperty(this, "EventDeliverySchema", ["properties", "eventDeliverySchema"]); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["properties", "expirationTimeUtc"]); - _filter = BicepValue.DefineProperty(this, "Filter", ["properties", "filter"]); - _labels = BicepList.DefineProperty(this, "Labels", ["properties", "labels"]); - _retryPolicy = BicepValue.DefineProperty(this, "RetryPolicy", ["properties", "retryPolicy"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _topic = BicepValue.DefineProperty(this, "Topic", ["properties", "topic"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// PartnerTopicEventSubscription. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _deadLetterDestination = DefineModelProperty("DeadLetterDestination", ["properties", "deadLetterDestination"]); + _deadLetterWithResourceIdentity = DefineModelProperty("DeadLetterWithResourceIdentity", ["properties", "deadLetterWithResourceIdentity"]); + _deliveryWithResourceIdentity = DefineModelProperty("DeliveryWithResourceIdentity", ["properties", "deliveryWithResourceIdentity"]); + _destination = DefineModelProperty("Destination", ["properties", "destination"]); + _eventDeliverySchema = DefineProperty("EventDeliverySchema", ["properties", "eventDeliverySchema"]); + _expireOn = DefineProperty("ExpireOn", ["properties", "expirationTimeUtc"]); + _filter = DefineModelProperty("Filter", ["properties", "filter"]); + _labels = DefineListProperty("Labels", ["properties", "labels"]); + _retryPolicy = DefineModelProperty("RetryPolicy", ["properties", "retryPolicy"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _topic = DefineProperty("Topic", ["properties", "topic"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/SystemTopic.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/SystemTopic.cs index 61674099e7df9..b978a0b20d57a 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/SystemTopic.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/SystemTopic.cs @@ -21,62 +21,98 @@ public partial class SystemTopic : ProvisionableResource /// /// Name of the system topic. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Identity information for the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Source for the system topic. /// - public BicepValue Source { get => _source; set => _source.Assign(value); } - private readonly BicepValue _source; + public BicepValue Source + { + get { Initialize(); return _source!; } + set { Initialize(); _source!.Assign(value); } + } + private BicepValue? _source; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// TopicType for the system topic. /// - public BicepValue TopicType { get => _topicType; set => _topicType.Assign(value); } - private readonly BicepValue _topicType; + public BicepValue TopicType + { + get { Initialize(); return _topicType!; } + set { Initialize(); _topicType!.Assign(value); } + } + private BicepValue? _topicType; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Metric resource id for the system topic. /// - public BicepValue MetricResourceId { get => _metricResourceId; } - private readonly BicepValue _metricResourceId; + public BicepValue MetricResourceId + { + get { Initialize(); return _metricResourceId!; } + } + private BicepValue? _metricResourceId; /// /// Provisioning state of the system topic. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SystemTopic. @@ -91,16 +127,23 @@ public partial class SystemTopic : ProvisionableResource public SystemTopic(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/systemTopics", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _source = BicepValue.DefineProperty(this, "Source", ["properties", "source"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _topicType = BicepValue.DefineProperty(this, "TopicType", ["properties", "topicType"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _metricResourceId = BicepValue.DefineProperty(this, "MetricResourceId", ["properties", "metricResourceId"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SystemTopic. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _source = DefineProperty("Source", ["properties", "source"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _topicType = DefineProperty("TopicType", ["properties", "topicType"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _metricResourceId = DefineProperty("MetricResourceId", ["properties", "metricResourceId"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/SystemTopicEventSubscription.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/SystemTopicEventSubscription.cs index 1dfe34cdd9c10..130e2696e0cb1 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/SystemTopicEventSubscription.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/SystemTopicEventSubscription.cs @@ -23,8 +23,12 @@ public partial class SystemTopicEventSubscription : ProvisionableResource /// must be between 3 and 64 characters in length and use alphanumeric /// letters only. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The dead letter destination of the event subscription. Any event that @@ -39,8 +43,12 @@ public partial class SystemTopicEventSubscription : ProvisionableResource /// available derived classes include /// Azure.ResourceManager.EventGrid.Models.StorageBlobDeadLetterDestination. /// - public BicepValue DeadLetterDestination { get => _deadLetterDestination; set => _deadLetterDestination.Assign(value); } - private readonly BicepValue _deadLetterDestination; + public DeadLetterDestination DeadLetterDestination + { + get { Initialize(); return _deadLetterDestination!; } + set { Initialize(); AssignOrReplace(ref _deadLetterDestination, value); } + } + private DeadLetterDestination? _deadLetterDestination; /// /// The dead letter destination of the event subscription. Any event that @@ -49,8 +57,12 @@ public partial class SystemTopicEventSubscription : ProvisionableResource /// parent resource (namely, topic or domain) to acquire the /// authentication tokens being used during delivery / dead-lettering. /// - public BicepValue DeadLetterWithResourceIdentity { get => _deadLetterWithResourceIdentity; set => _deadLetterWithResourceIdentity.Assign(value); } - private readonly BicepValue _deadLetterWithResourceIdentity; + public DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity + { + get { Initialize(); return _deadLetterWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deadLetterWithResourceIdentity, value); } + } + private DeadLetterWithResourceIdentity? _deadLetterWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -58,8 +70,12 @@ public partial class SystemTopicEventSubscription : ProvisionableResource /// the parent resource (namely, topic or domain) to acquire the /// authentication tokens being used during delivery / dead-lettering. /// - public BicepValue DeliveryWithResourceIdentity { get => _deliveryWithResourceIdentity; set => _deliveryWithResourceIdentity.Assign(value); } - private readonly BicepValue _deliveryWithResourceIdentity; + public DeliveryWithResourceIdentity DeliveryWithResourceIdentity + { + get { Initialize(); return _deliveryWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deliveryWithResourceIdentity, value); } + } + private DeliveryWithResourceIdentity? _deliveryWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -83,69 +99,109 @@ public partial class SystemTopicEventSubscription : ProvisionableResource /// and /// Azure.ResourceManager.EventGrid.Models.WebHookEventSubscriptionDestination. /// - public BicepValue Destination { get => _destination; set => _destination.Assign(value); } - private readonly BicepValue _destination; + public EventSubscriptionDestination Destination + { + get { Initialize(); return _destination!; } + set { Initialize(); AssignOrReplace(ref _destination, value); } + } + private EventSubscriptionDestination? _destination; /// /// The event delivery schema for the event subscription. /// - public BicepValue EventDeliverySchema { get => _eventDeliverySchema; set => _eventDeliverySchema.Assign(value); } - private readonly BicepValue _eventDeliverySchema; + public BicepValue EventDeliverySchema + { + get { Initialize(); return _eventDeliverySchema!; } + set { Initialize(); _eventDeliverySchema!.Assign(value); } + } + private BicepValue? _eventDeliverySchema; /// /// Expiration time of the event subscription. /// - public BicepValue ExpireOn { get => _expireOn; set => _expireOn.Assign(value); } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + set { Initialize(); _expireOn!.Assign(value); } + } + private BicepValue? _expireOn; /// /// Information about the filter for the event subscription. /// - public BicepValue Filter { get => _filter; set => _filter.Assign(value); } - private readonly BicepValue _filter; + public EventSubscriptionFilter Filter + { + get { Initialize(); return _filter!; } + set { Initialize(); AssignOrReplace(ref _filter, value); } + } + private EventSubscriptionFilter? _filter; /// /// List of user defined labels. /// - public BicepList Labels { get => _labels; set => _labels.Assign(value); } - private readonly BicepList _labels; + public BicepList Labels + { + get { Initialize(); return _labels!; } + set { Initialize(); _labels!.Assign(value); } + } + private BicepList? _labels; /// /// The retry policy for events. This can be used to configure maximum /// number of delivery attempts and time to live for events. /// - public BicepValue RetryPolicy { get => _retryPolicy; set => _retryPolicy.Assign(value); } - private readonly BicepValue _retryPolicy; + public EventSubscriptionRetryPolicy RetryPolicy + { + get { Initialize(); return _retryPolicy!; } + set { Initialize(); AssignOrReplace(ref _retryPolicy, value); } + } + private EventSubscriptionRetryPolicy? _retryPolicy; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the event subscription. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Name of the topic of the event subscription. /// - public BicepValue Topic { get => _topic; } - private readonly BicepValue _topic; + public BicepValue Topic + { + get { Initialize(); return _topic!; } + } + private BicepValue? _topic; /// /// Gets or sets a reference to the parent SystemTopic. /// - public SystemTopic? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SystemTopic? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SystemTopicEventSubscription. @@ -160,21 +216,28 @@ public partial class SystemTopicEventSubscription : ProvisionableResource public SystemTopicEventSubscription(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/systemTopics/eventSubscriptions", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _deadLetterDestination = BicepValue.DefineProperty(this, "DeadLetterDestination", ["properties", "deadLetterDestination"]); - _deadLetterWithResourceIdentity = BicepValue.DefineProperty(this, "DeadLetterWithResourceIdentity", ["properties", "deadLetterWithResourceIdentity"]); - _deliveryWithResourceIdentity = BicepValue.DefineProperty(this, "DeliveryWithResourceIdentity", ["properties", "deliveryWithResourceIdentity"]); - _destination = BicepValue.DefineProperty(this, "Destination", ["properties", "destination"]); - _eventDeliverySchema = BicepValue.DefineProperty(this, "EventDeliverySchema", ["properties", "eventDeliverySchema"]); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["properties", "expirationTimeUtc"]); - _filter = BicepValue.DefineProperty(this, "Filter", ["properties", "filter"]); - _labels = BicepList.DefineProperty(this, "Labels", ["properties", "labels"]); - _retryPolicy = BicepValue.DefineProperty(this, "RetryPolicy", ["properties", "retryPolicy"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _topic = BicepValue.DefineProperty(this, "Topic", ["properties", "topic"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SystemTopicEventSubscription. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _deadLetterDestination = DefineModelProperty("DeadLetterDestination", ["properties", "deadLetterDestination"]); + _deadLetterWithResourceIdentity = DefineModelProperty("DeadLetterWithResourceIdentity", ["properties", "deadLetterWithResourceIdentity"]); + _deliveryWithResourceIdentity = DefineModelProperty("DeliveryWithResourceIdentity", ["properties", "deliveryWithResourceIdentity"]); + _destination = DefineModelProperty("Destination", ["properties", "destination"]); + _eventDeliverySchema = DefineProperty("EventDeliverySchema", ["properties", "eventDeliverySchema"]); + _expireOn = DefineProperty("ExpireOn", ["properties", "expirationTimeUtc"]); + _filter = DefineModelProperty("Filter", ["properties", "filter"]); + _labels = DefineListProperty("Labels", ["properties", "labels"]); + _retryPolicy = DefineModelProperty("RetryPolicy", ["properties", "retryPolicy"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _topic = DefineProperty("Topic", ["properties", "topic"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/TopicEventSubscription.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/TopicEventSubscription.cs index 8a0cba4d61b82..6b6ecd5f206ef 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/TopicEventSubscription.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/TopicEventSubscription.cs @@ -23,8 +23,12 @@ public partial class TopicEventSubscription : ProvisionableResource /// must be between 3 and 64 characters in length and use alphanumeric /// letters only. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The dead letter destination of the event subscription. Any event that @@ -39,8 +43,12 @@ public partial class TopicEventSubscription : ProvisionableResource /// available derived classes include /// Azure.ResourceManager.EventGrid.Models.StorageBlobDeadLetterDestination. /// - public BicepValue DeadLetterDestination { get => _deadLetterDestination; set => _deadLetterDestination.Assign(value); } - private readonly BicepValue _deadLetterDestination; + public DeadLetterDestination DeadLetterDestination + { + get { Initialize(); return _deadLetterDestination!; } + set { Initialize(); AssignOrReplace(ref _deadLetterDestination, value); } + } + private DeadLetterDestination? _deadLetterDestination; /// /// The dead letter destination of the event subscription. Any event that @@ -49,8 +57,12 @@ public partial class TopicEventSubscription : ProvisionableResource /// parent resource (namely, topic or domain) to acquire the /// authentication tokens being used during delivery / dead-lettering. /// - public BicepValue DeadLetterWithResourceIdentity { get => _deadLetterWithResourceIdentity; set => _deadLetterWithResourceIdentity.Assign(value); } - private readonly BicepValue _deadLetterWithResourceIdentity; + public DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity + { + get { Initialize(); return _deadLetterWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deadLetterWithResourceIdentity, value); } + } + private DeadLetterWithResourceIdentity? _deadLetterWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -58,8 +70,12 @@ public partial class TopicEventSubscription : ProvisionableResource /// the parent resource (namely, topic or domain) to acquire the /// authentication tokens being used during delivery / dead-lettering. /// - public BicepValue DeliveryWithResourceIdentity { get => _deliveryWithResourceIdentity; set => _deliveryWithResourceIdentity.Assign(value); } - private readonly BicepValue _deliveryWithResourceIdentity; + public DeliveryWithResourceIdentity DeliveryWithResourceIdentity + { + get { Initialize(); return _deliveryWithResourceIdentity!; } + set { Initialize(); AssignOrReplace(ref _deliveryWithResourceIdentity, value); } + } + private DeliveryWithResourceIdentity? _deliveryWithResourceIdentity; /// /// Information about the destination where events have to be delivered for @@ -83,69 +99,109 @@ public partial class TopicEventSubscription : ProvisionableResource /// and /// Azure.ResourceManager.EventGrid.Models.WebHookEventSubscriptionDestination. /// - public BicepValue Destination { get => _destination; set => _destination.Assign(value); } - private readonly BicepValue _destination; + public EventSubscriptionDestination Destination + { + get { Initialize(); return _destination!; } + set { Initialize(); AssignOrReplace(ref _destination, value); } + } + private EventSubscriptionDestination? _destination; /// /// The event delivery schema for the event subscription. /// - public BicepValue EventDeliverySchema { get => _eventDeliverySchema; set => _eventDeliverySchema.Assign(value); } - private readonly BicepValue _eventDeliverySchema; + public BicepValue EventDeliverySchema + { + get { Initialize(); return _eventDeliverySchema!; } + set { Initialize(); _eventDeliverySchema!.Assign(value); } + } + private BicepValue? _eventDeliverySchema; /// /// Expiration time of the event subscription. /// - public BicepValue ExpireOn { get => _expireOn; set => _expireOn.Assign(value); } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + set { Initialize(); _expireOn!.Assign(value); } + } + private BicepValue? _expireOn; /// /// Information about the filter for the event subscription. /// - public BicepValue Filter { get => _filter; set => _filter.Assign(value); } - private readonly BicepValue _filter; + public EventSubscriptionFilter Filter + { + get { Initialize(); return _filter!; } + set { Initialize(); AssignOrReplace(ref _filter, value); } + } + private EventSubscriptionFilter? _filter; /// /// List of user defined labels. /// - public BicepList Labels { get => _labels; set => _labels.Assign(value); } - private readonly BicepList _labels; + public BicepList Labels + { + get { Initialize(); return _labels!; } + set { Initialize(); _labels!.Assign(value); } + } + private BicepList? _labels; /// /// The retry policy for events. This can be used to configure maximum /// number of delivery attempts and time to live for events. /// - public BicepValue RetryPolicy { get => _retryPolicy; set => _retryPolicy.Assign(value); } - private readonly BicepValue _retryPolicy; + public EventSubscriptionRetryPolicy RetryPolicy + { + get { Initialize(); return _retryPolicy!; } + set { Initialize(); AssignOrReplace(ref _retryPolicy, value); } + } + private EventSubscriptionRetryPolicy? _retryPolicy; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the event subscription. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Name of the topic of the event subscription. /// - public BicepValue Topic { get => _topic; } - private readonly BicepValue _topic; + public BicepValue Topic + { + get { Initialize(); return _topic!; } + } + private BicepValue? _topic; /// /// Gets or sets a reference to the parent EventGridTopic. /// - public EventGridTopic? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventGridTopic? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new TopicEventSubscription. @@ -160,21 +216,28 @@ public partial class TopicEventSubscription : ProvisionableResource public TopicEventSubscription(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/topics/eventSubscriptions", resourceVersion ?? "2022-06-15") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _deadLetterDestination = BicepValue.DefineProperty(this, "DeadLetterDestination", ["properties", "deadLetterDestination"]); - _deadLetterWithResourceIdentity = BicepValue.DefineProperty(this, "DeadLetterWithResourceIdentity", ["properties", "deadLetterWithResourceIdentity"]); - _deliveryWithResourceIdentity = BicepValue.DefineProperty(this, "DeliveryWithResourceIdentity", ["properties", "deliveryWithResourceIdentity"]); - _destination = BicepValue.DefineProperty(this, "Destination", ["properties", "destination"]); - _eventDeliverySchema = BicepValue.DefineProperty(this, "EventDeliverySchema", ["properties", "eventDeliverySchema"]); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["properties", "expirationTimeUtc"]); - _filter = BicepValue.DefineProperty(this, "Filter", ["properties", "filter"]); - _labels = BicepList.DefineProperty(this, "Labels", ["properties", "labels"]); - _retryPolicy = BicepValue.DefineProperty(this, "RetryPolicy", ["properties", "retryPolicy"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _topic = BicepValue.DefineProperty(this, "Topic", ["properties", "topic"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of TopicEventSubscription. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _deadLetterDestination = DefineModelProperty("DeadLetterDestination", ["properties", "deadLetterDestination"]); + _deadLetterWithResourceIdentity = DefineModelProperty("DeadLetterWithResourceIdentity", ["properties", "deadLetterWithResourceIdentity"]); + _deliveryWithResourceIdentity = DefineModelProperty("DeliveryWithResourceIdentity", ["properties", "deliveryWithResourceIdentity"]); + _destination = DefineModelProperty("Destination", ["properties", "destination"]); + _eventDeliverySchema = DefineProperty("EventDeliverySchema", ["properties", "eventDeliverySchema"]); + _expireOn = DefineProperty("ExpireOn", ["properties", "expirationTimeUtc"]); + _filter = DefineModelProperty("Filter", ["properties", "filter"]); + _labels = DefineListProperty("Labels", ["properties", "labels"]); + _retryPolicy = DefineModelProperty("RetryPolicy", ["properties", "retryPolicy"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _topic = DefineProperty("Topic", ["properties", "topic"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/TopicSpace.cs b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/TopicSpace.cs index f29a84f2a3265..bad027e492b2b 100644 --- a/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/TopicSpace.cs +++ b/sdk/provisioning/Azure.Provisioning.EventGrid/src/Generated/TopicSpace.cs @@ -21,14 +21,22 @@ public partial class TopicSpace : ProvisionableResource /// /// The topic space name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Description for the Topic Space resource. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The topic filters in the topic space. Example: @@ -38,32 +46,49 @@ public partial class TopicSpace : ProvisionableResource /// "devices/${principal.name}/${principal.attributes.keyName}" /// ]. /// - public BicepList TopicTemplates { get => _topicTemplates; set => _topicTemplates.Assign(value); } - private readonly BicepList _topicTemplates; + public BicepList TopicTemplates + { + get { Initialize(); return _topicTemplates!; } + set { Initialize(); _topicTemplates!.Assign(value); } + } + private BicepList? _topicTemplates; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the TopicSpace resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventGridNamespace. /// - public EventGridNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventGridNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new TopicSpace. @@ -78,13 +103,20 @@ public partial class TopicSpace : ProvisionableResource public TopicSpace(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventGrid/namespaces/topicSpaces", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _topicTemplates = BicepList.DefineProperty(this, "TopicTemplates", ["properties", "topicTemplates"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of TopicSpace. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _description = DefineProperty("Description", ["properties", "description"]); + _topicTemplates = DefineListProperty("TopicTemplates", ["properties", "topicTemplates"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/api/Azure.Provisioning.EventHubs.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/api/Azure.Provisioning.EventHubs.netstandard2.0.cs index 8aea9f4a43abc..f7f3463a0afb6 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/api/Azure.Provisioning.EventHubs.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/api/Azure.Provisioning.EventHubs.netstandard2.0.cs @@ -3,12 +3,13 @@ namespace Azure.Provisioning.EventHubs public partial class CaptureDescription : Azure.Provisioning.Primitives.ProvisionableConstruct { public CaptureDescription() { } - public Azure.Provisioning.BicepValue Destination { get { throw null; } set { } } + public Azure.Provisioning.EventHubs.EventHubDestination Destination { get { throw null; } set { } } public Azure.Provisioning.BicepValue Enabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Encoding { get { throw null; } set { } } public Azure.Provisioning.BicepValue IntervalInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue SizeLimitInBytes { get { throw null; } set { } } public Azure.Provisioning.BicepValue SkipEmptyArchives { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CleanupPolicyRetentionDescription { @@ -24,7 +25,7 @@ public enum EncodingCaptureDescription public partial class EventHub : Azure.Provisioning.Primitives.ProvisionableResource { public EventHub(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue CaptureDescription { get { throw null; } set { } } + public Azure.Provisioning.EventHubs.CaptureDescription CaptureDescription { get { throw null; } set { } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } } @@ -32,10 +33,11 @@ public partial class EventHub : Azure.Provisioning.Primitives.ProvisionableResou public Azure.Provisioning.EventHubs.EventHubsNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PartitionCount { get { throw null; } set { } } public Azure.Provisioning.BicepList PartitionIds { get { throw null; } } - public Azure.Provisioning.BicepValue RetentionDescription { get { throw null; } set { } } + public Azure.Provisioning.EventHubs.RetentionDescription RetentionDescription { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue UpdatedOn { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventHubs.EventHub FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -52,7 +54,8 @@ public partial class EventHubAuthorizationRule : Azure.Provisioning.Primitives.P public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventHubs.EventHub? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList Rights { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventHubs.EventHubAuthorizationRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.EventHubs.EventHubsAccessKeys GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -72,9 +75,10 @@ public EventHubDestination() { } public Azure.Provisioning.BicepValue DataLakeAccountName { get { throw null; } set { } } public Azure.Provisioning.BicepValue DataLakeFolderPath { get { throw null; } set { } } public Azure.Provisioning.BicepValue DataLakeSubscriptionId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.EventHubs.EventHubsCaptureIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EventHubEntityStatus { @@ -98,8 +102,7 @@ public EventHubsAccessKeys() { } public Azure.Provisioning.BicepValue PrimaryKey { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryConnectionString { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryKey { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.EventHubs.EventHubsAccessKeys FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } } public enum EventHubsAccessRight { @@ -117,7 +120,8 @@ public partial class EventHubsApplicationGroup : Azure.Provisioning.Primitives.P public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventHubs.EventHubsNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList Policies { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventHubs.EventHubsApplicationGroup FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -128,6 +132,7 @@ public partial class EventHubsApplicationGroupPolicy : Azure.Provisioning.Primit { public EventHubsApplicationGroupPolicy() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EventHubsBuiltInRole : System.IEquatable @@ -157,6 +162,7 @@ public partial class EventHubsCaptureIdentity : Azure.Provisioning.Primitives.Pr public EventHubsCaptureIdentity() { } public Azure.Provisioning.BicepValue IdentityType { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserAssignedIdentity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EventHubsCaptureIdentityType { @@ -172,14 +178,15 @@ public partial class EventHubsCluster : Azure.Provisioning.Primitives.Provisiona public Azure.Provisioning.BicepValue MetricId { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.EventHubs.EventHubsClusterSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } public Azure.Provisioning.BicepValue SupportsScaling { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue UpdatedOn { get { throw null; } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.EventHubs.EventHubsBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.EventHubs.EventHubsBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventHubs.EventHubsCluster FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -205,6 +212,7 @@ public partial class EventHubsClusterSku : Azure.Provisioning.Primitives.Provisi public EventHubsClusterSku() { } public Azure.Provisioning.BicepValue Capacity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EventHubsClusterSkuName { @@ -218,9 +226,10 @@ public partial class EventHubsConsumerGroup : Azure.Provisioning.Primitives.Prov public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventHubs.EventHub? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue UpdatedOn { get { throw null; } } public Azure.Provisioning.BicepValue UserMetadata { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventHubs.EventHubsConsumerGroup FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -243,7 +252,8 @@ public partial class EventHubsDisasterRecovery : Azure.Provisioning.Primitives.P public Azure.Provisioning.BicepValue PendingReplicationOperationsCount { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue Role { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventHubs.EventHubsDisasterRecovery FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -272,6 +282,7 @@ public EventHubsEncryption() { } public Azure.Provisioning.BicepValue KeySource { get { throw null; } set { } } public Azure.Provisioning.BicepList KeyVaultProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequireInfrastructureEncryption { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EventHubsKeySource { @@ -285,6 +296,7 @@ public EventHubsKeyVaultProperties() { } public Azure.Provisioning.BicepValue KeyVaultUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserAssignedIdentity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EventHubsMetricId { @@ -300,10 +312,10 @@ public partial class EventHubsNamespace : Azure.Provisioning.Primitives.Provisio public Azure.Provisioning.BicepValue ClusterArmId { get { throw null; } set { } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue DisableLocalAuth { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Encryption { get { throw null; } set { } } - public Azure.Provisioning.BicepValue GeoDataReplication { get { throw null; } set { } } + public Azure.Provisioning.EventHubs.EventHubsEncryption Encryption { get { throw null; } set { } } + public Azure.Provisioning.EventHubs.NamespaceGeoDataReplicationProperties GeoDataReplication { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsAutoInflateEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue KafkaEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } @@ -315,14 +327,15 @@ public partial class EventHubsNamespace : Azure.Provisioning.Primitives.Provisio public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServiceBusEndpoint { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.EventHubs.EventHubsSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue UpdatedOn { get { throw null; } } public Azure.Provisioning.BicepValue ZoneRedundant { get { throw null; } set { } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.EventHubs.EventHubsBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.EventHubs.EventHubsBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventHubs.EventHubsNamespace FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -343,7 +356,8 @@ public partial class EventHubsNamespaceAuthorizationRule : Azure.Provisioning.Pr public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventHubs.EventHubsNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList Rights { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventHubs.EventHubsNamespaceAuthorizationRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.EventHubs.EventHubsAccessKeys GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -369,9 +383,10 @@ public partial class EventHubsNetworkRuleSet : Azure.Provisioning.Primitives.Pro public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.EventHubs.EventHubsNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TrustedServiceAccessEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepList VirtualNetworkRules { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventHubs.EventHubsNetworkRuleSet FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -390,24 +405,27 @@ public partial class EventHubsNetworkRuleSetIPRules : Azure.Provisioning.Primiti public EventHubsNetworkRuleSetIPRules() { } public Azure.Provisioning.BicepValue Action { get { throw null; } set { } } public Azure.Provisioning.BicepValue IPMask { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class EventHubsNetworkRuleSetVirtualNetworkRules : Azure.Provisioning.Primitives.ProvisionableConstruct { public EventHubsNetworkRuleSetVirtualNetworkRules() { } public Azure.Provisioning.BicepValue IgnoreMissingVnetServiceEndpoint { get { throw null; } set { } } public Azure.Provisioning.BicepValue SubnetId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class EventHubsPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public EventHubsPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.EventHubs.EventHubsPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.EventHubs.EventHubsNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventHubs.EventHubsPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -418,13 +436,14 @@ public static partial class ResourceVersions public partial class EventHubsPrivateEndpointConnectionData : Azure.Provisioning.Primitives.ProvisionableConstruct { public EventHubsPrivateEndpointConnectionData() { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.EventHubs.EventHubsPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum EventHubsPrivateEndpointConnectionProvisioningState { @@ -447,6 +466,7 @@ public partial class EventHubsPrivateLinkServiceConnectionState : Azure.Provisio public EventHubsPrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EventHubsPublicNetworkAccess { @@ -478,8 +498,9 @@ public partial class EventHubsSchemaGroup : Azure.Provisioning.Primitives.Provis public Azure.Provisioning.EventHubs.EventHubsNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue SchemaCompatibility { get { throw null; } set { } } public Azure.Provisioning.BicepValue SchemaType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue UpdatedAtUtc { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.EventHubs.EventHubsSchemaGroup FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -501,6 +522,7 @@ public EventHubsSku() { } public Azure.Provisioning.BicepValue Capacity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EventHubsSkuName { @@ -519,6 +541,7 @@ public partial class EventHubsThrottlingPolicy : Azure.Provisioning.EventHubs.Ev public EventHubsThrottlingPolicy() { } public Azure.Provisioning.BicepValue MetricId { get { throw null; } set { } } public Azure.Provisioning.BicepValue RateLimitThreshold { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum EventHubsTlsVersion { @@ -534,6 +557,7 @@ public partial class NamespaceGeoDataReplicationProperties : Azure.Provisioning. public NamespaceGeoDataReplicationProperties() { } public Azure.Provisioning.BicepList Locations { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxReplicationLagDurationInSeconds { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum NamespaceGeoDRRoleType { @@ -546,6 +570,7 @@ public NamespaceReplicaLocation() { } public Azure.Provisioning.BicepValue ClusterArmId { get { throw null; } set { } } public Azure.Provisioning.BicepValue LocationName { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoleType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RetentionDescription : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -553,5 +578,6 @@ public RetentionDescription() { } public Azure.Provisioning.BicepValue CleanupPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue RetentionTimeInHours { get { throw null; } set { } } public Azure.Provisioning.BicepValue TombstoneRetentionTimeInHours { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHub.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHub.cs index 9f06d45fd5357..5c5f317acd035 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHub.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHub.cs @@ -21,75 +21,117 @@ public partial class EventHub : ProvisionableResource /// /// The Event Hub name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Properties of capture description. /// - public BicepValue CaptureDescription { get => _captureDescription; set => _captureDescription.Assign(value); } - private readonly BicepValue _captureDescription; + public CaptureDescription CaptureDescription + { + get { Initialize(); return _captureDescription!; } + set { Initialize(); AssignOrReplace(ref _captureDescription, value); } + } + private CaptureDescription? _captureDescription; /// /// Number of partitions created for the Event Hub, allowed values are from /// 1 to 32 partitions. /// - public BicepValue PartitionCount { get => _partitionCount; set => _partitionCount.Assign(value); } - private readonly BicepValue _partitionCount; + public BicepValue PartitionCount + { + get { Initialize(); return _partitionCount!; } + set { Initialize(); _partitionCount!.Assign(value); } + } + private BicepValue? _partitionCount; /// /// Event Hub retention settings. /// - public BicepValue RetentionDescription { get => _retentionDescription; set => _retentionDescription.Assign(value); } - private readonly BicepValue _retentionDescription; + public RetentionDescription RetentionDescription + { + get { Initialize(); return _retentionDescription!; } + set { Initialize(); AssignOrReplace(ref _retentionDescription, value); } + } + private RetentionDescription? _retentionDescription; /// /// Enumerates the possible values for the status of the Event Hub. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Exact time the Event Hub was created. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Current number of shards on the Event Hub. /// - public BicepList PartitionIds { get => _partitionIds; } - private readonly BicepList _partitionIds; + public BicepList PartitionIds + { + get { Initialize(); return _partitionIds!; } + } + private BicepList? _partitionIds; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The exact time the message was updated. /// - public BicepValue UpdatedOn { get => _updatedOn; } - private readonly BicepValue _updatedOn; + public BicepValue UpdatedOn + { + get { Initialize(); return _updatedOn!; } + } + private BicepValue? _updatedOn; /// /// Gets or sets a reference to the parent EventHubsNamespace. /// - public EventHubsNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventHubsNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventHub. @@ -104,18 +146,25 @@ public partial class EventHub : ProvisionableResource public EventHub(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventHub/namespaces/eventhubs", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _captureDescription = BicepValue.DefineProperty(this, "CaptureDescription", ["properties", "captureDescription"]); - _partitionCount = BicepValue.DefineProperty(this, "PartitionCount", ["properties", "partitionCount"]); - _retentionDescription = BicepValue.DefineProperty(this, "RetentionDescription", ["properties", "retentionDescription"]); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdAt"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _partitionIds = BicepList.DefineProperty(this, "PartitionIds", ["properties", "partitionIds"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _updatedOn = BicepValue.DefineProperty(this, "UpdatedOn", ["properties", "updatedAt"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of EventHub. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _captureDescription = DefineModelProperty("CaptureDescription", ["properties", "captureDescription"]); + _partitionCount = DefineProperty("PartitionCount", ["properties", "partitionCount"]); + _retentionDescription = DefineModelProperty("RetentionDescription", ["properties", "retentionDescription"]); + _status = DefineProperty("Status", ["properties", "status"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdAt"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _partitionIds = DefineListProperty("PartitionIds", ["properties", "partitionIds"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _updatedOn = DefineProperty("UpdatedOn", ["properties", "updatedAt"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubAuthorizationRule.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubAuthorizationRule.cs index b59fd6f8b799d..02c13d8db804b 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubAuthorizationRule.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubAuthorizationRule.cs @@ -23,38 +23,59 @@ public partial class EventHubAuthorizationRule : ProvisionableResource /// /// The authorization rule name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The rights associated with the rule. /// - public BicepList Rights { get => _rights; set => _rights.Assign(value); } - private readonly BicepList _rights; + public BicepList Rights + { + get { Initialize(); return _rights!; } + set { Initialize(); _rights!.Assign(value); } + } + private BicepList? _rights; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventHub. /// - public EventHub? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventHub? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventHubAuthorizationRule. @@ -69,12 +90,19 @@ public partial class EventHubAuthorizationRule : ProvisionableResource public EventHubAuthorizationRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventHub/namespaces/eventhubs/authorizationRules", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _rights = BicepList.DefineProperty(this, "Rights", ["properties", "rights"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of EventHubAuthorizationRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _rights = DefineListProperty("Rights", ["properties", "rights"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// @@ -124,7 +152,10 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this EventHubAuthorizationRule resource. /// /// The keys for this EventHubAuthorizationRule resource. - public EventHubsAccessKeys GetKeys() => - EventHubsAccessKeys.FromExpression( - new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys"))); + public EventHubsAccessKeys GetKeys() + { + EventHubsAccessKeys key = new(); + ((IBicepValue)key).Expression = new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")); + return key; + } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsApplicationGroup.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsApplicationGroup.cs index 8745640cba3e6..29794fab64b59 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsApplicationGroup.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsApplicationGroup.cs @@ -21,15 +21,23 @@ public partial class EventHubsApplicationGroup : ProvisionableResource /// /// The Application Group name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The Unique identifier for application group.Supports /// SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid). /// - public BicepValue ClientAppGroupIdentifier { get => _clientAppGroupIdentifier; set => _clientAppGroupIdentifier.Assign(value); } - private readonly BicepValue _clientAppGroupIdentifier; + public BicepValue ClientAppGroupIdentifier + { + get { Initialize(); return _clientAppGroupIdentifier!; } + set { Initialize(); _clientAppGroupIdentifier!.Assign(value); } + } + private BicepValue? _clientAppGroupIdentifier; /// /// Determines if Application Group is allowed to create connection with @@ -37,8 +45,12 @@ public partial class EventHubsApplicationGroup : ProvisionableResource /// connections of application group gets dropped and no new connections /// will be allowed. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// List of group policies that define the behavior of application group. @@ -51,32 +63,49 @@ public partial class EventHubsApplicationGroup : ProvisionableResource /// available derived classes include /// Azure.ResourceManager.EventHubs.Models.EventHubsThrottlingPolicy. /// - public BicepList Policies { get => _policies; set => _policies.Assign(value); } - private readonly BicepList _policies; + public BicepList Policies + { + get { Initialize(); return _policies!; } + set { Initialize(); _policies!.Assign(value); } + } + private BicepList? _policies; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventHubsNamespace. /// - public EventHubsNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventHubsNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventHubsApplicationGroup. @@ -91,14 +120,21 @@ public partial class EventHubsApplicationGroup : ProvisionableResource public EventHubsApplicationGroup(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventHub/namespaces/applicationGroups", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _clientAppGroupIdentifier = BicepValue.DefineProperty(this, "ClientAppGroupIdentifier", ["properties", "clientAppGroupIdentifier"]); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["properties", "isEnabled"]); - _policies = BicepList.DefineProperty(this, "Policies", ["properties", "policies"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of EventHubsApplicationGroup. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _clientAppGroupIdentifier = DefineProperty("ClientAppGroupIdentifier", ["properties", "clientAppGroupIdentifier"]); + _isEnabled = DefineProperty("IsEnabled", ["properties", "isEnabled"]); + _policies = DefineListProperty("Policies", ["properties", "policies"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsCluster.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsCluster.cs index a30bff85db12a..96d993157a469 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsCluster.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsCluster.cs @@ -25,75 +25,116 @@ public partial class EventHubsCluster : ProvisionableResource /// /// The name of the Event Hubs Cluster. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Properties of the cluster SKU. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public EventHubsClusterSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private EventHubsClusterSku? _sku; /// /// A value that indicates whether Scaling is Supported. /// - public BicepValue SupportsScaling { get => _supportsScaling; set => _supportsScaling.Assign(value); } - private readonly BicepValue _supportsScaling; + public BicepValue SupportsScaling + { + get { Initialize(); return _supportsScaling!; } + set { Initialize(); _supportsScaling!.Assign(value); } + } + private BicepValue? _supportsScaling; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The UTC time when the Event Hubs Cluster was created. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The metric ID of the cluster resource. Provided by the service and not /// modifiable by the user. /// - public BicepValue MetricId { get => _metricId; } - private readonly BicepValue _metricId; + public BicepValue MetricId + { + get { Initialize(); return _metricId!; } + } + private BicepValue? _metricId; /// /// Provisioning state of the Cluster. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Status of the Cluster resource. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The UTC time when the Event Hubs Cluster was last updated. /// - public BicepValue UpdatedOn { get => _updatedOn; } - private readonly BicepValue _updatedOn; + public BicepValue UpdatedOn + { + get { Initialize(); return _updatedOn!; } + } + private BicepValue? _updatedOn; /// /// Creates a new EventHubsCluster. @@ -108,18 +149,25 @@ public partial class EventHubsCluster : ProvisionableResource public EventHubsCluster(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventHub/clusters", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _supportsScaling = BicepValue.DefineProperty(this, "SupportsScaling", ["properties", "supportsScaling"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdAt"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _metricId = BicepValue.DefineProperty(this, "MetricId", ["properties", "metricId"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _updatedOn = BicepValue.DefineProperty(this, "UpdatedOn", ["properties", "updatedAt"], isOutput: true); + } + + /// + /// Define all the provisionable properties of EventHubsCluster. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _sku = DefineModelProperty("Sku", ["sku"]); + _supportsScaling = DefineProperty("SupportsScaling", ["properties", "supportsScaling"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdAt"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _metricId = DefineProperty("MetricId", ["properties", "metricId"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _updatedOn = DefineProperty("UpdatedOn", ["properties", "updatedAt"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsConsumerGroup.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsConsumerGroup.cs index 2cbd6e325c958..937cdb1bb0542 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsConsumerGroup.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsConsumerGroup.cs @@ -21,8 +21,12 @@ public partial class EventHubsConsumerGroup : ProvisionableResource /// /// The consumer group name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// User Metadata is a placeholder to store user-defined string data with @@ -30,44 +34,67 @@ public partial class EventHubsConsumerGroup : ProvisionableResource /// such as list of teams and their contact information also user-defined /// configuration settings can be stored. /// - public BicepValue UserMetadata { get => _userMetadata; set => _userMetadata.Assign(value); } - private readonly BicepValue _userMetadata; + public BicepValue UserMetadata + { + get { Initialize(); return _userMetadata!; } + set { Initialize(); _userMetadata!.Assign(value); } + } + private BicepValue? _userMetadata; /// /// Exact time the message was created. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The exact time the message was updated. /// - public BicepValue UpdatedOn { get => _updatedOn; } - private readonly BicepValue _updatedOn; + public BicepValue UpdatedOn + { + get { Initialize(); return _updatedOn!; } + } + private BicepValue? _updatedOn; /// /// Gets or sets a reference to the parent EventHub. /// - public EventHub? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventHub? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventHubsConsumerGroup. @@ -82,14 +109,21 @@ public partial class EventHubsConsumerGroup : ProvisionableResource public EventHubsConsumerGroup(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventHub/namespaces/eventhubs/consumergroups", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _userMetadata = BicepValue.DefineProperty(this, "UserMetadata", ["properties", "userMetadata"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdAt"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _updatedOn = BicepValue.DefineProperty(this, "UpdatedOn", ["properties", "updatedAt"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of EventHubsConsumerGroup. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _userMetadata = DefineProperty("UserMetadata", ["properties", "userMetadata"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdAt"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _updatedOn = DefineProperty("UpdatedOn", ["properties", "updatedAt"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsDisasterRecovery.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsDisasterRecovery.cs index b260491c73124..f0bf1619f7ab2 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsDisasterRecovery.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsDisasterRecovery.cs @@ -21,66 +21,99 @@ public partial class EventHubsDisasterRecovery : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Alternate name specified when alias and namespace names are same. /// - public BicepValue AlternateName { get => _alternateName; set => _alternateName.Assign(value); } - private readonly BicepValue _alternateName; + public BicepValue AlternateName + { + get { Initialize(); return _alternateName!; } + set { Initialize(); _alternateName!.Assign(value); } + } + private BicepValue? _alternateName; /// /// ARM Id of the Primary/Secondary eventhub namespace name, which is part /// of GEO DR pairing. /// - public BicepValue PartnerNamespace { get => _partnerNamespace; set => _partnerNamespace.Assign(value); } - private readonly BicepValue _partnerNamespace; + public BicepValue PartnerNamespace + { + get { Initialize(); return _partnerNamespace!; } + set { Initialize(); _partnerNamespace!.Assign(value); } + } + private BicepValue? _partnerNamespace; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Number of entities pending to be replicated. /// - public BicepValue PendingReplicationOperationsCount { get => _pendingReplicationOperationsCount; } - private readonly BicepValue _pendingReplicationOperationsCount; + public BicepValue PendingReplicationOperationsCount + { + get { Initialize(); return _pendingReplicationOperationsCount!; } + } + private BicepValue? _pendingReplicationOperationsCount; /// /// Provisioning state of the Alias(Disaster Recovery configuration) - /// possible values 'Accepted' or 'Succeeded' or /// 'Failed'. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// role of namespace in GEO DR - possible values 'Primary' or /// 'PrimaryNotReplicating' or 'Secondary'. /// - public BicepValue Role { get => _role; } - private readonly BicepValue _role; + public BicepValue Role + { + get { Initialize(); return _role!; } + } + private BicepValue? _role; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventHubsNamespace. /// - public EventHubsNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventHubsNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventHubsDisasterRecovery. @@ -95,16 +128,23 @@ public partial class EventHubsDisasterRecovery : ProvisionableResource public EventHubsDisasterRecovery(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventHub/namespaces/disasterRecoveryConfigs", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _alternateName = BicepValue.DefineProperty(this, "AlternateName", ["properties", "alternateName"]); - _partnerNamespace = BicepValue.DefineProperty(this, "PartnerNamespace", ["properties", "partnerNamespace"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _pendingReplicationOperationsCount = BicepValue.DefineProperty(this, "PendingReplicationOperationsCount", ["properties", "pendingReplicationOperationsCount"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _role = BicepValue.DefineProperty(this, "Role", ["properties", "role"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of EventHubsDisasterRecovery. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _alternateName = DefineProperty("AlternateName", ["properties", "alternateName"]); + _partnerNamespace = DefineProperty("PartnerNamespace", ["properties", "partnerNamespace"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _pendingReplicationOperationsCount = DefineProperty("PendingReplicationOperationsCount", ["properties", "pendingReplicationOperationsCount"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _role = DefineProperty("Role", ["properties", "role"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsNamespace.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsNamespace.cs index 0ef57a14f9d44..51b815450c750 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsNamespace.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsNamespace.cs @@ -25,158 +25,250 @@ public partial class EventHubsNamespace : ProvisionableResource /// /// The Namespace name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Alternate name specified when alias and namespace names are same. /// - public BicepValue AlternateName { get => _alternateName; set => _alternateName.Assign(value); } - private readonly BicepValue _alternateName; + public BicepValue AlternateName + { + get { Initialize(); return _alternateName!; } + set { Initialize(); _alternateName!.Assign(value); } + } + private BicepValue? _alternateName; /// /// Cluster ARM ID of the Namespace. /// - public BicepValue ClusterArmId { get => _clusterArmId; set => _clusterArmId.Assign(value); } - private readonly BicepValue _clusterArmId; + public BicepValue ClusterArmId + { + get { Initialize(); return _clusterArmId!; } + set { Initialize(); _clusterArmId!.Assign(value); } + } + private BicepValue? _clusterArmId; /// /// This property disables SAS authentication for the Event Hubs namespace. /// - public BicepValue DisableLocalAuth { get => _disableLocalAuth; set => _disableLocalAuth.Assign(value); } - private readonly BicepValue _disableLocalAuth; + public BicepValue DisableLocalAuth + { + get { Initialize(); return _disableLocalAuth!; } + set { Initialize(); _disableLocalAuth!.Assign(value); } + } + private BicepValue? _disableLocalAuth; /// /// Properties of BYOK Encryption description. /// - public BicepValue Encryption { get => _encryption; set => _encryption.Assign(value); } - private readonly BicepValue _encryption; + public EventHubsEncryption Encryption + { + get { Initialize(); return _encryption!; } + set { Initialize(); AssignOrReplace(ref _encryption, value); } + } + private EventHubsEncryption? _encryption; /// /// Geo Data Replication settings for the namespace. /// - public BicepValue GeoDataReplication { get => _geoDataReplication; set => _geoDataReplication.Assign(value); } - private readonly BicepValue _geoDataReplication; + public NamespaceGeoDataReplicationProperties GeoDataReplication + { + get { Initialize(); return _geoDataReplication!; } + set { Initialize(); AssignOrReplace(ref _geoDataReplication, value); } + } + private NamespaceGeoDataReplicationProperties? _geoDataReplication; /// /// Properties of BYOK Identity description. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Value that indicates whether AutoInflate is enabled for eventhub /// namespace. /// - public BicepValue IsAutoInflateEnabled { get => _isAutoInflateEnabled; set => _isAutoInflateEnabled.Assign(value); } - private readonly BicepValue _isAutoInflateEnabled; + public BicepValue IsAutoInflateEnabled + { + get { Initialize(); return _isAutoInflateEnabled!; } + set { Initialize(); _isAutoInflateEnabled!.Assign(value); } + } + private BicepValue? _isAutoInflateEnabled; /// /// Value that indicates whether Kafka is enabled for eventhub namespace. /// - public BicepValue KafkaEnabled { get => _kafkaEnabled; set => _kafkaEnabled.Assign(value); } - private readonly BicepValue _kafkaEnabled; + public BicepValue KafkaEnabled + { + get { Initialize(); return _kafkaEnabled!; } + set { Initialize(); _kafkaEnabled!.Assign(value); } + } + private BicepValue? _kafkaEnabled; /// /// Upper limit of throughput units when AutoInflate is enabled, value /// should be within 0 to 20 throughput units. ( '0' if /// AutoInflateEnabled = true). /// - public BicepValue MaximumThroughputUnits { get => _maximumThroughputUnits; set => _maximumThroughputUnits.Assign(value); } - private readonly BicepValue _maximumThroughputUnits; + public BicepValue MaximumThroughputUnits + { + get { Initialize(); return _maximumThroughputUnits!; } + set { Initialize(); _maximumThroughputUnits!.Assign(value); } + } + private BicepValue? _maximumThroughputUnits; /// /// The minimum TLS version for the cluster to support, e.g. /// '1.2'. /// - public BicepValue MinimumTlsVersion { get => _minimumTlsVersion; set => _minimumTlsVersion.Assign(value); } - private readonly BicepValue _minimumTlsVersion; + public BicepValue MinimumTlsVersion + { + get { Initialize(); return _minimumTlsVersion!; } + set { Initialize(); _minimumTlsVersion!.Assign(value); } + } + private BicepValue? _minimumTlsVersion; /// /// List of private endpoint connections. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; set => _privateEndpointConnections.Assign(value); } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + set { Initialize(); _privateEndpointConnections!.Assign(value); } + } + private BicepList? _privateEndpointConnections; /// /// This determines if traffic is allowed over public network. By default /// it is enabled. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Properties of sku resource. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public EventHubsSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private EventHubsSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Enabling this property creates a Standard Event Hubs Namespace in /// regions supported availability zones. /// - public BicepValue ZoneRedundant { get => _zoneRedundant; set => _zoneRedundant.Assign(value); } - private readonly BicepValue _zoneRedundant; + public BicepValue ZoneRedundant + { + get { Initialize(); return _zoneRedundant!; } + set { Initialize(); _zoneRedundant!.Assign(value); } + } + private BicepValue? _zoneRedundant; /// /// The time the Namespace was created. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Identifier for Azure Insights metrics. /// - public BicepValue MetricId { get => _metricId; } - private readonly BicepValue _metricId; + public BicepValue MetricId + { + get { Initialize(); return _metricId!; } + } + private BicepValue? _metricId; /// /// Provisioning state of the Namespace. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Endpoint you can use to perform Service Bus operations. /// - public BicepValue ServiceBusEndpoint { get => _serviceBusEndpoint; } - private readonly BicepValue _serviceBusEndpoint; + public BicepValue ServiceBusEndpoint + { + get { Initialize(); return _serviceBusEndpoint!; } + } + private BicepValue? _serviceBusEndpoint; /// /// Status of the Namespace. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The time the Namespace was updated. /// - public BicepValue UpdatedOn { get => _updatedOn; } - private readonly BicepValue _updatedOn; + public BicepValue UpdatedOn + { + get { Initialize(); return _updatedOn!; } + } + private BicepValue? _updatedOn; /// /// Creates a new EventHubsNamespace. @@ -191,31 +283,38 @@ public partial class EventHubsNamespace : ProvisionableResource public EventHubsNamespace(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventHub/namespaces", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _alternateName = BicepValue.DefineProperty(this, "AlternateName", ["properties", "alternateName"]); - _clusterArmId = BicepValue.DefineProperty(this, "ClusterArmId", ["properties", "clusterArmId"]); - _disableLocalAuth = BicepValue.DefineProperty(this, "DisableLocalAuth", ["properties", "disableLocalAuth"]); - _encryption = BicepValue.DefineProperty(this, "Encryption", ["properties", "encryption"]); - _geoDataReplication = BicepValue.DefineProperty(this, "GeoDataReplication", ["properties", "geoDataReplication"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _isAutoInflateEnabled = BicepValue.DefineProperty(this, "IsAutoInflateEnabled", ["properties", "isAutoInflateEnabled"]); - _kafkaEnabled = BicepValue.DefineProperty(this, "KafkaEnabled", ["properties", "kafkaEnabled"]); - _maximumThroughputUnits = BicepValue.DefineProperty(this, "MaximumThroughputUnits", ["properties", "maximumThroughputUnits"]); - _minimumTlsVersion = BicepValue.DefineProperty(this, "MinimumTlsVersion", ["properties", "minimumTlsVersion"]); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _zoneRedundant = BicepValue.DefineProperty(this, "ZoneRedundant", ["properties", "zoneRedundant"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdAt"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _metricId = BicepValue.DefineProperty(this, "MetricId", ["properties", "metricId"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _serviceBusEndpoint = BicepValue.DefineProperty(this, "ServiceBusEndpoint", ["properties", "serviceBusEndpoint"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _updatedOn = BicepValue.DefineProperty(this, "UpdatedOn", ["properties", "updatedAt"], isOutput: true); + } + + /// + /// Define all the provisionable properties of EventHubsNamespace. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _alternateName = DefineProperty("AlternateName", ["properties", "alternateName"]); + _clusterArmId = DefineProperty("ClusterArmId", ["properties", "clusterArmId"]); + _disableLocalAuth = DefineProperty("DisableLocalAuth", ["properties", "disableLocalAuth"]); + _encryption = DefineModelProperty("Encryption", ["properties", "encryption"]); + _geoDataReplication = DefineModelProperty("GeoDataReplication", ["properties", "geoDataReplication"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _isAutoInflateEnabled = DefineProperty("IsAutoInflateEnabled", ["properties", "isAutoInflateEnabled"]); + _kafkaEnabled = DefineProperty("KafkaEnabled", ["properties", "kafkaEnabled"]); + _maximumThroughputUnits = DefineProperty("MaximumThroughputUnits", ["properties", "maximumThroughputUnits"]); + _minimumTlsVersion = DefineProperty("MinimumTlsVersion", ["properties", "minimumTlsVersion"]); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _zoneRedundant = DefineProperty("ZoneRedundant", ["properties", "zoneRedundant"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdAt"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _metricId = DefineProperty("MetricId", ["properties", "metricId"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _serviceBusEndpoint = DefineProperty("ServiceBusEndpoint", ["properties", "serviceBusEndpoint"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _updatedOn = DefineProperty("UpdatedOn", ["properties", "updatedAt"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRule.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRule.cs index 9a25e2c7002f4..c904499fb94ad 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRule.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRule.cs @@ -23,38 +23,59 @@ public partial class EventHubsNamespaceAuthorizationRule : ProvisionableResource /// /// The authorization rule name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The rights associated with the rule. /// - public BicepList Rights { get => _rights; set => _rights.Assign(value); } - private readonly BicepList _rights; + public BicepList Rights + { + get { Initialize(); return _rights!; } + set { Initialize(); _rights!.Assign(value); } + } + private BicepList? _rights; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventHubsNamespace. /// - public EventHubsNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventHubsNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventHubsNamespaceAuthorizationRule. @@ -69,12 +90,20 @@ public partial class EventHubsNamespaceAuthorizationRule : ProvisionableResource public EventHubsNamespaceAuthorizationRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventHub/namespaces/authorizationRules", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _rights = BicepList.DefineProperty(this, "Rights", ["properties", "rights"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// EventHubsNamespaceAuthorizationRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _rights = DefineListProperty("Rights", ["properties", "rights"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// @@ -125,7 +154,10 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this EventHubsNamespaceAuthorizationRule resource. /// /// The keys for this EventHubsNamespaceAuthorizationRule resource. - public EventHubsAccessKeys GetKeys() => - EventHubsAccessKeys.FromExpression( - new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys"))); + public EventHubsAccessKeys GetKeys() + { + EventHubsAccessKeys key = new(); + ((IBicepValue)key).Expression = new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")); + return key; + } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsNetworkRuleSet.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsNetworkRuleSet.cs index 678baed5bc207..ac5815ae395d3 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsNetworkRuleSet.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsNetworkRuleSet.cs @@ -21,20 +21,31 @@ public partial class EventHubsNetworkRuleSet : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Default Action for Network Rule Set. /// - public BicepValue DefaultAction { get => _defaultAction; set => _defaultAction.Assign(value); } - private readonly BicepValue _defaultAction; + public BicepValue DefaultAction + { + get { Initialize(); return _defaultAction!; } + set { Initialize(); _defaultAction!.Assign(value); } + } + private BicepValue? _defaultAction; /// /// List of IpRules. /// - public BicepList IPRules { get => _iPRules; set => _iPRules.Assign(value); } - private readonly BicepList _iPRules; + public BicepList IPRules + { + get { Initialize(); return _iPRules!; } + set { Initialize(); _iPRules!.Assign(value); } + } + private BicepList? _iPRules; /// /// This determines if traffic is allowed over public network. By default @@ -42,44 +53,69 @@ public partial class EventHubsNetworkRuleSet : ProvisionableResource /// Outbound communication is controlled by the network security perimeter /// and profile's access rules. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Value that indicates whether Trusted Service Access is Enabled or not. /// - public BicepValue TrustedServiceAccessEnabled { get => _trustedServiceAccessEnabled; set => _trustedServiceAccessEnabled.Assign(value); } - private readonly BicepValue _trustedServiceAccessEnabled; + public BicepValue TrustedServiceAccessEnabled + { + get { Initialize(); return _trustedServiceAccessEnabled!; } + set { Initialize(); _trustedServiceAccessEnabled!.Assign(value); } + } + private BicepValue? _trustedServiceAccessEnabled; /// /// List VirtualNetwork Rules. /// - public BicepList VirtualNetworkRules { get => _virtualNetworkRules; set => _virtualNetworkRules.Assign(value); } - private readonly BicepList _virtualNetworkRules; + public BicepList VirtualNetworkRules + { + get { Initialize(); return _virtualNetworkRules!; } + set { Initialize(); _virtualNetworkRules!.Assign(value); } + } + private BicepList? _virtualNetworkRules; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventHubsNamespace. /// - public EventHubsNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventHubsNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventHubsNetworkRuleSet. @@ -94,16 +130,23 @@ public partial class EventHubsNetworkRuleSet : ProvisionableResource public EventHubsNetworkRuleSet(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventHub/namespaces/networkRuleSets", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _defaultAction = BicepValue.DefineProperty(this, "DefaultAction", ["properties", "defaultAction"]); - _iPRules = BicepList.DefineProperty(this, "IPRules", ["properties", "ipRules"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _trustedServiceAccessEnabled = BicepValue.DefineProperty(this, "TrustedServiceAccessEnabled", ["properties", "trustedServiceAccessEnabled"]); - _virtualNetworkRules = BicepList.DefineProperty(this, "VirtualNetworkRules", ["properties", "virtualNetworkRules"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of EventHubsNetworkRuleSet. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _defaultAction = DefineProperty("DefaultAction", ["properties", "defaultAction"]); + _iPRules = DefineListProperty("IPRules", ["properties", "ipRules"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _trustedServiceAccessEnabled = DefineProperty("TrustedServiceAccessEnabled", ["properties", "trustedServiceAccessEnabled"]); + _virtualNetworkRules = DefineListProperty("VirtualNetworkRules", ["properties", "virtualNetworkRules"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsPrivateEndpointConnection.cs index b68860e0a97f1..eec6331fb75eb 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsPrivateEndpointConnection.cs @@ -20,50 +20,79 @@ public partial class EventHubsPrivateEndpointConnection : ProvisionableResource /// /// The PrivateEndpointConnection name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Details about the state of the connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public EventHubsPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private EventHubsPrivateLinkServiceConnectionState? _connectionState; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Provisioning state of the Private Endpoint Connection. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent EventHubsNamespace. /// - public EventHubsNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventHubsNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventHubsPrivateEndpointConnection. @@ -78,14 +107,22 @@ public partial class EventHubsPrivateEndpointConnection : ProvisionableResource public EventHubsPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventHub/namespaces/privateEndpointConnections", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// EventHubsPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsSchemaGroup.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsSchemaGroup.cs index 38935a4f7e1e7..503e42d7a1b87 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsSchemaGroup.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/EventHubsSchemaGroup.cs @@ -22,68 +22,106 @@ public partial class EventHubsSchemaGroup : ProvisionableResource /// /// The Schema Group name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// dictionary object for SchemaGroup group properties. /// - public BicepDictionary GroupProperties { get => _groupProperties; set => _groupProperties.Assign(value); } - private readonly BicepDictionary _groupProperties; + public BicepDictionary GroupProperties + { + get { Initialize(); return _groupProperties!; } + set { Initialize(); _groupProperties!.Assign(value); } + } + private BicepDictionary? _groupProperties; /// /// Gets or sets the schema compatibility. /// - public BicepValue SchemaCompatibility { get => _schemaCompatibility; set => _schemaCompatibility.Assign(value); } - private readonly BicepValue _schemaCompatibility; + public BicepValue SchemaCompatibility + { + get { Initialize(); return _schemaCompatibility!; } + set { Initialize(); _schemaCompatibility!.Assign(value); } + } + private BicepValue? _schemaCompatibility; /// /// Gets or sets the schema type. /// - public BicepValue SchemaType { get => _schemaType; set => _schemaType.Assign(value); } - private readonly BicepValue _schemaType; + public BicepValue SchemaType + { + get { Initialize(); return _schemaType!; } + set { Initialize(); _schemaType!.Assign(value); } + } + private BicepValue? _schemaType; /// /// Exact time the Schema Group was created. /// - public BicepValue CreatedAtUtc { get => _createdAtUtc; } - private readonly BicepValue _createdAtUtc; + public BicepValue CreatedAtUtc + { + get { Initialize(); return _createdAtUtc!; } + } + private BicepValue? _createdAtUtc; /// /// The ETag value. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Exact time the Schema Group was updated. /// - public BicepValue UpdatedAtUtc { get => _updatedAtUtc; } - private readonly BicepValue _updatedAtUtc; + public BicepValue UpdatedAtUtc + { + get { Initialize(); return _updatedAtUtc!; } + } + private BicepValue? _updatedAtUtc; /// /// Gets or sets a reference to the parent EventHubsNamespace. /// - public EventHubsNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public EventHubsNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EventHubsSchemaGroup. @@ -98,17 +136,24 @@ public partial class EventHubsSchemaGroup : ProvisionableResource public EventHubsSchemaGroup(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.EventHub/namespaces/schemagroups", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _groupProperties = BicepDictionary.DefineProperty(this, "GroupProperties", ["properties", "groupProperties"]); - _schemaCompatibility = BicepValue.DefineProperty(this, "SchemaCompatibility", ["properties", "schemaCompatibility"]); - _schemaType = BicepValue.DefineProperty(this, "SchemaType", ["properties", "schemaType"]); - _createdAtUtc = BicepValue.DefineProperty(this, "CreatedAtUtc", ["properties", "createdAtUtc"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["properties", "eTag"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _updatedAtUtc = BicepValue.DefineProperty(this, "UpdatedAtUtc", ["properties", "updatedAtUtc"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of EventHubsSchemaGroup. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _groupProperties = DefineDictionaryProperty("GroupProperties", ["properties", "groupProperties"]); + _schemaCompatibility = DefineProperty("SchemaCompatibility", ["properties", "schemaCompatibility"]); + _schemaType = DefineProperty("SchemaType", ["properties", "schemaType"]); + _createdAtUtc = DefineProperty("CreatedAtUtc", ["properties", "createdAtUtc"], isOutput: true); + _eTag = DefineProperty("ETag", ["properties", "eTag"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _updatedAtUtc = DefineProperty("UpdatedAtUtc", ["properties", "updatedAtUtc"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/CaptureDescription.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/CaptureDescription.cs index ea7a9ec1b5310..823e92630dcbb 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/CaptureDescription.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/CaptureDescription.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,55 +19,87 @@ public partial class CaptureDescription : ProvisionableConstruct /// /// A value that indicates whether capture description is enabled. /// - public BicepValue Enabled { get => _enabled; set => _enabled.Assign(value); } - private readonly BicepValue _enabled; + public BicepValue Enabled + { + get { Initialize(); return _enabled!; } + set { Initialize(); _enabled!.Assign(value); } + } + private BicepValue? _enabled; /// /// Enumerates the possible values for the encoding format of capture /// description. Note: 'AvroDeflate' will be deprecated in New /// API Version. /// - public BicepValue Encoding { get => _encoding; set => _encoding.Assign(value); } - private readonly BicepValue _encoding; + public BicepValue Encoding + { + get { Initialize(); return _encoding!; } + set { Initialize(); _encoding!.Assign(value); } + } + private BicepValue? _encoding; /// /// The time window allows you to set the frequency with which the capture /// to Azure Blobs will happen, value should between 60 to 900 seconds. /// - public BicepValue IntervalInSeconds { get => _intervalInSeconds; set => _intervalInSeconds.Assign(value); } - private readonly BicepValue _intervalInSeconds; + public BicepValue IntervalInSeconds + { + get { Initialize(); return _intervalInSeconds!; } + set { Initialize(); _intervalInSeconds!.Assign(value); } + } + private BicepValue? _intervalInSeconds; /// /// The size window defines the amount of data built up in your Event Hub /// before an capture operation, value should be between 10485760 to /// 524288000 bytes. /// - public BicepValue SizeLimitInBytes { get => _sizeLimitInBytes; set => _sizeLimitInBytes.Assign(value); } - private readonly BicepValue _sizeLimitInBytes; + public BicepValue SizeLimitInBytes + { + get { Initialize(); return _sizeLimitInBytes!; } + set { Initialize(); _sizeLimitInBytes!.Assign(value); } + } + private BicepValue? _sizeLimitInBytes; /// /// Properties of Destination where capture will be stored. (Storage /// Account, Blob Names). /// - public BicepValue Destination { get => _destination; set => _destination.Assign(value); } - private readonly BicepValue _destination; + public EventHubDestination Destination + { + get { Initialize(); return _destination!; } + set { Initialize(); AssignOrReplace(ref _destination, value); } + } + private EventHubDestination? _destination; /// /// A value that indicates whether to Skip Empty Archives. /// - public BicepValue SkipEmptyArchives { get => _skipEmptyArchives; set => _skipEmptyArchives.Assign(value); } - private readonly BicepValue _skipEmptyArchives; + public BicepValue SkipEmptyArchives + { + get { Initialize(); return _skipEmptyArchives!; } + set { Initialize(); _skipEmptyArchives!.Assign(value); } + } + private BicepValue? _skipEmptyArchives; /// /// Creates a new CaptureDescription. /// public CaptureDescription() { - _enabled = BicepValue.DefineProperty(this, "Enabled", ["enabled"]); - _encoding = BicepValue.DefineProperty(this, "Encoding", ["encoding"]); - _intervalInSeconds = BicepValue.DefineProperty(this, "IntervalInSeconds", ["intervalInSeconds"]); - _sizeLimitInBytes = BicepValue.DefineProperty(this, "SizeLimitInBytes", ["sizeLimitInBytes"]); - _destination = BicepValue.DefineProperty(this, "Destination", ["destination"]); - _skipEmptyArchives = BicepValue.DefineProperty(this, "SkipEmptyArchives", ["skipEmptyArchives"]); + } + + /// + /// Define all the provisionable properties of CaptureDescription. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _enabled = DefineProperty("Enabled", ["enabled"]); + _encoding = DefineProperty("Encoding", ["encoding"]); + _intervalInSeconds = DefineProperty("IntervalInSeconds", ["intervalInSeconds"]); + _sizeLimitInBytes = DefineProperty("SizeLimitInBytes", ["sizeLimitInBytes"]); + _destination = DefineModelProperty("Destination", ["destination"]); + _skipEmptyArchives = DefineProperty("SkipEmptyArchives", ["skipEmptyArchives"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubDestination.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubDestination.cs index 24d3c4bd4898b..e7019caeae40b 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubDestination.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubDestination.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,26 +19,42 @@ public partial class EventHubDestination : ProvisionableConstruct /// /// Name for capture destination. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// A value that indicates whether capture description is enabled. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public EventHubsCaptureIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private EventHubsCaptureIdentity? _identity; /// /// Resource id of the storage account to be used to create the blobs. /// - public BicepValue StorageAccountResourceId { get => _storageAccountResourceId; set => _storageAccountResourceId.Assign(value); } - private readonly BicepValue _storageAccountResourceId; + public BicepValue StorageAccountResourceId + { + get { Initialize(); return _storageAccountResourceId!; } + set { Initialize(); _storageAccountResourceId!.Assign(value); } + } + private BicepValue? _storageAccountResourceId; /// /// Blob container Name. /// - public BicepValue BlobContainer { get => _blobContainer; set => _blobContainer.Assign(value); } - private readonly BicepValue _blobContainer; + public BicepValue BlobContainer + { + get { Initialize(); return _blobContainer!; } + set { Initialize(); _blobContainer!.Assign(value); } + } + private BicepValue? _blobContainer; /// /// Blob naming convention for archive, e.g. @@ -44,39 +62,63 @@ public partial class EventHubDestination : ProvisionableConstruct /// Here all the parameters (Namespace,EventHub .. etc) are mandatory /// irrespective of order. /// - public BicepValue ArchiveNameFormat { get => _archiveNameFormat; set => _archiveNameFormat.Assign(value); } - private readonly BicepValue _archiveNameFormat; + public BicepValue ArchiveNameFormat + { + get { Initialize(); return _archiveNameFormat!; } + set { Initialize(); _archiveNameFormat!.Assign(value); } + } + private BicepValue? _archiveNameFormat; /// /// Subscription Id of Azure Data Lake Store. /// - public BicepValue DataLakeSubscriptionId { get => _dataLakeSubscriptionId; set => _dataLakeSubscriptionId.Assign(value); } - private readonly BicepValue _dataLakeSubscriptionId; + public BicepValue DataLakeSubscriptionId + { + get { Initialize(); return _dataLakeSubscriptionId!; } + set { Initialize(); _dataLakeSubscriptionId!.Assign(value); } + } + private BicepValue? _dataLakeSubscriptionId; /// /// The Azure Data Lake Store name for the captured events. /// - public BicepValue DataLakeAccountName { get => _dataLakeAccountName; set => _dataLakeAccountName.Assign(value); } - private readonly BicepValue _dataLakeAccountName; + public BicepValue DataLakeAccountName + { + get { Initialize(); return _dataLakeAccountName!; } + set { Initialize(); _dataLakeAccountName!.Assign(value); } + } + private BicepValue? _dataLakeAccountName; /// /// The destination folder path for the captured events. /// - public BicepValue DataLakeFolderPath { get => _dataLakeFolderPath; set => _dataLakeFolderPath.Assign(value); } - private readonly BicepValue _dataLakeFolderPath; + public BicepValue DataLakeFolderPath + { + get { Initialize(); return _dataLakeFolderPath!; } + set { Initialize(); _dataLakeFolderPath!.Assign(value); } + } + private BicepValue? _dataLakeFolderPath; /// /// Creates a new EventHubDestination. /// public EventHubDestination() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _storageAccountResourceId = BicepValue.DefineProperty(this, "StorageAccountResourceId", ["properties", "storageAccountResourceId"]); - _blobContainer = BicepValue.DefineProperty(this, "BlobContainer", ["properties", "blobContainer"]); - _archiveNameFormat = BicepValue.DefineProperty(this, "ArchiveNameFormat", ["properties", "archiveNameFormat"]); - _dataLakeSubscriptionId = BicepValue.DefineProperty(this, "DataLakeSubscriptionId", ["properties", "dataLakeSubscriptionId"]); - _dataLakeAccountName = BicepValue.DefineProperty(this, "DataLakeAccountName", ["properties", "dataLakeAccountName"]); - _dataLakeFolderPath = BicepValue.DefineProperty(this, "DataLakeFolderPath", ["properties", "dataLakeFolderPath"]); + } + + /// + /// Define all the provisionable properties of EventHubDestination. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _storageAccountResourceId = DefineProperty("StorageAccountResourceId", ["properties", "storageAccountResourceId"]); + _blobContainer = DefineProperty("BlobContainer", ["properties", "blobContainer"]); + _archiveNameFormat = DefineProperty("ArchiveNameFormat", ["properties", "archiveNameFormat"]); + _dataLakeSubscriptionId = DefineProperty("DataLakeSubscriptionId", ["properties", "dataLakeSubscriptionId"]); + _dataLakeAccountName = DefineProperty("DataLakeAccountName", ["properties", "dataLakeAccountName"]); + _dataLakeFolderPath = DefineProperty("DataLakeFolderPath", ["properties", "dataLakeFolderPath"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsAccessKeys.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsAccessKeys.cs index f5a66c7657cc4..2fa962751ee80 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsAccessKeys.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsAccessKeys.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Expressions; using Azure.Provisioning.Primitives; using System; @@ -18,74 +20,87 @@ public partial class EventHubsAccessKeys : ProvisionableConstruct /// /// Primary connection string of the created namespace AuthorizationRule. /// - public BicepValue PrimaryConnectionString { get => _primaryConnectionString; } - private readonly BicepValue _primaryConnectionString; + public BicepValue PrimaryConnectionString + { + get { Initialize(); return _primaryConnectionString!; } + } + private BicepValue? _primaryConnectionString; /// /// Secondary connection string of the created namespace AuthorizationRule. /// - public BicepValue SecondaryConnectionString { get => _secondaryConnectionString; } - private readonly BicepValue _secondaryConnectionString; + public BicepValue SecondaryConnectionString + { + get { Initialize(); return _secondaryConnectionString!; } + } + private BicepValue? _secondaryConnectionString; /// /// Primary connection string of the alias if GEO DR is enabled. /// - public BicepValue AliasPrimaryConnectionString { get => _aliasPrimaryConnectionString; } - private readonly BicepValue _aliasPrimaryConnectionString; + public BicepValue AliasPrimaryConnectionString + { + get { Initialize(); return _aliasPrimaryConnectionString!; } + } + private BicepValue? _aliasPrimaryConnectionString; /// /// Secondary connection string of the alias if GEO DR is enabled. /// - public BicepValue AliasSecondaryConnectionString { get => _aliasSecondaryConnectionString; } - private readonly BicepValue _aliasSecondaryConnectionString; + public BicepValue AliasSecondaryConnectionString + { + get { Initialize(); return _aliasSecondaryConnectionString!; } + } + private BicepValue? _aliasSecondaryConnectionString; /// /// A base64-encoded 256-bit primary key for signing and validating the SAS /// token. /// - public BicepValue PrimaryKey { get => _primaryKey; } - private readonly BicepValue _primaryKey; + public BicepValue PrimaryKey + { + get { Initialize(); return _primaryKey!; } + } + private BicepValue? _primaryKey; /// /// A base64-encoded 256-bit primary key for signing and validating the SAS /// token. /// - public BicepValue SecondaryKey { get => _secondaryKey; } - private readonly BicepValue _secondaryKey; + public BicepValue SecondaryKey + { + get { Initialize(); return _secondaryKey!; } + } + private BicepValue? _secondaryKey; /// /// A string that describes the AuthorizationRule. /// - public BicepValue KeyName { get => _keyName; } - private readonly BicepValue _keyName; + public BicepValue KeyName + { + get { Initialize(); return _keyName!; } + } + private BicepValue? _keyName; /// /// Creates a new EventHubsAccessKeys. /// public EventHubsAccessKeys() { - _primaryConnectionString = BicepValue.DefineProperty(this, "PrimaryConnectionString", ["primaryConnectionString"], isOutput: true, isSecure: true); - _secondaryConnectionString = BicepValue.DefineProperty(this, "SecondaryConnectionString", ["secondaryConnectionString"], isOutput: true, isSecure: true); - _aliasPrimaryConnectionString = BicepValue.DefineProperty(this, "AliasPrimaryConnectionString", ["aliasPrimaryConnectionString"], isOutput: true, isSecure: true); - _aliasSecondaryConnectionString = BicepValue.DefineProperty(this, "AliasSecondaryConnectionString", ["aliasSecondaryConnectionString"], isOutput: true, isSecure: true); - _primaryKey = BicepValue.DefineProperty(this, "PrimaryKey", ["primaryKey"], isOutput: true, isSecure: true); - _secondaryKey = BicepValue.DefineProperty(this, "SecondaryKey", ["secondaryKey"], isOutput: true, isSecure: true); - _keyName = BicepValue.DefineProperty(this, "KeyName", ["keyName"], isOutput: true); } /// - /// Creates a new EventHubsAccessKeys resource from a Bicep expression that - /// evaluates to a EventHubsAccessKeys. + /// Define all the provisionable properties of EventHubsAccessKeys. /// - /// - /// A Bicep expression that evaluates to a EventHubsAccessKeys resource. - /// - /// A EventHubsAccessKeys resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static EventHubsAccessKeys FromExpression(BicepExpression expression) + protected override void DefineProvisionableProperties() { - EventHubsAccessKeys resource = new(); - resource.OverrideWithExpression(expression); - return resource; + base.DefineProvisionableProperties(); + _primaryConnectionString = DefineProperty("PrimaryConnectionString", ["primaryConnectionString"], isOutput: true, isSecure: true); + _secondaryConnectionString = DefineProperty("SecondaryConnectionString", ["secondaryConnectionString"], isOutput: true, isSecure: true); + _aliasPrimaryConnectionString = DefineProperty("AliasPrimaryConnectionString", ["aliasPrimaryConnectionString"], isOutput: true, isSecure: true); + _aliasSecondaryConnectionString = DefineProperty("AliasSecondaryConnectionString", ["aliasSecondaryConnectionString"], isOutput: true, isSecure: true); + _primaryKey = DefineProperty("PrimaryKey", ["primaryKey"], isOutput: true, isSecure: true); + _secondaryKey = DefineProperty("SecondaryKey", ["secondaryKey"], isOutput: true, isSecure: true); + _keyName = DefineProperty("KeyName", ["keyName"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsApplicationGroupPolicy.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsApplicationGroupPolicy.cs index c7545a9fcb95a..7b2d49431712b 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsApplicationGroupPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsApplicationGroupPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -22,14 +24,27 @@ public partial class EventHubsApplicationGroupPolicy : ProvisionableConstruct /// /// The Name of this policy. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new EventHubsApplicationGroupPolicy. /// public EventHubsApplicationGroupPolicy() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of + /// EventHubsApplicationGroupPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsCaptureIdentity.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsCaptureIdentity.cs index 42828a080ef11..25bc49e72ae8e 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsCaptureIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsCaptureIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,23 +18,39 @@ public partial class EventHubsCaptureIdentity : ProvisionableConstruct /// /// Type of Azure Active Directory Managed Identity. /// - public BicepValue IdentityType { get => _identityType; set => _identityType.Assign(value); } - private readonly BicepValue _identityType; + public BicepValue IdentityType + { + get { Initialize(); return _identityType!; } + set { Initialize(); _identityType!.Assign(value); } + } + private BicepValue? _identityType; /// /// ARM ID of Managed User Identity. This property is required is the type /// is UserAssignedIdentity. If type is SystemAssigned, then the System /// Assigned Identity Associated with the namespace will be used. /// - public BicepValue UserAssignedIdentity { get => _userAssignedIdentity; set => _userAssignedIdentity.Assign(value); } - private readonly BicepValue _userAssignedIdentity; + public BicepValue UserAssignedIdentity + { + get { Initialize(); return _userAssignedIdentity!; } + set { Initialize(); _userAssignedIdentity!.Assign(value); } + } + private BicepValue? _userAssignedIdentity; /// /// Creates a new EventHubsCaptureIdentity. /// public EventHubsCaptureIdentity() { - _identityType = BicepValue.DefineProperty(this, "IdentityType", ["type"]); - _userAssignedIdentity = BicepValue.DefineProperty(this, "UserAssignedIdentity", ["userAssignedIdentity"]); + } + + /// + /// Define all the provisionable properties of EventHubsCaptureIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _identityType = DefineProperty("IdentityType", ["type"]); + _userAssignedIdentity = DefineProperty("UserAssignedIdentity", ["userAssignedIdentity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsClusterSku.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsClusterSku.cs index b128eb41e9e2a..bc15870d0b9cf 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsClusterSku.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsClusterSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,38 @@ public partial class EventHubsClusterSku : ProvisionableConstruct /// /// Name of this SKU. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The quantity of Event Hubs Cluster Capacity Units contained in this /// cluster. /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// Creates a new EventHubsClusterSku. /// public EventHubsClusterSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); + } + + /// + /// Define all the provisionable properties of EventHubsClusterSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _capacity = DefineProperty("Capacity", ["capacity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsEncryption.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsEncryption.cs index dd9c920e7a272..5173f94fa2044 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsEncryption.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsEncryption.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,48 @@ public partial class EventHubsEncryption : ProvisionableConstruct /// /// Properties of KeyVault. /// - public BicepList KeyVaultProperties { get => _keyVaultProperties; set => _keyVaultProperties.Assign(value); } - private readonly BicepList _keyVaultProperties; + public BicepList KeyVaultProperties + { + get { Initialize(); return _keyVaultProperties!; } + set { Initialize(); _keyVaultProperties!.Assign(value); } + } + private BicepList? _keyVaultProperties; /// /// Enumerates the possible value of keySource for Encryption. /// - public BicepValue KeySource { get => _keySource; set => _keySource.Assign(value); } - private readonly BicepValue _keySource; + public BicepValue KeySource + { + get { Initialize(); return _keySource!; } + set { Initialize(); _keySource!.Assign(value); } + } + private BicepValue? _keySource; /// /// Enable Infrastructure Encryption (Double Encryption). /// - public BicepValue RequireInfrastructureEncryption { get => _requireInfrastructureEncryption; set => _requireInfrastructureEncryption.Assign(value); } - private readonly BicepValue _requireInfrastructureEncryption; + public BicepValue RequireInfrastructureEncryption + { + get { Initialize(); return _requireInfrastructureEncryption!; } + set { Initialize(); _requireInfrastructureEncryption!.Assign(value); } + } + private BicepValue? _requireInfrastructureEncryption; /// /// Creates a new EventHubsEncryption. /// public EventHubsEncryption() { - _keyVaultProperties = BicepList.DefineProperty(this, "KeyVaultProperties", ["keyVaultProperties"]); - _keySource = BicepValue.DefineProperty(this, "KeySource", ["keySource"]); - _requireInfrastructureEncryption = BicepValue.DefineProperty(this, "RequireInfrastructureEncryption", ["requireInfrastructureEncryption"]); + } + + /// + /// Define all the provisionable properties of EventHubsEncryption. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyVaultProperties = DefineListProperty("KeyVaultProperties", ["keyVaultProperties"]); + _keySource = DefineProperty("KeySource", ["keySource"]); + _requireInfrastructureEncryption = DefineProperty("RequireInfrastructureEncryption", ["requireInfrastructureEncryption"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsKeyVaultProperties.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsKeyVaultProperties.cs index 0a7de2f048815..c14a4f45798d4 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsKeyVaultProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsKeyVaultProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class EventHubsKeyVaultProperties : ProvisionableConstruct /// /// Name of the Key from KeyVault. /// - public BicepValue KeyName { get => _keyName; set => _keyName.Assign(value); } - private readonly BicepValue _keyName; + public BicepValue KeyName + { + get { Initialize(); return _keyName!; } + set { Initialize(); _keyName!.Assign(value); } + } + private BicepValue? _keyName; /// /// Uri of KeyVault. /// - public BicepValue KeyVaultUri { get => _keyVaultUri; set => _keyVaultUri.Assign(value); } - private readonly BicepValue _keyVaultUri; + public BicepValue KeyVaultUri + { + get { Initialize(); return _keyVaultUri!; } + set { Initialize(); _keyVaultUri!.Assign(value); } + } + private BicepValue? _keyVaultUri; /// /// Key Version. /// - public BicepValue KeyVersion { get => _keyVersion; set => _keyVersion.Assign(value); } - private readonly BicepValue _keyVersion; + public BicepValue KeyVersion + { + get { Initialize(); return _keyVersion!; } + set { Initialize(); _keyVersion!.Assign(value); } + } + private BicepValue? _keyVersion; /// /// ARM ID of user Identity selected for encryption. /// - public BicepValue UserAssignedIdentity { get => _userAssignedIdentity; set => _userAssignedIdentity.Assign(value); } - private readonly BicepValue _userAssignedIdentity; + public BicepValue UserAssignedIdentity + { + get { Initialize(); return _userAssignedIdentity!; } + set { Initialize(); _userAssignedIdentity!.Assign(value); } + } + private BicepValue? _userAssignedIdentity; /// /// Creates a new EventHubsKeyVaultProperties. /// public EventHubsKeyVaultProperties() { - _keyName = BicepValue.DefineProperty(this, "KeyName", ["keyName"]); - _keyVaultUri = BicepValue.DefineProperty(this, "KeyVaultUri", ["keyVaultUri"]); - _keyVersion = BicepValue.DefineProperty(this, "KeyVersion", ["keyVersion"]); - _userAssignedIdentity = BicepValue.DefineProperty(this, "UserAssignedIdentity", ["identity", "userAssignedIdentity"]); + } + + /// + /// Define all the provisionable properties of EventHubsKeyVaultProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyName = DefineProperty("KeyName", ["keyName"]); + _keyVaultUri = DefineProperty("KeyVaultUri", ["keyVaultUri"]); + _keyVersion = DefineProperty("KeyVersion", ["keyVersion"]); + _userAssignedIdentity = DefineProperty("UserAssignedIdentity", ["identity", "userAssignedIdentity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetIPRules.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetIPRules.cs index bd84a2fdf2450..91c6234eba571 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetIPRules.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetIPRules.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class EventHubsNetworkRuleSetIPRules : ProvisionableConstruct /// /// IP Mask. /// - public BicepValue IPMask { get => _iPMask; set => _iPMask.Assign(value); } - private readonly BicepValue _iPMask; + public BicepValue IPMask + { + get { Initialize(); return _iPMask!; } + set { Initialize(); _iPMask!.Assign(value); } + } + private BicepValue? _iPMask; /// /// The IP Filter Action. /// - public BicepValue Action { get => _action; set => _action.Assign(value); } - private readonly BicepValue _action; + public BicepValue Action + { + get { Initialize(); return _action!; } + set { Initialize(); _action!.Assign(value); } + } + private BicepValue? _action; /// /// Creates a new EventHubsNetworkRuleSetIPRules. /// public EventHubsNetworkRuleSetIPRules() { - _iPMask = BicepValue.DefineProperty(this, "IPMask", ["ipMask"]); - _action = BicepValue.DefineProperty(this, "Action", ["action"]); + } + + /// + /// Define all the provisionable properties of + /// EventHubsNetworkRuleSetIPRules. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _iPMask = DefineProperty("IPMask", ["ipMask"]); + _action = DefineProperty("Action", ["action"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetVirtualNetworkRules.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetVirtualNetworkRules.cs index 426fa6b488f70..d00ba93243dd3 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetVirtualNetworkRules.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetVirtualNetworkRules.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class EventHubsNetworkRuleSetVirtualNetworkRules : ProvisionableC /// /// Gets or sets Id. /// - public BicepValue SubnetId { get => _subnetId; set => _subnetId.Assign(value); } - private readonly BicepValue _subnetId; + public BicepValue SubnetId + { + get { Initialize(); return _subnetId!; } + set { Initialize(); _subnetId!.Assign(value); } + } + private BicepValue? _subnetId; /// /// Value that indicates whether to ignore missing Vnet Service Endpoint. /// - public BicepValue IgnoreMissingVnetServiceEndpoint { get => _ignoreMissingVnetServiceEndpoint; set => _ignoreMissingVnetServiceEndpoint.Assign(value); } - private readonly BicepValue _ignoreMissingVnetServiceEndpoint; + public BicepValue IgnoreMissingVnetServiceEndpoint + { + get { Initialize(); return _ignoreMissingVnetServiceEndpoint!; } + set { Initialize(); _ignoreMissingVnetServiceEndpoint!.Assign(value); } + } + private BicepValue? _ignoreMissingVnetServiceEndpoint; /// /// Creates a new EventHubsNetworkRuleSetVirtualNetworkRules. /// public EventHubsNetworkRuleSetVirtualNetworkRules() { - _subnetId = BicepValue.DefineProperty(this, "SubnetId", ["subnet", "id"]); - _ignoreMissingVnetServiceEndpoint = BicepValue.DefineProperty(this, "IgnoreMissingVnetServiceEndpoint", ["ignoreMissingVnetServiceEndpoint"]); + } + + /// + /// Define all the provisionable properties of + /// EventHubsNetworkRuleSetVirtualNetworkRules. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _subnetId = DefineProperty("SubnetId", ["subnet", "id"]); + _ignoreMissingVnetServiceEndpoint = DefineProperty("IgnoreMissingVnetServiceEndpoint", ["ignoreMissingVnetServiceEndpoint"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionData.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionData.cs index b6bc744a747e0..43da1ba318e0e 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionData.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -19,56 +21,89 @@ public partial class EventHubsPrivateEndpointConnectionData : ProvisionableConst /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Details about the state of the connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public EventHubsPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private EventHubsPrivateLinkServiceConnectionState? _connectionState; /// /// Provisioning state of the Private Endpoint Connection. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new EventHubsPrivateEndpointConnectionData. /// public EventHubsPrivateEndpointConnectionData() { - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// EventHubsPrivateEndpointConnectionData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _location = DefineProperty("Location", ["location"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsPrivateLinkServiceConnectionState.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsPrivateLinkServiceConnectionState.cs index 3d8885fe1f638..3ba2ce8f9831e 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsPrivateLinkServiceConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsPrivateLinkServiceConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class EventHubsPrivateLinkServiceConnectionState : ProvisionableC /// /// Status of the connection. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Description of the connection state. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Creates a new EventHubsPrivateLinkServiceConnectionState. /// public EventHubsPrivateLinkServiceConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); + } + + /// + /// Define all the provisionable properties of + /// EventHubsPrivateLinkServiceConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsSku.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsSku.cs index 6f3eec185fbae..302748baf263f 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsSku.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,30 +18,50 @@ public partial class EventHubsSku : ProvisionableConstruct /// /// Name of this SKU. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The billing tier of this particular SKU. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// The Event Hubs throughput units for Basic or Standard tiers, where /// value should be 0 to 20 throughput units. The Event Hubs premium units /// for Premium tier, where value should be 0 to 10 premium units. /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// Creates a new EventHubsSku. /// public EventHubsSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); + } + + /// + /// Define all the provisionable properties of EventHubsSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"]); + _capacity = DefineProperty("Capacity", ["capacity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsThrottlingPolicy.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsThrottlingPolicy.cs index 94ba4828f10fb..af11e0396eccb 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsThrottlingPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/EventHubsThrottlingPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,24 +19,40 @@ public partial class EventHubsThrottlingPolicy : EventHubsApplicationGroupPolicy /// The Threshold limit above which the application group will be /// throttled.Rate limit is always per second. /// - public BicepValue RateLimitThreshold { get => _rateLimitThreshold; set => _rateLimitThreshold.Assign(value); } - private readonly BicepValue _rateLimitThreshold; + public BicepValue RateLimitThreshold + { + get { Initialize(); return _rateLimitThreshold!; } + set { Initialize(); _rateLimitThreshold!.Assign(value); } + } + private BicepValue? _rateLimitThreshold; /// /// Metric Id on which the throttle limit should be set, MetricId can be /// discovered by hovering over Metric in the Metrics section of Event Hub /// Namespace inside Azure Portal. /// - public BicepValue MetricId { get => _metricId; set => _metricId.Assign(value); } - private readonly BicepValue _metricId; + public BicepValue MetricId + { + get { Initialize(); return _metricId!; } + set { Initialize(); _metricId!.Assign(value); } + } + private BicepValue? _metricId; /// /// Creates a new EventHubsThrottlingPolicy. /// public EventHubsThrottlingPolicy() : base() { - BicepValue.DefineProperty(this, "type", ["type"], defaultValue: "ThrottlingPolicy"); - _rateLimitThreshold = BicepValue.DefineProperty(this, "RateLimitThreshold", ["rateLimitThreshold"]); - _metricId = BicepValue.DefineProperty(this, "MetricId", ["metricId"]); + } + + /// + /// Define all the provisionable properties of EventHubsThrottlingPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("type", ["type"], defaultValue: "ThrottlingPolicy"); + _rateLimitThreshold = DefineProperty("RateLimitThreshold", ["rateLimitThreshold"]); + _metricId = DefineProperty("MetricId", ["metricId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/NamespaceGeoDataReplicationProperties.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/NamespaceGeoDataReplicationProperties.cs index 41ba01a10ab76..e0320aae0594d 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/NamespaceGeoDataReplicationProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/NamespaceGeoDataReplicationProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -21,21 +23,38 @@ public partial class NamespaceGeoDataReplicationProperties : ProvisionableConstr /// exceeds the configured amount, operations on the primary replica will /// be failed. The allowed values are 0 and 5 minutes to 1 day. /// - public BicepValue MaxReplicationLagDurationInSeconds { get => _maxReplicationLagDurationInSeconds; set => _maxReplicationLagDurationInSeconds.Assign(value); } - private readonly BicepValue _maxReplicationLagDurationInSeconds; + public BicepValue MaxReplicationLagDurationInSeconds + { + get { Initialize(); return _maxReplicationLagDurationInSeconds!; } + set { Initialize(); _maxReplicationLagDurationInSeconds!.Assign(value); } + } + private BicepValue? _maxReplicationLagDurationInSeconds; /// /// A list of regions where replicas of the namespace are maintained. /// - public BicepList Locations { get => _locations; set => _locations.Assign(value); } - private readonly BicepList _locations; + public BicepList Locations + { + get { Initialize(); return _locations!; } + set { Initialize(); _locations!.Assign(value); } + } + private BicepList? _locations; /// /// Creates a new NamespaceGeoDataReplicationProperties. /// public NamespaceGeoDataReplicationProperties() { - _maxReplicationLagDurationInSeconds = BicepValue.DefineProperty(this, "MaxReplicationLagDurationInSeconds", ["maxReplicationLagDurationInSeconds"]); - _locations = BicepList.DefineProperty(this, "Locations", ["locations"]); + } + + /// + /// Define all the provisionable properties of + /// NamespaceGeoDataReplicationProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _maxReplicationLagDurationInSeconds = DefineProperty("MaxReplicationLagDurationInSeconds", ["maxReplicationLagDurationInSeconds"]); + _locations = DefineListProperty("Locations", ["locations"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/NamespaceReplicaLocation.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/NamespaceReplicaLocation.cs index 772c63f50f0ab..4659c321d2d56 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/NamespaceReplicaLocation.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/NamespaceReplicaLocation.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,50 @@ public partial class NamespaceReplicaLocation : ProvisionableConstruct /// /// Azure regions where a replica of the namespace is maintained. /// - public BicepValue LocationName { get => _locationName; set => _locationName.Assign(value); } - private readonly BicepValue _locationName; + public BicepValue LocationName + { + get { Initialize(); return _locationName!; } + set { Initialize(); _locationName!.Assign(value); } + } + private BicepValue? _locationName; /// /// GeoDR Role Types. /// - public BicepValue RoleType { get => _roleType; set => _roleType.Assign(value); } - private readonly BicepValue _roleType; + public BicepValue RoleType + { + get { Initialize(); return _roleType!; } + set { Initialize(); _roleType!.Assign(value); } + } + private BicepValue? _roleType; /// /// Optional property that denotes the ARM ID of the Cluster. This is /// required, if a namespace replica should be placed in a Dedicated Event /// Hub Cluster. /// - public BicepValue ClusterArmId { get => _clusterArmId; set => _clusterArmId.Assign(value); } - private readonly BicepValue _clusterArmId; + public BicepValue ClusterArmId + { + get { Initialize(); return _clusterArmId!; } + set { Initialize(); _clusterArmId!.Assign(value); } + } + private BicepValue? _clusterArmId; /// /// Creates a new NamespaceReplicaLocation. /// public NamespaceReplicaLocation() { - _locationName = BicepValue.DefineProperty(this, "LocationName", ["locationName"]); - _roleType = BicepValue.DefineProperty(this, "RoleType", ["roleType"]); - _clusterArmId = BicepValue.DefineProperty(this, "ClusterArmId", ["clusterArmId"]); + } + + /// + /// Define all the provisionable properties of NamespaceReplicaLocation. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _locationName = DefineProperty("LocationName", ["locationName"]); + _roleType = DefineProperty("RoleType", ["roleType"]); + _clusterArmId = DefineProperty("ClusterArmId", ["clusterArmId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/RetentionDescription.cs b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/RetentionDescription.cs index eba4563a159d2..026f79a2990c1 100644 --- a/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/RetentionDescription.cs +++ b/sdk/provisioning/Azure.Provisioning.EventHubs/src/Generated/Models/RetentionDescription.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,16 +18,24 @@ public partial class RetentionDescription : ProvisionableConstruct /// /// Enumerates the possible values for cleanup policy. /// - public BicepValue CleanupPolicy { get => _cleanupPolicy; set => _cleanupPolicy.Assign(value); } - private readonly BicepValue _cleanupPolicy; + public BicepValue CleanupPolicy + { + get { Initialize(); return _cleanupPolicy!; } + set { Initialize(); _cleanupPolicy!.Assign(value); } + } + private BicepValue? _cleanupPolicy; /// /// Number of hours to retain the events for this Event Hub. This value is /// only used when cleanupPolicy is Delete. If cleanupPolicy is Compact /// the returned value of this property is Long.MaxValue. /// - public BicepValue RetentionTimeInHours { get => _retentionTimeInHours; set => _retentionTimeInHours.Assign(value); } - private readonly BicepValue _retentionTimeInHours; + public BicepValue RetentionTimeInHours + { + get { Initialize(); return _retentionTimeInHours!; } + set { Initialize(); _retentionTimeInHours!.Assign(value); } + } + private BicepValue? _retentionTimeInHours; /// /// Number of hours to retain the tombstone markers of a compacted Event @@ -35,16 +45,28 @@ public partial class RetentionDescription : ProvisionableConstruct /// get a valid snapshot for the specific key described by the tombstone /// marker within the compacted Event Hub. /// - public BicepValue TombstoneRetentionTimeInHours { get => _tombstoneRetentionTimeInHours; set => _tombstoneRetentionTimeInHours.Assign(value); } - private readonly BicepValue _tombstoneRetentionTimeInHours; + public BicepValue TombstoneRetentionTimeInHours + { + get { Initialize(); return _tombstoneRetentionTimeInHours!; } + set { Initialize(); _tombstoneRetentionTimeInHours!.Assign(value); } + } + private BicepValue? _tombstoneRetentionTimeInHours; /// /// Creates a new RetentionDescription. /// public RetentionDescription() { - _cleanupPolicy = BicepValue.DefineProperty(this, "CleanupPolicy", ["cleanupPolicy"]); - _retentionTimeInHours = BicepValue.DefineProperty(this, "RetentionTimeInHours", ["retentionTimeInHours"]); - _tombstoneRetentionTimeInHours = BicepValue.DefineProperty(this, "TombstoneRetentionTimeInHours", ["tombstoneRetentionTimeInHours"]); + } + + /// + /// Define all the provisionable properties of RetentionDescription. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _cleanupPolicy = DefineProperty("CleanupPolicy", ["cleanupPolicy"]); + _retentionTimeInHours = DefineProperty("RetentionTimeInHours", ["retentionTimeInHours"]); + _tombstoneRetentionTimeInHours = DefineProperty("TombstoneRetentionTimeInHours", ["tombstoneRetentionTimeInHours"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/api/Azure.Provisioning.KeyVault.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/api/Azure.Provisioning.KeyVault.netstandard2.0.cs index d7c9071cfb268..92a53acb84b75 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/api/Azure.Provisioning.KeyVault.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/api/Azure.Provisioning.KeyVault.netstandard2.0.cs @@ -89,6 +89,7 @@ public IdentityAccessPermissions() { } public Azure.Provisioning.BicepList Keys { get { throw null; } set { } } public Azure.Provisioning.BicepList Secrets { get { throw null; } set { } } public Azure.Provisioning.BicepList Storage { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum IdentityAccessSecretPermission { @@ -149,8 +150,9 @@ public partial class KeyVaultAccessPolicy : Azure.Provisioning.Primitives.Provis public KeyVaultAccessPolicy() { } public Azure.Provisioning.BicepValue ApplicationId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ObjectId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Permissions { get { throw null; } set { } } + public Azure.Provisioning.KeyVault.IdentityAccessPermissions Permissions { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum KeyVaultActionsRequiredMessage { @@ -198,6 +200,7 @@ public partial class KeyVaultIPRule : Azure.Provisioning.Primitives.Provisionabl { public KeyVaultIPRule() { } public Azure.Provisioning.BicepValue AddressRange { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum KeyVaultNetworkRuleAction { @@ -216,11 +219,12 @@ public KeyVaultNetworkRuleSet() { } public Azure.Provisioning.BicepValue DefaultAction { get { throw null; } set { } } public Azure.Provisioning.BicepList IPRules { get { throw null; } set { } } public Azure.Provisioning.BicepList VirtualNetworkRules { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class KeyVaultPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public KeyVaultPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.KeyVault.KeyVaultPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue ETag { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } } @@ -228,8 +232,9 @@ public partial class KeyVaultPrivateEndpointConnection : Azure.Provisioning.Prim public Azure.Provisioning.KeyVault.KeyVaultService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.KeyVault.KeyVaultPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -248,11 +253,12 @@ public static partial class ResourceVersions public partial class KeyVaultPrivateEndpointConnectionItemData : Azure.Provisioning.Primitives.ProvisionableConstruct { public KeyVaultPrivateEndpointConnectionItemData() { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } } + public Azure.Provisioning.KeyVault.KeyVaultPrivateLinkServiceConnectionState ConnectionState { get { throw null; } } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum KeyVaultPrivateEndpointConnectionProvisioningState { @@ -276,6 +282,7 @@ public KeyVaultPrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class KeyVaultProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -289,14 +296,15 @@ public KeyVaultProperties() { } public Azure.Provisioning.BicepValue EnableRbacAuthorization { get { throw null; } set { } } public Azure.Provisioning.BicepValue EnableSoftDelete { get { throw null; } set { } } public Azure.Provisioning.BicepValue HsmPoolResourceId { get { throw null; } } - public Azure.Provisioning.BicepValue NetworkRuleSet { get { throw null; } set { } } + public Azure.Provisioning.KeyVault.KeyVaultNetworkRuleSet NetworkRuleSet { get { throw null; } set { } } public Azure.Provisioning.BicepList PrivateEndpointConnections { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.KeyVault.KeyVaultSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue SoftDeleteRetentionInDays { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } public Azure.Provisioning.BicepValue VaultUri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum KeyVaultProvisioningState { @@ -310,9 +318,10 @@ public partial class KeyVaultSecret : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.KeyVault.KeyVaultService? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.KeyVault.SecretProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.KeyVault.KeyVaultSecret FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -336,11 +345,12 @@ public partial class KeyVaultService : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.KeyVault.KeyVaultProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.KeyVault.KeyVaultBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.KeyVault.KeyVaultBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.KeyVault.KeyVaultService FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -363,6 +373,7 @@ public partial class KeyVaultSku : Azure.Provisioning.Primitives.ProvisionableCo public KeyVaultSku() { } public Azure.Provisioning.BicepValue Family { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum KeyVaultSkuFamily { @@ -380,6 +391,7 @@ public partial class KeyVaultVirtualNetworkRule : Azure.Provisioning.Primitives. public KeyVaultVirtualNetworkRule() { } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } public Azure.Provisioning.BicepValue IgnoreMissingVnetServiceEndpoint { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedHsm : Azure.Provisioning.Primitives.ProvisionableResource { @@ -387,10 +399,11 @@ public partial class ManagedHsm : Azure.Provisioning.Primitives.ProvisionableRes public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.KeyVault.ManagedHsmProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.KeyVault.ManagedHsmSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.KeyVault.ManagedHsm FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -419,6 +432,7 @@ public ManagedHsmGeoReplicatedRegion() { } public Azure.Provisioning.BicepValue IsPrimary { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ManagedHsmGeoReplicatedRegionProvisioningState { @@ -433,6 +447,7 @@ public partial class ManagedHsmIPRule : Azure.Provisioning.Primitives.Provisiona { public ManagedHsmIPRule() { } public Azure.Provisioning.BicepValue AddressRange { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ManagedHsmNetworkRuleAction { @@ -451,6 +466,7 @@ public ManagedHsmNetworkRuleSet() { } public Azure.Provisioning.BicepValue DefaultAction { get { throw null; } set { } } public Azure.Provisioning.BicepList IPRules { get { throw null; } set { } } public Azure.Provisioning.BicepList VirtualNetworkRules { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedHsmPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { @@ -461,11 +477,12 @@ public partial class ManagedHsmPrivateEndpointConnection : Azure.Provisioning.Pr public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.KeyVault.ManagedHsm? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } - public Azure.Provisioning.BicepValue PrivateLinkServiceConnectionState { get { throw null; } set { } } + public Azure.Provisioning.KeyVault.ManagedHsmPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.KeyVault.ManagedHsmSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.KeyVault.ManagedHsmPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -483,8 +500,9 @@ public ManagedHsmPrivateEndpointConnectionItemData() { } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } - public Azure.Provisioning.BicepValue PrivateLinkServiceConnectionState { get { throw null; } } + public Azure.Provisioning.KeyVault.ManagedHsmPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ManagedHsmPrivateEndpointConnectionProvisioningState { @@ -508,6 +526,7 @@ public ManagedHsmPrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedHsmProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -517,16 +536,17 @@ public ManagedHsmProperties() { } public Azure.Provisioning.BicepValue EnableSoftDelete { get { throw null; } set { } } public Azure.Provisioning.BicepValue HsmUri { get { throw null; } } public Azure.Provisioning.BicepList InitialAdminObjectIds { get { throw null; } set { } } - public Azure.Provisioning.BicepValue NetworkRuleSet { get { throw null; } set { } } + public Azure.Provisioning.KeyVault.ManagedHsmNetworkRuleSet NetworkRuleSet { get { throw null; } set { } } public Azure.Provisioning.BicepList PrivateEndpointConnections { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepList Regions { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScheduledPurgeOn { get { throw null; } } - public Azure.Provisioning.BicepValue SecurityDomainProperties { get { throw null; } } + public Azure.Provisioning.KeyVault.ManagedHSMSecurityDomainProperties SecurityDomainProperties { get { throw null; } } public Azure.Provisioning.BicepValue SoftDeleteRetentionInDays { get { throw null; } set { } } public Azure.Provisioning.BicepValue StatusMessage { get { throw null; } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ManagedHsmProvisioningState { @@ -556,12 +576,14 @@ public partial class ManagedHSMSecurityDomainProperties : Azure.Provisioning.Pri public ManagedHSMSecurityDomainProperties() { } public Azure.Provisioning.BicepValue ActivationStatus { get { throw null; } } public Azure.Provisioning.BicepValue ActivationStatusMessage { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedHsmSku : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedHsmSku() { } public Azure.Provisioning.BicepValue Family { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ManagedHsmSkuFamily { @@ -580,6 +602,7 @@ public partial class ManagedHsmVirtualNetworkRule : Azure.Provisioning.Primitive { public ManagedHsmVirtualNetworkRule() { } public Azure.Provisioning.BicepValue SubnetId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SecretAttributes : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -589,14 +612,16 @@ public SecretAttributes() { } public Azure.Provisioning.BicepValue Expires { get { throw null; } set { } } public Azure.Provisioning.BicepValue NotBefore { get { throw null; } set { } } public Azure.Provisioning.BicepValue Updated { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class SecretProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { public SecretProperties() { } - public Azure.Provisioning.BicepValue Attributes { get { throw null; } set { } } + public Azure.Provisioning.KeyVault.SecretAttributes Attributes { get { throw null; } set { } } public Azure.Provisioning.BicepValue ContentType { get { throw null; } set { } } public Azure.Provisioning.BicepValue SecretUri { get { throw null; } } public Azure.Provisioning.BicepValue SecretUriWithVersion { get { throw null; } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/KeyVaultPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/KeyVaultPrivateEndpointConnection.cs index 3f298632c8d88..b01408496b725 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/KeyVaultPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/KeyVaultPrivateEndpointConnection.cs @@ -22,63 +22,97 @@ public partial class KeyVaultPrivateEndpointConnection : ProvisionableResource /// /// Name of the private endpoint connection associated with the key vault. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Approval state of the private link connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public KeyVaultPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private KeyVaultPrivateLinkServiceConnectionState? _connectionState; /// /// Modified whenever there is a change in the state of private endpoint /// connection. /// - public BicepValue ETag { get => _eTag; set => _eTag.Assign(value); } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + set { Initialize(); _eTag!.Assign(value); } + } + private BicepValue? _eTag; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Azure location of the key vault resource. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// Provisioning state of the private endpoint connection. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Tags assigned to the key vault resource. /// - public BicepDictionary Tags { get => _tags; } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + } + private BicepDictionary? _tags; /// /// Gets or sets a reference to the parent KeyVaultService. /// - public KeyVaultService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public KeyVaultService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new KeyVaultPrivateEndpointConnection. @@ -93,16 +127,24 @@ public partial class KeyVaultPrivateEndpointConnection : ProvisionableResource public KeyVaultPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.KeyVault/vaults/privateEndpointConnections", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// KeyVaultPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _eTag = DefineProperty("ETag", ["etag"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _tags = DefineDictionaryProperty("Tags", ["tags"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/KeyVaultSecret.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/KeyVaultSecret.cs index 86f8387363bf3..1b87531731286 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/KeyVaultSecret.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/KeyVaultSecret.cs @@ -24,44 +24,69 @@ public partial class KeyVaultSecret : ProvisionableResource /// the purpose of running the service. The value provided should not /// include personally identifiable or sensitive information. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Properties of the secret. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public SecretProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private SecretProperties? _properties; /// /// The tags that will be assigned to the secret. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Azure location of the key vault resource. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent KeyVaultService. /// - public KeyVaultService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public KeyVaultService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new KeyVaultSecret. @@ -76,13 +101,20 @@ public partial class KeyVaultSecret : ProvisionableResource public KeyVaultSecret(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.KeyVault/vaults/secrets", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"], isRequired: true); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of KeyVaultSecret. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"], isRequired: true); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/KeyVaultService.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/KeyVaultService.cs index 74175c251abd8..f09d960ff3f03 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/KeyVaultService.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/KeyVaultService.cs @@ -26,38 +26,60 @@ public partial class KeyVaultService : ProvisionableResource /// /// Name of the vault. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The supported Azure location where the key vault should be created. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Properties of the vault. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public KeyVaultProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private KeyVaultProperties? _properties; /// /// The tags that will be assigned to the key vault. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new KeyVaultService. @@ -72,12 +94,19 @@ public partial class KeyVaultService : ProvisionableResource public KeyVaultService(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.KeyVault/vaults", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"], isRequired: true); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of KeyVaultService. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"], isRequired: true); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/ManagedHsm.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/ManagedHsm.cs index 16f452c2b80fd..c33a7de643e87 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/ManagedHsm.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/ManagedHsm.cs @@ -22,44 +22,70 @@ public partial class ManagedHsm : ProvisionableResource /// /// Name of the managed HSM Pool. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Properties of the managed HSM. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public ManagedHsmProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private ManagedHsmProperties? _properties; /// /// SKU details. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public ManagedHsmSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private ManagedHsmSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ManagedHsm. @@ -74,13 +100,20 @@ public partial class ManagedHsm : ProvisionableResource public ManagedHsm(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.KeyVault/managedHSMs", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagedHsm. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/ManagedHsmPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/ManagedHsmPrivateEndpointConnection.cs index ccc8b990f4597..e46ebf057fcdf 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/ManagedHsmPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/ManagedHsmPrivateEndpointConnection.cs @@ -23,69 +23,109 @@ public partial class ManagedHsmPrivateEndpointConnection : ProvisionableResource /// Name of the private endpoint connection associated with the managed hsm /// pool. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Modified whenever there is a change in the state of private endpoint /// connection. /// - public BicepValue ETag { get => _eTag; set => _eTag.Assign(value); } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + set { Initialize(); _eTag!.Assign(value); } + } + private BicepValue? _eTag; /// /// Approval state of the private link connection. /// - public BicepValue PrivateLinkServiceConnectionState { get => _privateLinkServiceConnectionState; set => _privateLinkServiceConnectionState.Assign(value); } - private readonly BicepValue _privateLinkServiceConnectionState; + public ManagedHsmPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState + { + get { Initialize(); return _privateLinkServiceConnectionState!; } + set { Initialize(); AssignOrReplace(ref _privateLinkServiceConnectionState, value); } + } + private ManagedHsmPrivateLinkServiceConnectionState? _privateLinkServiceConnectionState; /// /// SKU details. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public ManagedHsmSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private ManagedHsmSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// Provisioning state of the private endpoint connection. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedHsm. /// - public ManagedHsm? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedHsm? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedHsmPrivateEndpointConnection. @@ -100,17 +140,25 @@ public partial class ManagedHsmPrivateEndpointConnection : ProvisionableResource public ManagedHsmPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.KeyVault/managedHSMs/privateEndpointConnections", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"]); - _privateLinkServiceConnectionState = BicepValue.DefineProperty(this, "PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedHsmPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _eTag = DefineProperty("ETag", ["etag"]); + _privateLinkServiceConnectionState = DefineModelProperty("PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/IdentityAccessPermissions.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/IdentityAccessPermissions.cs index 291a481e6aeba..b6bde1144cfcd 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/IdentityAccessPermissions.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/IdentityAccessPermissions.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -16,35 +18,59 @@ public partial class IdentityAccessPermissions : ProvisionableConstruct /// /// Permissions to keys. /// - public BicepList Keys { get => _keys; set => _keys.Assign(value); } - private readonly BicepList _keys; + public BicepList Keys + { + get { Initialize(); return _keys!; } + set { Initialize(); _keys!.Assign(value); } + } + private BicepList? _keys; /// /// Permissions to secrets. /// - public BicepList Secrets { get => _secrets; set => _secrets.Assign(value); } - private readonly BicepList _secrets; + public BicepList Secrets + { + get { Initialize(); return _secrets!; } + set { Initialize(); _secrets!.Assign(value); } + } + private BicepList? _secrets; /// /// Permissions to certificates. /// - public BicepList Certificates { get => _certificates; set => _certificates.Assign(value); } - private readonly BicepList _certificates; + public BicepList Certificates + { + get { Initialize(); return _certificates!; } + set { Initialize(); _certificates!.Assign(value); } + } + private BicepList? _certificates; /// /// Permissions to storage accounts. /// - public BicepList Storage { get => _storage; set => _storage.Assign(value); } - private readonly BicepList _storage; + public BicepList Storage + { + get { Initialize(); return _storage!; } + set { Initialize(); _storage!.Assign(value); } + } + private BicepList? _storage; /// /// Creates a new IdentityAccessPermissions. /// public IdentityAccessPermissions() { - _keys = BicepList.DefineProperty(this, "Keys", ["keys"]); - _secrets = BicepList.DefineProperty(this, "Secrets", ["secrets"]); - _certificates = BicepList.DefineProperty(this, "Certificates", ["certificates"]); - _storage = BicepList.DefineProperty(this, "Storage", ["storage"]); + } + + /// + /// Define all the provisionable properties of IdentityAccessPermissions. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keys = DefineListProperty("Keys", ["keys"]); + _secrets = DefineListProperty("Secrets", ["secrets"]); + _certificates = DefineListProperty("Certificates", ["certificates"]); + _storage = DefineListProperty("Storage", ["storage"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultAccessPolicy.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultAccessPolicy.cs index 64c2638f4ad16..f1ee50fc41942 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultAccessPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultAccessPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,37 +21,61 @@ public partial class KeyVaultAccessPolicy : ProvisionableConstruct /// The Azure Active Directory tenant ID that should be used for /// authenticating requests to the key vault. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// The object ID of a user, service principal or security group in the /// Azure Active Directory tenant for the vault. The object ID must be /// unique for the list of access policies. /// - public BicepValue ObjectId { get => _objectId; set => _objectId.Assign(value); } - private readonly BicepValue _objectId; + public BicepValue ObjectId + { + get { Initialize(); return _objectId!; } + set { Initialize(); _objectId!.Assign(value); } + } + private BicepValue? _objectId; /// /// Application ID of the client making request on behalf of a principal. /// - public BicepValue ApplicationId { get => _applicationId; set => _applicationId.Assign(value); } - private readonly BicepValue _applicationId; + public BicepValue ApplicationId + { + get { Initialize(); return _applicationId!; } + set { Initialize(); _applicationId!.Assign(value); } + } + private BicepValue? _applicationId; /// /// Permissions the identity has for keys, secrets and certificates. /// - public BicepValue Permissions { get => _permissions; set => _permissions.Assign(value); } - private readonly BicepValue _permissions; + public IdentityAccessPermissions Permissions + { + get { Initialize(); return _permissions!; } + set { Initialize(); AssignOrReplace(ref _permissions, value); } + } + private IdentityAccessPermissions? _permissions; /// /// Creates a new KeyVaultAccessPolicy. /// public KeyVaultAccessPolicy() { - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"]); - _objectId = BicepValue.DefineProperty(this, "ObjectId", ["objectId"]); - _applicationId = BicepValue.DefineProperty(this, "ApplicationId", ["applicationId"]); - _permissions = BicepValue.DefineProperty(this, "Permissions", ["permissions"]); + } + + /// + /// Define all the provisionable properties of KeyVaultAccessPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tenantId = DefineProperty("TenantId", ["tenantId"]); + _objectId = DefineProperty("ObjectId", ["objectId"]); + _applicationId = DefineProperty("ApplicationId", ["applicationId"]); + _permissions = DefineModelProperty("Permissions", ["permissions"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultIPRule.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultIPRule.cs index 8e72c1e6a85e6..c8c72a09a68cf 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultIPRule.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultIPRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,14 +21,26 @@ public partial class KeyVaultIPRule : ProvisionableConstruct /// '124.56.78.91' (simple IP address) or /// '124.56.78.0/24' (all addresses that start with 124.56.78). /// - public BicepValue AddressRange { get => _addressRange; set => _addressRange.Assign(value); } - private readonly BicepValue _addressRange; + public BicepValue AddressRange + { + get { Initialize(); return _addressRange!; } + set { Initialize(); _addressRange!.Assign(value); } + } + private BicepValue? _addressRange; /// /// Creates a new KeyVaultIPRule. /// public KeyVaultIPRule() { - _addressRange = BicepValue.DefineProperty(this, "AddressRange", ["value"]); + } + + /// + /// Define all the provisionable properties of KeyVaultIPRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _addressRange = DefineProperty("AddressRange", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultNetworkRuleSet.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultNetworkRuleSet.cs index 2bc527c0a4471..ddf50d59df2e2 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultNetworkRuleSet.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultNetworkRuleSet.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,37 +21,61 @@ public partial class KeyVaultNetworkRuleSet : ProvisionableConstruct /// 'AzureServices' or 'None'. If not specified the /// default is 'AzureServices'. /// - public BicepValue Bypass { get => _bypass; set => _bypass.Assign(value); } - private readonly BicepValue _bypass; + public BicepValue Bypass + { + get { Initialize(); return _bypass!; } + set { Initialize(); _bypass!.Assign(value); } + } + private BicepValue? _bypass; /// /// The default action when no rule from ipRules and from /// virtualNetworkRules match. This is only used after the bypass property /// has been evaluated. /// - public BicepValue DefaultAction { get => _defaultAction; set => _defaultAction.Assign(value); } - private readonly BicepValue _defaultAction; + public BicepValue DefaultAction + { + get { Initialize(); return _defaultAction!; } + set { Initialize(); _defaultAction!.Assign(value); } + } + private BicepValue? _defaultAction; /// /// The list of IP address rules. /// - public BicepList IPRules { get => _iPRules; set => _iPRules.Assign(value); } - private readonly BicepList _iPRules; + public BicepList IPRules + { + get { Initialize(); return _iPRules!; } + set { Initialize(); _iPRules!.Assign(value); } + } + private BicepList? _iPRules; /// /// The list of virtual network rules. /// - public BicepList VirtualNetworkRules { get => _virtualNetworkRules; set => _virtualNetworkRules.Assign(value); } - private readonly BicepList _virtualNetworkRules; + public BicepList VirtualNetworkRules + { + get { Initialize(); return _virtualNetworkRules!; } + set { Initialize(); _virtualNetworkRules!.Assign(value); } + } + private BicepList? _virtualNetworkRules; /// /// Creates a new KeyVaultNetworkRuleSet. /// public KeyVaultNetworkRuleSet() { - _bypass = BicepValue.DefineProperty(this, "Bypass", ["bypass"]); - _defaultAction = BicepValue.DefineProperty(this, "DefaultAction", ["defaultAction"]); - _iPRules = BicepList.DefineProperty(this, "IPRules", ["ipRules"]); - _virtualNetworkRules = BicepList.DefineProperty(this, "VirtualNetworkRules", ["virtualNetworkRules"]); + } + + /// + /// Define all the provisionable properties of KeyVaultNetworkRuleSet. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _bypass = DefineProperty("Bypass", ["bypass"]); + _defaultAction = DefineProperty("DefaultAction", ["defaultAction"]); + _iPRules = DefineListProperty("IPRules", ["ipRules"]); + _virtualNetworkRules = DefineListProperty("VirtualNetworkRules", ["virtualNetworkRules"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionItemData.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionItemData.cs index 5e6103fb9d752..c74d6333b712b 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionItemData.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionItemData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Core; using Azure.Provisioning.Primitives; @@ -18,43 +20,67 @@ public partial class KeyVaultPrivateEndpointConnectionItemData : ProvisionableCo /// /// Id of private endpoint connection. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Modified whenever there is a change in the state of private endpoint /// connection. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// Approval state of the private link connection. /// - public BicepValue ConnectionState { get => _connectionState; } - private readonly BicepValue _connectionState; + public KeyVaultPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + } + private KeyVaultPrivateLinkServiceConnectionState? _connectionState; /// /// Provisioning state of the private endpoint connection. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Creates a new KeyVaultPrivateEndpointConnectionItemData. /// public KeyVaultPrivateEndpointConnectionItemData() { - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// KeyVaultPrivateEndpointConnectionItemData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"], isOutput: true); + _eTag = DefineProperty("ETag", ["etag"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultPrivateLinkServiceConnectionState.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultPrivateLinkServiceConnectionState.cs index 4d1ead6f81106..b42cfbbf7f0ba 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultPrivateLinkServiceConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultPrivateLinkServiceConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,50 @@ public partial class KeyVaultPrivateLinkServiceConnectionState : ProvisionableCo /// Indicates whether the connection has been approved, rejected or removed /// by the key vault owner. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The reason for approval or rejection. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// A message indicating if changes on the service provider require any /// updates on the consumer. /// - public BicepValue ActionsRequired { get => _actionsRequired; set => _actionsRequired.Assign(value); } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + set { Initialize(); _actionsRequired!.Assign(value); } + } + private BicepValue? _actionsRequired; /// /// Creates a new KeyVaultPrivateLinkServiceConnectionState. /// public KeyVaultPrivateLinkServiceConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"]); + } + + /// + /// Define all the provisionable properties of + /// KeyVaultPrivateLinkServiceConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultProperties.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultProperties.cs index 23a2cfb5ff6eb..2dc5360c4965e 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Core; using Azure.Provisioning; @@ -20,14 +22,22 @@ public partial class KeyVaultProperties : ProvisionableConstruct /// The Azure Active Directory tenant ID that should be used for /// authenticating requests to the key vault. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// SKU details. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public KeyVaultSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private KeyVaultSku? _sku; /// /// An array of 0 to 1024 identities that have access to the key vault. All @@ -35,41 +45,64 @@ public partial class KeyVaultProperties : ProvisionableConstruct /// vault's tenant ID. When `createMode` is set to `recover`, access /// policies are not required. Otherwise, access policies are required. /// - public BicepList AccessPolicies { get => _accessPolicies; set => _accessPolicies.Assign(value); } - private readonly BicepList _accessPolicies; + public BicepList AccessPolicies + { + get { Initialize(); return _accessPolicies!; } + set { Initialize(); _accessPolicies!.Assign(value); } + } + private BicepList? _accessPolicies; /// /// The URI of the vault for performing operations on keys and secrets. /// - public BicepValue VaultUri { get => _vaultUri; set => _vaultUri.Assign(value); } - private readonly BicepValue _vaultUri; + public BicepValue VaultUri + { + get { Initialize(); return _vaultUri!; } + set { Initialize(); _vaultUri!.Assign(value); } + } + private BicepValue? _vaultUri; /// /// The resource id of HSM Pool. /// - public BicepValue HsmPoolResourceId { get => _hsmPoolResourceId; } - private readonly BicepValue _hsmPoolResourceId; + public BicepValue HsmPoolResourceId + { + get { Initialize(); return _hsmPoolResourceId!; } + } + private BicepValue? _hsmPoolResourceId; /// /// Property to specify whether Azure Virtual Machines are permitted to /// retrieve certificates stored as secrets from the key vault. /// - public BicepValue EnabledForDeployment { get => _enabledForDeployment; set => _enabledForDeployment.Assign(value); } - private readonly BicepValue _enabledForDeployment; + public BicepValue EnabledForDeployment + { + get { Initialize(); return _enabledForDeployment!; } + set { Initialize(); _enabledForDeployment!.Assign(value); } + } + private BicepValue? _enabledForDeployment; /// /// Property to specify whether Azure Disk Encryption is permitted to /// retrieve secrets from the vault and unwrap keys. /// - public BicepValue EnabledForDiskEncryption { get => _enabledForDiskEncryption; set => _enabledForDiskEncryption.Assign(value); } - private readonly BicepValue _enabledForDiskEncryption; + public BicepValue EnabledForDiskEncryption + { + get { Initialize(); return _enabledForDiskEncryption!; } + set { Initialize(); _enabledForDiskEncryption!.Assign(value); } + } + private BicepValue? _enabledForDiskEncryption; /// /// Property to specify whether Azure Resource Manager is permitted to /// retrieve secrets from the key vault. /// - public BicepValue EnabledForTemplateDeployment { get => _enabledForTemplateDeployment; set => _enabledForTemplateDeployment.Assign(value); } - private readonly BicepValue _enabledForTemplateDeployment; + public BicepValue EnabledForTemplateDeployment + { + get { Initialize(); return _enabledForTemplateDeployment!; } + set { Initialize(); _enabledForTemplateDeployment!.Assign(value); } + } + private BicepValue? _enabledForTemplateDeployment; /// /// Property to specify whether the 'soft delete' functionality @@ -77,14 +110,22 @@ public partial class KeyVaultProperties : ProvisionableConstruct /// or false) when creating new key vault, it will be set to true by /// default. Once set to true, it cannot be reverted to false. /// - public BicepValue EnableSoftDelete { get => _enableSoftDelete; set => _enableSoftDelete.Assign(value); } - private readonly BicepValue _enableSoftDelete; + public BicepValue EnableSoftDelete + { + get { Initialize(); return _enableSoftDelete!; } + set { Initialize(); _enableSoftDelete!.Assign(value); } + } + private BicepValue? _enableSoftDelete; /// /// softDelete data retention days. It accepts >=7 and <=90. /// - public BicepValue SoftDeleteRetentionInDays { get => _softDeleteRetentionInDays; set => _softDeleteRetentionInDays.Assign(value); } - private readonly BicepValue _softDeleteRetentionInDays; + public BicepValue SoftDeleteRetentionInDays + { + get { Initialize(); return _softDeleteRetentionInDays!; } + set { Initialize(); _softDeleteRetentionInDays!.Assign(value); } + } + private BicepValue? _softDeleteRetentionInDays; /// /// Property that controls how data actions are authorized. When true, the @@ -96,15 +137,23 @@ public partial class KeyVaultProperties : ProvisionableConstruct /// is created with the default value of false. Note that management /// actions are always authorized with RBAC. /// - public BicepValue EnableRbacAuthorization { get => _enableRbacAuthorization; set => _enableRbacAuthorization.Assign(value); } - private readonly BicepValue _enableRbacAuthorization; + public BicepValue EnableRbacAuthorization + { + get { Initialize(); return _enableRbacAuthorization!; } + set { Initialize(); _enableRbacAuthorization!.Assign(value); } + } + private BicepValue? _enableRbacAuthorization; /// /// The vault's create mode to indicate whether the vault need to be /// recovered or not. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// Property specifying whether protection against purge is enabled for @@ -115,27 +164,42 @@ public partial class KeyVaultProperties : ProvisionableConstruct /// irreversible - that is, the property does not accept false as its /// value. /// - public BicepValue EnablePurgeProtection { get => _enablePurgeProtection; set => _enablePurgeProtection.Assign(value); } - private readonly BicepValue _enablePurgeProtection; + public BicepValue EnablePurgeProtection + { + get { Initialize(); return _enablePurgeProtection!; } + set { Initialize(); _enablePurgeProtection!.Assign(value); } + } + private BicepValue? _enablePurgeProtection; /// /// Rules governing the accessibility of the key vault from specific /// network locations. /// - public BicepValue NetworkRuleSet { get => _networkRuleSet; set => _networkRuleSet.Assign(value); } - private readonly BicepValue _networkRuleSet; + public KeyVaultNetworkRuleSet NetworkRuleSet + { + get { Initialize(); return _networkRuleSet!; } + set { Initialize(); AssignOrReplace(ref _networkRuleSet, value); } + } + private KeyVaultNetworkRuleSet? _networkRuleSet; /// /// Provisioning state of the vault. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// List of private endpoint connections associated with the key vault. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// Property to specify whether the vault will accept traffic from public @@ -144,30 +208,42 @@ public partial class KeyVaultProperties : ProvisionableConstruct /// be blocked. This will override the set firewall rules, meaning that /// even if the firewall rules are present we will not honor the rules. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Creates a new KeyVaultProperties. /// public KeyVaultProperties() { - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _accessPolicies = BicepList.DefineProperty(this, "AccessPolicies", ["accessPolicies"]); - _vaultUri = BicepValue.DefineProperty(this, "VaultUri", ["vaultUri"]); - _hsmPoolResourceId = BicepValue.DefineProperty(this, "HsmPoolResourceId", ["hsmPoolResourceId"], isOutput: true); - _enabledForDeployment = BicepValue.DefineProperty(this, "EnabledForDeployment", ["enabledForDeployment"]); - _enabledForDiskEncryption = BicepValue.DefineProperty(this, "EnabledForDiskEncryption", ["enabledForDiskEncryption"]); - _enabledForTemplateDeployment = BicepValue.DefineProperty(this, "EnabledForTemplateDeployment", ["enabledForTemplateDeployment"]); - _enableSoftDelete = BicepValue.DefineProperty(this, "EnableSoftDelete", ["enableSoftDelete"]); - _softDeleteRetentionInDays = BicepValue.DefineProperty(this, "SoftDeleteRetentionInDays", ["softDeleteRetentionInDays"]); - _enableRbacAuthorization = BicepValue.DefineProperty(this, "EnableRbacAuthorization", ["enableRbacAuthorization"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["createMode"]); - _enablePurgeProtection = BicepValue.DefineProperty(this, "EnablePurgeProtection", ["enablePurgeProtection"]); - _networkRuleSet = BicepValue.DefineProperty(this, "NetworkRuleSet", ["networkAcls"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"]); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["privateEndpointConnections"], isOutput: true); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["publicNetworkAccess"]); + } + + /// + /// Define all the provisionable properties of KeyVaultProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tenantId = DefineProperty("TenantId", ["tenantId"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _accessPolicies = DefineListProperty("AccessPolicies", ["accessPolicies"]); + _vaultUri = DefineProperty("VaultUri", ["vaultUri"]); + _hsmPoolResourceId = DefineProperty("HsmPoolResourceId", ["hsmPoolResourceId"], isOutput: true); + _enabledForDeployment = DefineProperty("EnabledForDeployment", ["enabledForDeployment"]); + _enabledForDiskEncryption = DefineProperty("EnabledForDiskEncryption", ["enabledForDiskEncryption"]); + _enabledForTemplateDeployment = DefineProperty("EnabledForTemplateDeployment", ["enabledForTemplateDeployment"]); + _enableSoftDelete = DefineProperty("EnableSoftDelete", ["enableSoftDelete"]); + _softDeleteRetentionInDays = DefineProperty("SoftDeleteRetentionInDays", ["softDeleteRetentionInDays"]); + _enableRbacAuthorization = DefineProperty("EnableRbacAuthorization", ["enableRbacAuthorization"]); + _createMode = DefineProperty("CreateMode", ["createMode"]); + _enablePurgeProtection = DefineProperty("EnablePurgeProtection", ["enablePurgeProtection"]); + _networkRuleSet = DefineModelProperty("NetworkRuleSet", ["networkAcls"]); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"]); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["privateEndpointConnections"], isOutput: true); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["publicNetworkAccess"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultSku.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultSku.cs index 1e9754642df6b..edc8beaf9b6fa 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultSku.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.KeyVault; @@ -15,22 +17,38 @@ public partial class KeyVaultSku : ProvisionableConstruct /// /// SKU family name. /// - public BicepValue Family { get => _family; set => _family.Assign(value); } - private readonly BicepValue _family; + public BicepValue Family + { + get { Initialize(); return _family!; } + set { Initialize(); _family!.Assign(value); } + } + private BicepValue? _family; /// /// SKU name to specify whether the key vault is a standard vault or a /// premium vault. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new KeyVaultSku. /// public KeyVaultSku() { - _family = BicepValue.DefineProperty(this, "Family", ["family"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of KeyVaultSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _family = DefineProperty("Family", ["family"]); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultVirtualNetworkRule.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultVirtualNetworkRule.cs index 9cc4bbb28d1b6..c70f523906dfb 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultVirtualNetworkRule.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/KeyVaultVirtualNetworkRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,22 +20,38 @@ public partial class KeyVaultVirtualNetworkRule : ProvisionableConstruct /// Full resource id of a vnet subnet, such as /// '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// Property to specify whether NRP will ignore the check if parent subnet /// has serviceEndpoints configured. /// - public BicepValue IgnoreMissingVnetServiceEndpoint { get => _ignoreMissingVnetServiceEndpoint; set => _ignoreMissingVnetServiceEndpoint.Assign(value); } - private readonly BicepValue _ignoreMissingVnetServiceEndpoint; + public BicepValue IgnoreMissingVnetServiceEndpoint + { + get { Initialize(); return _ignoreMissingVnetServiceEndpoint!; } + set { Initialize(); _ignoreMissingVnetServiceEndpoint!.Assign(value); } + } + private BicepValue? _ignoreMissingVnetServiceEndpoint; /// /// Creates a new KeyVaultVirtualNetworkRule. /// public KeyVaultVirtualNetworkRule() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _ignoreMissingVnetServiceEndpoint = BicepValue.DefineProperty(this, "IgnoreMissingVnetServiceEndpoint", ["ignoreMissingVnetServiceEndpoint"]); + } + + /// + /// Define all the provisionable properties of KeyVaultVirtualNetworkRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _ignoreMissingVnetServiceEndpoint = DefineProperty("IgnoreMissingVnetServiceEndpoint", ["ignoreMissingVnetServiceEndpoint"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHSMSecurityDomainProperties.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHSMSecurityDomainProperties.cs index 6ba4996f16682..6fd80178955c4 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHSMSecurityDomainProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHSMSecurityDomainProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,36 @@ public partial class ManagedHSMSecurityDomainProperties : ProvisionableConstruct /// /// Activation Status. /// - public BicepValue ActivationStatus { get => _activationStatus; } - private readonly BicepValue _activationStatus; + public BicepValue ActivationStatus + { + get { Initialize(); return _activationStatus!; } + } + private BicepValue? _activationStatus; /// /// Activation Status Message. /// - public BicepValue ActivationStatusMessage { get => _activationStatusMessage; } - private readonly BicepValue _activationStatusMessage; + public BicepValue ActivationStatusMessage + { + get { Initialize(); return _activationStatusMessage!; } + } + private BicepValue? _activationStatusMessage; /// /// Creates a new ManagedHSMSecurityDomainProperties. /// public ManagedHSMSecurityDomainProperties() { - _activationStatus = BicepValue.DefineProperty(this, "ActivationStatus", ["activationStatus"], isOutput: true); - _activationStatusMessage = BicepValue.DefineProperty(this, "ActivationStatusMessage", ["activationStatusMessage"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedHSMSecurityDomainProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _activationStatus = DefineProperty("ActivationStatus", ["activationStatus"], isOutput: true); + _activationStatusMessage = DefineProperty("ActivationStatusMessage", ["activationStatusMessage"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmGeoReplicatedRegion.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmGeoReplicatedRegion.cs index e3901280a885e..e99e492162578 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmGeoReplicatedRegion.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmGeoReplicatedRegion.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,49 @@ public partial class ManagedHsmGeoReplicatedRegion : ProvisionableConstruct /// /// Name of the geo replicated region. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Provisioning state of the geo replicated region. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// A boolean value that indicates whether the region is the primary region /// or a secondary region. /// - public BicepValue IsPrimary { get => _isPrimary; set => _isPrimary.Assign(value); } - private readonly BicepValue _isPrimary; + public BicepValue IsPrimary + { + get { Initialize(); return _isPrimary!; } + set { Initialize(); _isPrimary!.Assign(value); } + } + private BicepValue? _isPrimary; /// /// Creates a new ManagedHsmGeoReplicatedRegion. /// public ManagedHsmGeoReplicatedRegion() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); - _isPrimary = BicepValue.DefineProperty(this, "IsPrimary", ["isPrimary"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedHsmGeoReplicatedRegion. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _isPrimary = DefineProperty("IsPrimary", ["isPrimary"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmIPRule.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmIPRule.cs index d2a96bb7d0ffc..ac9801106663e 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmIPRule.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmIPRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,14 +21,26 @@ public partial class ManagedHsmIPRule : ProvisionableConstruct /// '124.56.78.91' (simple IP address) or /// '124.56.78.0/24' (all addresses that start with 124.56.78). /// - public BicepValue AddressRange { get => _addressRange; set => _addressRange.Assign(value); } - private readonly BicepValue _addressRange; + public BicepValue AddressRange + { + get { Initialize(); return _addressRange!; } + set { Initialize(); _addressRange!.Assign(value); } + } + private BicepValue? _addressRange; /// /// Creates a new ManagedHsmIPRule. /// public ManagedHsmIPRule() { - _addressRange = BicepValue.DefineProperty(this, "AddressRange", ["value"]); + } + + /// + /// Define all the provisionable properties of ManagedHsmIPRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _addressRange = DefineProperty("AddressRange", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmNetworkRuleSet.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmNetworkRuleSet.cs index bab21c5d27f34..10b6ee7ad72fe 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmNetworkRuleSet.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmNetworkRuleSet.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -20,37 +22,61 @@ public partial class ManagedHsmNetworkRuleSet : ProvisionableConstruct /// 'AzureServices' or 'None'. If not specified the /// default is 'AzureServices'. /// - public BicepValue Bypass { get => _bypass; set => _bypass.Assign(value); } - private readonly BicepValue _bypass; + public BicepValue Bypass + { + get { Initialize(); return _bypass!; } + set { Initialize(); _bypass!.Assign(value); } + } + private BicepValue? _bypass; /// /// The default action when no rule from ipRules and from /// virtualNetworkRules match. This is only used after the bypass property /// has been evaluated. /// - public BicepValue DefaultAction { get => _defaultAction; set => _defaultAction.Assign(value); } - private readonly BicepValue _defaultAction; + public BicepValue DefaultAction + { + get { Initialize(); return _defaultAction!; } + set { Initialize(); _defaultAction!.Assign(value); } + } + private BicepValue? _defaultAction; /// /// The list of IP address rules. /// - public BicepList IPRules { get => _iPRules; set => _iPRules.Assign(value); } - private readonly BicepList _iPRules; + public BicepList IPRules + { + get { Initialize(); return _iPRules!; } + set { Initialize(); _iPRules!.Assign(value); } + } + private BicepList? _iPRules; /// /// The list of virtual network rules. /// - public BicepList VirtualNetworkRules { get => _virtualNetworkRules; set => _virtualNetworkRules.Assign(value); } - private readonly BicepList _virtualNetworkRules; + public BicepList VirtualNetworkRules + { + get { Initialize(); return _virtualNetworkRules!; } + set { Initialize(); _virtualNetworkRules!.Assign(value); } + } + private BicepList? _virtualNetworkRules; /// /// Creates a new ManagedHsmNetworkRuleSet. /// public ManagedHsmNetworkRuleSet() { - _bypass = BicepValue.DefineProperty(this, "Bypass", ["bypass"]); - _defaultAction = BicepValue.DefineProperty(this, "DefaultAction", ["defaultAction"]); - _iPRules = BicepList.DefineProperty(this, "IPRules", ["ipRules"]); - _virtualNetworkRules = BicepList.DefineProperty(this, "VirtualNetworkRules", ["virtualNetworkRules"]); + } + + /// + /// Define all the provisionable properties of ManagedHsmNetworkRuleSet. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _bypass = DefineProperty("Bypass", ["bypass"]); + _defaultAction = DefineProperty("DefaultAction", ["defaultAction"]); + _iPRules = DefineListProperty("IPRules", ["ipRules"]); + _virtualNetworkRules = DefineListProperty("VirtualNetworkRules", ["virtualNetworkRules"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionItemData.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionItemData.cs index d70b8be3270e8..4cd1c33ad9916 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionItemData.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionItemData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Core; using Azure.Provisioning.Primitives; @@ -18,43 +20,67 @@ public partial class ManagedHsmPrivateEndpointConnectionItemData : Provisionable /// /// Id of private endpoint connection. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Modified whenever there is a change in the state of private endpoint /// connection. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// Approval state of the private link connection. /// - public BicepValue PrivateLinkServiceConnectionState { get => _privateLinkServiceConnectionState; } - private readonly BicepValue _privateLinkServiceConnectionState; + public ManagedHsmPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState + { + get { Initialize(); return _privateLinkServiceConnectionState!; } + } + private ManagedHsmPrivateLinkServiceConnectionState? _privateLinkServiceConnectionState; /// /// Provisioning state of the private endpoint connection. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Creates a new ManagedHsmPrivateEndpointConnectionItemData. /// public ManagedHsmPrivateEndpointConnectionItemData() { - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _privateLinkServiceConnectionState = BicepValue.DefineProperty(this, "PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedHsmPrivateEndpointConnectionItemData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"], isOutput: true); + _eTag = DefineProperty("ETag", ["etag"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _privateLinkServiceConnectionState = DefineModelProperty("PrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkServiceConnectionState.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkServiceConnectionState.cs index a419b887b7066..6aaba337fac8c 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkServiceConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkServiceConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,50 @@ public partial class ManagedHsmPrivateLinkServiceConnectionState : Provisionable /// Indicates whether the connection has been approved, rejected or removed /// by the key vault owner. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The reason for approval or rejection. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// A message indicating if changes on the service provider require any /// updates on the consumer. /// - public BicepValue ActionsRequired { get => _actionsRequired; set => _actionsRequired.Assign(value); } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + set { Initialize(); _actionsRequired!.Assign(value); } + } + private BicepValue? _actionsRequired; /// /// Creates a new ManagedHsmPrivateLinkServiceConnectionState. /// public ManagedHsmPrivateLinkServiceConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedHsmPrivateLinkServiceConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmProperties.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmProperties.cs index b8b3686300f83..4297c72831db9 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Core; using Azure.Provisioning; @@ -20,36 +22,55 @@ public partial class ManagedHsmProperties : ProvisionableConstruct /// The Azure Active Directory tenant ID that should be used for /// authenticating requests to the managed HSM pool. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// Array of initial administrators object ids for this managed hsm pool. /// - public BicepList InitialAdminObjectIds { get => _initialAdminObjectIds; set => _initialAdminObjectIds.Assign(value); } - private readonly BicepList _initialAdminObjectIds; + public BicepList InitialAdminObjectIds + { + get { Initialize(); return _initialAdminObjectIds!; } + set { Initialize(); _initialAdminObjectIds!.Assign(value); } + } + private BicepList? _initialAdminObjectIds; /// /// The URI of the managed hsm pool for performing operations on keys. /// - public BicepValue HsmUri { get => _hsmUri; } - private readonly BicepValue _hsmUri; + public BicepValue HsmUri + { + get { Initialize(); return _hsmUri!; } + } + private BicepValue? _hsmUri; /// /// Property to specify whether the 'soft delete' functionality /// is enabled for this managed HSM pool. Soft delete is enabled by /// default for all managed HSMs and is immutable. /// - public BicepValue EnableSoftDelete { get => _enableSoftDelete; set => _enableSoftDelete.Assign(value); } - private readonly BicepValue _enableSoftDelete; + public BicepValue EnableSoftDelete + { + get { Initialize(); return _enableSoftDelete!; } + set { Initialize(); _enableSoftDelete!.Assign(value); } + } + private BicepValue? _enableSoftDelete; /// /// Soft deleted data retention days. When you delete an HSM or a key, it /// will remain recoverable for the configured retention period or for a /// default period of 90 days. It accepts values between 7 and 90. /// - public BicepValue SoftDeleteRetentionInDays { get => _softDeleteRetentionInDays; set => _softDeleteRetentionInDays.Assign(value); } - private readonly BicepValue _softDeleteRetentionInDays; + public BicepValue SoftDeleteRetentionInDays + { + get { Initialize(); return _softDeleteRetentionInDays!; } + set { Initialize(); _softDeleteRetentionInDays!.Assign(value); } + } + private BicepValue? _softDeleteRetentionInDays; /// /// Property specifying whether protection against purge is enabled for @@ -58,85 +79,128 @@ public partial class ManagedHsmProperties : ProvisionableConstruct /// only the Managed HSM service may initiate a hard, irrecoverable /// deletion. Enabling this functionality is irreversible. /// - public BicepValue EnablePurgeProtection { get => _enablePurgeProtection; set => _enablePurgeProtection.Assign(value); } - private readonly BicepValue _enablePurgeProtection; + public BicepValue EnablePurgeProtection + { + get { Initialize(); return _enablePurgeProtection!; } + set { Initialize(); _enablePurgeProtection!.Assign(value); } + } + private BicepValue? _enablePurgeProtection; /// /// The create mode to indicate whether the resource is being created or is /// being recovered from a deleted resource. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// Resource Status Message. /// - public BicepValue StatusMessage { get => _statusMessage; } - private readonly BicepValue _statusMessage; + public BicepValue StatusMessage + { + get { Initialize(); return _statusMessage!; } + } + private BicepValue? _statusMessage; /// /// Provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Rules governing the accessibility of the key vault from specific /// network locations. /// - public BicepValue NetworkRuleSet { get => _networkRuleSet; set => _networkRuleSet.Assign(value); } - private readonly BicepValue _networkRuleSet; + public ManagedHsmNetworkRuleSet NetworkRuleSet + { + get { Initialize(); return _networkRuleSet!; } + set { Initialize(); AssignOrReplace(ref _networkRuleSet, value); } + } + private ManagedHsmNetworkRuleSet? _networkRuleSet; /// /// List of all regions associated with the managed hsm pool. /// - public BicepList Regions { get => _regions; set => _regions.Assign(value); } - private readonly BicepList _regions; + public BicepList Regions + { + get { Initialize(); return _regions!; } + set { Initialize(); _regions!.Assign(value); } + } + private BicepList? _regions; /// /// List of private endpoint connections associated with the managed hsm /// pool. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// Control permission to the managed HSM from public networks. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// The scheduled purge date in UTC. /// - public BicepValue ScheduledPurgeOn { get => _scheduledPurgeOn; } - private readonly BicepValue _scheduledPurgeOn; + public BicepValue ScheduledPurgeOn + { + get { Initialize(); return _scheduledPurgeOn!; } + } + private BicepValue? _scheduledPurgeOn; /// /// Managed HSM security domain properties. /// - public BicepValue SecurityDomainProperties { get => _securityDomainProperties; } - private readonly BicepValue _securityDomainProperties; + public ManagedHSMSecurityDomainProperties SecurityDomainProperties + { + get { Initialize(); return _securityDomainProperties!; } + } + private ManagedHSMSecurityDomainProperties? _securityDomainProperties; /// /// Creates a new ManagedHsmProperties. /// public ManagedHsmProperties() { - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"]); - _initialAdminObjectIds = BicepList.DefineProperty(this, "InitialAdminObjectIds", ["initialAdminObjectIds"]); - _hsmUri = BicepValue.DefineProperty(this, "HsmUri", ["hsmUri"], isOutput: true); - _enableSoftDelete = BicepValue.DefineProperty(this, "EnableSoftDelete", ["enableSoftDelete"]); - _softDeleteRetentionInDays = BicepValue.DefineProperty(this, "SoftDeleteRetentionInDays", ["softDeleteRetentionInDays"]); - _enablePurgeProtection = BicepValue.DefineProperty(this, "EnablePurgeProtection", ["enablePurgeProtection"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["createMode"]); - _statusMessage = BicepValue.DefineProperty(this, "StatusMessage", ["statusMessage"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); - _networkRuleSet = BicepValue.DefineProperty(this, "NetworkRuleSet", ["networkAcls"]); - _regions = BicepList.DefineProperty(this, "Regions", ["regions"]); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["privateEndpointConnections"], isOutput: true); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["publicNetworkAccess"]); - _scheduledPurgeOn = BicepValue.DefineProperty(this, "ScheduledPurgeOn", ["scheduledPurgeDate"], isOutput: true); - _securityDomainProperties = BicepValue.DefineProperty(this, "SecurityDomainProperties", ["securityDomainProperties"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagedHsmProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tenantId = DefineProperty("TenantId", ["tenantId"]); + _initialAdminObjectIds = DefineListProperty("InitialAdminObjectIds", ["initialAdminObjectIds"]); + _hsmUri = DefineProperty("HsmUri", ["hsmUri"], isOutput: true); + _enableSoftDelete = DefineProperty("EnableSoftDelete", ["enableSoftDelete"]); + _softDeleteRetentionInDays = DefineProperty("SoftDeleteRetentionInDays", ["softDeleteRetentionInDays"]); + _enablePurgeProtection = DefineProperty("EnablePurgeProtection", ["enablePurgeProtection"]); + _createMode = DefineProperty("CreateMode", ["createMode"]); + _statusMessage = DefineProperty("StatusMessage", ["statusMessage"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _networkRuleSet = DefineModelProperty("NetworkRuleSet", ["networkAcls"]); + _regions = DefineListProperty("Regions", ["regions"]); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["privateEndpointConnections"], isOutput: true); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["publicNetworkAccess"]); + _scheduledPurgeOn = DefineProperty("ScheduledPurgeOn", ["scheduledPurgeDate"], isOutput: true); + _securityDomainProperties = DefineModelProperty("SecurityDomainProperties", ["securityDomainProperties"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmSku.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmSku.cs index ddb556df05734..55962499cc012 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmSku.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.KeyVault; @@ -15,21 +17,37 @@ public partial class ManagedHsmSku : ProvisionableConstruct /// /// SKU Family of the managed HSM Pool. /// - public BicepValue Family { get => _family; set => _family.Assign(value); } - private readonly BicepValue _family; + public BicepValue Family + { + get { Initialize(); return _family!; } + set { Initialize(); _family!.Assign(value); } + } + private BicepValue? _family; /// /// SKU of the managed HSM Pool. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new ManagedHsmSku. /// public ManagedHsmSku() { - _family = BicepValue.DefineProperty(this, "Family", ["family"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of ManagedHsmSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _family = DefineProperty("Family", ["family"]); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmVirtualNetworkRule.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmVirtualNetworkRule.cs index 3c94ad314a568..b5fa069c58487 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmVirtualNetworkRule.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/ManagedHsmVirtualNetworkRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -18,14 +20,26 @@ public partial class ManagedHsmVirtualNetworkRule : ProvisionableConstruct /// Full resource id of a vnet subnet, such as /// '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. /// - public BicepValue SubnetId { get => _subnetId; set => _subnetId.Assign(value); } - private readonly BicepValue _subnetId; + public BicepValue SubnetId + { + get { Initialize(); return _subnetId!; } + set { Initialize(); _subnetId!.Assign(value); } + } + private BicepValue? _subnetId; /// /// Creates a new ManagedHsmVirtualNetworkRule. /// public ManagedHsmVirtualNetworkRule() { - _subnetId = BicepValue.DefineProperty(this, "SubnetId", ["id"]); + } + + /// + /// Define all the provisionable properties of ManagedHsmVirtualNetworkRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _subnetId = DefineProperty("SubnetId", ["id"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/SecretAttributes.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/SecretAttributes.cs index 58fa2d323e2bb..315d61370daf2 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/SecretAttributes.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/SecretAttributes.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,68 @@ public partial class SecretAttributes : ProvisionableConstruct /// /// Determines whether the object is enabled. /// - public BicepValue Enabled { get => _enabled; set => _enabled.Assign(value); } - private readonly BicepValue _enabled; + public BicepValue Enabled + { + get { Initialize(); return _enabled!; } + set { Initialize(); _enabled!.Assign(value); } + } + private BicepValue? _enabled; /// /// Not before date in seconds since 1970-01-01T00:00:00Z. /// - public BicepValue NotBefore { get => _notBefore; set => _notBefore.Assign(value); } - private readonly BicepValue _notBefore; + public BicepValue NotBefore + { + get { Initialize(); return _notBefore!; } + set { Initialize(); _notBefore!.Assign(value); } + } + private BicepValue? _notBefore; /// /// Expiry date in seconds since 1970-01-01T00:00:00Z. /// - public BicepValue Expires { get => _expires; set => _expires.Assign(value); } - private readonly BicepValue _expires; + public BicepValue Expires + { + get { Initialize(); return _expires!; } + set { Initialize(); _expires!.Assign(value); } + } + private BicepValue? _expires; /// /// Creation time in seconds since 1970-01-01T00:00:00Z. /// - public BicepValue Created { get => _created; } - private readonly BicepValue _created; + public BicepValue Created + { + get { Initialize(); return _created!; } + } + private BicepValue? _created; /// /// Last updated time in seconds since 1970-01-01T00:00:00Z. /// - public BicepValue Updated { get => _updated; } - private readonly BicepValue _updated; + public BicepValue Updated + { + get { Initialize(); return _updated!; } + } + private BicepValue? _updated; /// /// Creates a new SecretAttributes. /// public SecretAttributes() { - _enabled = BicepValue.DefineProperty(this, "Enabled", ["enabled"]); - _notBefore = BicepValue.DefineProperty(this, "NotBefore", ["nbf"]); - _expires = BicepValue.DefineProperty(this, "Expires", ["exp"]); - _created = BicepValue.DefineProperty(this, "Created", ["created"], isOutput: true); - _updated = BicepValue.DefineProperty(this, "Updated", ["updated"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SecretAttributes. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _enabled = DefineProperty("Enabled", ["enabled"]); + _notBefore = DefineProperty("NotBefore", ["nbf"]); + _expires = DefineProperty("Expires", ["exp"]); + _created = DefineProperty("Created", ["created"], isOutput: true); + _updated = DefineProperty("Updated", ["updated"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/SecretProperties.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/SecretProperties.cs index fd9ed0e40441a..946d1b02004af 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/SecretProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/src/Generated/Models/SecretProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,42 +21,68 @@ public partial class SecretProperties : ProvisionableConstruct /// internal use in ARM deployments. Users should use the data-plane REST /// service for interaction with vault secrets. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// The content type of the secret. /// - public BicepValue ContentType { get => _contentType; set => _contentType.Assign(value); } - private readonly BicepValue _contentType; + public BicepValue ContentType + { + get { Initialize(); return _contentType!; } + set { Initialize(); _contentType!.Assign(value); } + } + private BicepValue? _contentType; /// /// The attributes of the secret. /// - public BicepValue Attributes { get => _attributes; set => _attributes.Assign(value); } - private readonly BicepValue _attributes; + public SecretAttributes Attributes + { + get { Initialize(); return _attributes!; } + set { Initialize(); AssignOrReplace(ref _attributes, value); } + } + private SecretAttributes? _attributes; /// /// The URI to retrieve the current version of the secret. /// - public BicepValue SecretUri { get => _secretUri; } - private readonly BicepValue _secretUri; + public BicepValue SecretUri + { + get { Initialize(); return _secretUri!; } + } + private BicepValue? _secretUri; /// /// The URI to retrieve the specific version of the secret. /// - public BicepValue SecretUriWithVersion { get => _secretUriWithVersion; } - private readonly BicepValue _secretUriWithVersion; + public BicepValue SecretUriWithVersion + { + get { Initialize(); return _secretUriWithVersion!; } + } + private BicepValue? _secretUriWithVersion; /// /// Creates a new SecretProperties. /// public SecretProperties() { - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _contentType = BicepValue.DefineProperty(this, "ContentType", ["contentType"]); - _attributes = BicepValue.DefineProperty(this, "Attributes", ["attributes"]); - _secretUri = BicepValue.DefineProperty(this, "SecretUri", ["secretUri"], isOutput: true); - _secretUriWithVersion = BicepValue.DefineProperty(this, "SecretUriWithVersion", ["secretUriWithVersion"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SecretProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _value = DefineProperty("Value", ["value"]); + _contentType = DefineProperty("ContentType", ["contentType"]); + _attributes = DefineModelProperty("Attributes", ["attributes"]); + _secretUri = DefineProperty("SecretUri", ["secretUri"], isOutput: true); + _secretUriWithVersion = DefineProperty("SecretUriWithVersion", ["secretUriWithVersion"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.KeyVault/tests/BasicKeyVaultTests.cs b/sdk/provisioning/Azure.Provisioning.KeyVault/tests/BasicKeyVaultTests.cs index b97a9d61c444e..a8d17d804c2fe 100644 --- a/sdk/provisioning/Azure.Provisioning.KeyVault/tests/BasicKeyVaultTests.cs +++ b/sdk/provisioning/Azure.Provisioning.KeyVault/tests/BasicKeyVaultTests.cs @@ -97,6 +97,7 @@ await test.Define( infra.Add(new ProvisioningOutput("name", typeof(string)) { Value = kv.Name }); infra.Add(new ProvisioningOutput("resourceId", typeof(string)) { Value = kv.Id }); + infra.Add(new ProvisioningOutput("vaultUri", typeof(string)) { Value = kv.Properties.VaultUri }); return infra; }) @@ -160,6 +161,8 @@ param objectId string output name string = kv.name output resourceId string = kv.id + + output vaultUri string = kv.properties.vaultUri """) .Lint() .ValidateAndDeployAsync(); diff --git a/sdk/provisioning/Azure.Provisioning.Kubernetes/api/Azure.Provisioning.Kubernetes.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.Kubernetes/api/Azure.Provisioning.Kubernetes.netstandard2.0.cs index 6a6d9f4a7e491..2d2dcb26cc6ec 100644 --- a/sdk/provisioning/Azure.Provisioning.Kubernetes/api/Azure.Provisioning.Kubernetes.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.Kubernetes/api/Azure.Provisioning.Kubernetes.netstandard2.0.cs @@ -8,7 +8,7 @@ public partial class ConnectedCluster : Azure.Provisioning.Primitives.Provisiona public Azure.Provisioning.BicepValue ConnectivityStatus { get { throw null; } } public Azure.Provisioning.BicepValue Distribution { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Infrastructure { get { throw null; } set { } } public Azure.Provisioning.BicepValue KubernetesVersion { get { throw null; } } public Azure.Provisioning.BicepValue LastConnectivityOn { get { throw null; } } @@ -19,12 +19,13 @@ public partial class ConnectedCluster : Azure.Provisioning.Primitives.Provisiona public Azure.Provisioning.BicepValue PrivateLinkScopeResourceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateLinkState { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TotalCoreCount { get { throw null; } } public Azure.Provisioning.BicepValue TotalNodeCount { get { throw null; } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.Kubernetes.KubernetesBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.Kubernetes.KubernetesBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Kubernetes.ConnectedCluster FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } diff --git a/sdk/provisioning/Azure.Provisioning.Kubernetes/src/Generated/ConnectedCluster.cs b/sdk/provisioning/Azure.Provisioning.Kubernetes/src/Generated/ConnectedCluster.cs index 086cfbc201f45..b40db723c3ede 100644 --- a/sdk/provisioning/Azure.Provisioning.Kubernetes/src/Generated/ConnectedCluster.cs +++ b/sdk/provisioning/Azure.Provisioning.Kubernetes/src/Generated/ConnectedCluster.cs @@ -25,128 +25,198 @@ public partial class ConnectedCluster : ProvisionableResource /// /// The name of the Kubernetes cluster on which get is called. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Base64 encoded public certificate used by the agent to do the initial /// handshake to the backend services in Azure. /// - public BicepValue AgentPublicKeyCertificate { get => _agentPublicKeyCertificate; set => _agentPublicKeyCertificate.Assign(value); } - private readonly BicepValue _agentPublicKeyCertificate; + public BicepValue AgentPublicKeyCertificate + { + get { Initialize(); return _agentPublicKeyCertificate!; } + set { Initialize(); _agentPublicKeyCertificate!.Assign(value); } + } + private BicepValue? _agentPublicKeyCertificate; /// /// The identity of the connected cluster. Current supported identity /// types: None, SystemAssigned. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The Kubernetes distribution running on this connected cluster. /// - public BicepValue Distribution { get => _distribution; set => _distribution.Assign(value); } - private readonly BicepValue _distribution; + public BicepValue Distribution + { + get { Initialize(); return _distribution!; } + set { Initialize(); _distribution!.Assign(value); } + } + private BicepValue? _distribution; /// /// The infrastructure on which the Kubernetes cluster represented by this /// connected cluster is running on. /// - public BicepValue Infrastructure { get => _infrastructure; set => _infrastructure.Assign(value); } - private readonly BicepValue _infrastructure; + public BicepValue Infrastructure + { + get { Initialize(); return _infrastructure!; } + set { Initialize(); _infrastructure!.Assign(value); } + } + private BicepValue? _infrastructure; /// /// The resource id of the private link scope this connected cluster is /// assigned to, if any. /// - public BicepValue PrivateLinkScopeResourceId { get => _privateLinkScopeResourceId; set => _privateLinkScopeResourceId.Assign(value); } - private readonly BicepValue _privateLinkScopeResourceId; + public BicepValue PrivateLinkScopeResourceId + { + get { Initialize(); return _privateLinkScopeResourceId!; } + set { Initialize(); _privateLinkScopeResourceId!.Assign(value); } + } + private BicepValue? _privateLinkScopeResourceId; /// /// Property which describes the state of private link on a connected /// cluster resource. /// - public BicepValue PrivateLinkState { get => _privateLinkState; set => _privateLinkState.Assign(value); } - private readonly BicepValue _privateLinkState; + public BicepValue PrivateLinkState + { + get { Initialize(); return _privateLinkState!; } + set { Initialize(); _privateLinkState!.Assign(value); } + } + private BicepValue? _privateLinkState; /// /// Provisioning state of the connected cluster resource. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Version of the agent running on the connected cluster resource. /// - public BicepValue AgentVersion { get => _agentVersion; } - private readonly BicepValue _agentVersion; + public BicepValue AgentVersion + { + get { Initialize(); return _agentVersion!; } + } + private BicepValue? _agentVersion; /// /// Represents the connectivity status of the connected cluster. /// - public BicepValue ConnectivityStatus { get => _connectivityStatus; } - private readonly BicepValue _connectivityStatus; + public BicepValue ConnectivityStatus + { + get { Initialize(); return _connectivityStatus!; } + } + private BicepValue? _connectivityStatus; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The Kubernetes version of the connected cluster resource. /// - public BicepValue KubernetesVersion { get => _kubernetesVersion; } - private readonly BicepValue _kubernetesVersion; + public BicepValue KubernetesVersion + { + get { Initialize(); return _kubernetesVersion!; } + } + private BicepValue? _kubernetesVersion; /// /// Time representing the last instance when heart beat was received from /// the cluster. /// - public BicepValue LastConnectivityOn { get => _lastConnectivityOn; } - private readonly BicepValue _lastConnectivityOn; + public BicepValue LastConnectivityOn + { + get { Initialize(); return _lastConnectivityOn!; } + } + private BicepValue? _lastConnectivityOn; /// /// Expiration time of the managed identity certificate. /// - public BicepValue ManagedIdentityCertificateExpirationOn { get => _managedIdentityCertificateExpirationOn; } - private readonly BicepValue _managedIdentityCertificateExpirationOn; + public BicepValue ManagedIdentityCertificateExpirationOn + { + get { Initialize(); return _managedIdentityCertificateExpirationOn!; } + } + private BicepValue? _managedIdentityCertificateExpirationOn; /// /// Connected cluster offering. /// - public BicepValue Offering { get => _offering; } - private readonly BicepValue _offering; + public BicepValue Offering + { + get { Initialize(); return _offering!; } + } + private BicepValue? _offering; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Number of CPU cores present in the connected cluster resource. /// - public BicepValue TotalCoreCount { get => _totalCoreCount; } - private readonly BicepValue _totalCoreCount; + public BicepValue TotalCoreCount + { + get { Initialize(); return _totalCoreCount!; } + } + private BicepValue? _totalCoreCount; /// /// Number of nodes present in the connected cluster resource. /// - public BicepValue TotalNodeCount { get => _totalNodeCount; } - private readonly BicepValue _totalNodeCount; + public BicepValue TotalNodeCount + { + get { Initialize(); return _totalNodeCount!; } + } + private BicepValue? _totalNodeCount; /// /// Creates a new ConnectedCluster. @@ -161,26 +231,33 @@ public partial class ConnectedCluster : ProvisionableResource public ConnectedCluster(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Kubernetes/connectedClusters", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _agentPublicKeyCertificate = BicepValue.DefineProperty(this, "AgentPublicKeyCertificate", ["properties", "agentPublicKeyCertificate"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _distribution = BicepValue.DefineProperty(this, "Distribution", ["properties", "distribution"]); - _infrastructure = BicepValue.DefineProperty(this, "Infrastructure", ["properties", "infrastructure"]); - _privateLinkScopeResourceId = BicepValue.DefineProperty(this, "PrivateLinkScopeResourceId", ["properties", "privateLinkScopeResourceId"]); - _privateLinkState = BicepValue.DefineProperty(this, "PrivateLinkState", ["properties", "privateLinkState"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _agentVersion = BicepValue.DefineProperty(this, "AgentVersion", ["properties", "agentVersion"], isOutput: true); - _connectivityStatus = BicepValue.DefineProperty(this, "ConnectivityStatus", ["properties", "connectivityStatus"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _kubernetesVersion = BicepValue.DefineProperty(this, "KubernetesVersion", ["properties", "kubernetesVersion"], isOutput: true); - _lastConnectivityOn = BicepValue.DefineProperty(this, "LastConnectivityOn", ["properties", "lastConnectivityTime"], isOutput: true); - _managedIdentityCertificateExpirationOn = BicepValue.DefineProperty(this, "ManagedIdentityCertificateExpirationOn", ["properties", "managedIdentityCertificateExpirationTime"], isOutput: true); - _offering = BicepValue.DefineProperty(this, "Offering", ["properties", "offering"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _totalCoreCount = BicepValue.DefineProperty(this, "TotalCoreCount", ["properties", "totalCoreCount"], isOutput: true); - _totalNodeCount = BicepValue.DefineProperty(this, "TotalNodeCount", ["properties", "totalNodeCount"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ConnectedCluster. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _agentPublicKeyCertificate = DefineProperty("AgentPublicKeyCertificate", ["properties", "agentPublicKeyCertificate"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _distribution = DefineProperty("Distribution", ["properties", "distribution"]); + _infrastructure = DefineProperty("Infrastructure", ["properties", "infrastructure"]); + _privateLinkScopeResourceId = DefineProperty("PrivateLinkScopeResourceId", ["properties", "privateLinkScopeResourceId"]); + _privateLinkState = DefineProperty("PrivateLinkState", ["properties", "privateLinkState"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _agentVersion = DefineProperty("AgentVersion", ["properties", "agentVersion"], isOutput: true); + _connectivityStatus = DefineProperty("ConnectivityStatus", ["properties", "connectivityStatus"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _kubernetesVersion = DefineProperty("KubernetesVersion", ["properties", "kubernetesVersion"], isOutput: true); + _lastConnectivityOn = DefineProperty("LastConnectivityOn", ["properties", "lastConnectivityTime"], isOutput: true); + _managedIdentityCertificateExpirationOn = DefineProperty("ManagedIdentityCertificateExpirationOn", ["properties", "managedIdentityCertificateExpirationTime"], isOutput: true); + _offering = DefineProperty("Offering", ["properties", "offering"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _totalCoreCount = DefineProperty("TotalCoreCount", ["properties", "totalCoreCount"], isOutput: true); + _totalNodeCount = DefineProperty("TotalNodeCount", ["properties", "totalNodeCount"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/api/Azure.Provisioning.KubernetesConfiguration.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/api/Azure.Provisioning.KubernetesConfiguration.netstandard2.0.cs index 472397d77f034..7e6a494b29d72 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/api/Azure.Provisioning.KubernetesConfiguration.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/api/Azure.Provisioning.KubernetesConfiguration.netstandard2.0.cs @@ -5,15 +5,17 @@ public partial class HelmOperatorProperties : Azure.Provisioning.Primitives.Prov public HelmOperatorProperties() { } public Azure.Provisioning.BicepValue ChartValues { get { throw null; } set { } } public Azure.Provisioning.BicepValue ChartVersion { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class HelmReleaseProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { public HelmReleaseProperties() { } public Azure.Provisioning.BicepValue FailureCount { get { throw null; } } - public Azure.Provisioning.BicepValue HelmChartRef { get { throw null; } } + public Azure.Provisioning.KubernetesConfiguration.KubernetesObjectReference HelmChartRef { get { throw null; } } public Azure.Provisioning.BicepValue InstallFailureCount { get { throw null; } } public Azure.Provisioning.BicepValue LastRevisionApplied { get { throw null; } } public Azure.Provisioning.BicepValue UpgradeFailureCount { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class KubernetesAzureBlob : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -23,10 +25,11 @@ public KubernetesAzureBlob() { } public Azure.Provisioning.BicepValue LocalAuthRef { get { throw null; } set { } } public Azure.Provisioning.BicepValue ManagedIdentityClientId { get { throw null; } set { } } public Azure.Provisioning.BicepValue SasToken { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ServicePrincipal { get { throw null; } set { } } + public Azure.Provisioning.KubernetesConfiguration.KubernetesServicePrincipal ServicePrincipal { get { throw null; } set { } } public Azure.Provisioning.BicepValue SyncIntervalInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeoutInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue Uri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class KubernetesBucket : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -38,11 +41,12 @@ public KubernetesBucket() { } public Azure.Provisioning.BicepValue TimeoutInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue Uri { get { throw null; } set { } } public Azure.Provisioning.BicepValue UseInsecureCommunication { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class KubernetesClusterExtension : Azure.Provisioning.Primitives.ProvisionableResource { public KubernetesClusterExtension(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue AksAssignedIdentity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity AksAssignedIdentity { get { throw null; } set { } } public Azure.Provisioning.BicepValue AutoUpgradeMinorVersion { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary ConfigurationProtectedSettings { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary ConfigurationSettings { get { throw null; } set { } } @@ -51,19 +55,20 @@ public partial class KubernetesClusterExtension : Azure.Provisioning.Primitives. public Azure.Provisioning.BicepValue ErrorInfo { get { throw null; } } public Azure.Provisioning.BicepValue ExtensionType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsSystemExtension { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue PackageUri { get { throw null; } } - public Azure.Provisioning.BicepValue Plan { get { throw null; } set { } } + public Azure.Provisioning.Resources.ArmPlan Plan { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue ReleaseTrain { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Scope { get { throw null; } set { } } + public Azure.Provisioning.KubernetesConfiguration.KubernetesClusterExtensionScope Scope { get { throw null; } set { } } public Azure.Provisioning.BicepList Statuses { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } set { } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.KubernetesConfiguration.KubernetesConfigurationBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.KubernetesConfiguration.KubernetesConfigurationBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.KubernetesConfiguration.KubernetesClusterExtension FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -78,6 +83,7 @@ public partial class KubernetesClusterExtensionScope : Azure.Provisioning.Primit public KubernetesClusterExtensionScope() { } public Azure.Provisioning.BicepValue ClusterReleaseNamespace { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetNamespace { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class KubernetesClusterExtensionStatus : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -87,6 +93,7 @@ public KubernetesClusterExtensionStatus() { } public Azure.Provisioning.BicepValue Level { get { throw null; } set { } } public Azure.Provisioning.BicepValue Message { get { throw null; } set { } } public Azure.Provisioning.BicepValue Time { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum KubernetesClusterExtensionStatusLevel { @@ -131,6 +138,7 @@ public KubernetesConfigurationComplianceStatus() { } public Azure.Provisioning.BicepValue LastConfigAppliedOn { get { throw null; } } public Azure.Provisioning.BicepValue Message { get { throw null; } } public Azure.Provisioning.BicepValue MessageLevel { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum KubernetesConfigurationMesageLevel { @@ -180,12 +188,12 @@ public enum KubernetesFluxComplianceState public partial class KubernetesFluxConfiguration : Azure.Provisioning.Primitives.ProvisionableResource { public KubernetesFluxConfiguration(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue AzureBlob { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Bucket { get { throw null; } set { } } + public Azure.Provisioning.KubernetesConfiguration.KubernetesAzureBlob AzureBlob { get { throw null; } set { } } + public Azure.Provisioning.KubernetesConfiguration.KubernetesBucket Bucket { get { throw null; } set { } } public Azure.Provisioning.BicepValue ComplianceState { get { throw null; } } public Azure.Provisioning.BicepDictionary ConfigurationProtectedSettings { get { throw null; } set { } } public Azure.Provisioning.BicepValue ErrorMessage { get { throw null; } } - public Azure.Provisioning.BicepValue GitRepository { get { throw null; } set { } } + public Azure.Provisioning.KubernetesConfiguration.KubernetesGitRepository GitRepository { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue IsReconciliationSuspended { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary Kustomizations { get { throw null; } set { } } @@ -199,9 +207,10 @@ public partial class KubernetesFluxConfiguration : Azure.Provisioning.Primitives public Azure.Provisioning.BicepValue SourceUpdatedOn { get { throw null; } } public Azure.Provisioning.BicepList Statuses { get { throw null; } } public Azure.Provisioning.BicepValue StatusUpdatedOn { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.KubernetesConfiguration.KubernetesConfigurationBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.KubernetesConfiguration.KubernetesConfigurationBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.KubernetesConfiguration.KubernetesFluxConfiguration FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -217,11 +226,12 @@ public KubernetesGitRepository() { } public Azure.Provisioning.BicepValue HttpsCACert { get { throw null; } set { } } public Azure.Provisioning.BicepValue HttpsUser { get { throw null; } set { } } public Azure.Provisioning.BicepValue LocalAuthRef { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RepositoryRef { get { throw null; } set { } } + public Azure.Provisioning.KubernetesConfiguration.KubernetesGitRepositoryRef RepositoryRef { get { throw null; } set { } } public Azure.Provisioning.BicepValue SshKnownHosts { get { throw null; } set { } } public Azure.Provisioning.BicepValue SyncIntervalInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeoutInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue Uri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class KubernetesGitRepositoryRef : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -230,23 +240,26 @@ public KubernetesGitRepositoryRef() { } public Azure.Provisioning.BicepValue Commit { get { throw null; } set { } } public Azure.Provisioning.BicepValue Semver { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tag { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class KubernetesObjectReference : Azure.Provisioning.Primitives.ProvisionableConstruct { public KubernetesObjectReference() { } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue Namespace { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class KubernetesObjectStatus : Azure.Provisioning.Primitives.ProvisionableConstruct { public KubernetesObjectStatus() { } - public Azure.Provisioning.BicepValue AppliedBy { get { throw null; } } + public Azure.Provisioning.KubernetesConfiguration.KubernetesObjectReference AppliedBy { get { throw null; } } public Azure.Provisioning.BicepValue ComplianceState { get { throw null; } } - public Azure.Provisioning.BicepValue HelmReleaseProperties { get { throw null; } } + public Azure.Provisioning.KubernetesConfiguration.HelmReleaseProperties HelmReleaseProperties { get { throw null; } } public Azure.Provisioning.BicepValue Kind { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue Namespace { get { throw null; } } public Azure.Provisioning.BicepList StatusConditions { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class KubernetesObjectStatusCondition : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -256,6 +269,7 @@ public KubernetesObjectStatusCondition() { } public Azure.Provisioning.BicepValue ObjectStatusConditionDefinitionType { get { throw null; } } public Azure.Provisioning.BicepValue Reason { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum KubernetesOperator { @@ -277,13 +291,14 @@ public KubernetesServicePrincipal() { } public Azure.Provisioning.BicepValue ClientId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ClientSecret { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class KubernetesSourceControlConfiguration : Azure.Provisioning.Primitives.ProvisionableResource { public KubernetesSourceControlConfiguration(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ComplianceStatus { get { throw null; } } + public Azure.Provisioning.KubernetesConfiguration.KubernetesConfigurationComplianceStatus ComplianceStatus { get { throw null; } } public Azure.Provisioning.BicepDictionary ConfigurationProtectedSettings { get { throw null; } set { } } - public Azure.Provisioning.BicepValue HelmOperatorProperties { get { throw null; } set { } } + public Azure.Provisioning.KubernetesConfiguration.HelmOperatorProperties HelmOperatorProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue IsHelmOperatorEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } @@ -296,7 +311,8 @@ public partial class KubernetesSourceControlConfiguration : Azure.Provisioning.P public Azure.Provisioning.BicepValue RepositoryPublicKey { get { throw null; } } public Azure.Provisioning.BicepValue RepositoryUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue SshKnownHostsContents { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.KubernetesConfiguration.KubernetesSourceControlConfiguration FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -318,5 +334,6 @@ public Kustomization() { } public Azure.Provisioning.BicepValue RetryIntervalInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue SyncIntervalInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeoutInSeconds { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/KubernetesClusterExtension.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/KubernetesClusterExtension.cs index a748c8163b047..091c05f00d5e1 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/KubernetesClusterExtension.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/KubernetesClusterExtension.cs @@ -25,133 +25,205 @@ public partial class KubernetesClusterExtension : ProvisionableResource /// /// Name of the Extension. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Identity of the Extension resource in an AKS cluster. Current supported /// identity types: SystemAssigned, UserAssigned. /// - public BicepValue AksAssignedIdentity { get => _aksAssignedIdentity; set => _aksAssignedIdentity.Assign(value); } - private readonly BicepValue _aksAssignedIdentity; + public ManagedServiceIdentity AksAssignedIdentity + { + get { Initialize(); return _aksAssignedIdentity!; } + set { Initialize(); AssignOrReplace(ref _aksAssignedIdentity, value); } + } + private ManagedServiceIdentity? _aksAssignedIdentity; /// /// Flag to note if this extension participates in auto upgrade of minor /// version, or not. /// - public BicepValue AutoUpgradeMinorVersion { get => _autoUpgradeMinorVersion; set => _autoUpgradeMinorVersion.Assign(value); } - private readonly BicepValue _autoUpgradeMinorVersion; + public BicepValue AutoUpgradeMinorVersion + { + get { Initialize(); return _autoUpgradeMinorVersion!; } + set { Initialize(); _autoUpgradeMinorVersion!.Assign(value); } + } + private BicepValue? _autoUpgradeMinorVersion; /// /// Configuration settings that are sensitive, as name-value pairs for /// configuring this extension. /// - public BicepDictionary ConfigurationProtectedSettings { get => _configurationProtectedSettings; set => _configurationProtectedSettings.Assign(value); } - private readonly BicepDictionary _configurationProtectedSettings; + public BicepDictionary ConfigurationProtectedSettings + { + get { Initialize(); return _configurationProtectedSettings!; } + set { Initialize(); _configurationProtectedSettings!.Assign(value); } + } + private BicepDictionary? _configurationProtectedSettings; /// /// Configuration settings, as name-value pairs for configuring this /// extension. /// - public BicepDictionary ConfigurationSettings { get => _configurationSettings; set => _configurationSettings.Assign(value); } - private readonly BicepDictionary _configurationSettings; + public BicepDictionary ConfigurationSettings + { + get { Initialize(); return _configurationSettings!; } + set { Initialize(); _configurationSettings!.Assign(value); } + } + private BicepDictionary? _configurationSettings; /// /// Type of the Extension, of which this resource is an instance of. It /// must be one of the Extension Types registered with /// Microsoft.KubernetesConfiguration by the Extension publisher. /// - public BicepValue ExtensionType { get => _extensionType; set => _extensionType.Assign(value); } - private readonly BicepValue _extensionType; + public BicepValue ExtensionType + { + get { Initialize(); return _extensionType!; } + set { Initialize(); _extensionType!.Assign(value); } + } + private BicepValue? _extensionType; /// /// Identity of the Extension resource. Current supported identity types: /// SystemAssigned. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// The plan information. /// - public BicepValue Plan { get => _plan; set => _plan.Assign(value); } - private readonly BicepValue _plan; + public ArmPlan Plan + { + get { Initialize(); return _plan!; } + set { Initialize(); AssignOrReplace(ref _plan, value); } + } + private ArmPlan? _plan; /// /// ReleaseTrain this extension participates in for auto-upgrade (e.g. /// Stable, Preview, etc.) - only if autoUpgradeMinorVersion is /// 'true'. /// - public BicepValue ReleaseTrain { get => _releaseTrain; set => _releaseTrain.Assign(value); } - private readonly BicepValue _releaseTrain; + public BicepValue ReleaseTrain + { + get { Initialize(); return _releaseTrain!; } + set { Initialize(); _releaseTrain!.Assign(value); } + } + private BicepValue? _releaseTrain; /// /// Scope at which the extension is installed. /// - public BicepValue Scope { get => _scope; set => _scope.Assign(value); } - private readonly BicepValue _scope; + public KubernetesClusterExtensionScope Scope + { + get { Initialize(); return _scope!; } + set { Initialize(); AssignOrReplace(ref _scope, value); } + } + private KubernetesClusterExtensionScope? _scope; /// /// Status from this extension. /// - public BicepList Statuses { get => _statuses; set => _statuses.Assign(value); } - private readonly BicepList _statuses; + public BicepList Statuses + { + get { Initialize(); return _statuses!; } + set { Initialize(); _statuses!.Assign(value); } + } + private BicepList? _statuses; /// /// User-specified version of the extension for this extension to /// 'pin'. To use 'version', autoUpgradeMinorVersion /// must be 'false'. /// - public BicepValue Version { get => _version; set => _version.Assign(value); } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + set { Initialize(); _version!.Assign(value); } + } + private BicepValue? _version; /// /// Currently installed version of the extension. /// - public BicepValue CurrentVersion { get => _currentVersion; } - private readonly BicepValue _currentVersion; + public BicepValue CurrentVersion + { + get { Initialize(); return _currentVersion!; } + } + private BicepValue? _currentVersion; /// /// Custom Location settings properties. /// - public BicepDictionary CustomLocationSettings { get => _customLocationSettings; } - private readonly BicepDictionary _customLocationSettings; + public BicepDictionary CustomLocationSettings + { + get { Initialize(); return _customLocationSettings!; } + } + private BicepDictionary? _customLocationSettings; /// /// Error information from the Agent - e.g. errors during installation. /// - public BicepValue ErrorInfo { get => _errorInfo; } - private readonly BicepValue _errorInfo; + public BicepValue ErrorInfo + { + get { Initialize(); return _errorInfo!; } + } + private BicepValue? _errorInfo; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Flag to note if this extension is a system extension. /// - public BicepValue IsSystemExtension { get => _isSystemExtension; } - private readonly BicepValue _isSystemExtension; + public BicepValue IsSystemExtension + { + get { Initialize(); return _isSystemExtension!; } + } + private BicepValue? _isSystemExtension; /// /// Uri of the Helm package. /// - public BicepValue PackageUri { get => _packageUri; } - private readonly BicepValue _packageUri; + public BicepValue PackageUri + { + get { Initialize(); return _packageUri!; } + } + private BicepValue? _packageUri; /// /// Status of installation of this extension. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new KubernetesClusterExtension. @@ -166,26 +238,33 @@ public partial class KubernetesClusterExtension : ProvisionableResource public KubernetesClusterExtension(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.KubernetesConfiguration/extensions", resourceVersion ?? "2023-05-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _aksAssignedIdentity = BicepValue.DefineProperty(this, "AksAssignedIdentity", ["properties", "aksAssignedIdentity"]); - _autoUpgradeMinorVersion = BicepValue.DefineProperty(this, "AutoUpgradeMinorVersion", ["properties", "autoUpgradeMinorVersion"]); - _configurationProtectedSettings = BicepDictionary.DefineProperty(this, "ConfigurationProtectedSettings", ["properties", "configurationProtectedSettings"]); - _configurationSettings = BicepDictionary.DefineProperty(this, "ConfigurationSettings", ["properties", "configurationSettings"]); - _extensionType = BicepValue.DefineProperty(this, "ExtensionType", ["properties", "extensionType"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _plan = BicepValue.DefineProperty(this, "Plan", ["plan"]); - _releaseTrain = BicepValue.DefineProperty(this, "ReleaseTrain", ["properties", "releaseTrain"]); - _scope = BicepValue.DefineProperty(this, "Scope", ["properties", "scope"]); - _statuses = BicepList.DefineProperty(this, "Statuses", ["properties", "statuses"]); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"]); - _currentVersion = BicepValue.DefineProperty(this, "CurrentVersion", ["properties", "currentVersion"], isOutput: true); - _customLocationSettings = BicepDictionary.DefineProperty(this, "CustomLocationSettings", ["properties", "customLocationSettings"], isOutput: true); - _errorInfo = BicepValue.DefineProperty(this, "ErrorInfo", ["properties", "errorInfo"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isSystemExtension = BicepValue.DefineProperty(this, "IsSystemExtension", ["properties", "isSystemExtension"], isOutput: true); - _packageUri = BicepValue.DefineProperty(this, "PackageUri", ["properties", "packageUri"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of KubernetesClusterExtension. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _aksAssignedIdentity = DefineModelProperty("AksAssignedIdentity", ["properties", "aksAssignedIdentity"]); + _autoUpgradeMinorVersion = DefineProperty("AutoUpgradeMinorVersion", ["properties", "autoUpgradeMinorVersion"]); + _configurationProtectedSettings = DefineDictionaryProperty("ConfigurationProtectedSettings", ["properties", "configurationProtectedSettings"]); + _configurationSettings = DefineDictionaryProperty("ConfigurationSettings", ["properties", "configurationSettings"]); + _extensionType = DefineProperty("ExtensionType", ["properties", "extensionType"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _plan = DefineModelProperty("Plan", ["plan"]); + _releaseTrain = DefineProperty("ReleaseTrain", ["properties", "releaseTrain"]); + _scope = DefineModelProperty("Scope", ["properties", "scope"]); + _statuses = DefineListProperty("Statuses", ["properties", "statuses"]); + _version = DefineProperty("Version", ["properties", "version"]); + _currentVersion = DefineProperty("CurrentVersion", ["properties", "currentVersion"], isOutput: true); + _customLocationSettings = DefineDictionaryProperty("CustomLocationSettings", ["properties", "customLocationSettings"], isOutput: true); + _errorInfo = DefineProperty("ErrorInfo", ["properties", "errorInfo"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isSystemExtension = DefineProperty("IsSystemExtension", ["properties", "isSystemExtension"], isOutput: true); + _packageUri = DefineProperty("PackageUri", ["properties", "packageUri"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/KubernetesFluxConfiguration.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/KubernetesFluxConfiguration.cs index a0600701d3458..18ecb83298a5d 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/KubernetesFluxConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/KubernetesFluxConfiguration.cs @@ -24,131 +24,201 @@ public partial class KubernetesFluxConfiguration : ProvisionableResource /// /// Name of the Flux Configuration. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Parameters to reconcile to the AzureBlob source kind type. /// - public BicepValue AzureBlob { get => _azureBlob; set => _azureBlob.Assign(value); } - private readonly BicepValue _azureBlob; + public KubernetesAzureBlob AzureBlob + { + get { Initialize(); return _azureBlob!; } + set { Initialize(); AssignOrReplace(ref _azureBlob, value); } + } + private KubernetesAzureBlob? _azureBlob; /// /// Parameters to reconcile to the Bucket source kind type. /// - public BicepValue Bucket { get => _bucket; set => _bucket.Assign(value); } - private readonly BicepValue _bucket; + public KubernetesBucket Bucket + { + get { Initialize(); return _bucket!; } + set { Initialize(); AssignOrReplace(ref _bucket, value); } + } + private KubernetesBucket? _bucket; /// /// Key-value pairs of protected configuration settings for the /// configuration. /// - public BicepDictionary ConfigurationProtectedSettings { get => _configurationProtectedSettings; set => _configurationProtectedSettings.Assign(value); } - private readonly BicepDictionary _configurationProtectedSettings; + public BicepDictionary ConfigurationProtectedSettings + { + get { Initialize(); return _configurationProtectedSettings!; } + set { Initialize(); _configurationProtectedSettings!.Assign(value); } + } + private BicepDictionary? _configurationProtectedSettings; /// /// Parameters to reconcile to the GitRepository source kind type. /// - public BicepValue GitRepository { get => _gitRepository; set => _gitRepository.Assign(value); } - private readonly BicepValue _gitRepository; + public KubernetesGitRepository GitRepository + { + get { Initialize(); return _gitRepository!; } + set { Initialize(); AssignOrReplace(ref _gitRepository, value); } + } + private KubernetesGitRepository? _gitRepository; /// /// Whether this configuration should suspend its reconciliation of its /// kustomizations and sources. /// - public BicepValue IsReconciliationSuspended { get => _isReconciliationSuspended; set => _isReconciliationSuspended.Assign(value); } - private readonly BicepValue _isReconciliationSuspended; + public BicepValue IsReconciliationSuspended + { + get { Initialize(); return _isReconciliationSuspended!; } + set { Initialize(); _isReconciliationSuspended!.Assign(value); } + } + private BicepValue? _isReconciliationSuspended; /// /// Array of kustomizations used to reconcile the artifact pulled by the /// source type on the cluster. /// - public BicepDictionary Kustomizations { get => _kustomizations; set => _kustomizations.Assign(value); } - private readonly BicepDictionary _kustomizations; + public BicepDictionary Kustomizations + { + get { Initialize(); return _kustomizations!; } + set { Initialize(); _kustomizations!.Assign(value); } + } + private BicepDictionary? _kustomizations; /// /// The namespace to which this configuration is installed to. Maximum of /// 253 lower case alphanumeric characters, hyphen and period only. /// - public BicepValue Namespace { get => _namespace; set => _namespace.Assign(value); } - private readonly BicepValue _namespace; + public BicepValue Namespace + { + get { Initialize(); return _namespace!; } + set { Initialize(); _namespace!.Assign(value); } + } + private BicepValue? _namespace; /// /// Scope at which the operator will be installed. /// - public BicepValue Scope { get => _scope; set => _scope.Assign(value); } - private readonly BicepValue _scope; + public BicepValue Scope + { + get { Initialize(); return _scope!; } + set { Initialize(); _scope!.Assign(value); } + } + private BicepValue? _scope; /// /// Source Kind to pull the configuration data from. /// - public BicepValue SourceKind { get => _sourceKind; set => _sourceKind.Assign(value); } - private readonly BicepValue _sourceKind; + public BicepValue SourceKind + { + get { Initialize(); return _sourceKind!; } + set { Initialize(); _sourceKind!.Assign(value); } + } + private BicepValue? _sourceKind; /// /// Combined status of the Flux Kubernetes resources created by the /// fluxConfiguration or created by the managed objects. /// - public BicepValue ComplianceState { get => _complianceState; } - private readonly BicepValue _complianceState; + public BicepValue ComplianceState + { + get { Initialize(); return _complianceState!; } + } + private BicepValue? _complianceState; /// /// Error message returned to the user in the case of provisioning failure. /// - public BicepValue ErrorMessage { get => _errorMessage; } - private readonly BicepValue _errorMessage; + public BicepValue ErrorMessage + { + get { Initialize(); return _errorMessage!; } + } + private BicepValue? _errorMessage; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Status of the creation of the fluxConfiguration. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Public Key associated with this fluxConfiguration (either generated /// within the cluster or provided by the user). /// - public BicepValue RepositoryPublicKey { get => _repositoryPublicKey; } - private readonly BicepValue _repositoryPublicKey; + public BicepValue RepositoryPublicKey + { + get { Initialize(); return _repositoryPublicKey!; } + } + private BicepValue? _repositoryPublicKey; /// /// Branch and/or SHA of the source commit synced with the cluster. /// - public BicepValue SourceSyncedCommitId { get => _sourceSyncedCommitId; } - private readonly BicepValue _sourceSyncedCommitId; + public BicepValue SourceSyncedCommitId + { + get { Initialize(); return _sourceSyncedCommitId!; } + } + private BicepValue? _sourceSyncedCommitId; /// /// Datetime the fluxConfiguration synced its source on the cluster. /// - public BicepValue SourceUpdatedOn { get => _sourceUpdatedOn; } - private readonly BicepValue _sourceUpdatedOn; + public BicepValue SourceUpdatedOn + { + get { Initialize(); return _sourceUpdatedOn!; } + } + private BicepValue? _sourceUpdatedOn; /// /// Statuses of the Flux Kubernetes resources created by the /// fluxConfiguration or created by the managed objects provisioned by the /// fluxConfiguration. /// - public BicepList Statuses { get => _statuses; } - private readonly BicepList _statuses; + public BicepList Statuses + { + get { Initialize(); return _statuses!; } + } + private BicepList? _statuses; /// /// Datetime the fluxConfiguration synced its status on the cluster with /// Azure. /// - public BicepValue StatusUpdatedOn { get => _statusUpdatedOn; } - private readonly BicepValue _statusUpdatedOn; + public BicepValue StatusUpdatedOn + { + get { Initialize(); return _statusUpdatedOn!; } + } + private BicepValue? _statusUpdatedOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new KubernetesFluxConfiguration. @@ -163,26 +233,33 @@ public partial class KubernetesFluxConfiguration : ProvisionableResource public KubernetesFluxConfiguration(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.KubernetesConfiguration/fluxConfigurations", resourceVersion ?? "2023-05-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _azureBlob = BicepValue.DefineProperty(this, "AzureBlob", ["properties", "azureBlob"]); - _bucket = BicepValue.DefineProperty(this, "Bucket", ["properties", "bucket"]); - _configurationProtectedSettings = BicepDictionary.DefineProperty(this, "ConfigurationProtectedSettings", ["properties", "configurationProtectedSettings"]); - _gitRepository = BicepValue.DefineProperty(this, "GitRepository", ["properties", "gitRepository"]); - _isReconciliationSuspended = BicepValue.DefineProperty(this, "IsReconciliationSuspended", ["properties", "suspend"]); - _kustomizations = BicepDictionary.DefineProperty(this, "Kustomizations", ["properties", "kustomizations"]); - _namespace = BicepValue.DefineProperty(this, "Namespace", ["properties", "namespace"]); - _scope = BicepValue.DefineProperty(this, "Scope", ["properties", "scope"]); - _sourceKind = BicepValue.DefineProperty(this, "SourceKind", ["properties", "sourceKind"]); - _complianceState = BicepValue.DefineProperty(this, "ComplianceState", ["properties", "complianceState"], isOutput: true); - _errorMessage = BicepValue.DefineProperty(this, "ErrorMessage", ["properties", "errorMessage"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _repositoryPublicKey = BicepValue.DefineProperty(this, "RepositoryPublicKey", ["properties", "repositoryPublicKey"], isOutput: true); - _sourceSyncedCommitId = BicepValue.DefineProperty(this, "SourceSyncedCommitId", ["properties", "sourceSyncedCommitId"], isOutput: true); - _sourceUpdatedOn = BicepValue.DefineProperty(this, "SourceUpdatedOn", ["properties", "sourceUpdatedAt"], isOutput: true); - _statuses = BicepList.DefineProperty(this, "Statuses", ["properties", "statuses"], isOutput: true); - _statusUpdatedOn = BicepValue.DefineProperty(this, "StatusUpdatedOn", ["properties", "statusUpdatedAt"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of KubernetesFluxConfiguration. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _azureBlob = DefineModelProperty("AzureBlob", ["properties", "azureBlob"]); + _bucket = DefineModelProperty("Bucket", ["properties", "bucket"]); + _configurationProtectedSettings = DefineDictionaryProperty("ConfigurationProtectedSettings", ["properties", "configurationProtectedSettings"]); + _gitRepository = DefineModelProperty("GitRepository", ["properties", "gitRepository"]); + _isReconciliationSuspended = DefineProperty("IsReconciliationSuspended", ["properties", "suspend"]); + _kustomizations = DefineDictionaryProperty("Kustomizations", ["properties", "kustomizations"]); + _namespace = DefineProperty("Namespace", ["properties", "namespace"]); + _scope = DefineProperty("Scope", ["properties", "scope"]); + _sourceKind = DefineProperty("SourceKind", ["properties", "sourceKind"]); + _complianceState = DefineProperty("ComplianceState", ["properties", "complianceState"], isOutput: true); + _errorMessage = DefineProperty("ErrorMessage", ["properties", "errorMessage"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _repositoryPublicKey = DefineProperty("RepositoryPublicKey", ["properties", "repositoryPublicKey"], isOutput: true); + _sourceSyncedCommitId = DefineProperty("SourceSyncedCommitId", ["properties", "sourceSyncedCommitId"], isOutput: true); + _sourceUpdatedOn = DefineProperty("SourceUpdatedOn", ["properties", "sourceUpdatedAt"], isOutput: true); + _statuses = DefineListProperty("Statuses", ["properties", "statuses"], isOutput: true); + _statusUpdatedOn = DefineProperty("StatusUpdatedOn", ["properties", "statusUpdatedAt"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/KubernetesSourceControlConfiguration.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/KubernetesSourceControlConfiguration.cs index 088400f0ad608..e0d66ac7ebda2 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/KubernetesSourceControlConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/KubernetesSourceControlConfiguration.cs @@ -21,102 +21,161 @@ public partial class KubernetesSourceControlConfiguration : ProvisionableResourc /// /// Name of the Source Control Configuration. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Name-value pairs of protected configuration settings for the /// configuration. /// - public BicepDictionary ConfigurationProtectedSettings { get => _configurationProtectedSettings; set => _configurationProtectedSettings.Assign(value); } - private readonly BicepDictionary _configurationProtectedSettings; + public BicepDictionary ConfigurationProtectedSettings + { + get { Initialize(); return _configurationProtectedSettings!; } + set { Initialize(); _configurationProtectedSettings!.Assign(value); } + } + private BicepDictionary? _configurationProtectedSettings; /// /// Properties for Helm operator. /// - public BicepValue HelmOperatorProperties { get => _helmOperatorProperties; set => _helmOperatorProperties.Assign(value); } - private readonly BicepValue _helmOperatorProperties; + public HelmOperatorProperties HelmOperatorProperties + { + get { Initialize(); return _helmOperatorProperties!; } + set { Initialize(); AssignOrReplace(ref _helmOperatorProperties, value); } + } + private HelmOperatorProperties? _helmOperatorProperties; /// /// Option to enable Helm Operator for this git configuration. /// - public BicepValue IsHelmOperatorEnabled { get => _isHelmOperatorEnabled; set => _isHelmOperatorEnabled.Assign(value); } - private readonly BicepValue _isHelmOperatorEnabled; + public BicepValue IsHelmOperatorEnabled + { + get { Initialize(); return _isHelmOperatorEnabled!; } + set { Initialize(); _isHelmOperatorEnabled!.Assign(value); } + } + private BicepValue? _isHelmOperatorEnabled; /// /// Instance name of the operator - identifying the specific configuration. /// - public BicepValue OperatorInstanceName { get => _operatorInstanceName; set => _operatorInstanceName.Assign(value); } - private readonly BicepValue _operatorInstanceName; + public BicepValue OperatorInstanceName + { + get { Initialize(); return _operatorInstanceName!; } + set { Initialize(); _operatorInstanceName!.Assign(value); } + } + private BicepValue? _operatorInstanceName; /// /// The namespace to which this operator is installed to. Maximum of 253 /// lower case alphanumeric characters, hyphen and period only. /// - public BicepValue OperatorNamespace { get => _operatorNamespace; set => _operatorNamespace.Assign(value); } - private readonly BicepValue _operatorNamespace; + public BicepValue OperatorNamespace + { + get { Initialize(); return _operatorNamespace!; } + set { Initialize(); _operatorNamespace!.Assign(value); } + } + private BicepValue? _operatorNamespace; /// /// Any Parameters for the Operator instance in string format. /// - public BicepValue OperatorParams { get => _operatorParams; set => _operatorParams.Assign(value); } - private readonly BicepValue _operatorParams; + public BicepValue OperatorParams + { + get { Initialize(); return _operatorParams!; } + set { Initialize(); _operatorParams!.Assign(value); } + } + private BicepValue? _operatorParams; /// /// Scope at which the operator will be installed. /// - public BicepValue OperatorScope { get => _operatorScope; set => _operatorScope.Assign(value); } - private readonly BicepValue _operatorScope; + public BicepValue OperatorScope + { + get { Initialize(); return _operatorScope!; } + set { Initialize(); _operatorScope!.Assign(value); } + } + private BicepValue? _operatorScope; /// /// Type of the operator. /// - public BicepValue OperatorType { get => _operatorType; set => _operatorType.Assign(value); } - private readonly BicepValue _operatorType; + public BicepValue OperatorType + { + get { Initialize(); return _operatorType!; } + set { Initialize(); _operatorType!.Assign(value); } + } + private BicepValue? _operatorType; /// /// Url of the SourceControl Repository. /// - public BicepValue RepositoryUri { get => _repositoryUri; set => _repositoryUri.Assign(value); } - private readonly BicepValue _repositoryUri; + public BicepValue RepositoryUri + { + get { Initialize(); return _repositoryUri!; } + set { Initialize(); _repositoryUri!.Assign(value); } + } + private BicepValue? _repositoryUri; /// /// Base64-encoded known_hosts contents containing public SSH keys required /// to access private Git instances. /// - public BicepValue SshKnownHostsContents { get => _sshKnownHostsContents; set => _sshKnownHostsContents.Assign(value); } - private readonly BicepValue _sshKnownHostsContents; + public BicepValue SshKnownHostsContents + { + get { Initialize(); return _sshKnownHostsContents!; } + set { Initialize(); _sshKnownHostsContents!.Assign(value); } + } + private BicepValue? _sshKnownHostsContents; /// /// Compliance Status of the Configuration. /// - public BicepValue ComplianceStatus { get => _complianceStatus; } - private readonly BicepValue _complianceStatus; + public KubernetesConfigurationComplianceStatus ComplianceStatus + { + get { Initialize(); return _complianceStatus!; } + } + private KubernetesConfigurationComplianceStatus? _complianceStatus; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning state of the resource provider. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Public Key associated with this SourceControl configuration (either /// generated within the cluster or provided by the user). /// - public BicepValue RepositoryPublicKey { get => _repositoryPublicKey; } - private readonly BicepValue _repositoryPublicKey; + public BicepValue RepositoryPublicKey + { + get { Initialize(); return _repositoryPublicKey!; } + } + private BicepValue? _repositoryPublicKey; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new KubernetesSourceControlConfiguration. @@ -131,22 +190,30 @@ public partial class KubernetesSourceControlConfiguration : ProvisionableResourc public KubernetesSourceControlConfiguration(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.KubernetesConfiguration/sourceControlConfigurations", resourceVersion ?? "2023-05-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _configurationProtectedSettings = BicepDictionary.DefineProperty(this, "ConfigurationProtectedSettings", ["properties", "configurationProtectedSettings"]); - _helmOperatorProperties = BicepValue.DefineProperty(this, "HelmOperatorProperties", ["properties", "helmOperatorProperties"]); - _isHelmOperatorEnabled = BicepValue.DefineProperty(this, "IsHelmOperatorEnabled", ["properties", "enableHelmOperator"]); - _operatorInstanceName = BicepValue.DefineProperty(this, "OperatorInstanceName", ["properties", "operatorInstanceName"]); - _operatorNamespace = BicepValue.DefineProperty(this, "OperatorNamespace", ["properties", "operatorNamespace"]); - _operatorParams = BicepValue.DefineProperty(this, "OperatorParams", ["properties", "operatorParams"]); - _operatorScope = BicepValue.DefineProperty(this, "OperatorScope", ["properties", "operatorScope"]); - _operatorType = BicepValue.DefineProperty(this, "OperatorType", ["properties", "operatorType"]); - _repositoryUri = BicepValue.DefineProperty(this, "RepositoryUri", ["properties", "repositoryUrl"]); - _sshKnownHostsContents = BicepValue.DefineProperty(this, "SshKnownHostsContents", ["properties", "sshKnownHostsContents"]); - _complianceStatus = BicepValue.DefineProperty(this, "ComplianceStatus", ["properties", "complianceStatus"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _repositoryPublicKey = BicepValue.DefineProperty(this, "RepositoryPublicKey", ["properties", "repositoryPublicKey"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// KubernetesSourceControlConfiguration. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _configurationProtectedSettings = DefineDictionaryProperty("ConfigurationProtectedSettings", ["properties", "configurationProtectedSettings"]); + _helmOperatorProperties = DefineModelProperty("HelmOperatorProperties", ["properties", "helmOperatorProperties"]); + _isHelmOperatorEnabled = DefineProperty("IsHelmOperatorEnabled", ["properties", "enableHelmOperator"]); + _operatorInstanceName = DefineProperty("OperatorInstanceName", ["properties", "operatorInstanceName"]); + _operatorNamespace = DefineProperty("OperatorNamespace", ["properties", "operatorNamespace"]); + _operatorParams = DefineProperty("OperatorParams", ["properties", "operatorParams"]); + _operatorScope = DefineProperty("OperatorScope", ["properties", "operatorScope"]); + _operatorType = DefineProperty("OperatorType", ["properties", "operatorType"]); + _repositoryUri = DefineProperty("RepositoryUri", ["properties", "repositoryUrl"]); + _sshKnownHostsContents = DefineProperty("SshKnownHostsContents", ["properties", "sshKnownHostsContents"]); + _complianceStatus = DefineModelProperty("ComplianceStatus", ["properties", "complianceStatus"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _repositoryPublicKey = DefineProperty("RepositoryPublicKey", ["properties", "repositoryPublicKey"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/HelmOperatorProperties.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/HelmOperatorProperties.cs index c6c11a14db6e3..500e14c133dc9 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/HelmOperatorProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/HelmOperatorProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class HelmOperatorProperties : ProvisionableConstruct /// /// Version of the operator Helm chart. /// - public BicepValue ChartVersion { get => _chartVersion; set => _chartVersion.Assign(value); } - private readonly BicepValue _chartVersion; + public BicepValue ChartVersion + { + get { Initialize(); return _chartVersion!; } + set { Initialize(); _chartVersion!.Assign(value); } + } + private BicepValue? _chartVersion; /// /// Values override for the operator Helm chart. /// - public BicepValue ChartValues { get => _chartValues; set => _chartValues.Assign(value); } - private readonly BicepValue _chartValues; + public BicepValue ChartValues + { + get { Initialize(); return _chartValues!; } + set { Initialize(); _chartValues!.Assign(value); } + } + private BicepValue? _chartValues; /// /// Creates a new HelmOperatorProperties. /// public HelmOperatorProperties() { - _chartVersion = BicepValue.DefineProperty(this, "ChartVersion", ["chartVersion"]); - _chartValues = BicepValue.DefineProperty(this, "ChartValues", ["chartValues"]); + } + + /// + /// Define all the provisionable properties of HelmOperatorProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _chartVersion = DefineProperty("ChartVersion", ["chartVersion"]); + _chartValues = DefineProperty("ChartValues", ["chartValues"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/HelmReleaseProperties.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/HelmReleaseProperties.cs index efff819b25c41..9bd1bea0bda79 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/HelmReleaseProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/HelmReleaseProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,43 +18,66 @@ public partial class HelmReleaseProperties : ProvisionableConstruct /// /// The revision number of the last released object change. /// - public BicepValue LastRevisionApplied { get => _lastRevisionApplied; } - private readonly BicepValue _lastRevisionApplied; + public BicepValue LastRevisionApplied + { + get { Initialize(); return _lastRevisionApplied!; } + } + private BicepValue? _lastRevisionApplied; /// /// The reference to the HelmChart object used as the source to this /// HelmRelease. /// - public BicepValue HelmChartRef { get => _helmChartRef; } - private readonly BicepValue _helmChartRef; + public KubernetesObjectReference HelmChartRef + { + get { Initialize(); return _helmChartRef!; } + } + private KubernetesObjectReference? _helmChartRef; /// /// Total number of times that the HelmRelease failed to install or upgrade. /// - public BicepValue FailureCount { get => _failureCount; } - private readonly BicepValue _failureCount; + public BicepValue FailureCount + { + get { Initialize(); return _failureCount!; } + } + private BicepValue? _failureCount; /// /// Number of times that the HelmRelease failed to install. /// - public BicepValue InstallFailureCount { get => _installFailureCount; } - private readonly BicepValue _installFailureCount; + public BicepValue InstallFailureCount + { + get { Initialize(); return _installFailureCount!; } + } + private BicepValue? _installFailureCount; /// /// Number of times that the HelmRelease failed to upgrade. /// - public BicepValue UpgradeFailureCount { get => _upgradeFailureCount; } - private readonly BicepValue _upgradeFailureCount; + public BicepValue UpgradeFailureCount + { + get { Initialize(); return _upgradeFailureCount!; } + } + private BicepValue? _upgradeFailureCount; /// /// Creates a new HelmReleaseProperties. /// public HelmReleaseProperties() { - _lastRevisionApplied = BicepValue.DefineProperty(this, "LastRevisionApplied", ["lastRevisionApplied"], isOutput: true); - _helmChartRef = BicepValue.DefineProperty(this, "HelmChartRef", ["helmChartRef"], isOutput: true); - _failureCount = BicepValue.DefineProperty(this, "FailureCount", ["failureCount"], isOutput: true); - _installFailureCount = BicepValue.DefineProperty(this, "InstallFailureCount", ["installFailureCount"], isOutput: true); - _upgradeFailureCount = BicepValue.DefineProperty(this, "UpgradeFailureCount", ["upgradeFailureCount"], isOutput: true); + } + + /// + /// Define all the provisionable properties of HelmReleaseProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _lastRevisionApplied = DefineProperty("LastRevisionApplied", ["lastRevisionApplied"], isOutput: true); + _helmChartRef = DefineModelProperty("HelmChartRef", ["helmChartRef"], isOutput: true); + _failureCount = DefineProperty("FailureCount", ["failureCount"], isOutput: true); + _installFailureCount = DefineProperty("InstallFailureCount", ["installFailureCount"], isOutput: true); + _upgradeFailureCount = DefineProperty("UpgradeFailureCount", ["upgradeFailureCount"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesAzureBlob.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesAzureBlob.cs index 5a472b372a903..e26314ea92cab 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesAzureBlob.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesAzureBlob.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,75 +18,119 @@ public partial class KubernetesAzureBlob : ProvisionableConstruct /// /// The URL to sync for the flux configuration Azure Blob storage account. /// - public BicepValue Uri { get => _uri; set => _uri.Assign(value); } - private readonly BicepValue _uri; + public BicepValue Uri + { + get { Initialize(); return _uri!; } + set { Initialize(); _uri!.Assign(value); } + } + private BicepValue? _uri; /// /// The Azure Blob container name to sync from the url endpoint for the /// flux configuration. /// - public BicepValue ContainerName { get => _containerName; set => _containerName.Assign(value); } - private readonly BicepValue _containerName; + public BicepValue ContainerName + { + get { Initialize(); return _containerName!; } + set { Initialize(); _containerName!.Assign(value); } + } + private BicepValue? _containerName; /// /// The maximum time to attempt to reconcile the cluster Azure Blob source /// with the remote. /// - public BicepValue TimeoutInSeconds { get => _timeoutInSeconds; set => _timeoutInSeconds.Assign(value); } - private readonly BicepValue _timeoutInSeconds; + public BicepValue TimeoutInSeconds + { + get { Initialize(); return _timeoutInSeconds!; } + set { Initialize(); _timeoutInSeconds!.Assign(value); } + } + private BicepValue? _timeoutInSeconds; /// /// The interval at which to re-reconcile the cluster Azure Blob source /// with the remote. /// - public BicepValue SyncIntervalInSeconds { get => _syncIntervalInSeconds; set => _syncIntervalInSeconds.Assign(value); } - private readonly BicepValue _syncIntervalInSeconds; + public BicepValue SyncIntervalInSeconds + { + get { Initialize(); return _syncIntervalInSeconds!; } + set { Initialize(); _syncIntervalInSeconds!.Assign(value); } + } + private BicepValue? _syncIntervalInSeconds; /// /// Parameters to authenticate using Service Principal. /// - public BicepValue ServicePrincipal { get => _servicePrincipal; set => _servicePrincipal.Assign(value); } - private readonly BicepValue _servicePrincipal; + public KubernetesServicePrincipal ServicePrincipal + { + get { Initialize(); return _servicePrincipal!; } + set { Initialize(); AssignOrReplace(ref _servicePrincipal, value); } + } + private KubernetesServicePrincipal? _servicePrincipal; /// /// The account key (shared key) to access the storage account. /// - public BicepValue AccountKey { get => _accountKey; set => _accountKey.Assign(value); } - private readonly BicepValue _accountKey; + public BicepValue AccountKey + { + get { Initialize(); return _accountKey!; } + set { Initialize(); _accountKey!.Assign(value); } + } + private BicepValue? _accountKey; /// /// The Shared Access token to access the storage container. /// - public BicepValue SasToken { get => _sasToken; set => _sasToken.Assign(value); } - private readonly BicepValue _sasToken; + public BicepValue SasToken + { + get { Initialize(); return _sasToken!; } + set { Initialize(); _sasToken!.Assign(value); } + } + private BicepValue? _sasToken; /// /// The client Id for authenticating a Managed Identity. /// - public BicepValue ManagedIdentityClientId { get => _managedIdentityClientId; set => _managedIdentityClientId.Assign(value); } - private readonly BicepValue _managedIdentityClientId; + public BicepValue ManagedIdentityClientId + { + get { Initialize(); return _managedIdentityClientId!; } + set { Initialize(); _managedIdentityClientId!.Assign(value); } + } + private BicepValue? _managedIdentityClientId; /// /// Name of a local secret on the Kubernetes cluster to use as the /// authentication secret rather than the managed or user-provided /// configuration secrets. /// - public BicepValue LocalAuthRef { get => _localAuthRef; set => _localAuthRef.Assign(value); } - private readonly BicepValue _localAuthRef; + public BicepValue LocalAuthRef + { + get { Initialize(); return _localAuthRef!; } + set { Initialize(); _localAuthRef!.Assign(value); } + } + private BicepValue? _localAuthRef; /// /// Creates a new KubernetesAzureBlob. /// public KubernetesAzureBlob() { - _uri = BicepValue.DefineProperty(this, "Uri", ["url"]); - _containerName = BicepValue.DefineProperty(this, "ContainerName", ["containerName"]); - _timeoutInSeconds = BicepValue.DefineProperty(this, "TimeoutInSeconds", ["timeoutInSeconds"]); - _syncIntervalInSeconds = BicepValue.DefineProperty(this, "SyncIntervalInSeconds", ["syncIntervalInSeconds"]); - _servicePrincipal = BicepValue.DefineProperty(this, "ServicePrincipal", ["servicePrincipal"]); - _accountKey = BicepValue.DefineProperty(this, "AccountKey", ["accountKey"]); - _sasToken = BicepValue.DefineProperty(this, "SasToken", ["sasToken"]); - _managedIdentityClientId = BicepValue.DefineProperty(this, "ManagedIdentityClientId", ["managedIdentity", "clientId"]); - _localAuthRef = BicepValue.DefineProperty(this, "LocalAuthRef", ["localAuthRef"]); + } + + /// + /// Define all the provisionable properties of KubernetesAzureBlob. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _uri = DefineProperty("Uri", ["url"]); + _containerName = DefineProperty("ContainerName", ["containerName"]); + _timeoutInSeconds = DefineProperty("TimeoutInSeconds", ["timeoutInSeconds"]); + _syncIntervalInSeconds = DefineProperty("SyncIntervalInSeconds", ["syncIntervalInSeconds"]); + _servicePrincipal = DefineModelProperty("ServicePrincipal", ["servicePrincipal"]); + _accountKey = DefineProperty("AccountKey", ["accountKey"]); + _sasToken = DefineProperty("SasToken", ["sasToken"]); + _managedIdentityClientId = DefineProperty("ManagedIdentityClientId", ["managedIdentity", "clientId"]); + _localAuthRef = DefineProperty("LocalAuthRef", ["localAuthRef"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesBucket.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesBucket.cs index 1c4bae2d6b8b6..a04f87b0d59e9 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesBucket.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesBucket.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,62 +18,98 @@ public partial class KubernetesBucket : ProvisionableConstruct /// /// The URL to sync for the flux configuration S3 bucket. /// - public BicepValue Uri { get => _uri; set => _uri.Assign(value); } - private readonly BicepValue _uri; + public BicepValue Uri + { + get { Initialize(); return _uri!; } + set { Initialize(); _uri!.Assign(value); } + } + private BicepValue? _uri; /// /// The bucket name to sync from the url endpoint for the flux /// configuration. /// - public BicepValue BucketName { get => _bucketName; set => _bucketName.Assign(value); } - private readonly BicepValue _bucketName; + public BicepValue BucketName + { + get { Initialize(); return _bucketName!; } + set { Initialize(); _bucketName!.Assign(value); } + } + private BicepValue? _bucketName; /// /// Specify whether to use insecure communication when puling data from the /// S3 bucket. /// - public BicepValue UseInsecureCommunication { get => _useInsecureCommunication; set => _useInsecureCommunication.Assign(value); } - private readonly BicepValue _useInsecureCommunication; + public BicepValue UseInsecureCommunication + { + get { Initialize(); return _useInsecureCommunication!; } + set { Initialize(); _useInsecureCommunication!.Assign(value); } + } + private BicepValue? _useInsecureCommunication; /// /// The maximum time to attempt to reconcile the cluster bucket source with /// the remote. /// - public BicepValue TimeoutInSeconds { get => _timeoutInSeconds; set => _timeoutInSeconds.Assign(value); } - private readonly BicepValue _timeoutInSeconds; + public BicepValue TimeoutInSeconds + { + get { Initialize(); return _timeoutInSeconds!; } + set { Initialize(); _timeoutInSeconds!.Assign(value); } + } + private BicepValue? _timeoutInSeconds; /// /// The interval at which to re-reconcile the cluster bucket source with /// the remote. /// - public BicepValue SyncIntervalInSeconds { get => _syncIntervalInSeconds; set => _syncIntervalInSeconds.Assign(value); } - private readonly BicepValue _syncIntervalInSeconds; + public BicepValue SyncIntervalInSeconds + { + get { Initialize(); return _syncIntervalInSeconds!; } + set { Initialize(); _syncIntervalInSeconds!.Assign(value); } + } + private BicepValue? _syncIntervalInSeconds; /// /// Plaintext access key used to securely access the S3 bucket. /// - public BicepValue AccessKey { get => _accessKey; set => _accessKey.Assign(value); } - private readonly BicepValue _accessKey; + public BicepValue AccessKey + { + get { Initialize(); return _accessKey!; } + set { Initialize(); _accessKey!.Assign(value); } + } + private BicepValue? _accessKey; /// /// Name of a local secret on the Kubernetes cluster to use as the /// authentication secret rather than the managed or user-provided /// configuration secrets. /// - public BicepValue LocalAuthRef { get => _localAuthRef; set => _localAuthRef.Assign(value); } - private readonly BicepValue _localAuthRef; + public BicepValue LocalAuthRef + { + get { Initialize(); return _localAuthRef!; } + set { Initialize(); _localAuthRef!.Assign(value); } + } + private BicepValue? _localAuthRef; /// /// Creates a new KubernetesBucket. /// public KubernetesBucket() { - _uri = BicepValue.DefineProperty(this, "Uri", ["url"]); - _bucketName = BicepValue.DefineProperty(this, "BucketName", ["bucketName"]); - _useInsecureCommunication = BicepValue.DefineProperty(this, "UseInsecureCommunication", ["insecure"]); - _timeoutInSeconds = BicepValue.DefineProperty(this, "TimeoutInSeconds", ["timeoutInSeconds"]); - _syncIntervalInSeconds = BicepValue.DefineProperty(this, "SyncIntervalInSeconds", ["syncIntervalInSeconds"]); - _accessKey = BicepValue.DefineProperty(this, "AccessKey", ["accessKey"]); - _localAuthRef = BicepValue.DefineProperty(this, "LocalAuthRef", ["localAuthRef"]); + } + + /// + /// Define all the provisionable properties of KubernetesBucket. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _uri = DefineProperty("Uri", ["url"]); + _bucketName = DefineProperty("BucketName", ["bucketName"]); + _useInsecureCommunication = DefineProperty("UseInsecureCommunication", ["insecure"]); + _timeoutInSeconds = DefineProperty("TimeoutInSeconds", ["timeoutInSeconds"]); + _syncIntervalInSeconds = DefineProperty("SyncIntervalInSeconds", ["syncIntervalInSeconds"]); + _accessKey = DefineProperty("AccessKey", ["accessKey"]); + _localAuthRef = DefineProperty("LocalAuthRef", ["localAuthRef"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesClusterExtensionScope.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesClusterExtensionScope.cs index 23f27800586a4..c9c09b0479925 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesClusterExtensionScope.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesClusterExtensionScope.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,22 +20,39 @@ public partial class KubernetesClusterExtensionScope : ProvisionableConstruct /// scoped extension. If this namespace does not exist, it will be /// created. /// - public BicepValue ClusterReleaseNamespace { get => _clusterReleaseNamespace; set => _clusterReleaseNamespace.Assign(value); } - private readonly BicepValue _clusterReleaseNamespace; + public BicepValue ClusterReleaseNamespace + { + get { Initialize(); return _clusterReleaseNamespace!; } + set { Initialize(); _clusterReleaseNamespace!.Assign(value); } + } + private BicepValue? _clusterReleaseNamespace; /// /// Namespace where the extension will be created for an Namespace scoped /// extension. If this namespace does not exist, it will be created. /// - public BicepValue TargetNamespace { get => _targetNamespace; set => _targetNamespace.Assign(value); } - private readonly BicepValue _targetNamespace; + public BicepValue TargetNamespace + { + get { Initialize(); return _targetNamespace!; } + set { Initialize(); _targetNamespace!.Assign(value); } + } + private BicepValue? _targetNamespace; /// /// Creates a new KubernetesClusterExtensionScope. /// public KubernetesClusterExtensionScope() { - _clusterReleaseNamespace = BicepValue.DefineProperty(this, "ClusterReleaseNamespace", ["cluster", "releaseNamespace"]); - _targetNamespace = BicepValue.DefineProperty(this, "TargetNamespace", ["namespace", "targetNamespace"]); + } + + /// + /// Define all the provisionable properties of + /// KubernetesClusterExtensionScope. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _clusterReleaseNamespace = DefineProperty("ClusterReleaseNamespace", ["cluster", "releaseNamespace"]); + _targetNamespace = DefineProperty("TargetNamespace", ["namespace", "targetNamespace"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesClusterExtensionStatus.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesClusterExtensionStatus.cs index 4ff6d7f5002ea..03691766364c2 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesClusterExtensionStatus.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesClusterExtensionStatus.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,71 @@ public partial class KubernetesClusterExtensionStatus : ProvisionableConstruct /// /// Status code provided by the Extension. /// - public BicepValue Code { get => _code; set => _code.Assign(value); } - private readonly BicepValue _code; + public BicepValue Code + { + get { Initialize(); return _code!; } + set { Initialize(); _code!.Assign(value); } + } + private BicepValue? _code; /// /// Short description of status of the extension. /// - public BicepValue DisplayStatus { get => _displayStatus; set => _displayStatus.Assign(value); } - private readonly BicepValue _displayStatus; + public BicepValue DisplayStatus + { + get { Initialize(); return _displayStatus!; } + set { Initialize(); _displayStatus!.Assign(value); } + } + private BicepValue? _displayStatus; /// /// Level of the status. /// - public BicepValue Level { get => _level; set => _level.Assign(value); } - private readonly BicepValue _level; + public BicepValue Level + { + get { Initialize(); return _level!; } + set { Initialize(); _level!.Assign(value); } + } + private BicepValue? _level; /// /// Detailed message of the status from the Extension. /// - public BicepValue Message { get => _message; set => _message.Assign(value); } - private readonly BicepValue _message; + public BicepValue Message + { + get { Initialize(); return _message!; } + set { Initialize(); _message!.Assign(value); } + } + private BicepValue? _message; /// /// DateLiteral (per ISO8601) noting the time of installation status. /// - public BicepValue Time { get => _time; set => _time.Assign(value); } - private readonly BicepValue _time; + public BicepValue Time + { + get { Initialize(); return _time!; } + set { Initialize(); _time!.Assign(value); } + } + private BicepValue? _time; /// /// Creates a new KubernetesClusterExtensionStatus. /// public KubernetesClusterExtensionStatus() { - _code = BicepValue.DefineProperty(this, "Code", ["code"]); - _displayStatus = BicepValue.DefineProperty(this, "DisplayStatus", ["displayStatus"]); - _level = BicepValue.DefineProperty(this, "Level", ["level"]); - _message = BicepValue.DefineProperty(this, "Message", ["message"]); - _time = BicepValue.DefineProperty(this, "Time", ["time"]); + } + + /// + /// Define all the provisionable properties of + /// KubernetesClusterExtensionStatus. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _code = DefineProperty("Code", ["code"]); + _displayStatus = DefineProperty("DisplayStatus", ["displayStatus"]); + _level = DefineProperty("Level", ["level"]); + _message = DefineProperty("Message", ["message"]); + _time = DefineProperty("Time", ["time"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesConfigurationComplianceStatus.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesConfigurationComplianceStatus.cs index 55b5235724ef4..e1cdb848258d5 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesConfigurationComplianceStatus.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesConfigurationComplianceStatus.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,56 @@ public partial class KubernetesConfigurationComplianceStatus : ProvisionableCons /// /// The compliance state of the configuration. /// - public BicepValue ComplianceState { get => _complianceState; } - private readonly BicepValue _complianceState; + public BicepValue ComplianceState + { + get { Initialize(); return _complianceState!; } + } + private BicepValue? _complianceState; /// /// Datetime the configuration was last applied. /// - public BicepValue LastConfigAppliedOn { get => _lastConfigAppliedOn; } - private readonly BicepValue _lastConfigAppliedOn; + public BicepValue LastConfigAppliedOn + { + get { Initialize(); return _lastConfigAppliedOn!; } + } + private BicepValue? _lastConfigAppliedOn; /// /// Message from when the configuration was applied. /// - public BicepValue Message { get => _message; } - private readonly BicepValue _message; + public BicepValue Message + { + get { Initialize(); return _message!; } + } + private BicepValue? _message; /// /// Level of the message. /// - public BicepValue MessageLevel { get => _messageLevel; } - private readonly BicepValue _messageLevel; + public BicepValue MessageLevel + { + get { Initialize(); return _messageLevel!; } + } + private BicepValue? _messageLevel; /// /// Creates a new KubernetesConfigurationComplianceStatus. /// public KubernetesConfigurationComplianceStatus() { - _complianceState = BicepValue.DefineProperty(this, "ComplianceState", ["complianceState"], isOutput: true); - _lastConfigAppliedOn = BicepValue.DefineProperty(this, "LastConfigAppliedOn", ["lastConfigApplied"], isOutput: true); - _message = BicepValue.DefineProperty(this, "Message", ["message"], isOutput: true); - _messageLevel = BicepValue.DefineProperty(this, "MessageLevel", ["messageLevel"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// KubernetesConfigurationComplianceStatus. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _complianceState = DefineProperty("ComplianceState", ["complianceState"], isOutput: true); + _lastConfigAppliedOn = DefineProperty("LastConfigAppliedOn", ["lastConfigApplied"], isOutput: true); + _message = DefineProperty("Message", ["message"], isOutput: true); + _messageLevel = DefineProperty("MessageLevel", ["messageLevel"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesGitRepository.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesGitRepository.cs index 645dde16843ca..db0bc0a2b988e 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesGitRepository.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesGitRepository.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,70 +18,110 @@ public partial class KubernetesGitRepository : ProvisionableConstruct /// /// The URL to sync for the flux configuration git repository. /// - public BicepValue Uri { get => _uri; set => _uri.Assign(value); } - private readonly BicepValue _uri; + public BicepValue Uri + { + get { Initialize(); return _uri!; } + set { Initialize(); _uri!.Assign(value); } + } + private BicepValue? _uri; /// /// The maximum time to attempt to reconcile the cluster git repository /// source with the remote. /// - public BicepValue TimeoutInSeconds { get => _timeoutInSeconds; set => _timeoutInSeconds.Assign(value); } - private readonly BicepValue _timeoutInSeconds; + public BicepValue TimeoutInSeconds + { + get { Initialize(); return _timeoutInSeconds!; } + set { Initialize(); _timeoutInSeconds!.Assign(value); } + } + private BicepValue? _timeoutInSeconds; /// /// The interval at which to re-reconcile the cluster git repository source /// with the remote. /// - public BicepValue SyncIntervalInSeconds { get => _syncIntervalInSeconds; set => _syncIntervalInSeconds.Assign(value); } - private readonly BicepValue _syncIntervalInSeconds; + public BicepValue SyncIntervalInSeconds + { + get { Initialize(); return _syncIntervalInSeconds!; } + set { Initialize(); _syncIntervalInSeconds!.Assign(value); } + } + private BicepValue? _syncIntervalInSeconds; /// /// The source reference for the GitRepository object. /// - public BicepValue RepositoryRef { get => _repositoryRef; set => _repositoryRef.Assign(value); } - private readonly BicepValue _repositoryRef; + public KubernetesGitRepositoryRef RepositoryRef + { + get { Initialize(); return _repositoryRef!; } + set { Initialize(); AssignOrReplace(ref _repositoryRef, value); } + } + private KubernetesGitRepositoryRef? _repositoryRef; /// /// Base64-encoded known_hosts value containing public SSH keys required to /// access private git repositories over SSH. /// - public BicepValue SshKnownHosts { get => _sshKnownHosts; set => _sshKnownHosts.Assign(value); } - private readonly BicepValue _sshKnownHosts; + public BicepValue SshKnownHosts + { + get { Initialize(); return _sshKnownHosts!; } + set { Initialize(); _sshKnownHosts!.Assign(value); } + } + private BicepValue? _sshKnownHosts; /// /// Plaintext HTTPS username used to access private git repositories over /// HTTPS. /// - public BicepValue HttpsUser { get => _httpsUser; set => _httpsUser.Assign(value); } - private readonly BicepValue _httpsUser; + public BicepValue HttpsUser + { + get { Initialize(); return _httpsUser!; } + set { Initialize(); _httpsUser!.Assign(value); } + } + private BicepValue? _httpsUser; /// /// Base64-encoded HTTPS certificate authority contents used to access git /// private git repositories over HTTPS. /// - public BicepValue HttpsCACert { get => _httpsCACert; set => _httpsCACert.Assign(value); } - private readonly BicepValue _httpsCACert; + public BicepValue HttpsCACert + { + get { Initialize(); return _httpsCACert!; } + set { Initialize(); _httpsCACert!.Assign(value); } + } + private BicepValue? _httpsCACert; /// /// Name of a local secret on the Kubernetes cluster to use as the /// authentication secret rather than the managed or user-provided /// configuration secrets. /// - public BicepValue LocalAuthRef { get => _localAuthRef; set => _localAuthRef.Assign(value); } - private readonly BicepValue _localAuthRef; + public BicepValue LocalAuthRef + { + get { Initialize(); return _localAuthRef!; } + set { Initialize(); _localAuthRef!.Assign(value); } + } + private BicepValue? _localAuthRef; /// /// Creates a new KubernetesGitRepository. /// public KubernetesGitRepository() { - _uri = BicepValue.DefineProperty(this, "Uri", ["url"]); - _timeoutInSeconds = BicepValue.DefineProperty(this, "TimeoutInSeconds", ["timeoutInSeconds"]); - _syncIntervalInSeconds = BicepValue.DefineProperty(this, "SyncIntervalInSeconds", ["syncIntervalInSeconds"]); - _repositoryRef = BicepValue.DefineProperty(this, "RepositoryRef", ["repositoryRef"]); - _sshKnownHosts = BicepValue.DefineProperty(this, "SshKnownHosts", ["sshKnownHosts"]); - _httpsUser = BicepValue.DefineProperty(this, "HttpsUser", ["httpsUser"]); - _httpsCACert = BicepValue.DefineProperty(this, "HttpsCACert", ["httpsCACert"]); - _localAuthRef = BicepValue.DefineProperty(this, "LocalAuthRef", ["localAuthRef"]); + } + + /// + /// Define all the provisionable properties of KubernetesGitRepository. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _uri = DefineProperty("Uri", ["url"]); + _timeoutInSeconds = DefineProperty("TimeoutInSeconds", ["timeoutInSeconds"]); + _syncIntervalInSeconds = DefineProperty("SyncIntervalInSeconds", ["syncIntervalInSeconds"]); + _repositoryRef = DefineModelProperty("RepositoryRef", ["repositoryRef"]); + _sshKnownHosts = DefineProperty("SshKnownHosts", ["sshKnownHosts"]); + _httpsUser = DefineProperty("HttpsUser", ["httpsUser"]); + _httpsCACert = DefineProperty("HttpsCACert", ["httpsCACert"]); + _localAuthRef = DefineProperty("LocalAuthRef", ["localAuthRef"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesGitRepositoryRef.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesGitRepositoryRef.cs index 76006234989be..06076fe39904d 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesGitRepositoryRef.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesGitRepositoryRef.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,38 +18,62 @@ public partial class KubernetesGitRepositoryRef : ProvisionableConstruct /// /// The git repository branch name to checkout. /// - public BicepValue Branch { get => _branch; set => _branch.Assign(value); } - private readonly BicepValue _branch; + public BicepValue Branch + { + get { Initialize(); return _branch!; } + set { Initialize(); _branch!.Assign(value); } + } + private BicepValue? _branch; /// /// The git repository tag name to checkout. This takes precedence over /// branch. /// - public BicepValue Tag { get => _tag; set => _tag.Assign(value); } - private readonly BicepValue _tag; + public BicepValue Tag + { + get { Initialize(); return _tag!; } + set { Initialize(); _tag!.Assign(value); } + } + private BicepValue? _tag; /// /// The semver range used to match against git repository tags. This takes /// precedence over tag. /// - public BicepValue Semver { get => _semver; set => _semver.Assign(value); } - private readonly BicepValue _semver; + public BicepValue Semver + { + get { Initialize(); return _semver!; } + set { Initialize(); _semver!.Assign(value); } + } + private BicepValue? _semver; /// /// The commit SHA to checkout. This value must be combined with the branch /// name to be valid. This takes precedence over semver. /// - public BicepValue Commit { get => _commit; set => _commit.Assign(value); } - private readonly BicepValue _commit; + public BicepValue Commit + { + get { Initialize(); return _commit!; } + set { Initialize(); _commit!.Assign(value); } + } + private BicepValue? _commit; /// /// Creates a new KubernetesGitRepositoryRef. /// public KubernetesGitRepositoryRef() { - _branch = BicepValue.DefineProperty(this, "Branch", ["branch"]); - _tag = BicepValue.DefineProperty(this, "Tag", ["tag"]); - _semver = BicepValue.DefineProperty(this, "Semver", ["semver"]); - _commit = BicepValue.DefineProperty(this, "Commit", ["commit"]); + } + + /// + /// Define all the provisionable properties of KubernetesGitRepositoryRef. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _branch = DefineProperty("Branch", ["branch"]); + _tag = DefineProperty("Tag", ["tag"]); + _semver = DefineProperty("Semver", ["semver"]); + _commit = DefineProperty("Commit", ["commit"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesObjectReference.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesObjectReference.cs index 3a1a1dd877080..248c225f450bd 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesObjectReference.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesObjectReference.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,35 @@ public partial class KubernetesObjectReference : ProvisionableConstruct /// /// Name of the object. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Namespace of the object. /// - public BicepValue Namespace { get => _namespace; } - private readonly BicepValue _namespace; + public BicepValue Namespace + { + get { Initialize(); return _namespace!; } + } + private BicepValue? _namespace; /// /// Creates a new KubernetesObjectReference. /// public KubernetesObjectReference() { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _namespace = BicepValue.DefineProperty(this, "Namespace", ["namespace"], isOutput: true); + } + + /// + /// Define all the provisionable properties of KubernetesObjectReference. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isOutput: true); + _namespace = DefineProperty("Namespace", ["namespace"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesObjectStatus.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesObjectStatus.cs index cef8374722a06..f9ba109af10ad 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesObjectStatus.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesObjectStatus.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,58 +20,87 @@ public partial class KubernetesObjectStatus : ProvisionableConstruct /// /// Name of the applied object. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Namespace of the applied object. /// - public BicepValue Namespace { get => _namespace; } - private readonly BicepValue _namespace; + public BicepValue Namespace + { + get { Initialize(); return _namespace!; } + } + private BicepValue? _namespace; /// /// Kind of the applied object. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// Compliance state of the applied object showing whether the applied /// object has come into a ready state on the cluster. /// - public BicepValue ComplianceState { get => _complianceState; } - private readonly BicepValue _complianceState; + public BicepValue ComplianceState + { + get { Initialize(); return _complianceState!; } + } + private BicepValue? _complianceState; /// /// Object reference to the Kustomization that applied this object. /// - public BicepValue AppliedBy { get => _appliedBy; } - private readonly BicepValue _appliedBy; + public KubernetesObjectReference AppliedBy + { + get { Initialize(); return _appliedBy!; } + } + private KubernetesObjectReference? _appliedBy; /// /// List of Kubernetes object status conditions present on the cluster. /// - public BicepList StatusConditions { get => _statusConditions; } - private readonly BicepList _statusConditions; + public BicepList StatusConditions + { + get { Initialize(); return _statusConditions!; } + } + private BicepList? _statusConditions; /// /// Additional properties that are provided from objects of the HelmRelease /// kind. /// - public BicepValue HelmReleaseProperties { get => _helmReleaseProperties; } - private readonly BicepValue _helmReleaseProperties; + public HelmReleaseProperties HelmReleaseProperties + { + get { Initialize(); return _helmReleaseProperties!; } + } + private HelmReleaseProperties? _helmReleaseProperties; /// /// Creates a new KubernetesObjectStatus. /// public KubernetesObjectStatus() { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _namespace = BicepValue.DefineProperty(this, "Namespace", ["namespace"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _complianceState = BicepValue.DefineProperty(this, "ComplianceState", ["complianceState"], isOutput: true); - _appliedBy = BicepValue.DefineProperty(this, "AppliedBy", ["appliedBy"], isOutput: true); - _statusConditions = BicepList.DefineProperty(this, "StatusConditions", ["statusConditions"], isOutput: true); - _helmReleaseProperties = BicepValue.DefineProperty(this, "HelmReleaseProperties", ["helmReleaseProperties"], isOutput: true); + } + + /// + /// Define all the provisionable properties of KubernetesObjectStatus. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isOutput: true); + _namespace = DefineProperty("Namespace", ["namespace"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _complianceState = DefineProperty("ComplianceState", ["complianceState"], isOutput: true); + _appliedBy = DefineModelProperty("AppliedBy", ["appliedBy"], isOutput: true); + _statusConditions = DefineListProperty("StatusConditions", ["statusConditions"], isOutput: true); + _helmReleaseProperties = DefineModelProperty("HelmReleaseProperties", ["helmReleaseProperties"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesObjectStatusCondition.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesObjectStatusCondition.cs index 1cd0f2d325e43..65d2cda5e3faf 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesObjectStatusCondition.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesObjectStatusCondition.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,66 @@ public partial class KubernetesObjectStatusCondition : ProvisionableConstruct /// /// Last time this status condition has changed. /// - public BicepValue LastTransitionOn { get => _lastTransitionOn; } - private readonly BicepValue _lastTransitionOn; + public BicepValue LastTransitionOn + { + get { Initialize(); return _lastTransitionOn!; } + } + private BicepValue? _lastTransitionOn; /// /// A more verbose description of the object status condition. /// - public BicepValue Message { get => _message; } - private readonly BicepValue _message; + public BicepValue Message + { + get { Initialize(); return _message!; } + } + private BicepValue? _message; /// /// Reason for the specified status condition type status. /// - public BicepValue Reason { get => _reason; } - private readonly BicepValue _reason; + public BicepValue Reason + { + get { Initialize(); return _reason!; } + } + private BicepValue? _reason; /// /// Status of the Kubernetes object condition type. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Object status condition type for this object. /// - public BicepValue ObjectStatusConditionDefinitionType { get => _objectStatusConditionDefinitionType; } - private readonly BicepValue _objectStatusConditionDefinitionType; + public BicepValue ObjectStatusConditionDefinitionType + { + get { Initialize(); return _objectStatusConditionDefinitionType!; } + } + private BicepValue? _objectStatusConditionDefinitionType; /// /// Creates a new KubernetesObjectStatusCondition. /// public KubernetesObjectStatusCondition() { - _lastTransitionOn = BicepValue.DefineProperty(this, "LastTransitionOn", ["lastTransitionTime"], isOutput: true); - _message = BicepValue.DefineProperty(this, "Message", ["message"], isOutput: true); - _reason = BicepValue.DefineProperty(this, "Reason", ["reason"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["status"], isOutput: true); - _objectStatusConditionDefinitionType = BicepValue.DefineProperty(this, "ObjectStatusConditionDefinitionType", ["type"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// KubernetesObjectStatusCondition. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _lastTransitionOn = DefineProperty("LastTransitionOn", ["lastTransitionTime"], isOutput: true); + _message = DefineProperty("Message", ["message"], isOutput: true); + _reason = DefineProperty("Reason", ["reason"], isOutput: true); + _status = DefineProperty("Status", ["status"], isOutput: true); + _objectStatusConditionDefinitionType = DefineProperty("ObjectStatusConditionDefinitionType", ["type"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesServicePrincipal.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesServicePrincipal.cs index f79d8ef144cd6..1c34991136610 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesServicePrincipal.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/KubernetesServicePrincipal.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,52 +18,84 @@ public partial class KubernetesServicePrincipal : ProvisionableConstruct /// /// The client Id for authenticating a Service Principal. /// - public BicepValue ClientId { get => _clientId; set => _clientId.Assign(value); } - private readonly BicepValue _clientId; + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + set { Initialize(); _clientId!.Assign(value); } + } + private BicepValue? _clientId; /// /// The tenant Id for authenticating a Service Principal. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// The client secret for authenticating a Service Principal. /// - public BicepValue ClientSecret { get => _clientSecret; set => _clientSecret.Assign(value); } - private readonly BicepValue _clientSecret; + public BicepValue ClientSecret + { + get { Initialize(); return _clientSecret!; } + set { Initialize(); _clientSecret!.Assign(value); } + } + private BicepValue? _clientSecret; /// /// Base64-encoded certificate used to authenticate a Service Principal. /// - public BicepValue ClientCertificate { get => _clientCertificate; set => _clientCertificate.Assign(value); } - private readonly BicepValue _clientCertificate; + public BicepValue ClientCertificate + { + get { Initialize(); return _clientCertificate!; } + set { Initialize(); _clientCertificate!.Assign(value); } + } + private BicepValue? _clientCertificate; /// /// The password for the certificate used to authenticate a Service /// Principal. /// - public BicepValue ClientCertificatePassword { get => _clientCertificatePassword; set => _clientCertificatePassword.Assign(value); } - private readonly BicepValue _clientCertificatePassword; + public BicepValue ClientCertificatePassword + { + get { Initialize(); return _clientCertificatePassword!; } + set { Initialize(); _clientCertificatePassword!.Assign(value); } + } + private BicepValue? _clientCertificatePassword; /// /// Specifies whether to include x5c header in client claims when acquiring /// a token to enable subject name / issuer based authentication for the /// Client Certificate. /// - public BicepValue ClientCertificateSendChain { get => _clientCertificateSendChain; set => _clientCertificateSendChain.Assign(value); } - private readonly BicepValue _clientCertificateSendChain; + public BicepValue ClientCertificateSendChain + { + get { Initialize(); return _clientCertificateSendChain!; } + set { Initialize(); _clientCertificateSendChain!.Assign(value); } + } + private BicepValue? _clientCertificateSendChain; /// /// Creates a new KubernetesServicePrincipal. /// public KubernetesServicePrincipal() { - _clientId = BicepValue.DefineProperty(this, "ClientId", ["clientId"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"]); - _clientSecret = BicepValue.DefineProperty(this, "ClientSecret", ["clientSecret"]); - _clientCertificate = BicepValue.DefineProperty(this, "ClientCertificate", ["clientCertificate"]); - _clientCertificatePassword = BicepValue.DefineProperty(this, "ClientCertificatePassword", ["clientCertificatePassword"]); - _clientCertificateSendChain = BicepValue.DefineProperty(this, "ClientCertificateSendChain", ["clientCertificateSendChain"]); + } + + /// + /// Define all the provisionable properties of KubernetesServicePrincipal. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _clientId = DefineProperty("ClientId", ["clientId"]); + _tenantId = DefineProperty("TenantId", ["tenantId"]); + _clientSecret = DefineProperty("ClientSecret", ["clientSecret"]); + _clientCertificate = DefineProperty("ClientCertificate", ["clientCertificate"]); + _clientCertificatePassword = DefineProperty("ClientCertificatePassword", ["clientCertificatePassword"]); + _clientCertificateSendChain = DefineProperty("ClientCertificateSendChain", ["clientCertificateSendChain"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/Kustomization.cs b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/Kustomization.cs index 940552d83ae1f..b04a7ac09da08 100644 --- a/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/Kustomization.cs +++ b/sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/src/Generated/Models/Kustomization.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -19,69 +21,108 @@ public partial class Kustomization : ProvisionableConstruct /// Name of the Kustomization, matching the key in the Kustomizations /// object map. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The path in the source reference to reconcile on the cluster. /// - public BicepValue Path { get => _path; set => _path.Assign(value); } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + set { Initialize(); _path!.Assign(value); } + } + private BicepValue? _path; /// /// Specifies other Kustomizations that this Kustomization depends on. This /// Kustomization will not reconcile until all dependencies have completed /// their reconciliation. /// - public BicepList DependsOn { get => _dependsOn; set => _dependsOn.Assign(value); } - private readonly BicepList _dependsOn; + public BicepList DependsOn + { + get { Initialize(); return _dependsOn!; } + set { Initialize(); _dependsOn!.Assign(value); } + } + private BicepList? _dependsOn; /// /// The maximum time to attempt to reconcile the Kustomization on the /// cluster. /// - public BicepValue TimeoutInSeconds { get => _timeoutInSeconds; set => _timeoutInSeconds.Assign(value); } - private readonly BicepValue _timeoutInSeconds; + public BicepValue TimeoutInSeconds + { + get { Initialize(); return _timeoutInSeconds!; } + set { Initialize(); _timeoutInSeconds!.Assign(value); } + } + private BicepValue? _timeoutInSeconds; /// /// The interval at which to re-reconcile the Kustomization on the cluster. /// - public BicepValue SyncIntervalInSeconds { get => _syncIntervalInSeconds; set => _syncIntervalInSeconds.Assign(value); } - private readonly BicepValue _syncIntervalInSeconds; + public BicepValue SyncIntervalInSeconds + { + get { Initialize(); return _syncIntervalInSeconds!; } + set { Initialize(); _syncIntervalInSeconds!.Assign(value); } + } + private BicepValue? _syncIntervalInSeconds; /// /// The interval at which to re-reconcile the Kustomization on the cluster /// in the event of failure on reconciliation. /// - public BicepValue RetryIntervalInSeconds { get => _retryIntervalInSeconds; set => _retryIntervalInSeconds.Assign(value); } - private readonly BicepValue _retryIntervalInSeconds; + public BicepValue RetryIntervalInSeconds + { + get { Initialize(); return _retryIntervalInSeconds!; } + set { Initialize(); _retryIntervalInSeconds!.Assign(value); } + } + private BicepValue? _retryIntervalInSeconds; /// /// Enable/disable garbage collections of Kubernetes objects created by /// this Kustomization. /// - public BicepValue Prune { get => _prune; set => _prune.Assign(value); } - private readonly BicepValue _prune; + public BicepValue Prune + { + get { Initialize(); return _prune!; } + set { Initialize(); _prune!.Assign(value); } + } + private BicepValue? _prune; /// /// Enable/disable re-creating Kubernetes resources on the cluster when /// patching fails due to an immutable field change. /// - public BicepValue Force { get => _force; set => _force.Assign(value); } - private readonly BicepValue _force; + public BicepValue Force + { + get { Initialize(); return _force!; } + set { Initialize(); _force!.Assign(value); } + } + private BicepValue? _force; /// /// Creates a new Kustomization. /// public Kustomization() { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _path = BicepValue.DefineProperty(this, "Path", ["path"]); - _dependsOn = BicepList.DefineProperty(this, "DependsOn", ["dependsOn"]); - _timeoutInSeconds = BicepValue.DefineProperty(this, "TimeoutInSeconds", ["timeoutInSeconds"]); - _syncIntervalInSeconds = BicepValue.DefineProperty(this, "SyncIntervalInSeconds", ["syncIntervalInSeconds"]); - _retryIntervalInSeconds = BicepValue.DefineProperty(this, "RetryIntervalInSeconds", ["retryIntervalInSeconds"]); - _prune = BicepValue.DefineProperty(this, "Prune", ["prune"]); - _force = BicepValue.DefineProperty(this, "Force", ["force"]); + } + + /// + /// Define all the provisionable properties of Kustomization. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isOutput: true); + _path = DefineProperty("Path", ["path"]); + _dependsOn = DefineListProperty("DependsOn", ["dependsOn"]); + _timeoutInSeconds = DefineProperty("TimeoutInSeconds", ["timeoutInSeconds"]); + _syncIntervalInSeconds = DefineProperty("SyncIntervalInSeconds", ["syncIntervalInSeconds"]); + _retryIntervalInSeconds = DefineProperty("RetryIntervalInSeconds", ["retryIntervalInSeconds"]); + _prune = DefineProperty("Prune", ["prune"]); + _force = DefineProperty("Force", ["force"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/api/Azure.Provisioning.OperationalInsights.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/api/Azure.Provisioning.OperationalInsights.netstandard2.0.cs index 3d7e9d67451e6..1a4ae23026dc2 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/api/Azure.Provisioning.OperationalInsights.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/api/Azure.Provisioning.OperationalInsights.netstandard2.0.cs @@ -13,9 +13,10 @@ public partial class LogAnalyticsQuery : Azure.Provisioning.Primitives.Provision public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.OperationalInsights.LogAnalyticsQueryPack? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Related { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.OperationalInsights.LogAnalyticsQueryRelatedMetadata Related { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary> Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.OperationalInsights.LogAnalyticsQuery FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -33,8 +34,9 @@ public partial class LogAnalyticsQueryPack : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue QueryPackId { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.OperationalInsights.LogAnalyticsQueryPack FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -48,6 +50,7 @@ public LogAnalyticsQueryRelatedMetadata() { } public Azure.Provisioning.BicepList Categories { get { throw null; } set { } } public Azure.Provisioning.BicepList ResourceTypes { get { throw null; } set { } } public Azure.Provisioning.BicepList Solutions { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum OperationalInsightsBillingType { @@ -59,27 +62,29 @@ public partial class OperationalInsightsCapacityReservationProperties : Azure.Pr public OperationalInsightsCapacityReservationProperties() { } public Azure.Provisioning.BicepValue LastSkuUpdatedOn { get { throw null; } } public Azure.Provisioning.BicepValue MinCapacity { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class OperationalInsightsCluster : Azure.Provisioning.Primitives.ProvisionableResource { public OperationalInsightsCluster(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepList AssociatedWorkspaces { get { throw null; } set { } } public Azure.Provisioning.BicepValue BillingType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CapacityReservationProperties { get { throw null; } set { } } + public Azure.Provisioning.OperationalInsights.OperationalInsightsCapacityReservationProperties CapacityReservationProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue ClusterId { get { throw null; } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsAvailabilityZonesEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsDoubleEncryptionEnabled { get { throw null; } set { } } - public Azure.Provisioning.BicepValue KeyVaultProperties { get { throw null; } set { } } + public Azure.Provisioning.OperationalInsights.OperationalInsightsKeyVaultProperties KeyVaultProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue LastModifiedOn { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.OperationalInsights.OperationalInsightsClusterSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.OperationalInsights.OperationalInsightsCluster FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -99,6 +104,7 @@ public OperationalInsightsClusterAssociatedWorkspace() { } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } } public Azure.Provisioning.BicepValue WorkspaceId { get { throw null; } } public Azure.Provisioning.BicepValue WorkspaceName { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum OperationalInsightsClusterCapacity { @@ -126,6 +132,7 @@ public partial class OperationalInsightsClusterSku : Azure.Provisioning.Primitiv public OperationalInsightsClusterSku() { } public Azure.Provisioning.BicepValue Capacity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum OperationalInsightsClusterSkuName { @@ -141,6 +148,7 @@ public OperationalInsightsColumn() { } public Azure.Provisioning.BicepValue IsDefaultDisplay { get { throw null; } } public Azure.Provisioning.BicepValue IsHidden { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum OperationalInsightsColumnDataTypeHint { @@ -185,8 +193,9 @@ public partial class OperationalInsightsDataExport : Azure.Provisioning.Primitiv public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepList TableNames { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.OperationalInsights.OperationalInsightsDataExport FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -217,8 +226,9 @@ public partial class OperationalInsightsDataSource : Azure.Provisioning.Primitiv public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.OperationalInsights.OperationalInsightsDataSource FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -277,6 +287,7 @@ public OperationalInsightsKeyVaultProperties() { } public Azure.Provisioning.BicepValue KeyRsaSize { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVaultUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVersion { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class OperationalInsightsLinkedService : Azure.Provisioning.Primitives.ProvisionableResource { @@ -286,9 +297,10 @@ public partial class OperationalInsightsLinkedService : Azure.Provisioning.Primi public Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue WriteAccessResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.OperationalInsights.OperationalInsightsLinkedService FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -311,7 +323,8 @@ public partial class OperationalInsightsLinkedStorageAccounts : Azure.Provisioni public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList StorageAccountIds { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.OperationalInsights.OperationalInsightsLinkedStorageAccounts FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -324,6 +337,7 @@ public partial class OperationalInsightsPrivateLinkScopedResourceInfo : Azure.Pr public OperationalInsightsPrivateLinkScopedResourceInfo() { } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } } public Azure.Provisioning.BicepValue ScopeId { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum OperationalInsightsPublicNetworkAccessType { @@ -342,9 +356,10 @@ public partial class OperationalInsightsSavedSearch : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Query { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepList Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue Version { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.OperationalInsights.OperationalInsightsSavedSearch FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -370,12 +385,14 @@ public OperationalInsightsSchema() { } public Azure.Provisioning.BicepList StandardColumns { get { throw null; } } public Azure.Provisioning.BicepValue TableSubType { get { throw null; } } public Azure.Provisioning.BicepValue TableType { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class OperationalInsightsStorageAccount : Azure.Provisioning.Primitives.ProvisionableConstruct { public OperationalInsightsStorageAccount() { } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } public Azure.Provisioning.BicepValue Key { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class OperationalInsightsTable : Azure.Provisioning.Primitives.ProvisionableResource { @@ -389,13 +406,14 @@ public partial class OperationalInsightsTable : Azure.Provisioning.Primitives.Pr public Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Plan { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue RestoredLogs { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ResultStatistics { get { throw null; } } + public Azure.Provisioning.OperationalInsights.OperationalInsightsTableRestoredLogs RestoredLogs { get { throw null; } set { } } + public Azure.Provisioning.OperationalInsights.OperationalInsightsTableResultStatistics ResultStatistics { get { throw null; } } public Azure.Provisioning.BicepValue RetentionInDays { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Schema { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SearchResults { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.OperationalInsights.OperationalInsightsSchema Schema { get { throw null; } set { } } + public Azure.Provisioning.OperationalInsights.OperationalInsightsTableSearchResults SearchResults { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TotalRetentionInDays { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.OperationalInsights.OperationalInsightsTable FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -430,6 +448,7 @@ public OperationalInsightsTableRestoredLogs() { } public Azure.Provisioning.BicepValue EndRestoreOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceTable { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartRestoreOn { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class OperationalInsightsTableResultStatistics : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -437,6 +456,7 @@ public OperationalInsightsTableResultStatistics() { } public Azure.Provisioning.BicepValue IngestedRecords { get { throw null; } } public Azure.Provisioning.BicepValue Progress { get { throw null; } } public Azure.Provisioning.BicepValue ScannedGB { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class OperationalInsightsTableSearchResults : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -448,6 +468,7 @@ public OperationalInsightsTableSearchResults() { } public Azure.Provisioning.BicepValue Query { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceTable { get { throw null; } } public Azure.Provisioning.BicepValue StartSearchOn { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum OperationalInsightsTableSubType { @@ -467,6 +488,7 @@ public partial class OperationalInsightsTag : Azure.Provisioning.Primitives.Prov public OperationalInsightsTag() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class OperationalInsightsWorkspace : Azure.Provisioning.Primitives.ProvisionableResource { @@ -475,10 +497,10 @@ public partial class OperationalInsightsWorkspace : Azure.Provisioning.Primitive public Azure.Provisioning.BicepValue CustomerId { get { throw null; } } public Azure.Provisioning.BicepValue DefaultDataCollectionRuleResourceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ETag { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Features { get { throw null; } set { } } + public Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspaceFeatures Features { get { throw null; } set { } } public Azure.Provisioning.BicepValue ForceCmkForQuery { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue ModifiedOn { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } @@ -487,10 +509,11 @@ public partial class OperationalInsightsWorkspace : Azure.Provisioning.Primitive public Azure.Provisioning.BicepValue PublicNetworkAccessForIngestion { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicNetworkAccessForQuery { get { throw null; } set { } } public Azure.Provisioning.BicepValue RetentionInDays { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspaceSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } - public Azure.Provisioning.BicepValue WorkspaceCapping { get { throw null; } set { } } + public Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspaceCapping WorkspaceCapping { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspace FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspaceSharedKeys GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -530,6 +553,7 @@ public OperationalInsightsWorkspaceCapping() { } public Azure.Provisioning.BicepValue DailyQuotaInGB { get { throw null; } set { } } public Azure.Provisioning.BicepValue DataIngestionStatus { get { throw null; } } public Azure.Provisioning.BicepValue QuotaNextResetTime { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum OperationalInsightsWorkspaceEntityStatus { @@ -550,14 +574,14 @@ public OperationalInsightsWorkspaceFeatures() { } public Azure.Provisioning.BicepValue IsDataExportEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsLocalAuthDisabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsLogAccessUsingOnlyResourcePermissionsEnabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class OperationalInsightsWorkspaceSharedKeys : Azure.Provisioning.Primitives.ProvisionableConstruct { public OperationalInsightsWorkspaceSharedKeys() { } public Azure.Provisioning.BicepValue PrimarySharedKey { get { throw null; } } public Azure.Provisioning.BicepValue SecondarySharedKey { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspaceSharedKeys FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } } public partial class OperationalInsightsWorkspaceSku : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -565,6 +589,7 @@ public OperationalInsightsWorkspaceSku() { } public Azure.Provisioning.BicepValue CapacityReservationLevel { get { throw null; } set { } } public Azure.Provisioning.BicepValue LastSkuUpdatedOn { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum OperationalInsightsWorkspaceSkuName { @@ -590,11 +615,12 @@ public partial class StorageInsight : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspace? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue StorageAccount { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.OperationalInsights.StorageInsightStatus Status { get { throw null; } } + public Azure.Provisioning.OperationalInsights.OperationalInsightsStorageAccount StorageAccount { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepList Tables { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.OperationalInsights.StorageInsight FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -614,6 +640,7 @@ public partial class StorageInsightStatus : Azure.Provisioning.Primitives.Provis public StorageInsightStatus() { } public Azure.Provisioning.BicepValue Description { get { throw null; } } public Azure.Provisioning.BicepValue State { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum TotalRetentionInDaysAsDefaultState { diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/LogAnalyticsQuery.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/LogAnalyticsQuery.cs index e508b0f0eda98..b4e9abbc62044 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/LogAnalyticsQuery.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/LogAnalyticsQuery.cs @@ -20,26 +20,41 @@ public partial class LogAnalyticsQuery : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Body of the query. /// - public BicepValue Body { get => _body; set => _body.Assign(value); } - private readonly BicepValue _body; + public BicepValue Body + { + get { Initialize(); return _body!; } + set { Initialize(); _body!.Assign(value); } + } + private BicepValue? _body; /// /// Description of the query. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Unique display name for your query within the Query Pack. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// Additional properties that can be set for the query. @@ -57,56 +72,87 @@ public partial class LogAnalyticsQuery : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public BicepValue Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); _properties!.Assign(value); } + } + private BicepValue? _properties; /// /// The related metadata items for the function. /// - public BicepValue Related { get => _related; set => _related.Assign(value); } - private readonly BicepValue _related; + public LogAnalyticsQueryRelatedMetadata Related + { + get { Initialize(); return _related!; } + set { Initialize(); AssignOrReplace(ref _related, value); } + } + private LogAnalyticsQueryRelatedMetadata? _related; /// /// Tags associated with the query. /// - public BicepDictionary> Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary> _tags; + public BicepDictionary> Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary>? _tags; /// /// The unique ID of your application. This field cannot be changed. /// - public BicepValue ApplicationId { get => _applicationId; } - private readonly BicepValue _applicationId; + public BicepValue ApplicationId + { + get { Initialize(); return _applicationId!; } + } + private BicepValue? _applicationId; /// /// Object Id of user creating the query. /// - public BicepValue Author { get => _author; } - private readonly BicepValue _author; + public BicepValue Author + { + get { Initialize(); return _author!; } + } + private BicepValue? _author; /// /// Creation Date for the Log Analytics Query, in ISO 8601 format. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Last modified date of the Log Analytics Query, in ISO 8601 format. /// - public BicepValue ModifiedOn { get => _modifiedOn; } - private readonly BicepValue _modifiedOn; + public BicepValue ModifiedOn + { + get { Initialize(); return _modifiedOn!; } + } + private BicepValue? _modifiedOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent LogAnalyticsQueryPack. /// - public LogAnalyticsQueryPack? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public LogAnalyticsQueryPack? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new LogAnalyticsQuery. @@ -121,19 +167,26 @@ public partial class LogAnalyticsQuery : ProvisionableResource public LogAnalyticsQuery(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.OperationalInsights/queryPacks/queries", resourceVersion ?? "2023-09-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _body = BicepValue.DefineProperty(this, "Body", ["properties", "body"]); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["properties", "displayName"]); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties", "properties"]); - _related = BicepValue.DefineProperty(this, "Related", ["properties", "related"]); - _tags = BicepDictionary>.DefineProperty(this, "Tags", ["properties", "tags"]); - _applicationId = BicepValue.DefineProperty(this, "ApplicationId", ["properties", "id"], isOutput: true); - _author = BicepValue.DefineProperty(this, "Author", ["properties", "author"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "timeCreated"], isOutput: true); - _modifiedOn = BicepValue.DefineProperty(this, "ModifiedOn", ["properties", "timeModified"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of LogAnalyticsQuery. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _body = DefineProperty("Body", ["properties", "body"]); + _description = DefineProperty("Description", ["properties", "description"]); + _displayName = DefineProperty("DisplayName", ["properties", "displayName"]); + _properties = DefineProperty("Properties", ["properties", "properties"]); + _related = DefineModelProperty("Related", ["properties", "related"]); + _tags = DefineDictionaryProperty>("Tags", ["properties", "tags"]); + _applicationId = DefineProperty("ApplicationId", ["properties", "id"], isOutput: true); + _author = DefineProperty("Author", ["properties", "author"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["properties", "timeCreated"], isOutput: true); + _modifiedOn = DefineProperty("ModifiedOn", ["properties", "timeModified"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/LogAnalyticsQueryPack.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/LogAnalyticsQueryPack.cs index d6213a2115d02..989477a35da61 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/LogAnalyticsQueryPack.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/LogAnalyticsQueryPack.cs @@ -21,38 +21,59 @@ public partial class LogAnalyticsQueryPack : ProvisionableResource /// /// The name of the Log Analytics QueryPack resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Creation Date for the Log Analytics QueryPack, in ISO 8601 format. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Last modified date of the Log Analytics QueryPack, in ISO 8601 format. /// - public BicepValue ModifiedOn { get => _modifiedOn; } - private readonly BicepValue _modifiedOn; + public BicepValue ModifiedOn + { + get { Initialize(); return _modifiedOn!; } + } + private BicepValue? _modifiedOn; /// /// Current state of this QueryPack: whether or not is has been provisioned @@ -60,20 +81,29 @@ public partial class LogAnalyticsQueryPack : ProvisionableResource /// value but are able to read from it. Values will include Succeeded, /// Deploying, Canceled, and Failed. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The unique ID of your application. This field cannot be changed. /// - public BicepValue QueryPackId { get => _queryPackId; } - private readonly BicepValue _queryPackId; + public BicepValue QueryPackId + { + get { Initialize(); return _queryPackId!; } + } + private BicepValue? _queryPackId; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new LogAnalyticsQueryPack. @@ -88,15 +118,22 @@ public partial class LogAnalyticsQueryPack : ProvisionableResource public LogAnalyticsQueryPack(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.OperationalInsights/queryPacks", resourceVersion ?? "2023-09-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "timeCreated"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _modifiedOn = BicepValue.DefineProperty(this, "ModifiedOn", ["properties", "timeModified"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _queryPackId = BicepValue.DefineProperty(this, "QueryPackId", ["properties", "queryPackId"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of LogAnalyticsQueryPack. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "timeCreated"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _modifiedOn = DefineProperty("ModifiedOn", ["properties", "timeModified"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _queryPackId = DefineProperty("QueryPackId", ["properties", "queryPackId"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/LogAnalyticsQueryRelatedMetadata.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/LogAnalyticsQueryRelatedMetadata.cs index d780e6115070a..7066299d8c5e1 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/LogAnalyticsQueryRelatedMetadata.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/LogAnalyticsQueryRelatedMetadata.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,49 @@ public partial class LogAnalyticsQueryRelatedMetadata : ProvisionableConstruct /// /// The related categories for the function. /// - public BicepList Categories { get => _categories; set => _categories.Assign(value); } - private readonly BicepList _categories; + public BicepList Categories + { + get { Initialize(); return _categories!; } + set { Initialize(); _categories!.Assign(value); } + } + private BicepList? _categories; /// /// The related resource types for the function. /// - public BicepList ResourceTypes { get => _resourceTypes; set => _resourceTypes.Assign(value); } - private readonly BicepList _resourceTypes; + public BicepList ResourceTypes + { + get { Initialize(); return _resourceTypes!; } + set { Initialize(); _resourceTypes!.Assign(value); } + } + private BicepList? _resourceTypes; /// /// The related Log Analytics solutions for the function. /// - public BicepList Solutions { get => _solutions; set => _solutions.Assign(value); } - private readonly BicepList _solutions; + public BicepList Solutions + { + get { Initialize(); return _solutions!; } + set { Initialize(); _solutions!.Assign(value); } + } + private BicepList? _solutions; /// /// Creates a new LogAnalyticsQueryRelatedMetadata. /// public LogAnalyticsQueryRelatedMetadata() { - _categories = BicepList.DefineProperty(this, "Categories", ["categories"]); - _resourceTypes = BicepList.DefineProperty(this, "ResourceTypes", ["resourceTypes"]); - _solutions = BicepList.DefineProperty(this, "Solutions", ["solutions"]); + } + + /// + /// Define all the provisionable properties of + /// LogAnalyticsQueryRelatedMetadata. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _categories = DefineListProperty("Categories", ["categories"]); + _resourceTypes = DefineListProperty("ResourceTypes", ["resourceTypes"]); + _solutions = DefineListProperty("Solutions", ["solutions"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsCapacityReservationProperties.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsCapacityReservationProperties.cs index 0f2f6bbf1a80a..1748fbc33b17b 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsCapacityReservationProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsCapacityReservationProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,36 @@ public partial class OperationalInsightsCapacityReservationProperties : Provisio /// /// The last time Sku was updated. /// - public BicepValue LastSkuUpdatedOn { get => _lastSkuUpdatedOn; } - private readonly BicepValue _lastSkuUpdatedOn; + public BicepValue LastSkuUpdatedOn + { + get { Initialize(); return _lastSkuUpdatedOn!; } + } + private BicepValue? _lastSkuUpdatedOn; /// /// Minimum CapacityReservation value in GB. /// - public BicepValue MinCapacity { get => _minCapacity; } - private readonly BicepValue _minCapacity; + public BicepValue MinCapacity + { + get { Initialize(); return _minCapacity!; } + } + private BicepValue? _minCapacity; /// /// Creates a new OperationalInsightsCapacityReservationProperties. /// public OperationalInsightsCapacityReservationProperties() { - _lastSkuUpdatedOn = BicepValue.DefineProperty(this, "LastSkuUpdatedOn", ["lastSkuUpdate"], isOutput: true); - _minCapacity = BicepValue.DefineProperty(this, "MinCapacity", ["minCapacity"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsCapacityReservationProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _lastSkuUpdatedOn = DefineProperty("LastSkuUpdatedOn", ["lastSkuUpdate"], isOutput: true); + _minCapacity = DefineProperty("MinCapacity", ["minCapacity"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsClusterAssociatedWorkspace.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsClusterAssociatedWorkspace.cs index 0b820a4ef3624..d21d89981cb68 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsClusterAssociatedWorkspace.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsClusterAssociatedWorkspace.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,56 @@ public partial class OperationalInsightsClusterAssociatedWorkspace : Provisionab /// /// The id of the assigned workspace. /// - public BicepValue WorkspaceId { get => _workspaceId; } - private readonly BicepValue _workspaceId; + public BicepValue WorkspaceId + { + get { Initialize(); return _workspaceId!; } + } + private BicepValue? _workspaceId; /// /// The name id the assigned workspace. /// - public BicepValue WorkspaceName { get => _workspaceName; } - private readonly BicepValue _workspaceName; + public BicepValue WorkspaceName + { + get { Initialize(); return _workspaceName!; } + } + private BicepValue? _workspaceName; /// /// The ResourceId id the assigned workspace. /// - public BicepValue ResourceId { get => _resourceId; } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + } + private BicepValue? _resourceId; /// /// The time of workspace association. /// - public BicepValue AssociatedOn { get => _associatedOn; } - private readonly BicepValue _associatedOn; + public BicepValue AssociatedOn + { + get { Initialize(); return _associatedOn!; } + } + private BicepValue? _associatedOn; /// /// Creates a new OperationalInsightsClusterAssociatedWorkspace. /// public OperationalInsightsClusterAssociatedWorkspace() { - _workspaceId = BicepValue.DefineProperty(this, "WorkspaceId", ["workspaceId"], isOutput: true); - _workspaceName = BicepValue.DefineProperty(this, "WorkspaceName", ["workspaceName"], isOutput: true); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["resourceId"], isOutput: true); - _associatedOn = BicepValue.DefineProperty(this, "AssociatedOn", ["associateDate"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsClusterAssociatedWorkspace. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _workspaceId = DefineProperty("WorkspaceId", ["workspaceId"], isOutput: true); + _workspaceName = DefineProperty("WorkspaceName", ["workspaceName"], isOutput: true); + _resourceId = DefineProperty("ResourceId", ["resourceId"], isOutput: true); + _associatedOn = DefineProperty("AssociatedOn", ["associateDate"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsClusterSku.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsClusterSku.cs index 65dbc11b9a5db..862af2e5d46f0 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsClusterSku.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsClusterSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.OperationalInsights; @@ -15,21 +17,38 @@ public partial class OperationalInsightsClusterSku : ProvisionableConstruct /// /// The capacity value. /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// The name of the SKU. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new OperationalInsightsClusterSku. /// public OperationalInsightsClusterSku() { - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsClusterSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _capacity = DefineProperty("Capacity", ["capacity"]); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsColumn.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsColumn.cs index 4ec31632dedbb..30fb449340594 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsColumn.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsColumn.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,56 +18,90 @@ public partial class OperationalInsightsColumn : ProvisionableConstruct /// /// Column name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Column data type. /// - public BicepValue ColumnType { get => _columnType; set => _columnType.Assign(value); } - private readonly BicepValue _columnType; + public BicepValue ColumnType + { + get { Initialize(); return _columnType!; } + set { Initialize(); _columnType!.Assign(value); } + } + private BicepValue? _columnType; /// /// Column data type logical hint. /// - public BicepValue DataTypeHint { get => _dataTypeHint; set => _dataTypeHint.Assign(value); } - private readonly BicepValue _dataTypeHint; + public BicepValue DataTypeHint + { + get { Initialize(); return _dataTypeHint!; } + set { Initialize(); _dataTypeHint!.Assign(value); } + } + private BicepValue? _dataTypeHint; /// /// Column display name. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// Column description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Is displayed by default. /// - public BicepValue IsDefaultDisplay { get => _isDefaultDisplay; } - private readonly BicepValue _isDefaultDisplay; + public BicepValue IsDefaultDisplay + { + get { Initialize(); return _isDefaultDisplay!; } + } + private BicepValue? _isDefaultDisplay; /// /// Is column hidden. /// - public BicepValue IsHidden { get => _isHidden; } - private readonly BicepValue _isHidden; + public BicepValue IsHidden + { + get { Initialize(); return _isHidden!; } + } + private BicepValue? _isHidden; /// /// Creates a new OperationalInsightsColumn. /// public OperationalInsightsColumn() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _columnType = BicepValue.DefineProperty(this, "ColumnType", ["type"]); - _dataTypeHint = BicepValue.DefineProperty(this, "DataTypeHint", ["dataTypeHint"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _isDefaultDisplay = BicepValue.DefineProperty(this, "IsDefaultDisplay", ["isDefaultDisplay"], isOutput: true); - _isHidden = BicepValue.DefineProperty(this, "IsHidden", ["isHidden"], isOutput: true); + } + + /// + /// Define all the provisionable properties of OperationalInsightsColumn. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _columnType = DefineProperty("ColumnType", ["type"]); + _dataTypeHint = DefineProperty("DataTypeHint", ["dataTypeHint"]); + _displayName = DefineProperty("DisplayName", ["displayName"]); + _description = DefineProperty("Description", ["description"]); + _isDefaultDisplay = DefineProperty("IsDefaultDisplay", ["isDefaultDisplay"], isOutput: true); + _isHidden = DefineProperty("IsHidden", ["isHidden"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsKeyVaultProperties.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsKeyVaultProperties.cs index d0737f509ee00..e6163c41e19e7 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsKeyVaultProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsKeyVaultProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,60 @@ public partial class OperationalInsightsKeyVaultProperties : ProvisionableConstr /// The Key Vault uri which holds they key associated with the Log /// Analytics cluster. /// - public BicepValue KeyVaultUri { get => _keyVaultUri; set => _keyVaultUri.Assign(value); } - private readonly BicepValue _keyVaultUri; + public BicepValue KeyVaultUri + { + get { Initialize(); return _keyVaultUri!; } + set { Initialize(); _keyVaultUri!.Assign(value); } + } + private BicepValue? _keyVaultUri; /// /// The name of the key associated with the Log Analytics cluster. /// - public BicepValue KeyName { get => _keyName; set => _keyName.Assign(value); } - private readonly BicepValue _keyName; + public BicepValue KeyName + { + get { Initialize(); return _keyName!; } + set { Initialize(); _keyName!.Assign(value); } + } + private BicepValue? _keyName; /// /// The version of the key associated with the Log Analytics cluster. /// - public BicepValue KeyVersion { get => _keyVersion; set => _keyVersion.Assign(value); } - private readonly BicepValue _keyVersion; + public BicepValue KeyVersion + { + get { Initialize(); return _keyVersion!; } + set { Initialize(); _keyVersion!.Assign(value); } + } + private BicepValue? _keyVersion; /// /// Selected key minimum required size. /// - public BicepValue KeyRsaSize { get => _keyRsaSize; set => _keyRsaSize.Assign(value); } - private readonly BicepValue _keyRsaSize; + public BicepValue KeyRsaSize + { + get { Initialize(); return _keyRsaSize!; } + set { Initialize(); _keyRsaSize!.Assign(value); } + } + private BicepValue? _keyRsaSize; /// /// Creates a new OperationalInsightsKeyVaultProperties. /// public OperationalInsightsKeyVaultProperties() { - _keyVaultUri = BicepValue.DefineProperty(this, "KeyVaultUri", ["keyVaultUri"]); - _keyName = BicepValue.DefineProperty(this, "KeyName", ["keyName"]); - _keyVersion = BicepValue.DefineProperty(this, "KeyVersion", ["keyVersion"]); - _keyRsaSize = BicepValue.DefineProperty(this, "KeyRsaSize", ["keyRsaSize"]); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsKeyVaultProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyVaultUri = DefineProperty("KeyVaultUri", ["keyVaultUri"]); + _keyName = DefineProperty("KeyName", ["keyName"]); + _keyVersion = DefineProperty("KeyVersion", ["keyVersion"]); + _keyRsaSize = DefineProperty("KeyRsaSize", ["keyRsaSize"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsPrivateLinkScopedResourceInfo.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsPrivateLinkScopedResourceInfo.cs index 4f863914b1f78..f875731170917 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsPrivateLinkScopedResourceInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsPrivateLinkScopedResourceInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,36 @@ public partial class OperationalInsightsPrivateLinkScopedResourceInfo : Provisio /// /// The full resource Id of the private link scope resource. /// - public BicepValue ResourceId { get => _resourceId; } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + } + private BicepValue? _resourceId; /// /// The private link scope unique Identifier. /// - public BicepValue ScopeId { get => _scopeId; } - private readonly BicepValue _scopeId; + public BicepValue ScopeId + { + get { Initialize(); return _scopeId!; } + } + private BicepValue? _scopeId; /// /// Creates a new OperationalInsightsPrivateLinkScopedResourceInfo. /// public OperationalInsightsPrivateLinkScopedResourceInfo() { - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["resourceId"], isOutput: true); - _scopeId = BicepValue.DefineProperty(this, "ScopeId", ["scopeId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsPrivateLinkScopedResourceInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _resourceId = DefineProperty("ResourceId", ["resourceId"], isOutput: true); + _scopeId = DefineProperty("ScopeId", ["scopeId"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsSchema.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsSchema.cs index ee59cde9e4008..cb683a10fd2b5 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsSchema.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsSchema.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,85 +19,130 @@ public partial class OperationalInsightsSchema : ProvisionableConstruct /// /// Table name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Table display name. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// Table description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// A list of table custom columns. /// - public BicepList Columns { get => _columns; set => _columns.Assign(value); } - private readonly BicepList _columns; + public BicepList Columns + { + get { Initialize(); return _columns!; } + set { Initialize(); _columns!.Assign(value); } + } + private BicepList? _columns; /// /// A list of table standard columns. /// - public BicepList StandardColumns { get => _standardColumns; } - private readonly BicepList _standardColumns; + public BicepList StandardColumns + { + get { Initialize(); return _standardColumns!; } + } + private BicepList? _standardColumns; /// /// Table category. /// - public BicepList Categories { get => _categories; } - private readonly BicepList _categories; + public BicepList Categories + { + get { Initialize(); return _categories!; } + } + private BicepList? _categories; /// /// Table labels. /// - public BicepList Labels { get => _labels; } - private readonly BicepList _labels; + public BicepList Labels + { + get { Initialize(); return _labels!; } + } + private BicepList? _labels; /// /// Table's creator. /// - public BicepValue Source { get => _source; } - private readonly BicepValue _source; + public BicepValue Source + { + get { Initialize(); return _source!; } + } + private BicepValue? _source; /// /// Table's creator. /// - public BicepValue TableType { get => _tableType; } - private readonly BicepValue _tableType; + public BicepValue TableType + { + get { Initialize(); return _tableType!; } + } + private BicepValue? _tableType; /// /// The subtype describes what APIs can be used to interact with the table, /// and what features are available against it. /// - public BicepValue TableSubType { get => _tableSubType; } - private readonly BicepValue _tableSubType; + public BicepValue TableSubType + { + get { Initialize(); return _tableSubType!; } + } + private BicepValue? _tableSubType; /// /// List of solutions the table is affiliated with. /// - public BicepList Solutions { get => _solutions; } - private readonly BicepList _solutions; + public BicepList Solutions + { + get { Initialize(); return _solutions!; } + } + private BicepList? _solutions; /// /// Creates a new OperationalInsightsSchema. /// public OperationalInsightsSchema() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _columns = BicepList.DefineProperty(this, "Columns", ["columns"]); - _standardColumns = BicepList.DefineProperty(this, "StandardColumns", ["standardColumns"], isOutput: true); - _categories = BicepList.DefineProperty(this, "Categories", ["categories"], isOutput: true); - _labels = BicepList.DefineProperty(this, "Labels", ["labels"], isOutput: true); - _source = BicepValue.DefineProperty(this, "Source", ["source"], isOutput: true); - _tableType = BicepValue.DefineProperty(this, "TableType", ["tableType"], isOutput: true); - _tableSubType = BicepValue.DefineProperty(this, "TableSubType", ["tableSubType"], isOutput: true); - _solutions = BicepList.DefineProperty(this, "Solutions", ["solutions"], isOutput: true); + } + + /// + /// Define all the provisionable properties of OperationalInsightsSchema. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _displayName = DefineProperty("DisplayName", ["displayName"]); + _description = DefineProperty("Description", ["description"]); + _columns = DefineListProperty("Columns", ["columns"]); + _standardColumns = DefineListProperty("StandardColumns", ["standardColumns"], isOutput: true); + _categories = DefineListProperty("Categories", ["categories"], isOutput: true); + _labels = DefineListProperty("Labels", ["labels"], isOutput: true); + _source = DefineProperty("Source", ["source"], isOutput: true); + _tableType = DefineProperty("TableType", ["tableType"], isOutput: true); + _tableSubType = DefineProperty("TableSubType", ["tableSubType"], isOutput: true); + _solutions = DefineListProperty("Solutions", ["solutions"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsStorageAccount.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsStorageAccount.cs index 07ec291aaf66d..f38030838555a 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsStorageAccount.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsStorageAccount.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class OperationalInsightsStorageAccount : ProvisionableConstruct /// /// The Azure Resource Manager ID of the storage account resource. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// The storage account key. /// - public BicepValue Key { get => _key; set => _key.Assign(value); } - private readonly BicepValue _key; + public BicepValue Key + { + get { Initialize(); return _key!; } + set { Initialize(); _key!.Assign(value); } + } + private BicepValue? _key; /// /// Creates a new OperationalInsightsStorageAccount. /// public OperationalInsightsStorageAccount() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _key = BicepValue.DefineProperty(this, "Key", ["key"]); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsStorageAccount. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _key = DefineProperty("Key", ["key"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTableRestoredLogs.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTableRestoredLogs.cs index 5a8809524e5fe..24d7a89681a7d 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTableRestoredLogs.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTableRestoredLogs.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class OperationalInsightsTableRestoredLogs : ProvisionableConstru /// /// The timestamp to start the restore from (UTC). /// - public BicepValue StartRestoreOn { get => _startRestoreOn; set => _startRestoreOn.Assign(value); } - private readonly BicepValue _startRestoreOn; + public BicepValue StartRestoreOn + { + get { Initialize(); return _startRestoreOn!; } + set { Initialize(); _startRestoreOn!.Assign(value); } + } + private BicepValue? _startRestoreOn; /// /// The timestamp to end the restore by (UTC). /// - public BicepValue EndRestoreOn { get => _endRestoreOn; set => _endRestoreOn.Assign(value); } - private readonly BicepValue _endRestoreOn; + public BicepValue EndRestoreOn + { + get { Initialize(); return _endRestoreOn!; } + set { Initialize(); _endRestoreOn!.Assign(value); } + } + private BicepValue? _endRestoreOn; /// /// The table to restore data from. /// - public BicepValue SourceTable { get => _sourceTable; set => _sourceTable.Assign(value); } - private readonly BicepValue _sourceTable; + public BicepValue SourceTable + { + get { Initialize(); return _sourceTable!; } + set { Initialize(); _sourceTable!.Assign(value); } + } + private BicepValue? _sourceTable; /// /// Search results table async operation id. /// - public BicepValue AzureAsyncOperationId { get => _azureAsyncOperationId; } - private readonly BicepValue _azureAsyncOperationId; + public BicepValue AzureAsyncOperationId + { + get { Initialize(); return _azureAsyncOperationId!; } + } + private BicepValue? _azureAsyncOperationId; /// /// Creates a new OperationalInsightsTableRestoredLogs. /// public OperationalInsightsTableRestoredLogs() { - _startRestoreOn = BicepValue.DefineProperty(this, "StartRestoreOn", ["startRestoreTime"]); - _endRestoreOn = BicepValue.DefineProperty(this, "EndRestoreOn", ["endRestoreTime"]); - _sourceTable = BicepValue.DefineProperty(this, "SourceTable", ["sourceTable"]); - _azureAsyncOperationId = BicepValue.DefineProperty(this, "AzureAsyncOperationId", ["azureAsyncOperationId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsTableRestoredLogs. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _startRestoreOn = DefineProperty("StartRestoreOn", ["startRestoreTime"]); + _endRestoreOn = DefineProperty("EndRestoreOn", ["endRestoreTime"]); + _sourceTable = DefineProperty("SourceTable", ["sourceTable"]); + _azureAsyncOperationId = DefineProperty("AzureAsyncOperationId", ["azureAsyncOperationId"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTableResultStatistics.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTableResultStatistics.cs index 0c838e5d0d603..6af8f6784cdad 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTableResultStatistics.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTableResultStatistics.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,46 @@ public partial class OperationalInsightsTableResultStatistics : ProvisionableCon /// /// Search job completion percentage. /// - public BicepValue Progress { get => _progress; } - private readonly BicepValue _progress; + public BicepValue Progress + { + get { Initialize(); return _progress!; } + } + private BicepValue? _progress; /// /// The number of rows that were returned by the search job. /// - public BicepValue IngestedRecords { get => _ingestedRecords; } - private readonly BicepValue _ingestedRecords; + public BicepValue IngestedRecords + { + get { Initialize(); return _ingestedRecords!; } + } + private BicepValue? _ingestedRecords; /// /// Search job: Amount of scanned data. /// - public BicepValue ScannedGB { get => _scannedGB; } - private readonly BicepValue _scannedGB; + public BicepValue ScannedGB + { + get { Initialize(); return _scannedGB!; } + } + private BicepValue? _scannedGB; /// /// Creates a new OperationalInsightsTableResultStatistics. /// public OperationalInsightsTableResultStatistics() { - _progress = BicepValue.DefineProperty(this, "Progress", ["progress"], isOutput: true); - _ingestedRecords = BicepValue.DefineProperty(this, "IngestedRecords", ["ingestedRecords"], isOutput: true); - _scannedGB = BicepValue.DefineProperty(this, "ScannedGB", ["scannedGb"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsTableResultStatistics. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _progress = DefineProperty("Progress", ["progress"], isOutput: true); + _ingestedRecords = DefineProperty("IngestedRecords", ["ingestedRecords"], isOutput: true); + _scannedGB = DefineProperty("ScannedGB", ["scannedGb"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTableSearchResults.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTableSearchResults.cs index 5e1b15bc5805c..79f24ec646a07 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTableSearchResults.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTableSearchResults.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,56 +18,91 @@ public partial class OperationalInsightsTableSearchResults : ProvisionableConstr /// /// Search job query. /// - public BicepValue Query { get => _query; set => _query.Assign(value); } - private readonly BicepValue _query; + public BicepValue Query + { + get { Initialize(); return _query!; } + set { Initialize(); _query!.Assign(value); } + } + private BicepValue? _query; /// /// Search job Description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Limit the search job to return up to specified number of rows. /// - public BicepValue Limit { get => _limit; set => _limit.Assign(value); } - private readonly BicepValue _limit; + public BicepValue Limit + { + get { Initialize(); return _limit!; } + set { Initialize(); _limit!.Assign(value); } + } + private BicepValue? _limit; /// /// The timestamp to start the search from (UTC). /// - public BicepValue StartSearchOn { get => _startSearchOn; set => _startSearchOn.Assign(value); } - private readonly BicepValue _startSearchOn; + public BicepValue StartSearchOn + { + get { Initialize(); return _startSearchOn!; } + set { Initialize(); _startSearchOn!.Assign(value); } + } + private BicepValue? _startSearchOn; /// /// The timestamp to end the search by (UTC). /// - public BicepValue EndSearchOn { get => _endSearchOn; set => _endSearchOn.Assign(value); } - private readonly BicepValue _endSearchOn; + public BicepValue EndSearchOn + { + get { Initialize(); return _endSearchOn!; } + set { Initialize(); _endSearchOn!.Assign(value); } + } + private BicepValue? _endSearchOn; /// /// The table used in the search job. /// - public BicepValue SourceTable { get => _sourceTable; } - private readonly BicepValue _sourceTable; + public BicepValue SourceTable + { + get { Initialize(); return _sourceTable!; } + } + private BicepValue? _sourceTable; /// /// Search results table async operation id. /// - public BicepValue AzureAsyncOperationId { get => _azureAsyncOperationId; } - private readonly BicepValue _azureAsyncOperationId; + public BicepValue AzureAsyncOperationId + { + get { Initialize(); return _azureAsyncOperationId!; } + } + private BicepValue? _azureAsyncOperationId; /// /// Creates a new OperationalInsightsTableSearchResults. /// public OperationalInsightsTableSearchResults() { - _query = BicepValue.DefineProperty(this, "Query", ["query"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _limit = BicepValue.DefineProperty(this, "Limit", ["limit"]); - _startSearchOn = BicepValue.DefineProperty(this, "StartSearchOn", ["startSearchTime"]); - _endSearchOn = BicepValue.DefineProperty(this, "EndSearchOn", ["endSearchTime"]); - _sourceTable = BicepValue.DefineProperty(this, "SourceTable", ["sourceTable"], isOutput: true); - _azureAsyncOperationId = BicepValue.DefineProperty(this, "AzureAsyncOperationId", ["azureAsyncOperationId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsTableSearchResults. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _query = DefineProperty("Query", ["query"]); + _description = DefineProperty("Description", ["description"]); + _limit = DefineProperty("Limit", ["limit"]); + _startSearchOn = DefineProperty("StartSearchOn", ["startSearchTime"]); + _endSearchOn = DefineProperty("EndSearchOn", ["endSearchTime"]); + _sourceTable = DefineProperty("SourceTable", ["sourceTable"], isOutput: true); + _azureAsyncOperationId = DefineProperty("AzureAsyncOperationId", ["azureAsyncOperationId"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTag.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTag.cs index be960b1b0c741..faaa7640037d1 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTag.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsTag.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class OperationalInsightsTag : ProvisionableConstruct /// /// The tag name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The tag value. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new OperationalInsightsTag. /// public OperationalInsightsTag() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of OperationalInsightsTag. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceCapping.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceCapping.cs index 0631d8bd995a4..918667acb16e8 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceCapping.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceCapping.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,47 @@ public partial class OperationalInsightsWorkspaceCapping : ProvisionableConstruc /// /// The workspace daily quota for ingestion. /// - public BicepValue DailyQuotaInGB { get => _dailyQuotaInGB; set => _dailyQuotaInGB.Assign(value); } - private readonly BicepValue _dailyQuotaInGB; + public BicepValue DailyQuotaInGB + { + get { Initialize(); return _dailyQuotaInGB!; } + set { Initialize(); _dailyQuotaInGB!.Assign(value); } + } + private BicepValue? _dailyQuotaInGB; /// /// The time when the quota will be rest. /// - public BicepValue QuotaNextResetTime { get => _quotaNextResetTime; } - private readonly BicepValue _quotaNextResetTime; + public BicepValue QuotaNextResetTime + { + get { Initialize(); return _quotaNextResetTime!; } + } + private BicepValue? _quotaNextResetTime; /// /// The status of data ingestion for this workspace. /// - public BicepValue DataIngestionStatus { get => _dataIngestionStatus; } - private readonly BicepValue _dataIngestionStatus; + public BicepValue DataIngestionStatus + { + get { Initialize(); return _dataIngestionStatus!; } + } + private BicepValue? _dataIngestionStatus; /// /// Creates a new OperationalInsightsWorkspaceCapping. /// public OperationalInsightsWorkspaceCapping() { - _dailyQuotaInGB = BicepValue.DefineProperty(this, "DailyQuotaInGB", ["dailyQuotaGb"]); - _quotaNextResetTime = BicepValue.DefineProperty(this, "QuotaNextResetTime", ["quotaNextResetTime"], isOutput: true); - _dataIngestionStatus = BicepValue.DefineProperty(this, "DataIngestionStatus", ["dataIngestionStatus"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsWorkspaceCapping. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _dailyQuotaInGB = DefineProperty("DailyQuotaInGB", ["dailyQuotaGb"]); + _quotaNextResetTime = DefineProperty("QuotaNextResetTime", ["quotaNextResetTime"], isOutput: true); + _dataIngestionStatus = DefineProperty("DataIngestionStatus", ["dataIngestionStatus"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceFeatures.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceFeatures.cs index c7c0fe5d11663..11bed221775aa 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceFeatures.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceFeatures.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,33 +20,53 @@ public partial class OperationalInsightsWorkspaceFeatures : ProvisionableConstru /// /// Flag that indicate if data should be exported. /// - public BicepValue IsDataExportEnabled { get => _isDataExportEnabled; set => _isDataExportEnabled.Assign(value); } - private readonly BicepValue _isDataExportEnabled; + public BicepValue IsDataExportEnabled + { + get { Initialize(); return _isDataExportEnabled!; } + set { Initialize(); _isDataExportEnabled!.Assign(value); } + } + private BicepValue? _isDataExportEnabled; /// /// Flag that describes if we want to remove the data after 30 days. /// - public BicepValue ImmediatePurgeDataOn30Days { get => _immediatePurgeDataOn30Days; set => _immediatePurgeDataOn30Days.Assign(value); } - private readonly BicepValue _immediatePurgeDataOn30Days; + public BicepValue ImmediatePurgeDataOn30Days + { + get { Initialize(); return _immediatePurgeDataOn30Days!; } + set { Initialize(); _immediatePurgeDataOn30Days!.Assign(value); } + } + private BicepValue? _immediatePurgeDataOn30Days; /// /// Flag that indicate which permission to use - resource or workspace or /// both. /// - public BicepValue IsLogAccessUsingOnlyResourcePermissionsEnabled { get => _isLogAccessUsingOnlyResourcePermissionsEnabled; set => _isLogAccessUsingOnlyResourcePermissionsEnabled.Assign(value); } - private readonly BicepValue _isLogAccessUsingOnlyResourcePermissionsEnabled; + public BicepValue IsLogAccessUsingOnlyResourcePermissionsEnabled + { + get { Initialize(); return _isLogAccessUsingOnlyResourcePermissionsEnabled!; } + set { Initialize(); _isLogAccessUsingOnlyResourcePermissionsEnabled!.Assign(value); } + } + private BicepValue? _isLogAccessUsingOnlyResourcePermissionsEnabled; /// /// Dedicated LA cluster resourceId that is linked to the workspaces. /// - public BicepValue ClusterResourceId { get => _clusterResourceId; set => _clusterResourceId.Assign(value); } - private readonly BicepValue _clusterResourceId; + public BicepValue ClusterResourceId + { + get { Initialize(); return _clusterResourceId!; } + set { Initialize(); _clusterResourceId!.Assign(value); } + } + private BicepValue? _clusterResourceId; /// /// Disable Non-AAD based Auth. /// - public BicepValue IsLocalAuthDisabled { get => _isLocalAuthDisabled; set => _isLocalAuthDisabled.Assign(value); } - private readonly BicepValue _isLocalAuthDisabled; + public BicepValue IsLocalAuthDisabled + { + get { Initialize(); return _isLocalAuthDisabled!; } + set { Initialize(); _isLocalAuthDisabled!.Assign(value); } + } + private BicepValue? _isLocalAuthDisabled; /// /// Additional Properties To assign an object to @@ -62,19 +84,32 @@ public partial class OperationalInsightsWorkspaceFeatures : ProvisionableConstru /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepDictionary AdditionalProperties { get => _additionalProperties; set => _additionalProperties.Assign(value); } - private readonly BicepDictionary _additionalProperties; + public BicepDictionary AdditionalProperties + { + get { Initialize(); return _additionalProperties!; } + set { Initialize(); _additionalProperties!.Assign(value); } + } + private BicepDictionary? _additionalProperties; /// /// Creates a new OperationalInsightsWorkspaceFeatures. /// public OperationalInsightsWorkspaceFeatures() { - _isDataExportEnabled = BicepValue.DefineProperty(this, "IsDataExportEnabled", ["enableDataExport"]); - _immediatePurgeDataOn30Days = BicepValue.DefineProperty(this, "ImmediatePurgeDataOn30Days", ["immediatePurgeDataOn30Days"]); - _isLogAccessUsingOnlyResourcePermissionsEnabled = BicepValue.DefineProperty(this, "IsLogAccessUsingOnlyResourcePermissionsEnabled", ["enableLogAccessUsingOnlyResourcePermissions"]); - _clusterResourceId = BicepValue.DefineProperty(this, "ClusterResourceId", ["clusterResourceId"]); - _isLocalAuthDisabled = BicepValue.DefineProperty(this, "IsLocalAuthDisabled", ["disableLocalAuth"]); - _additionalProperties = BicepDictionary.DefineProperty(this, "AdditionalProperties", ["AdditionalProperties"]); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsWorkspaceFeatures. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isDataExportEnabled = DefineProperty("IsDataExportEnabled", ["enableDataExport"]); + _immediatePurgeDataOn30Days = DefineProperty("ImmediatePurgeDataOn30Days", ["immediatePurgeDataOn30Days"]); + _isLogAccessUsingOnlyResourcePermissionsEnabled = DefineProperty("IsLogAccessUsingOnlyResourcePermissionsEnabled", ["enableLogAccessUsingOnlyResourcePermissions"]); + _clusterResourceId = DefineProperty("ClusterResourceId", ["clusterResourceId"]); + _isLocalAuthDisabled = DefineProperty("IsLocalAuthDisabled", ["disableLocalAuth"]); + _additionalProperties = DefineDictionaryProperty("AdditionalProperties", ["AdditionalProperties"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceSharedKeys.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceSharedKeys.cs index c54b6e959ab5a..077c1ec30bba5 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceSharedKeys.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceSharedKeys.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Expressions; using Azure.Provisioning.Primitives; using System; @@ -18,39 +20,36 @@ public partial class OperationalInsightsWorkspaceSharedKeys : ProvisionableConst /// /// The primary shared key of a workspace. /// - public BicepValue PrimarySharedKey { get => _primarySharedKey; } - private readonly BicepValue _primarySharedKey; + public BicepValue PrimarySharedKey + { + get { Initialize(); return _primarySharedKey!; } + } + private BicepValue? _primarySharedKey; /// /// The secondary shared key of a workspace. /// - public BicepValue SecondarySharedKey { get => _secondarySharedKey; } - private readonly BicepValue _secondarySharedKey; + public BicepValue SecondarySharedKey + { + get { Initialize(); return _secondarySharedKey!; } + } + private BicepValue? _secondarySharedKey; /// /// Creates a new OperationalInsightsWorkspaceSharedKeys. /// public OperationalInsightsWorkspaceSharedKeys() { - _primarySharedKey = BicepValue.DefineProperty(this, "PrimarySharedKey", ["primarySharedKey"], isOutput: true, isSecure: true); - _secondarySharedKey = BicepValue.DefineProperty(this, "SecondarySharedKey", ["secondarySharedKey"], isOutput: true, isSecure: true); } /// - /// Creates a new OperationalInsightsWorkspaceSharedKeys resource from a - /// Bicep expression that evaluates to a + /// Define all the provisionable properties of /// OperationalInsightsWorkspaceSharedKeys. /// - /// - /// A Bicep expression that evaluates to a - /// OperationalInsightsWorkspaceSharedKeys resource. - /// - /// A OperationalInsightsWorkspaceSharedKeys resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static OperationalInsightsWorkspaceSharedKeys FromExpression(BicepExpression expression) + protected override void DefineProvisionableProperties() { - OperationalInsightsWorkspaceSharedKeys resource = new(); - resource.OverrideWithExpression(expression); - return resource; + base.DefineProvisionableProperties(); + _primarySharedKey = DefineProperty("PrimarySharedKey", ["primarySharedKey"], isOutput: true, isSecure: true); + _secondarySharedKey = DefineProperty("SecondarySharedKey", ["secondarySharedKey"], isOutput: true, isSecure: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceSku.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceSku.cs index 1a7de4b86f80c..e83f87e30992b 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceSku.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,49 @@ public partial class OperationalInsightsWorkspaceSku : ProvisionableConstruct /// /// The name of the SKU. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The capacity reservation level in GB for this workspace, when /// CapacityReservation sku is selected. /// - public BicepValue CapacityReservationLevel { get => _capacityReservationLevel; set => _capacityReservationLevel.Assign(value); } - private readonly BicepValue _capacityReservationLevel; + public BicepValue CapacityReservationLevel + { + get { Initialize(); return _capacityReservationLevel!; } + set { Initialize(); _capacityReservationLevel!.Assign(value); } + } + private BicepValue? _capacityReservationLevel; /// /// The last time when the sku was updated. /// - public BicepValue LastSkuUpdatedOn { get => _lastSkuUpdatedOn; } - private readonly BicepValue _lastSkuUpdatedOn; + public BicepValue LastSkuUpdatedOn + { + get { Initialize(); return _lastSkuUpdatedOn!; } + } + private BicepValue? _lastSkuUpdatedOn; /// /// Creates a new OperationalInsightsWorkspaceSku. /// public OperationalInsightsWorkspaceSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _capacityReservationLevel = BicepValue.DefineProperty(this, "CapacityReservationLevel", ["capacityReservationLevel"]); - _lastSkuUpdatedOn = BicepValue.DefineProperty(this, "LastSkuUpdatedOn", ["lastSkuUpdate"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsWorkspaceSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _capacityReservationLevel = DefineProperty("CapacityReservationLevel", ["capacityReservationLevel"]); + _lastSkuUpdatedOn = DefineProperty("LastSkuUpdatedOn", ["lastSkuUpdate"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/StorageInsightStatus.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/StorageInsightStatus.cs index a9a3b378ec5c2..8d7d50266814a 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/StorageInsightStatus.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/Models/StorageInsightStatus.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,35 @@ public partial class StorageInsightStatus : ProvisionableConstruct /// /// The state of the storage insight connection to the workspace. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Description of the state of the storage insight. /// - public BicepValue Description { get => _description; } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + } + private BicepValue? _description; /// /// Creates a new StorageInsightStatus. /// public StorageInsightStatus() { - _state = BicepValue.DefineProperty(this, "State", ["state"], isOutput: true); - _description = BicepValue.DefineProperty(this, "Description", ["description"], isOutput: true); + } + + /// + /// Define all the provisionable properties of StorageInsightStatus. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _state = DefineProperty("State", ["state"], isOutput: true); + _description = DefineProperty("Description", ["description"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsCluster.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsCluster.cs index c701c34ca6dcd..ee3168b0cabc1 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsCluster.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsCluster.cs @@ -22,39 +22,63 @@ public partial class OperationalInsightsCluster : ProvisionableResource /// /// The name of the Log Analytics cluster. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The list of Log Analytics workspaces associated with the cluster. /// - public BicepList AssociatedWorkspaces { get => _associatedWorkspaces; set => _associatedWorkspaces.Assign(value); } - private readonly BicepList _associatedWorkspaces; + public BicepList AssociatedWorkspaces + { + get { Initialize(); return _associatedWorkspaces!; } + set { Initialize(); _associatedWorkspaces!.Assign(value); } + } + private BicepList? _associatedWorkspaces; /// /// The cluster's billing type. /// - public BicepValue BillingType { get => _billingType; set => _billingType.Assign(value); } - private readonly BicepValue _billingType; + public BicepValue BillingType + { + get { Initialize(); return _billingType!; } + set { Initialize(); _billingType!.Assign(value); } + } + private BicepValue? _billingType; /// /// Additional properties for capacity reservation. /// - public BicepValue CapacityReservationProperties { get => _capacityReservationProperties; set => _capacityReservationProperties.Assign(value); } - private readonly BicepValue _capacityReservationProperties; + public OperationalInsightsCapacityReservationProperties CapacityReservationProperties + { + get { Initialize(); return _capacityReservationProperties!; } + set { Initialize(); AssignOrReplace(ref _capacityReservationProperties, value); } + } + private OperationalInsightsCapacityReservationProperties? _capacityReservationProperties; /// /// The identity of the resource. Current supported identity types: None, /// SystemAssigned, UserAssigned. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Sets whether the cluster will support availability zones. This can be @@ -63,70 +87,108 @@ public partial class OperationalInsightsCluster : ProvisionableResource /// creation. Default value is 'true' if region supports /// Availability Zones. /// - public BicepValue IsAvailabilityZonesEnabled { get => _isAvailabilityZonesEnabled; set => _isAvailabilityZonesEnabled.Assign(value); } - private readonly BicepValue _isAvailabilityZonesEnabled; + public BicepValue IsAvailabilityZonesEnabled + { + get { Initialize(); return _isAvailabilityZonesEnabled!; } + set { Initialize(); _isAvailabilityZonesEnabled!.Assign(value); } + } + private BicepValue? _isAvailabilityZonesEnabled; /// /// Configures whether cluster will use double encryption. This Property /// can not be modified after cluster creation. Default value is /// 'true'. /// - public BicepValue IsDoubleEncryptionEnabled { get => _isDoubleEncryptionEnabled; set => _isDoubleEncryptionEnabled.Assign(value); } - private readonly BicepValue _isDoubleEncryptionEnabled; + public BicepValue IsDoubleEncryptionEnabled + { + get { Initialize(); return _isDoubleEncryptionEnabled!; } + set { Initialize(); _isDoubleEncryptionEnabled!.Assign(value); } + } + private BicepValue? _isDoubleEncryptionEnabled; /// /// The associated key properties. /// - public BicepValue KeyVaultProperties { get => _keyVaultProperties; set => _keyVaultProperties.Assign(value); } - private readonly BicepValue _keyVaultProperties; + public OperationalInsightsKeyVaultProperties KeyVaultProperties + { + get { Initialize(); return _keyVaultProperties!; } + set { Initialize(); AssignOrReplace(ref _keyVaultProperties, value); } + } + private OperationalInsightsKeyVaultProperties? _keyVaultProperties; /// /// The sku properties. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public OperationalInsightsClusterSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private OperationalInsightsClusterSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The ID associated with the cluster. /// - public BicepValue ClusterId { get => _clusterId; } - private readonly BicepValue _clusterId; + public BicepValue ClusterId + { + get { Initialize(); return _clusterId!; } + } + private BicepValue? _clusterId; /// /// The cluster creation time. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The last time the cluster was updated. /// - public BicepValue LastModifiedOn { get => _lastModifiedOn; } - private readonly BicepValue _lastModifiedOn; + public BicepValue LastModifiedOn + { + get { Initialize(); return _lastModifiedOn!; } + } + private BicepValue? _lastModifiedOn; /// /// The provisioning state of the cluster. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new OperationalInsightsCluster. @@ -141,23 +203,30 @@ public partial class OperationalInsightsCluster : ProvisionableResource public OperationalInsightsCluster(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.OperationalInsights/clusters", resourceVersion ?? "2023-09-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _associatedWorkspaces = BicepList.DefineProperty(this, "AssociatedWorkspaces", ["properties", "associatedWorkspaces"]); - _billingType = BicepValue.DefineProperty(this, "BillingType", ["properties", "billingType"]); - _capacityReservationProperties = BicepValue.DefineProperty(this, "CapacityReservationProperties", ["properties", "capacityReservationProperties"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _isAvailabilityZonesEnabled = BicepValue.DefineProperty(this, "IsAvailabilityZonesEnabled", ["properties", "isAvailabilityZonesEnabled"]); - _isDoubleEncryptionEnabled = BicepValue.DefineProperty(this, "IsDoubleEncryptionEnabled", ["properties", "isDoubleEncryptionEnabled"]); - _keyVaultProperties = BicepValue.DefineProperty(this, "KeyVaultProperties", ["properties", "keyVaultProperties"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _clusterId = BicepValue.DefineProperty(this, "ClusterId", ["properties", "clusterId"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdDate"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _lastModifiedOn = BicepValue.DefineProperty(this, "LastModifiedOn", ["properties", "lastModifiedDate"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of OperationalInsightsCluster. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _associatedWorkspaces = DefineListProperty("AssociatedWorkspaces", ["properties", "associatedWorkspaces"]); + _billingType = DefineProperty("BillingType", ["properties", "billingType"]); + _capacityReservationProperties = DefineModelProperty("CapacityReservationProperties", ["properties", "capacityReservationProperties"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _isAvailabilityZonesEnabled = DefineProperty("IsAvailabilityZonesEnabled", ["properties", "isAvailabilityZonesEnabled"]); + _isDoubleEncryptionEnabled = DefineProperty("IsDoubleEncryptionEnabled", ["properties", "isDoubleEncryptionEnabled"]); + _keyVaultProperties = DefineModelProperty("KeyVaultProperties", ["properties", "keyVaultProperties"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _clusterId = DefineProperty("ClusterId", ["properties", "clusterId"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdDate"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _lastModifiedOn = DefineProperty("LastModifiedOn", ["properties", "lastModifiedDate"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsDataExport.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsDataExport.cs index dd6a35fe86d40..146e2e024c443 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsDataExport.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsDataExport.cs @@ -21,76 +21,121 @@ public partial class OperationalInsightsDataExport : ProvisionableResource /// /// The data export rule name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The latest data export rule modification time. /// - public BicepValue CreatedOn { get => _createdOn; set => _createdOn.Assign(value); } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + set { Initialize(); _createdOn!.Assign(value); } + } + private BicepValue? _createdOn; /// /// The data export rule ID. /// - public BicepValue DataExportId { get => _dataExportId; set => _dataExportId.Assign(value); } - private readonly BicepValue _dataExportId; + public BicepValue DataExportId + { + get { Initialize(); return _dataExportId!; } + set { Initialize(); _dataExportId!.Assign(value); } + } + private BicepValue? _dataExportId; /// /// Optional. Allows to define an Event Hub name. Not applicable when /// destination is Storage Account. /// - public BicepValue EventHubName { get => _eventHubName; set => _eventHubName.Assign(value); } - private readonly BicepValue _eventHubName; + public BicepValue EventHubName + { + get { Initialize(); return _eventHubName!; } + set { Initialize(); _eventHubName!.Assign(value); } + } + private BicepValue? _eventHubName; /// /// Active when enabled. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Date and time when the export was last modified. /// - public BicepValue LastModifiedOn { get => _lastModifiedOn; set => _lastModifiedOn.Assign(value); } - private readonly BicepValue _lastModifiedOn; + public BicepValue LastModifiedOn + { + get { Initialize(); return _lastModifiedOn!; } + set { Initialize(); _lastModifiedOn!.Assign(value); } + } + private BicepValue? _lastModifiedOn; /// /// The destination resource ID. This can be copied from the Properties /// entry of the destination resource in Azure. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// An array of tables to export, for example: [“Heartbeat, SecurityEvent”]. /// - public BicepList TableNames { get => _tableNames; set => _tableNames.Assign(value); } - private readonly BicepList _tableNames; + public BicepList TableNames + { + get { Initialize(); return _tableNames!; } + set { Initialize(); _tableNames!.Assign(value); } + } + private BicepList? _tableNames; /// /// The type of the destination resource. /// - public BicepValue DestinationType { get => _destinationType; } - private readonly BicepValue _destinationType; + public BicepValue DestinationType + { + get { Initialize(); return _destinationType!; } + } + private BicepValue? _destinationType; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent OperationalInsightsWorkspace. /// - public OperationalInsightsWorkspace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public OperationalInsightsWorkspace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new OperationalInsightsDataExport. @@ -105,18 +150,26 @@ public partial class OperationalInsightsDataExport : ProvisionableResource public OperationalInsightsDataExport(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.OperationalInsights/workspaces/dataExports", resourceVersion ?? "2023-09-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdDate"]); - _dataExportId = BicepValue.DefineProperty(this, "DataExportId", ["properties", "dataExportId"]); - _eventHubName = BicepValue.DefineProperty(this, "EventHubName", ["properties", "eventHubName"]); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["properties", "enable"]); - _lastModifiedOn = BicepValue.DefineProperty(this, "LastModifiedOn", ["properties", "lastModifiedDate"]); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceId"]); - _tableNames = BicepList.DefineProperty(this, "TableNames", ["properties", "tableNames"]); - _destinationType = BicepValue.DefineProperty(this, "DestinationType", ["properties", "type"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsDataExport. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdDate"]); + _dataExportId = DefineProperty("DataExportId", ["properties", "dataExportId"]); + _eventHubName = DefineProperty("EventHubName", ["properties", "eventHubName"]); + _isEnabled = DefineProperty("IsEnabled", ["properties", "enable"]); + _lastModifiedOn = DefineProperty("LastModifiedOn", ["properties", "lastModifiedDate"]); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceId"]); + _tableNames = DefineListProperty("TableNames", ["properties", "tableNames"]); + _destinationType = DefineProperty("DestinationType", ["properties", "type"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsDataSource.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsDataSource.cs index 55819de080b43..0755ea27ae028 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsDataSource.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsDataSource.cs @@ -22,14 +22,22 @@ public partial class OperationalInsightsDataSource : ProvisionableResource /// /// The name of the datasource resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The kind of the DataSource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The data source properties in raw json format, each kind of data source @@ -48,38 +56,60 @@ public partial class OperationalInsightsDataSource : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public BicepValue Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); _properties!.Assign(value); } + } + private BicepValue? _properties; /// /// The ETag of the data source. /// - public BicepValue ETag { get => _eTag; set => _eTag.Assign(value); } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + set { Initialize(); _eTag!.Assign(value); } + } + private BicepValue? _eTag; /// /// Resource tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent OperationalInsightsWorkspace. /// - public OperationalInsightsWorkspace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public OperationalInsightsWorkspace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new OperationalInsightsDataSource. @@ -94,14 +124,22 @@ public partial class OperationalInsightsDataSource : ProvisionableResource public OperationalInsightsDataSource(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.OperationalInsights/workspaces/dataSources", resourceVersion ?? "2023-09-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"], isRequired: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsDataSource. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"], isRequired: true); + _properties = DefineProperty("Properties", ["properties"], isRequired: true); + _eTag = DefineProperty("ETag", ["etag"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsLinkedService.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsLinkedService.cs index fe78fcf44bd84..af6106188acdb 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsLinkedService.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsLinkedService.cs @@ -21,52 +21,82 @@ public partial class OperationalInsightsLinkedService : ProvisionableResource /// /// Name of the linkedServices resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The provisioning state of the linked service. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// The resource id of the resource that will be linked to the workspace. /// This should be used for linking resources which require read access. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// Resource tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The resource id of the resource that will be linked to the workspace. /// This should be used for linking resources which require write access. /// - public BicepValue WriteAccessResourceId { get => _writeAccessResourceId; set => _writeAccessResourceId.Assign(value); } - private readonly BicepValue _writeAccessResourceId; + public BicepValue WriteAccessResourceId + { + get { Initialize(); return _writeAccessResourceId!; } + set { Initialize(); _writeAccessResourceId!.Assign(value); } + } + private BicepValue? _writeAccessResourceId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent OperationalInsightsWorkspace. /// - public OperationalInsightsWorkspace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public OperationalInsightsWorkspace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new OperationalInsightsLinkedService. @@ -81,14 +111,22 @@ public partial class OperationalInsightsLinkedService : ProvisionableResource public OperationalInsightsLinkedService(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.OperationalInsights/workspaces/linkedServices", resourceVersion ?? "2023-09-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["properties", "resourceId"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _writeAccessResourceId = BicepValue.DefineProperty(this, "WriteAccessResourceId", ["properties", "writeAccessResourceId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsLinkedService. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _resourceId = DefineProperty("ResourceId", ["properties", "resourceId"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _writeAccessResourceId = DefineProperty("WriteAccessResourceId", ["properties", "writeAccessResourceId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsLinkedStorageAccounts.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsLinkedStorageAccounts.cs index 18c3a67de5263..5ee2d4a8543f9 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsLinkedStorageAccounts.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsLinkedStorageAccounts.cs @@ -21,38 +21,59 @@ public partial class OperationalInsightsLinkedStorageAccounts : ProvisionableRes /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Linked storage accounts type. /// - public BicepValue DataSourceType { get => _dataSourceType; set => _dataSourceType.Assign(value); } - private readonly BicepValue _dataSourceType; + public BicepValue DataSourceType + { + get { Initialize(); return _dataSourceType!; } + set { Initialize(); _dataSourceType!.Assign(value); } + } + private BicepValue? _dataSourceType; /// /// Linked storage accounts resources ids. /// - public BicepList StorageAccountIds { get => _storageAccountIds; set => _storageAccountIds.Assign(value); } - private readonly BicepList _storageAccountIds; + public BicepList StorageAccountIds + { + get { Initialize(); return _storageAccountIds!; } + set { Initialize(); _storageAccountIds!.Assign(value); } + } + private BicepList? _storageAccountIds; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent OperationalInsightsWorkspace. /// - public OperationalInsightsWorkspace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public OperationalInsightsWorkspace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new OperationalInsightsLinkedStorageAccounts. @@ -68,12 +89,20 @@ public partial class OperationalInsightsLinkedStorageAccounts : ProvisionableRes public OperationalInsightsLinkedStorageAccounts(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.OperationalInsights/workspaces/linkedStorageAccounts", resourceVersion ?? "2023-09-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _dataSourceType = BicepValue.DefineProperty(this, "DataSourceType", ["properties", "dataSourceType"], isRequired: true); - _storageAccountIds = BicepList.DefineProperty(this, "StorageAccountIds", ["properties", "storageAccountIds"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsLinkedStorageAccounts. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _dataSourceType = DefineProperty("DataSourceType", ["properties", "dataSourceType"], isRequired: true); + _storageAccountIds = DefineListProperty("StorageAccountIds", ["properties", "storageAccountIds"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsSavedSearch.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsSavedSearch.cs index 62058aff63b95..ec127a6d1ade5 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsSavedSearch.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsSavedSearch.cs @@ -22,40 +22,63 @@ public partial class OperationalInsightsSavedSearch : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The category of the saved search. This helps the user to find a saved /// search faster. /// - public BicepValue Category { get => _category; set => _category.Assign(value); } - private readonly BicepValue _category; + public BicepValue Category + { + get { Initialize(); return _category!; } + set { Initialize(); _category!.Assign(value); } + } + private BicepValue? _category; /// /// Saved search display name. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// The query expression for the saved search. /// - public BicepValue Query { get => _query; set => _query.Assign(value); } - private readonly BicepValue _query; + public BicepValue Query + { + get { Initialize(); return _query!; } + set { Initialize(); _query!.Assign(value); } + } + private BicepValue? _query; /// /// The ETag of the saved search. To override an existing saved search, use /// "*" or specify the current Etag. /// - public BicepValue ETag { get => _eTag; set => _eTag.Assign(value); } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + set { Initialize(); _eTag!.Assign(value); } + } + private BicepValue? _eTag; /// /// The function alias if query serves as a function. /// - public BicepValue FunctionAlias { get => _functionAlias; set => _functionAlias.Assign(value); } - private readonly BicepValue _functionAlias; + public BicepValue FunctionAlias + { + get { Initialize(); return _functionAlias!; } + set { Initialize(); _functionAlias!.Assign(value); } + } + private BicepValue? _functionAlias; /// /// The optional function parameters if query serves as a function. Value @@ -64,39 +87,61 @@ public partial class OperationalInsightsSavedSearch : ProvisionableResource /// examples and proper syntax please refer to /// https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions. /// - public BicepValue FunctionParameters { get => _functionParameters; set => _functionParameters.Assign(value); } - private readonly BicepValue _functionParameters; + public BicepValue FunctionParameters + { + get { Initialize(); return _functionParameters!; } + set { Initialize(); _functionParameters!.Assign(value); } + } + private BicepValue? _functionParameters; /// /// The tags attached to the saved search. /// - public BicepList Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepList _tags; + public BicepList Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepList? _tags; /// /// The version number of the query language. The current version is 2 and /// is the default. /// - public BicepValue Version { get => _version; set => _version.Assign(value); } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + set { Initialize(); _version!.Assign(value); } + } + private BicepValue? _version; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent OperationalInsightsWorkspace. /// - public OperationalInsightsWorkspace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public OperationalInsightsWorkspace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new OperationalInsightsSavedSearch. @@ -111,18 +156,26 @@ public partial class OperationalInsightsSavedSearch : ProvisionableResource public OperationalInsightsSavedSearch(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.OperationalInsights/workspaces/savedSearches", resourceVersion ?? "2023-09-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _category = BicepValue.DefineProperty(this, "Category", ["properties", "category"], isRequired: true); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["properties", "displayName"], isRequired: true); - _query = BicepValue.DefineProperty(this, "Query", ["properties", "query"], isRequired: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"]); - _functionAlias = BicepValue.DefineProperty(this, "FunctionAlias", ["properties", "functionAlias"]); - _functionParameters = BicepValue.DefineProperty(this, "FunctionParameters", ["properties", "functionParameters"]); - _tags = BicepList.DefineProperty(this, "Tags", ["properties", "tags"]); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// OperationalInsightsSavedSearch. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _category = DefineProperty("Category", ["properties", "category"], isRequired: true); + _displayName = DefineProperty("DisplayName", ["properties", "displayName"], isRequired: true); + _query = DefineProperty("Query", ["properties", "query"], isRequired: true); + _eTag = DefineProperty("ETag", ["etag"]); + _functionAlias = DefineProperty("FunctionAlias", ["properties", "functionAlias"]); + _functionParameters = DefineProperty("FunctionParameters", ["properties", "functionParameters"]); + _tags = DefineListProperty("Tags", ["properties", "tags"]); + _version = DefineProperty("Version", ["properties", "version"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsTable.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsTable.cs index 5b8f1770e4c82..233ae038e4797 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsTable.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsTable.cs @@ -21,80 +21,123 @@ public partial class OperationalInsightsTable : ProvisionableResource /// /// The name of the table. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Instruct the system how to handle and charge the logs ingested to this /// table. /// - public BicepValue Plan { get => _plan; set => _plan.Assign(value); } - private readonly BicepValue _plan; + public BicepValue Plan + { + get { Initialize(); return _plan!; } + set { Initialize(); _plan!.Assign(value); } + } + private BicepValue? _plan; /// /// Parameters of the restore operation that initiated this table. /// - public BicepValue RestoredLogs { get => _restoredLogs; set => _restoredLogs.Assign(value); } - private readonly BicepValue _restoredLogs; + public OperationalInsightsTableRestoredLogs RestoredLogs + { + get { Initialize(); return _restoredLogs!; } + set { Initialize(); AssignOrReplace(ref _restoredLogs, value); } + } + private OperationalInsightsTableRestoredLogs? _restoredLogs; /// /// The table retention in days, between 4 and 730. Setting this property /// to -1 will default to the workspace retention. /// - public BicepValue RetentionInDays { get => _retentionInDays; set => _retentionInDays.Assign(value); } - private readonly BicepValue _retentionInDays; + public BicepValue RetentionInDays + { + get { Initialize(); return _retentionInDays!; } + set { Initialize(); _retentionInDays!.Assign(value); } + } + private BicepValue? _retentionInDays; /// /// Table schema. /// - public BicepValue Schema { get => _schema; set => _schema.Assign(value); } - private readonly BicepValue _schema; + public OperationalInsightsSchema Schema + { + get { Initialize(); return _schema!; } + set { Initialize(); AssignOrReplace(ref _schema, value); } + } + private OperationalInsightsSchema? _schema; /// /// Parameters of the search job that initiated this table. /// - public BicepValue SearchResults { get => _searchResults; set => _searchResults.Assign(value); } - private readonly BicepValue _searchResults; + public OperationalInsightsTableSearchResults SearchResults + { + get { Initialize(); return _searchResults!; } + set { Initialize(); AssignOrReplace(ref _searchResults, value); } + } + private OperationalInsightsTableSearchResults? _searchResults; /// /// The table total retention in days, between 4 and 2556. Setting this /// property to -1 will default to table retention. /// - public BicepValue TotalRetentionInDays { get => _totalRetentionInDays; set => _totalRetentionInDays.Assign(value); } - private readonly BicepValue _totalRetentionInDays; + public BicepValue TotalRetentionInDays + { + get { Initialize(); return _totalRetentionInDays!; } + set { Initialize(); _totalRetentionInDays!.Assign(value); } + } + private BicepValue? _totalRetentionInDays; /// /// The table data archive retention in days. Calculated as /// (totalRetentionInDays-retentionInDays). /// - public BicepValue ArchiveRetentionInDays { get => _archiveRetentionInDays; } - private readonly BicepValue _archiveRetentionInDays; + public BicepValue ArchiveRetentionInDays + { + get { Initialize(); return _archiveRetentionInDays!; } + } + private BicepValue? _archiveRetentionInDays; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// True - Value originates from workspace retention in days, False - /// Customer specific. /// - public BicepValue IsRetentionInDaysAsDefault { get => _isRetentionInDaysAsDefault; } - private readonly BicepValue _isRetentionInDaysAsDefault; + public BicepValue IsRetentionInDaysAsDefault + { + get { Initialize(); return _isRetentionInDaysAsDefault!; } + } + private BicepValue? _isRetentionInDaysAsDefault; /// /// True - Value originates from retention in days, False - Customer /// specific. /// - public BicepValue IsTotalRetentionInDaysAsDefault { get => _isTotalRetentionInDaysAsDefault; } - private readonly BicepValue _isTotalRetentionInDaysAsDefault; + public BicepValue IsTotalRetentionInDaysAsDefault + { + get { Initialize(); return _isTotalRetentionInDaysAsDefault!; } + } + private BicepValue? _isTotalRetentionInDaysAsDefault; /// /// The timestamp that table plan was last modified (UTC). /// - public BicepValue LastPlanModifiedDate { get => _lastPlanModifiedDate; } - private readonly BicepValue _lastPlanModifiedDate; + public BicepValue LastPlanModifiedDate + { + get { Initialize(); return _lastPlanModifiedDate!; } + } + private BicepValue? _lastPlanModifiedDate; /// /// Table's current provisioning state. If set to @@ -102,26 +145,39 @@ public partial class OperationalInsightsTable : ProvisionableResource /// operation, forbidding any update to the table until the ongoing /// operation is concluded. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Search job execution statistics. /// - public BicepValue ResultStatistics { get => _resultStatistics; } - private readonly BicepValue _resultStatistics; + public OperationalInsightsTableResultStatistics ResultStatistics + { + get { Initialize(); return _resultStatistics!; } + } + private OperationalInsightsTableResultStatistics? _resultStatistics; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent OperationalInsightsWorkspace. /// - public OperationalInsightsWorkspace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public OperationalInsightsWorkspace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new OperationalInsightsTable. @@ -136,22 +192,29 @@ public partial class OperationalInsightsTable : ProvisionableResource public OperationalInsightsTable(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.OperationalInsights/workspaces/tables", resourceVersion ?? "2023-09-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _plan = BicepValue.DefineProperty(this, "Plan", ["properties", "plan"]); - _restoredLogs = BicepValue.DefineProperty(this, "RestoredLogs", ["properties", "restoredLogs"]); - _retentionInDays = BicepValue.DefineProperty(this, "RetentionInDays", ["properties", "retentionInDays"]); - _schema = BicepValue.DefineProperty(this, "Schema", ["properties", "schema"]); - _searchResults = BicepValue.DefineProperty(this, "SearchResults", ["properties", "searchResults"]); - _totalRetentionInDays = BicepValue.DefineProperty(this, "TotalRetentionInDays", ["properties", "totalRetentionInDays"]); - _archiveRetentionInDays = BicepValue.DefineProperty(this, "ArchiveRetentionInDays", ["properties", "archiveRetentionInDays"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isRetentionInDaysAsDefault = BicepValue.DefineProperty(this, "IsRetentionInDaysAsDefault", ["properties", "retentionInDaysAsDefault"], isOutput: true); - _isTotalRetentionInDaysAsDefault = BicepValue.DefineProperty(this, "IsTotalRetentionInDaysAsDefault", ["properties", "totalRetentionInDaysAsDefault"], isOutput: true); - _lastPlanModifiedDate = BicepValue.DefineProperty(this, "LastPlanModifiedDate", ["properties", "lastPlanModifiedDate"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _resultStatistics = BicepValue.DefineProperty(this, "ResultStatistics", ["properties", "resultStatistics"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of OperationalInsightsTable. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _plan = DefineProperty("Plan", ["properties", "plan"]); + _restoredLogs = DefineModelProperty("RestoredLogs", ["properties", "restoredLogs"]); + _retentionInDays = DefineProperty("RetentionInDays", ["properties", "retentionInDays"]); + _schema = DefineModelProperty("Schema", ["properties", "schema"]); + _searchResults = DefineModelProperty("SearchResults", ["properties", "searchResults"]); + _totalRetentionInDays = DefineProperty("TotalRetentionInDays", ["properties", "totalRetentionInDays"]); + _archiveRetentionInDays = DefineProperty("ArchiveRetentionInDays", ["properties", "archiveRetentionInDays"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isRetentionInDaysAsDefault = DefineProperty("IsRetentionInDaysAsDefault", ["properties", "retentionInDaysAsDefault"], isOutput: true); + _isTotalRetentionInDaysAsDefault = DefineProperty("IsTotalRetentionInDaysAsDefault", ["properties", "totalRetentionInDaysAsDefault"], isOutput: true); + _lastPlanModifiedDate = DefineProperty("LastPlanModifiedDate", ["properties", "lastPlanModifiedDate"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _resultStatistics = DefineModelProperty("ResultStatistics", ["properties", "resultStatistics"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsWorkspace.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsWorkspace.cs index 7e1c7ab0ff49c..6323f70631d2f 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsWorkspace.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/OperationalInsightsWorkspace.cs @@ -24,128 +24,201 @@ public partial class OperationalInsightsWorkspace : ProvisionableResource /// /// The name of the workspace. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The resource ID of the default Data Collection Rule to use for this /// workspace. Expected format is - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}. /// - public BicepValue DefaultDataCollectionRuleResourceId { get => _defaultDataCollectionRuleResourceId; set => _defaultDataCollectionRuleResourceId.Assign(value); } - private readonly BicepValue _defaultDataCollectionRuleResourceId; + public BicepValue DefaultDataCollectionRuleResourceId + { + get { Initialize(); return _defaultDataCollectionRuleResourceId!; } + set { Initialize(); _defaultDataCollectionRuleResourceId!.Assign(value); } + } + private BicepValue? _defaultDataCollectionRuleResourceId; /// /// The etag of the workspace. /// - public BicepValue ETag { get => _eTag; set => _eTag.Assign(value); } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + set { Initialize(); _eTag!.Assign(value); } + } + private BicepValue? _eTag; /// /// Workspace features. /// - public BicepValue Features { get => _features; set => _features.Assign(value); } - private readonly BicepValue _features; + public OperationalInsightsWorkspaceFeatures Features + { + get { Initialize(); return _features!; } + set { Initialize(); AssignOrReplace(ref _features, value); } + } + private OperationalInsightsWorkspaceFeatures? _features; /// /// Indicates whether customer managed storage is mandatory for query /// management. /// - public BicepValue ForceCmkForQuery { get => _forceCmkForQuery; set => _forceCmkForQuery.Assign(value); } - private readonly BicepValue _forceCmkForQuery; + public BicepValue ForceCmkForQuery + { + get { Initialize(); return _forceCmkForQuery!; } + set { Initialize(); _forceCmkForQuery!.Assign(value); } + } + private BicepValue? _forceCmkForQuery; /// /// The identity of the resource. Current supported identity types: None, /// SystemAssigned, UserAssigned. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// The network access type for accessing Log Analytics ingestion. /// - public BicepValue PublicNetworkAccessForIngestion { get => _publicNetworkAccessForIngestion; set => _publicNetworkAccessForIngestion.Assign(value); } - private readonly BicepValue _publicNetworkAccessForIngestion; + public BicepValue PublicNetworkAccessForIngestion + { + get { Initialize(); return _publicNetworkAccessForIngestion!; } + set { Initialize(); _publicNetworkAccessForIngestion!.Assign(value); } + } + private BicepValue? _publicNetworkAccessForIngestion; /// /// The network access type for accessing Log Analytics query. /// - public BicepValue PublicNetworkAccessForQuery { get => _publicNetworkAccessForQuery; set => _publicNetworkAccessForQuery.Assign(value); } - private readonly BicepValue _publicNetworkAccessForQuery; + public BicepValue PublicNetworkAccessForQuery + { + get { Initialize(); return _publicNetworkAccessForQuery!; } + set { Initialize(); _publicNetworkAccessForQuery!.Assign(value); } + } + private BicepValue? _publicNetworkAccessForQuery; /// /// The workspace data retention in days. Allowed values are per pricing /// plan. See pricing tiers documentation for details. /// - public BicepValue RetentionInDays { get => _retentionInDays; set => _retentionInDays.Assign(value); } - private readonly BicepValue _retentionInDays; + public BicepValue RetentionInDays + { + get { Initialize(); return _retentionInDays!; } + set { Initialize(); _retentionInDays!.Assign(value); } + } + private BicepValue? _retentionInDays; /// /// The SKU of the workspace. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public OperationalInsightsWorkspaceSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private OperationalInsightsWorkspaceSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The daily volume cap for ingestion. /// - public BicepValue WorkspaceCapping { get => _workspaceCapping; set => _workspaceCapping.Assign(value); } - private readonly BicepValue _workspaceCapping; + public OperationalInsightsWorkspaceCapping WorkspaceCapping + { + get { Initialize(); return _workspaceCapping!; } + set { Initialize(); AssignOrReplace(ref _workspaceCapping, value); } + } + private OperationalInsightsWorkspaceCapping? _workspaceCapping; /// /// Workspace creation date. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// This is a read-only property. Represents the ID associated with the /// workspace. /// - public BicepValue CustomerId { get => _customerId; } - private readonly BicepValue _customerId; + public BicepValue CustomerId + { + get { Initialize(); return _customerId!; } + } + private BicepValue? _customerId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Workspace modification date. /// - public BicepValue ModifiedOn { get => _modifiedOn; } - private readonly BicepValue _modifiedOn; + public BicepValue ModifiedOn + { + get { Initialize(); return _modifiedOn!; } + } + private BicepValue? _modifiedOn; /// /// List of linked private link scope resources. /// - public BicepList PrivateLinkScopedResources { get => _privateLinkScopedResources; } - private readonly BicepList _privateLinkScopedResources; + public BicepList PrivateLinkScopedResources + { + get { Initialize(); return _privateLinkScopedResources!; } + } + private BicepList? _privateLinkScopedResources; /// /// The provisioning state of the workspace. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new OperationalInsightsWorkspace. @@ -160,26 +233,33 @@ public partial class OperationalInsightsWorkspace : ProvisionableResource public OperationalInsightsWorkspace(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.OperationalInsights/workspaces", resourceVersion ?? "2023-09-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _defaultDataCollectionRuleResourceId = BicepValue.DefineProperty(this, "DefaultDataCollectionRuleResourceId", ["properties", "defaultDataCollectionRuleResourceId"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"]); - _features = BicepValue.DefineProperty(this, "Features", ["properties", "features"]); - _forceCmkForQuery = BicepValue.DefineProperty(this, "ForceCmkForQuery", ["properties", "forceCmkForQuery"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _publicNetworkAccessForIngestion = BicepValue.DefineProperty(this, "PublicNetworkAccessForIngestion", ["properties", "publicNetworkAccessForIngestion"]); - _publicNetworkAccessForQuery = BicepValue.DefineProperty(this, "PublicNetworkAccessForQuery", ["properties", "publicNetworkAccessForQuery"]); - _retentionInDays = BicepValue.DefineProperty(this, "RetentionInDays", ["properties", "retentionInDays"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["properties", "sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _workspaceCapping = BicepValue.DefineProperty(this, "WorkspaceCapping", ["properties", "workspaceCapping"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdDate"], isOutput: true); - _customerId = BicepValue.DefineProperty(this, "CustomerId", ["properties", "customerId"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _modifiedOn = BicepValue.DefineProperty(this, "ModifiedOn", ["properties", "modifiedDate"], isOutput: true); - _privateLinkScopedResources = BicepList.DefineProperty(this, "PrivateLinkScopedResources", ["properties", "privateLinkScopedResources"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of OperationalInsightsWorkspace. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _defaultDataCollectionRuleResourceId = DefineProperty("DefaultDataCollectionRuleResourceId", ["properties", "defaultDataCollectionRuleResourceId"]); + _eTag = DefineProperty("ETag", ["etag"]); + _features = DefineModelProperty("Features", ["properties", "features"]); + _forceCmkForQuery = DefineProperty("ForceCmkForQuery", ["properties", "forceCmkForQuery"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _publicNetworkAccessForIngestion = DefineProperty("PublicNetworkAccessForIngestion", ["properties", "publicNetworkAccessForIngestion"]); + _publicNetworkAccessForQuery = DefineProperty("PublicNetworkAccessForQuery", ["properties", "publicNetworkAccessForQuery"]); + _retentionInDays = DefineProperty("RetentionInDays", ["properties", "retentionInDays"]); + _sku = DefineModelProperty("Sku", ["properties", "sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _workspaceCapping = DefineModelProperty("WorkspaceCapping", ["properties", "workspaceCapping"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdDate"], isOutput: true); + _customerId = DefineProperty("CustomerId", ["properties", "customerId"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _modifiedOn = DefineProperty("ModifiedOn", ["properties", "modifiedDate"], isOutput: true); + _privateLinkScopedResources = DefineListProperty("PrivateLinkScopedResources", ["properties", "privateLinkScopedResources"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// @@ -245,7 +325,10 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this OperationalInsightsWorkspace resource. /// /// The keys for this OperationalInsightsWorkspace resource. - public OperationalInsightsWorkspaceSharedKeys GetKeys() => - OperationalInsightsWorkspaceSharedKeys.FromExpression( - new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys"))); + public OperationalInsightsWorkspaceSharedKeys GetKeys() + { + OperationalInsightsWorkspaceSharedKeys key = new(); + ((IBicepValue)key).Expression = new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")); + return key; + } } diff --git a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/StorageInsight.cs b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/StorageInsight.cs index ddace92172c58..5d66aa41d1209 100644 --- a/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/StorageInsight.cs +++ b/sdk/provisioning/Azure.Provisioning.OperationalInsights/src/Generated/StorageInsight.cs @@ -22,62 +22,99 @@ public partial class StorageInsight : ProvisionableResource /// /// Name of the storageInsightsConfigs resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The names of the blob containers that the workspace should read. /// - public BicepList Containers { get => _containers; set => _containers.Assign(value); } - private readonly BicepList _containers; + public BicepList Containers + { + get { Initialize(); return _containers!; } + set { Initialize(); _containers!.Assign(value); } + } + private BicepList? _containers; /// /// The ETag of the storage insight. /// - public BicepValue ETag { get => _eTag; set => _eTag.Assign(value); } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + set { Initialize(); _eTag!.Assign(value); } + } + private BicepValue? _eTag; /// /// The storage account connection details. /// - public BicepValue StorageAccount { get => _storageAccount; set => _storageAccount.Assign(value); } - private readonly BicepValue _storageAccount; + public OperationalInsightsStorageAccount StorageAccount + { + get { Initialize(); return _storageAccount!; } + set { Initialize(); AssignOrReplace(ref _storageAccount, value); } + } + private OperationalInsightsStorageAccount? _storageAccount; /// /// The names of the Azure tables that the workspace should read. /// - public BicepList Tables { get => _tables; set => _tables.Assign(value); } - private readonly BicepList _tables; + public BicepList Tables + { + get { Initialize(); return _tables!; } + set { Initialize(); _tables!.Assign(value); } + } + private BicepList? _tables; /// /// Resource tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The status of the storage insight. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public StorageInsightStatus Status + { + get { Initialize(); return _status!; } + } + private StorageInsightStatus? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent OperationalInsightsWorkspace. /// - public OperationalInsightsWorkspace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public OperationalInsightsWorkspace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new StorageInsight. @@ -92,16 +129,23 @@ public partial class StorageInsight : ProvisionableResource public StorageInsight(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.OperationalInsights/workspaces/storageInsightConfigs", resourceVersion ?? "2023-09-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _containers = BicepList.DefineProperty(this, "Containers", ["properties", "containers"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["eTag"]); - _storageAccount = BicepValue.DefineProperty(this, "StorageAccount", ["properties", "storageAccount"]); - _tables = BicepList.DefineProperty(this, "Tables", ["properties", "tables"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of StorageInsight. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _containers = DefineListProperty("Containers", ["properties", "containers"]); + _eTag = DefineProperty("ETag", ["eTag"]); + _storageAccount = DefineModelProperty("StorageAccount", ["properties", "storageAccount"]); + _tables = DefineListProperty("Tables", ["properties", "tables"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _status = DefineModelProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/api/Azure.Provisioning.PostgreSql.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/api/Azure.Provisioning.PostgreSql.netstandard2.0.cs index 250949ea8c749..5f12857639797 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/api/Azure.Provisioning.PostgreSql.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/api/Azure.Provisioning.PostgreSql.netstandard2.0.cs @@ -15,8 +15,9 @@ public partial class PostgreSqlConfiguration : Azure.Provisioning.Primitives.Pro public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.PostgreSql.PostgreSqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Source { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlConfiguration FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -31,7 +32,8 @@ public partial class PostgreSqlDatabase : Azure.Provisioning.Primitives.Provisio public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.PostgreSql.PostgreSqlServer? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlDatabase FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -48,7 +50,8 @@ public partial class PostgreSqlFirewallRule : Azure.Provisioning.Primitives.Prov public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.PostgreSql.PostgreSqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartIPAddress { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlFirewallRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -62,31 +65,32 @@ public partial class PostgreSqlFlexibleServer : Azure.Provisioning.Primitives.Pr public PostgreSqlFlexibleServer(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue AdministratorLogin { get { throw null; } set { } } public Azure.Provisioning.BicepValue AdministratorLoginPassword { get { throw null; } set { } } - public Azure.Provisioning.BicepValue AuthConfig { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerAuthConfig AuthConfig { get { throw null; } set { } } public Azure.Provisioning.BicepValue AvailabilityZone { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Backup { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerBackupProperties Backup { get { throw null; } set { } } public Azure.Provisioning.BicepValue CreateMode { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DataEncryption { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerDataEncryption DataEncryption { get { throw null; } set { } } public Azure.Provisioning.BicepValue FullyQualifiedDomainName { get { throw null; } } - public Azure.Provisioning.BicepValue HighAvailability { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerHighAvailability HighAvailability { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerUserAssignedIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } - public Azure.Provisioning.BicepValue MaintenanceWindow { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerMaintenanceWindow MaintenanceWindow { get { throw null; } set { } } public Azure.Provisioning.BicepValue MinorVersion { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Network { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerNetwork Network { get { throw null; } set { } } public Azure.Provisioning.BicepValue PointInTimeUtc { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReplicaCapacity { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReplicationRole { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceServerResourceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } - public Azure.Provisioning.BicepValue Storage { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerStorage Storage { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageSizeInGB { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue Version { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServer FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -106,8 +110,9 @@ public partial class PostgreSqlFlexibleServerActiveDirectoryAdministrator : Azur public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrincipalName { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrincipalType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerActiveDirectoryAdministrator FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -127,6 +132,7 @@ public PostgreSqlFlexibleServerAuthConfig() { } public Azure.Provisioning.BicepValue ActiveDirectoryAuth { get { throw null; } set { } } public Azure.Provisioning.BicepValue PasswordAuth { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlFlexibleServerBackupProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -134,6 +140,7 @@ public PostgreSqlFlexibleServerBackupProperties() { } public Azure.Provisioning.BicepValue BackupRetentionDays { get { throw null; } set { } } public Azure.Provisioning.BicepValue EarliestRestoreOn { get { throw null; } } public Azure.Provisioning.BicepValue GeoRedundantBackup { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlFlexibleServerConfiguration : Azure.Provisioning.Primitives.ProvisionableResource { @@ -150,9 +157,10 @@ public partial class PostgreSqlFlexibleServerConfiguration : Azure.Provisioning. public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Source { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Unit { get { throw null; } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerConfiguration FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -186,7 +194,8 @@ public partial class PostgreSqlFlexibleServerDatabase : Azure.Provisioning.Primi public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServer? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerDatabase FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -205,6 +214,7 @@ public PostgreSqlFlexibleServerDataEncryption() { } public Azure.Provisioning.BicepValue PrimaryEncryptionKeyStatus { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrimaryKeyUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrimaryUserAssignedIdentityId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlFlexibleServerFirewallRule : Azure.Provisioning.Primitives.ProvisionableResource { @@ -214,7 +224,8 @@ public partial class PostgreSqlFlexibleServerFirewallRule : Azure.Provisioning.P public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartIPAddress { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerFirewallRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -243,6 +254,7 @@ public PostgreSqlFlexibleServerHighAvailability() { } public Azure.Provisioning.BicepValue Mode { get { throw null; } set { } } public Azure.Provisioning.BicepValue StandbyAvailabilityZone { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum PostgreSqlFlexibleServerHighAvailabilityMode { @@ -269,6 +281,7 @@ public PostgreSqlFlexibleServerMaintenanceWindow() { } public Azure.Provisioning.BicepValue DayOfWeek { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartHour { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartMinute { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlFlexibleServerNetwork : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -276,6 +289,7 @@ public PostgreSqlFlexibleServerNetwork() { } public Azure.Provisioning.BicepValue DelegatedSubnetResourceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateDnsZoneArmResourceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum PostgreSqlFlexibleServerPasswordAuthEnum { @@ -310,6 +324,7 @@ public partial class PostgreSqlFlexibleServerSku : Azure.Provisioning.Primitives public PostgreSqlFlexibleServerSku() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum PostgreSqlFlexibleServerSkuTier { @@ -334,6 +349,7 @@ public PostgreSqlFlexibleServerStorage() { } public Azure.Provisioning.BicepValue Iops { get { throw null; } } public Azure.Provisioning.BicepValue StorageSizeInGB { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlFlexibleServerUserAssignedIdentity : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -341,6 +357,7 @@ public PostgreSqlFlexibleServerUserAssignedIdentity() { } public Azure.Provisioning.BicepValue IdentityType { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } public Azure.Provisioning.BicepDictionary UserAssignedIdentities { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum PostgreSqlFlexibleServerVersion { @@ -391,7 +408,7 @@ public partial class PostgreSqlMigration : Azure.Provisioning.Primitives.Provisi { public PostgreSqlMigration(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Cancel { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CurrentStatus { get { throw null; } } + public Azure.Provisioning.PostgreSql.PostgreSqlMigrationStatus CurrentStatus { get { throw null; } } public Azure.Provisioning.BicepList DbsToCancelMigrationOn { get { throw null; } set { } } public Azure.Provisioning.BicepList DbsToMigrate { get { throw null; } set { } } public Azure.Provisioning.BicepList DbsToTriggerCutoverOn { get { throw null; } set { } } @@ -404,18 +421,19 @@ public partial class PostgreSqlMigration : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue OverwriteDbsInTarget { get { throw null; } set { } } public Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServer? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SecretParameters { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlMigrationSecretParameters SecretParameters { get { throw null; } set { } } public Azure.Provisioning.BicepValue SetupLogicalReplicationOnSourceDbIfNeeded { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceDbServerFullyQualifiedDomainName { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SourceDbServerMetadata { get { throw null; } } + public Azure.Provisioning.PostgreSql.PostgreSqlServerMetadata SourceDbServerMetadata { get { throw null; } } public Azure.Provisioning.BicepValue SourceDbServerResourceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartDataMigration { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetDbServerFullyQualifiedDomainName { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TargetDbServerMetadata { get { throw null; } } + public Azure.Provisioning.PostgreSql.PostgreSqlServerMetadata TargetDbServerMetadata { get { throw null; } } public Azure.Provisioning.BicepValue TargetDbServerResourceId { get { throw null; } } public Azure.Provisioning.BicepValue TriggerCutover { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlMigration FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -429,6 +447,7 @@ public partial class PostgreSqlMigrationAdminCredentials : Azure.Provisioning.Pr public PostgreSqlMigrationAdminCredentials() { } public Azure.Provisioning.BicepValue SourceServerPassword { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetServerPassword { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum PostgreSqlMigrationCancel { @@ -453,9 +472,10 @@ public enum PostgreSqlMigrationOverwriteDbsInTarget public partial class PostgreSqlMigrationSecretParameters : Azure.Provisioning.Primitives.ProvisionableConstruct { public PostgreSqlMigrationSecretParameters() { } - public Azure.Provisioning.BicepValue AdminCredentials { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlMigrationAdminCredentials AdminCredentials { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceServerUsername { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetServerUsername { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum PostgreSqlMigrationStartDataMigration { @@ -476,6 +496,7 @@ public PostgreSqlMigrationStatus() { } public Azure.Provisioning.BicepValue CurrentSubState { get { throw null; } } public Azure.Provisioning.BicepValue Error { get { throw null; } } public Azure.Provisioning.BicepValue State { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum PostgreSqlMigrationSubState { @@ -508,13 +529,14 @@ public enum PostgreSqlMinimalTlsVersionEnum public partial class PostgreSqlPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public PostgreSqlPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlPrivateLinkServiceConnectionStateProperty ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.PostgreSql.PostgreSqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -535,6 +557,7 @@ public PostgreSqlPrivateLinkServiceConnectionStateProperty() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum PostgreSqlPrivateLinkServiceConnectionStateRequiredAction { @@ -564,24 +587,25 @@ public partial class PostgreSqlServer : Azure.Provisioning.Primitives.Provisiona public Azure.Provisioning.BicepValue EarliestRestoreOn { get { throw null; } } public Azure.Provisioning.BicepValue FullyQualifiedDomainName { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue InfrastructureEncryption { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue MasterServerId { get { throw null; } } public Azure.Provisioning.BicepValue MinimalTlsVersion { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepList PrivateEndpointConnections { get { throw null; } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlServerPropertiesForCreate Properties { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } } public Azure.Provisioning.BicepValue ReplicaCapacity { get { throw null; } } public Azure.Provisioning.BicepValue ReplicationRole { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue SslEnforcement { get { throw null; } } - public Azure.Provisioning.BicepValue StorageProfile { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.PostgreSql.PostgreSqlStorageProfile StorageProfile { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserVisibleState { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlServer FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -599,8 +623,9 @@ public partial class PostgreSqlServerAdministrator : Azure.Provisioning.Primitiv public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.PostgreSql.PostgreSqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue SecureId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlServerAdministrator FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -616,8 +641,9 @@ public partial class PostgreSqlServerKey : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.PostgreSql.PostgreSqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServerKeyType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Uri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlServerKey FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -632,22 +658,25 @@ public partial class PostgreSqlServerMetadata : Azure.Provisioning.Primitives.Pr { public PostgreSqlServerMetadata() { } public Azure.Provisioning.BicepValue Location { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } } + public Azure.Provisioning.PostgreSql.ServerSku Sku { get { throw null; } } public Azure.Provisioning.BicepValue StorageMb { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlServerPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableConstruct { public PostgreSqlServerPrivateEndpointConnection() { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } } + public Azure.Provisioning.PostgreSql.PostgreSqlServerPrivateEndpointConnectionProperties Properties { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlServerPrivateEndpointConnectionProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { public PostgreSqlServerPrivateEndpointConnectionProperties() { } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } - public Azure.Provisioning.BicepValue PrivateLinkServiceConnectionState { get { throw null; } } + public Azure.Provisioning.PostgreSql.PostgreSqlServerPrivateLinkServiceConnectionStateProperty PrivateLinkServiceConnectionState { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlServerPrivateLinkServiceConnectionStateProperty : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -655,6 +684,7 @@ public PostgreSqlServerPrivateLinkServiceConnectionStateProperty() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } } public Azure.Provisioning.BicepValue Description { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlServerPropertiesForCreate : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -663,30 +693,35 @@ public PostgreSqlServerPropertiesForCreate() { } public Azure.Provisioning.BicepValue MinimalTlsVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue SslEnforcement { get { throw null; } set { } } - public Azure.Provisioning.BicepValue StorageProfile { get { throw null; } set { } } + public Azure.Provisioning.PostgreSql.PostgreSqlStorageProfile StorageProfile { get { throw null; } set { } } public Azure.Provisioning.BicepValue Version { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlServerPropertiesForDefaultCreate : Azure.Provisioning.PostgreSql.PostgreSqlServerPropertiesForCreate { public PostgreSqlServerPropertiesForDefaultCreate() { } public Azure.Provisioning.BicepValue AdministratorLogin { get { throw null; } } public Azure.Provisioning.BicepValue AdministratorLoginPassword { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlServerPropertiesForGeoRestore : Azure.Provisioning.PostgreSql.PostgreSqlServerPropertiesForCreate { public PostgreSqlServerPropertiesForGeoRestore() { } public Azure.Provisioning.BicepValue SourceServerId { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlServerPropertiesForReplica : Azure.Provisioning.PostgreSql.PostgreSqlServerPropertiesForCreate { public PostgreSqlServerPropertiesForReplica() { } public Azure.Provisioning.BicepValue SourceServerId { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlServerPropertiesForRestore : Azure.Provisioning.PostgreSql.PostgreSqlServerPropertiesForCreate { public PostgreSqlServerPropertiesForRestore() { } public Azure.Provisioning.BicepValue RestorePointInTime { get { throw null; } } public Azure.Provisioning.BicepValue SourceServerId { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlServerSecurityAlertPolicy : Azure.Provisioning.Primitives.ProvisionableResource { @@ -701,7 +736,8 @@ public partial class PostgreSqlServerSecurityAlertPolicy : Azure.Provisioning.Pr public Azure.Provisioning.BicepValue State { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageEndpoint { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlServerSecurityAlertPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -743,6 +779,7 @@ public PostgreSqlSku() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Size { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum PostgreSqlSkuTier { @@ -767,6 +804,7 @@ public PostgreSqlStorageProfile() { } public Azure.Provisioning.BicepValue GeoRedundantBackup { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAutogrow { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageInMB { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PostgreSqlVirtualNetworkRule : Azure.Provisioning.Primitives.ProvisionableResource { @@ -776,8 +814,9 @@ public partial class PostgreSqlVirtualNetworkRule : Azure.Provisioning.Primitive public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.PostgreSql.PostgreSqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue VirtualNetworkSubnetId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.PostgreSql.PostgreSqlVirtualNetworkRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -799,6 +838,7 @@ public partial class ServerSku : Azure.Provisioning.Primitives.ProvisionableCons public ServerSku() { } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue Tier { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum StorageAutoGrow { diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerAuthConfig.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerAuthConfig.cs index d6c0e197f2423..9a083f596d194 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerAuthConfig.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerAuthConfig.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,49 @@ public partial class PostgreSqlFlexibleServerAuthConfig : ProvisionableConstruct /// /// If Enabled, Azure Active Directory authentication is enabled. /// - public BicepValue ActiveDirectoryAuth { get => _activeDirectoryAuth; set => _activeDirectoryAuth.Assign(value); } - private readonly BicepValue _activeDirectoryAuth; + public BicepValue ActiveDirectoryAuth + { + get { Initialize(); return _activeDirectoryAuth!; } + set { Initialize(); _activeDirectoryAuth!.Assign(value); } + } + private BicepValue? _activeDirectoryAuth; /// /// If Enabled, Password authentication is enabled. /// - public BicepValue PasswordAuth { get => _passwordAuth; set => _passwordAuth.Assign(value); } - private readonly BicepValue _passwordAuth; + public BicepValue PasswordAuth + { + get { Initialize(); return _passwordAuth!; } + set { Initialize(); _passwordAuth!.Assign(value); } + } + private BicepValue? _passwordAuth; /// /// Tenant id of the server. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// Creates a new PostgreSqlFlexibleServerAuthConfig. /// public PostgreSqlFlexibleServerAuthConfig() { - _activeDirectoryAuth = BicepValue.DefineProperty(this, "ActiveDirectoryAuth", ["activeDirectoryAuth"]); - _passwordAuth = BicepValue.DefineProperty(this, "PasswordAuth", ["passwordAuth"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"]); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlFlexibleServerAuthConfig. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _activeDirectoryAuth = DefineProperty("ActiveDirectoryAuth", ["activeDirectoryAuth"]); + _passwordAuth = DefineProperty("PasswordAuth", ["passwordAuth"]); + _tenantId = DefineProperty("TenantId", ["tenantId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerBackupProperties.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerBackupProperties.cs index ba38f29a706d7..a1a3b6c1be3a7 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerBackupProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerBackupProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,49 @@ public partial class PostgreSqlFlexibleServerBackupProperties : ProvisionableCon /// /// Backup retention days for the server. /// - public BicepValue BackupRetentionDays { get => _backupRetentionDays; set => _backupRetentionDays.Assign(value); } - private readonly BicepValue _backupRetentionDays; + public BicepValue BackupRetentionDays + { + get { Initialize(); return _backupRetentionDays!; } + set { Initialize(); _backupRetentionDays!.Assign(value); } + } + private BicepValue? _backupRetentionDays; /// /// A value indicating whether Geo-Redundant backup is enabled on the /// server. /// - public BicepValue GeoRedundantBackup { get => _geoRedundantBackup; set => _geoRedundantBackup.Assign(value); } - private readonly BicepValue _geoRedundantBackup; + public BicepValue GeoRedundantBackup + { + get { Initialize(); return _geoRedundantBackup!; } + set { Initialize(); _geoRedundantBackup!.Assign(value); } + } + private BicepValue? _geoRedundantBackup; /// /// The earliest restore point time (ISO8601 format) for server. /// - public BicepValue EarliestRestoreOn { get => _earliestRestoreOn; } - private readonly BicepValue _earliestRestoreOn; + public BicepValue EarliestRestoreOn + { + get { Initialize(); return _earliestRestoreOn!; } + } + private BicepValue? _earliestRestoreOn; /// /// Creates a new PostgreSqlFlexibleServerBackupProperties. /// public PostgreSqlFlexibleServerBackupProperties() { - _backupRetentionDays = BicepValue.DefineProperty(this, "BackupRetentionDays", ["backupRetentionDays"]); - _geoRedundantBackup = BicepValue.DefineProperty(this, "GeoRedundantBackup", ["geoRedundantBackup"]); - _earliestRestoreOn = BicepValue.DefineProperty(this, "EarliestRestoreOn", ["earliestRestoreDate"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlFlexibleServerBackupProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _backupRetentionDays = DefineProperty("BackupRetentionDays", ["backupRetentionDays"]); + _geoRedundantBackup = DefineProperty("GeoRedundantBackup", ["geoRedundantBackup"]); + _earliestRestoreOn = DefineProperty("EarliestRestoreOn", ["earliestRestoreDate"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerDataEncryption.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerDataEncryption.cs index c22c081143d1a..4ed9db3c50002 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerDataEncryption.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerDataEncryption.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,60 +19,97 @@ public partial class PostgreSqlFlexibleServerDataEncryption : ProvisionableConst /// /// URI for the key in keyvault for data encryption of the primary server. /// - public BicepValue PrimaryKeyUri { get => _primaryKeyUri; set => _primaryKeyUri.Assign(value); } - private readonly BicepValue _primaryKeyUri; + public BicepValue PrimaryKeyUri + { + get { Initialize(); return _primaryKeyUri!; } + set { Initialize(); _primaryKeyUri!.Assign(value); } + } + private BicepValue? _primaryKeyUri; /// /// Resource Id for the User assigned identity to be used for data /// encryption of the primary server. /// - public BicepValue PrimaryUserAssignedIdentityId { get => _primaryUserAssignedIdentityId; set => _primaryUserAssignedIdentityId.Assign(value); } - private readonly BicepValue _primaryUserAssignedIdentityId; + public BicepValue PrimaryUserAssignedIdentityId + { + get { Initialize(); return _primaryUserAssignedIdentityId!; } + set { Initialize(); _primaryUserAssignedIdentityId!.Assign(value); } + } + private BicepValue? _primaryUserAssignedIdentityId; /// /// URI for the key in keyvault for data encryption for geo-backup of /// server. /// - public BicepValue GeoBackupKeyUri { get => _geoBackupKeyUri; set => _geoBackupKeyUri.Assign(value); } - private readonly BicepValue _geoBackupKeyUri; + public BicepValue GeoBackupKeyUri + { + get { Initialize(); return _geoBackupKeyUri!; } + set { Initialize(); _geoBackupKeyUri!.Assign(value); } + } + private BicepValue? _geoBackupKeyUri; /// /// Resource Id for the User assigned identity to be used for data /// encryption for geo-backup of server. /// - public BicepValue GeoBackupUserAssignedIdentityId { get => _geoBackupUserAssignedIdentityId; set => _geoBackupUserAssignedIdentityId.Assign(value); } - private readonly BicepValue _geoBackupUserAssignedIdentityId; + public BicepValue GeoBackupUserAssignedIdentityId + { + get { Initialize(); return _geoBackupUserAssignedIdentityId!; } + set { Initialize(); _geoBackupUserAssignedIdentityId!.Assign(value); } + } + private BicepValue? _geoBackupUserAssignedIdentityId; /// /// Data encryption type to depict if it is System Managed vs Azure Key /// vault. /// - public BicepValue KeyType { get => _keyType; set => _keyType.Assign(value); } - private readonly BicepValue _keyType; + public BicepValue KeyType + { + get { Initialize(); return _keyType!; } + set { Initialize(); _keyType!.Assign(value); } + } + private BicepValue? _keyType; /// /// Primary encryption key status for Data encryption enabled server. /// - public BicepValue PrimaryEncryptionKeyStatus { get => _primaryEncryptionKeyStatus; set => _primaryEncryptionKeyStatus.Assign(value); } - private readonly BicepValue _primaryEncryptionKeyStatus; + public BicepValue PrimaryEncryptionKeyStatus + { + get { Initialize(); return _primaryEncryptionKeyStatus!; } + set { Initialize(); _primaryEncryptionKeyStatus!.Assign(value); } + } + private BicepValue? _primaryEncryptionKeyStatus; /// /// Geo-backup encryption key status for Data encryption enabled server. /// - public BicepValue GeoBackupEncryptionKeyStatus { get => _geoBackupEncryptionKeyStatus; set => _geoBackupEncryptionKeyStatus.Assign(value); } - private readonly BicepValue _geoBackupEncryptionKeyStatus; + public BicepValue GeoBackupEncryptionKeyStatus + { + get { Initialize(); return _geoBackupEncryptionKeyStatus!; } + set { Initialize(); _geoBackupEncryptionKeyStatus!.Assign(value); } + } + private BicepValue? _geoBackupEncryptionKeyStatus; /// /// Creates a new PostgreSqlFlexibleServerDataEncryption. /// public PostgreSqlFlexibleServerDataEncryption() { - _primaryKeyUri = BicepValue.DefineProperty(this, "PrimaryKeyUri", ["primaryKeyURI"]); - _primaryUserAssignedIdentityId = BicepValue.DefineProperty(this, "PrimaryUserAssignedIdentityId", ["primaryUserAssignedIdentityId"]); - _geoBackupKeyUri = BicepValue.DefineProperty(this, "GeoBackupKeyUri", ["geoBackupKeyURI"]); - _geoBackupUserAssignedIdentityId = BicepValue.DefineProperty(this, "GeoBackupUserAssignedIdentityId", ["geoBackupUserAssignedIdentityId"]); - _keyType = BicepValue.DefineProperty(this, "KeyType", ["type"]); - _primaryEncryptionKeyStatus = BicepValue.DefineProperty(this, "PrimaryEncryptionKeyStatus", ["primaryEncryptionKeyStatus"]); - _geoBackupEncryptionKeyStatus = BicepValue.DefineProperty(this, "GeoBackupEncryptionKeyStatus", ["geoBackupEncryptionKeyStatus"]); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlFlexibleServerDataEncryption. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _primaryKeyUri = DefineProperty("PrimaryKeyUri", ["primaryKeyURI"]); + _primaryUserAssignedIdentityId = DefineProperty("PrimaryUserAssignedIdentityId", ["primaryUserAssignedIdentityId"]); + _geoBackupKeyUri = DefineProperty("GeoBackupKeyUri", ["geoBackupKeyURI"]); + _geoBackupUserAssignedIdentityId = DefineProperty("GeoBackupUserAssignedIdentityId", ["geoBackupUserAssignedIdentityId"]); + _keyType = DefineProperty("KeyType", ["type"]); + _primaryEncryptionKeyStatus = DefineProperty("PrimaryEncryptionKeyStatus", ["primaryEncryptionKeyStatus"]); + _geoBackupEncryptionKeyStatus = DefineProperty("GeoBackupEncryptionKeyStatus", ["geoBackupEncryptionKeyStatus"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerHighAvailability.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerHighAvailability.cs index 777d450cb7152..f92e5ac64d53c 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerHighAvailability.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerHighAvailability.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class PostgreSqlFlexibleServerHighAvailability : ProvisionableCon /// /// The HA mode for the server. /// - public BicepValue Mode { get => _mode; set => _mode.Assign(value); } - private readonly BicepValue _mode; + public BicepValue Mode + { + get { Initialize(); return _mode!; } + set { Initialize(); _mode!.Assign(value); } + } + private BicepValue? _mode; /// /// A state of a HA server that is visible to user. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// availability zone information of the standby. /// - public BicepValue StandbyAvailabilityZone { get => _standbyAvailabilityZone; set => _standbyAvailabilityZone.Assign(value); } - private readonly BicepValue _standbyAvailabilityZone; + public BicepValue StandbyAvailabilityZone + { + get { Initialize(); return _standbyAvailabilityZone!; } + set { Initialize(); _standbyAvailabilityZone!.Assign(value); } + } + private BicepValue? _standbyAvailabilityZone; /// /// Creates a new PostgreSqlFlexibleServerHighAvailability. /// public PostgreSqlFlexibleServerHighAvailability() { - _mode = BicepValue.DefineProperty(this, "Mode", ["mode"]); - _state = BicepValue.DefineProperty(this, "State", ["state"], isOutput: true); - _standbyAvailabilityZone = BicepValue.DefineProperty(this, "StandbyAvailabilityZone", ["standbyAvailabilityZone"]); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlFlexibleServerHighAvailability. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _mode = DefineProperty("Mode", ["mode"]); + _state = DefineProperty("State", ["state"], isOutput: true); + _standbyAvailabilityZone = DefineProperty("StandbyAvailabilityZone", ["standbyAvailabilityZone"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerMaintenanceWindow.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerMaintenanceWindow.cs index fb01e168e922e..8e724745b9390 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerMaintenanceWindow.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerMaintenanceWindow.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,60 @@ public partial class PostgreSqlFlexibleServerMaintenanceWindow : ProvisionableCo /// /// indicates whether custom window is enabled or disabled. /// - public BicepValue CustomWindow { get => _customWindow; set => _customWindow.Assign(value); } - private readonly BicepValue _customWindow; + public BicepValue CustomWindow + { + get { Initialize(); return _customWindow!; } + set { Initialize(); _customWindow!.Assign(value); } + } + private BicepValue? _customWindow; /// /// start hour for maintenance window. /// - public BicepValue StartHour { get => _startHour; set => _startHour.Assign(value); } - private readonly BicepValue _startHour; + public BicepValue StartHour + { + get { Initialize(); return _startHour!; } + set { Initialize(); _startHour!.Assign(value); } + } + private BicepValue? _startHour; /// /// start minute for maintenance window. /// - public BicepValue StartMinute { get => _startMinute; set => _startMinute.Assign(value); } - private readonly BicepValue _startMinute; + public BicepValue StartMinute + { + get { Initialize(); return _startMinute!; } + set { Initialize(); _startMinute!.Assign(value); } + } + private BicepValue? _startMinute; /// /// day of week for maintenance window. /// - public BicepValue DayOfWeek { get => _dayOfWeek; set => _dayOfWeek.Assign(value); } - private readonly BicepValue _dayOfWeek; + public BicepValue DayOfWeek + { + get { Initialize(); return _dayOfWeek!; } + set { Initialize(); _dayOfWeek!.Assign(value); } + } + private BicepValue? _dayOfWeek; /// /// Creates a new PostgreSqlFlexibleServerMaintenanceWindow. /// public PostgreSqlFlexibleServerMaintenanceWindow() { - _customWindow = BicepValue.DefineProperty(this, "CustomWindow", ["customWindow"]); - _startHour = BicepValue.DefineProperty(this, "StartHour", ["startHour"]); - _startMinute = BicepValue.DefineProperty(this, "StartMinute", ["startMinute"]); - _dayOfWeek = BicepValue.DefineProperty(this, "DayOfWeek", ["dayOfWeek"]); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlFlexibleServerMaintenanceWindow. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _customWindow = DefineProperty("CustomWindow", ["customWindow"]); + _startHour = DefineProperty("StartHour", ["startHour"]); + _startMinute = DefineProperty("StartMinute", ["startMinute"]); + _dayOfWeek = DefineProperty("DayOfWeek", ["dayOfWeek"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerNetwork.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerNetwork.cs index 5693c8d1cf8a9..fb878b9599ad3 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerNetwork.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerNetwork.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -16,8 +18,11 @@ public partial class PostgreSqlFlexibleServerNetwork : ProvisionableConstruct /// /// public network access is enabled or not. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + } + private BicepValue? _publicNetworkAccess; /// /// Delegated subnet arm resource id. This is required to be passed during @@ -25,8 +30,12 @@ public partial class PostgreSqlFlexibleServerNetwork : ProvisionableConstruct /// access server. During update, pass this only if we want to update the /// value for Private DNS zone. /// - public BicepValue DelegatedSubnetResourceId { get => _delegatedSubnetResourceId; set => _delegatedSubnetResourceId.Assign(value); } - private readonly BicepValue _delegatedSubnetResourceId; + public BicepValue DelegatedSubnetResourceId + { + get { Initialize(); return _delegatedSubnetResourceId!; } + set { Initialize(); _delegatedSubnetResourceId!.Assign(value); } + } + private BicepValue? _delegatedSubnetResourceId; /// /// Private dns zone arm resource id. This is required to be passed during @@ -34,16 +43,29 @@ public partial class PostgreSqlFlexibleServerNetwork : ProvisionableConstruct /// access server. During update, pass this only if we want to update the /// value for Private DNS zone. /// - public BicepValue PrivateDnsZoneArmResourceId { get => _privateDnsZoneArmResourceId; set => _privateDnsZoneArmResourceId.Assign(value); } - private readonly BicepValue _privateDnsZoneArmResourceId; + public BicepValue PrivateDnsZoneArmResourceId + { + get { Initialize(); return _privateDnsZoneArmResourceId!; } + set { Initialize(); _privateDnsZoneArmResourceId!.Assign(value); } + } + private BicepValue? _privateDnsZoneArmResourceId; /// /// Creates a new PostgreSqlFlexibleServerNetwork. /// public PostgreSqlFlexibleServerNetwork() { - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["publicNetworkAccess"], isOutput: true); - _delegatedSubnetResourceId = BicepValue.DefineProperty(this, "DelegatedSubnetResourceId", ["delegatedSubnetResourceId"]); - _privateDnsZoneArmResourceId = BicepValue.DefineProperty(this, "PrivateDnsZoneArmResourceId", ["privateDnsZoneArmResourceId"]); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlFlexibleServerNetwork. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["publicNetworkAccess"], isOutput: true); + _delegatedSubnetResourceId = DefineProperty("DelegatedSubnetResourceId", ["delegatedSubnetResourceId"]); + _privateDnsZoneArmResourceId = DefineProperty("PrivateDnsZoneArmResourceId", ["privateDnsZoneArmResourceId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerSku.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerSku.cs index 67ba83c667826..7f583749c2830 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerSku.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class PostgreSqlFlexibleServerSku : ProvisionableConstruct /// The name of the sku, typically, tier + family + cores, e.g. /// Standard_D4s_v3. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The tier of the particular SKU, e.g. Burstable. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// Creates a new PostgreSqlFlexibleServerSku. /// public PostgreSqlFlexibleServerSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); + } + + /// + /// Define all the provisionable properties of PostgreSqlFlexibleServerSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerStorage.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerStorage.cs index 90ac80dcf4ba0..0657f5996719b 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerStorage.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerStorage.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class PostgreSqlFlexibleServerStorage : ProvisionableConstruct /// /// Max storage allowed for a server. /// - public BicepValue StorageSizeInGB { get => _storageSizeInGB; set => _storageSizeInGB.Assign(value); } - private readonly BicepValue _storageSizeInGB; + public BicepValue StorageSizeInGB + { + get { Initialize(); return _storageSizeInGB!; } + set { Initialize(); _storageSizeInGB!.Assign(value); } + } + private BicepValue? _storageSizeInGB; /// /// Flag to enable / disable Storage Auto grow for flexible server. /// - public BicepValue AutoGrow { get => _autoGrow; set => _autoGrow.Assign(value); } - private readonly BicepValue _autoGrow; + public BicepValue AutoGrow + { + get { Initialize(); return _autoGrow!; } + set { Initialize(); _autoGrow!.Assign(value); } + } + private BicepValue? _autoGrow; /// /// Name of storage tier for IOPS. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// Storage tier IOPS quantity. /// - public BicepValue Iops { get => _iops; } - private readonly BicepValue _iops; + public BicepValue Iops + { + get { Initialize(); return _iops!; } + } + private BicepValue? _iops; /// /// Creates a new PostgreSqlFlexibleServerStorage. /// public PostgreSqlFlexibleServerStorage() { - _storageSizeInGB = BicepValue.DefineProperty(this, "StorageSizeInGB", ["storageSizeGB"]); - _autoGrow = BicepValue.DefineProperty(this, "AutoGrow", ["autoGrow"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); - _iops = BicepValue.DefineProperty(this, "Iops", ["iops"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlFlexibleServerStorage. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _storageSizeInGB = DefineProperty("StorageSizeInGB", ["storageSizeGB"]); + _autoGrow = DefineProperty("AutoGrow", ["autoGrow"]); + _tier = DefineProperty("Tier", ["tier"]); + _iops = DefineProperty("Iops", ["iops"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerUserAssignedIdentity.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerUserAssignedIdentity.cs index c4d8045cac0c4..6da22208b3cba 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerUserAssignedIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlFlexibleServerUserAssignedIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -18,29 +20,49 @@ public partial class PostgreSqlFlexibleServerUserAssignedIdentity : Provisionabl /// /// represents user assigned identities map. /// - public BicepDictionary UserAssignedIdentities { get => _userAssignedIdentities; set => _userAssignedIdentities.Assign(value); } - private readonly BicepDictionary _userAssignedIdentities; + public BicepDictionary UserAssignedIdentities + { + get { Initialize(); return _userAssignedIdentities!; } + set { Initialize(); _userAssignedIdentities!.Assign(value); } + } + private BicepDictionary? _userAssignedIdentities; /// /// the types of identities associated with this resource; currently /// restricted to 'None and UserAssigned'. /// - public BicepValue IdentityType { get => _identityType; set => _identityType.Assign(value); } - private readonly BicepValue _identityType; + public BicepValue IdentityType + { + get { Initialize(); return _identityType!; } + set { Initialize(); _identityType!.Assign(value); } + } + private BicepValue? _identityType; /// /// Tenant id of the server. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// Creates a new PostgreSqlFlexibleServerUserAssignedIdentity. /// public PostgreSqlFlexibleServerUserAssignedIdentity() { - _userAssignedIdentities = BicepDictionary.DefineProperty(this, "UserAssignedIdentities", ["userAssignedIdentities"]); - _identityType = BicepValue.DefineProperty(this, "IdentityType", ["type"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlFlexibleServerUserAssignedIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _userAssignedIdentities = DefineDictionaryProperty("UserAssignedIdentities", ["userAssignedIdentities"]); + _identityType = DefineProperty("IdentityType", ["type"]); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlMigrationAdminCredentials.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlMigrationAdminCredentials.cs index 3b95e52942490..5712ad24cf8d9 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlMigrationAdminCredentials.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlMigrationAdminCredentials.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class PostgreSqlMigrationAdminCredentials : ProvisionableConstruc /// /// Password for source server. /// - public BicepValue SourceServerPassword { get => _sourceServerPassword; set => _sourceServerPassword.Assign(value); } - private readonly BicepValue _sourceServerPassword; + public BicepValue SourceServerPassword + { + get { Initialize(); return _sourceServerPassword!; } + set { Initialize(); _sourceServerPassword!.Assign(value); } + } + private BicepValue? _sourceServerPassword; /// /// Password for target server. /// - public BicepValue TargetServerPassword { get => _targetServerPassword; set => _targetServerPassword.Assign(value); } - private readonly BicepValue _targetServerPassword; + public BicepValue TargetServerPassword + { + get { Initialize(); return _targetServerPassword!; } + set { Initialize(); _targetServerPassword!.Assign(value); } + } + private BicepValue? _targetServerPassword; /// /// Creates a new PostgreSqlMigrationAdminCredentials. /// public PostgreSqlMigrationAdminCredentials() { - _sourceServerPassword = BicepValue.DefineProperty(this, "SourceServerPassword", ["sourceServerPassword"]); - _targetServerPassword = BicepValue.DefineProperty(this, "TargetServerPassword", ["targetServerPassword"]); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlMigrationAdminCredentials. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _sourceServerPassword = DefineProperty("SourceServerPassword", ["sourceServerPassword"]); + _targetServerPassword = DefineProperty("TargetServerPassword", ["targetServerPassword"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlMigrationSecretParameters.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlMigrationSecretParameters.cs index 24efdabad8da2..1b877a20de6c4 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlMigrationSecretParameters.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlMigrationSecretParameters.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,30 +18,51 @@ public partial class PostgreSqlMigrationSecretParameters : ProvisionableConstruc /// /// Admin credentials for source and target servers. /// - public BicepValue AdminCredentials { get => _adminCredentials; set => _adminCredentials.Assign(value); } - private readonly BicepValue _adminCredentials; + public PostgreSqlMigrationAdminCredentials AdminCredentials + { + get { Initialize(); return _adminCredentials!; } + set { Initialize(); AssignOrReplace(ref _adminCredentials, value); } + } + private PostgreSqlMigrationAdminCredentials? _adminCredentials; /// /// Gets or sets the username for the source server. This user need not be /// an admin. /// - public BicepValue SourceServerUsername { get => _sourceServerUsername; set => _sourceServerUsername.Assign(value); } - private readonly BicepValue _sourceServerUsername; + public BicepValue SourceServerUsername + { + get { Initialize(); return _sourceServerUsername!; } + set { Initialize(); _sourceServerUsername!.Assign(value); } + } + private BicepValue? _sourceServerUsername; /// /// Gets or sets the username for the target server. This user need not be /// an admin. /// - public BicepValue TargetServerUsername { get => _targetServerUsername; set => _targetServerUsername.Assign(value); } - private readonly BicepValue _targetServerUsername; + public BicepValue TargetServerUsername + { + get { Initialize(); return _targetServerUsername!; } + set { Initialize(); _targetServerUsername!.Assign(value); } + } + private BicepValue? _targetServerUsername; /// /// Creates a new PostgreSqlMigrationSecretParameters. /// public PostgreSqlMigrationSecretParameters() { - _adminCredentials = BicepValue.DefineProperty(this, "AdminCredentials", ["adminCredentials"]); - _sourceServerUsername = BicepValue.DefineProperty(this, "SourceServerUsername", ["sourceServerUsername"]); - _targetServerUsername = BicepValue.DefineProperty(this, "TargetServerUsername", ["targetServerUsername"]); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlMigrationSecretParameters. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _adminCredentials = DefineModelProperty("AdminCredentials", ["adminCredentials"]); + _sourceServerUsername = DefineProperty("SourceServerUsername", ["sourceServerUsername"]); + _targetServerUsername = DefineProperty("TargetServerUsername", ["targetServerUsername"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlMigrationStatus.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlMigrationStatus.cs index 928bf90c6e1ae..3ce4acc8da7bd 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlMigrationStatus.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlMigrationStatus.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,45 @@ public partial class PostgreSqlMigrationStatus : ProvisionableConstruct /// /// State of migration. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Error message, if any, for the migration state. /// - public BicepValue Error { get => _error; } - private readonly BicepValue _error; + public BicepValue Error + { + get { Initialize(); return _error!; } + } + private BicepValue? _error; /// /// Migration sub state. /// - public BicepValue CurrentSubState { get => _currentSubState; } - private readonly BicepValue _currentSubState; + public BicepValue CurrentSubState + { + get { Initialize(); return _currentSubState!; } + } + private BicepValue? _currentSubState; /// /// Creates a new PostgreSqlMigrationStatus. /// public PostgreSqlMigrationStatus() { - _state = BicepValue.DefineProperty(this, "State", ["state"], isOutput: true); - _error = BicepValue.DefineProperty(this, "Error", ["error"], isOutput: true); - _currentSubState = BicepValue.DefineProperty(this, "CurrentSubState", ["currentSubStateDetails", "currentSubState"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PostgreSqlMigrationStatus. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _state = DefineProperty("State", ["state"], isOutput: true); + _error = DefineProperty("Error", ["error"], isOutput: true); + _currentSubState = DefineProperty("CurrentSubState", ["currentSubStateDetails", "currentSubState"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlPrivateLinkServiceConnectionStateProperty.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlPrivateLinkServiceConnectionStateProperty.cs index 68d0bc1cac986..bded8bca4bf63 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlPrivateLinkServiceConnectionStateProperty.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlPrivateLinkServiceConnectionStateProperty.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class PostgreSqlPrivateLinkServiceConnectionStateProperty : Provi /// /// The private link service connection status. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The private link service connection description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The actions required for private link service connection. /// - public BicepValue ActionsRequired { get => _actionsRequired; } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + } + private BicepValue? _actionsRequired; /// /// Creates a new PostgreSqlPrivateLinkServiceConnectionStateProperty. /// public PostgreSqlPrivateLinkServiceConnectionStateProperty() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlPrivateLinkServiceConnectionStateProperty. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerMetadata.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerMetadata.cs index 1170e0ea5e6e5..02d96140ee07a 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerMetadata.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerMetadata.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,55 @@ public partial class PostgreSqlServerMetadata : ProvisionableConstruct /// /// Location of database server. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Version for database engine. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// Storage size in MB for database server. /// - public BicepValue StorageMb { get => _storageMb; } - private readonly BicepValue _storageMb; + public BicepValue StorageMb + { + get { Initialize(); return _storageMb!; } + } + private BicepValue? _storageMb; /// /// SKU for the database server. /// - public BicepValue Sku { get => _sku; } - private readonly BicepValue _sku; + public ServerSku Sku + { + get { Initialize(); return _sku!; } + } + private ServerSku? _sku; /// /// Creates a new PostgreSqlServerMetadata. /// public PostgreSqlServerMetadata() { - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _version = BicepValue.DefineProperty(this, "Version", ["version"], isOutput: true); - _storageMb = BicepValue.DefineProperty(this, "StorageMb", ["storageMb"], isOutput: true); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PostgreSqlServerMetadata. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _location = DefineProperty("Location", ["location"], isOutput: true); + _version = DefineProperty("Version", ["version"], isOutput: true); + _storageMb = DefineProperty("StorageMb", ["storageMb"], isOutput: true); + _sku = DefineModelProperty("Sku", ["sku"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPrivateEndpointConnection.cs index c5b1796a97cff..ee0ad49150ee4 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPrivateEndpointConnection.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,36 @@ public partial class PostgreSqlServerPrivateEndpointConnection : ProvisionableCo /// /// Resource ID of the Private Endpoint Connection. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Private endpoint connection properties. /// - public BicepValue Properties { get => _properties; } - private readonly BicepValue _properties; + public PostgreSqlServerPrivateEndpointConnectionProperties Properties + { + get { Initialize(); return _properties!; } + } + private PostgreSqlServerPrivateEndpointConnectionProperties? _properties; /// /// Creates a new PostgreSqlServerPrivateEndpointConnection. /// public PostgreSqlServerPrivateEndpointConnection() { - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlServerPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"], isOutput: true); + _properties = DefineModelProperty("Properties", ["properties"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPrivateEndpointConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPrivateEndpointConnectionProperties.cs index 92ade874493a0..be55cb0f5e391 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPrivateEndpointConnectionProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPrivateEndpointConnectionProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,46 @@ public partial class PostgreSqlServerPrivateEndpointConnectionProperties : Provi /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// Connection state of the private endpoint connection. /// - public BicepValue PrivateLinkServiceConnectionState { get => _privateLinkServiceConnectionState; } - private readonly BicepValue _privateLinkServiceConnectionState; + public PostgreSqlServerPrivateLinkServiceConnectionStateProperty PrivateLinkServiceConnectionState + { + get { Initialize(); return _privateLinkServiceConnectionState!; } + } + private PostgreSqlServerPrivateLinkServiceConnectionStateProperty? _privateLinkServiceConnectionState; /// /// State of the private endpoint connection. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Creates a new PostgreSqlServerPrivateEndpointConnectionProperties. /// public PostgreSqlServerPrivateEndpointConnectionProperties() { - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["privateEndpoint", "id"], isOutput: true); - _privateLinkServiceConnectionState = BicepValue.DefineProperty(this, "PrivateLinkServiceConnectionState", ["privateLinkServiceConnectionState"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlServerPrivateEndpointConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["privateEndpoint", "id"], isOutput: true); + _privateLinkServiceConnectionState = DefineModelProperty("PrivateLinkServiceConnectionState", ["privateLinkServiceConnectionState"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPrivateLinkServiceConnectionStateProperty.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPrivateLinkServiceConnectionStateProperty.cs index 2f37cb065bd3b..22aaa3f7ab233 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPrivateLinkServiceConnectionStateProperty.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPrivateLinkServiceConnectionStateProperty.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,46 @@ public partial class PostgreSqlServerPrivateLinkServiceConnectionStateProperty : /// /// The private link service connection status. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// The private link service connection description. /// - public BicepValue Description { get => _description; } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + } + private BicepValue? _description; /// /// The actions required for private link service connection. /// - public BicepValue ActionsRequired { get => _actionsRequired; } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + } + private BicepValue? _actionsRequired; /// /// Creates a new PostgreSqlServerPrivateLinkServiceConnectionStateProperty. /// public PostgreSqlServerPrivateLinkServiceConnectionStateProperty() { - _status = BicepValue.DefineProperty(this, "Status", ["status"], isOutput: true); - _description = BicepValue.DefineProperty(this, "Description", ["description"], isOutput: true); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlServerPrivateLinkServiceConnectionStateProperty. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"], isOutput: true); + _description = DefineProperty("Description", ["description"], isOutput: true); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForCreate.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForCreate.cs index 379fdab560bfd..9dc96f4e0916c 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForCreate.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForCreate.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -26,51 +28,84 @@ public partial class PostgreSqlServerPropertiesForCreate : ProvisionableConstruc /// /// Server version. /// - public BicepValue Version { get => _version; set => _version.Assign(value); } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + set { Initialize(); _version!.Assign(value); } + } + private BicepValue? _version; /// /// Enable ssl enforcement or not when connect to server. /// - public BicepValue SslEnforcement { get => _sslEnforcement; set => _sslEnforcement.Assign(value); } - private readonly BicepValue _sslEnforcement; + public BicepValue SslEnforcement + { + get { Initialize(); return _sslEnforcement!; } + set { Initialize(); _sslEnforcement!.Assign(value); } + } + private BicepValue? _sslEnforcement; /// /// Enforce a minimal Tls version for the server. /// - public BicepValue MinimalTlsVersion { get => _minimalTlsVersion; set => _minimalTlsVersion.Assign(value); } - private readonly BicepValue _minimalTlsVersion; + public BicepValue MinimalTlsVersion + { + get { Initialize(); return _minimalTlsVersion!; } + set { Initialize(); _minimalTlsVersion!.Assign(value); } + } + private BicepValue? _minimalTlsVersion; /// /// Status showing whether the server enabled infrastructure encryption. /// - public BicepValue InfrastructureEncryption { get => _infrastructureEncryption; set => _infrastructureEncryption.Assign(value); } - private readonly BicepValue _infrastructureEncryption; + public BicepValue InfrastructureEncryption + { + get { Initialize(); return _infrastructureEncryption!; } + set { Initialize(); _infrastructureEncryption!.Assign(value); } + } + private BicepValue? _infrastructureEncryption; /// /// Whether or not public network access is allowed for this server. Value /// is optional but if passed in, must be 'Enabled' or /// 'Disabled'. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Storage profile of a server. /// - public BicepValue StorageProfile { get => _storageProfile; set => _storageProfile.Assign(value); } - private readonly BicepValue _storageProfile; + public PostgreSqlStorageProfile StorageProfile + { + get { Initialize(); return _storageProfile!; } + set { Initialize(); AssignOrReplace(ref _storageProfile, value); } + } + private PostgreSqlStorageProfile? _storageProfile; /// /// Creates a new PostgreSqlServerPropertiesForCreate. /// public PostgreSqlServerPropertiesForCreate() { - _version = BicepValue.DefineProperty(this, "Version", ["version"]); - _sslEnforcement = BicepValue.DefineProperty(this, "SslEnforcement", ["sslEnforcement"]); - _minimalTlsVersion = BicepValue.DefineProperty(this, "MinimalTlsVersion", ["minimalTlsVersion"]); - _infrastructureEncryption = BicepValue.DefineProperty(this, "InfrastructureEncryption", ["infrastructureEncryption"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["publicNetworkAccess"]); - _storageProfile = BicepValue.DefineProperty(this, "StorageProfile", ["storageProfile"]); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlServerPropertiesForCreate. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _version = DefineProperty("Version", ["version"]); + _sslEnforcement = DefineProperty("SslEnforcement", ["sslEnforcement"]); + _minimalTlsVersion = DefineProperty("MinimalTlsVersion", ["minimalTlsVersion"]); + _infrastructureEncryption = DefineProperty("InfrastructureEncryption", ["infrastructureEncryption"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["publicNetworkAccess"]); + _storageProfile = DefineModelProperty("StorageProfile", ["storageProfile"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForDefaultCreate.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForDefaultCreate.cs index f4e9b8d692633..d7361365d4671 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForDefaultCreate.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForDefaultCreate.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,22 +19,37 @@ public partial class PostgreSqlServerPropertiesForDefaultCreate : PostgreSqlServ /// The administrator's login name of a server. Can only be specified /// when the server is being created (and is required for creation). /// - public BicepValue AdministratorLogin { get => _administratorLogin; } - private readonly BicepValue _administratorLogin; + public BicepValue AdministratorLogin + { + get { Initialize(); return _administratorLogin!; } + } + private BicepValue? _administratorLogin; /// /// The password of the administrator login. /// - public BicepValue AdministratorLoginPassword { get => _administratorLoginPassword; } - private readonly BicepValue _administratorLoginPassword; + public BicepValue AdministratorLoginPassword + { + get { Initialize(); return _administratorLoginPassword!; } + } + private BicepValue? _administratorLoginPassword; /// /// Creates a new PostgreSqlServerPropertiesForDefaultCreate. /// public PostgreSqlServerPropertiesForDefaultCreate() : base() { - BicepValue.DefineProperty(this, "createMode", ["createMode"], defaultValue: "Default"); - _administratorLogin = BicepValue.DefineProperty(this, "AdministratorLogin", ["administratorLogin"], isOutput: true); - _administratorLoginPassword = BicepValue.DefineProperty(this, "AdministratorLoginPassword", ["administratorLoginPassword"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlServerPropertiesForDefaultCreate. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("createMode", ["createMode"], defaultValue: "Default"); + _administratorLogin = DefineProperty("AdministratorLogin", ["administratorLogin"], isOutput: true); + _administratorLoginPassword = DefineProperty("AdministratorLoginPassword", ["administratorLoginPassword"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForGeoRestore.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForGeoRestore.cs index 05e8e66b67587..f0b1c00ceea3e 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForGeoRestore.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForGeoRestore.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -17,15 +19,27 @@ public partial class PostgreSqlServerPropertiesForGeoRestore : PostgreSqlServerP /// /// The source server id to restore from. /// - public BicepValue SourceServerId { get => _sourceServerId; } - private readonly BicepValue _sourceServerId; + public BicepValue SourceServerId + { + get { Initialize(); return _sourceServerId!; } + } + private BicepValue? _sourceServerId; /// /// Creates a new PostgreSqlServerPropertiesForGeoRestore. /// public PostgreSqlServerPropertiesForGeoRestore() : base() { - BicepValue.DefineProperty(this, "createMode", ["createMode"], defaultValue: "GeoRestore"); - _sourceServerId = BicepValue.DefineProperty(this, "SourceServerId", ["sourceServerId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlServerPropertiesForGeoRestore. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("createMode", ["createMode"], defaultValue: "GeoRestore"); + _sourceServerId = DefineProperty("SourceServerId", ["sourceServerId"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForReplica.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForReplica.cs index db2baf13feffd..51b373c0427a5 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForReplica.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForReplica.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -16,15 +18,27 @@ public partial class PostgreSqlServerPropertiesForReplica : PostgreSqlServerProp /// /// The master server id to create replica from. /// - public BicepValue SourceServerId { get => _sourceServerId; } - private readonly BicepValue _sourceServerId; + public BicepValue SourceServerId + { + get { Initialize(); return _sourceServerId!; } + } + private BicepValue? _sourceServerId; /// /// Creates a new PostgreSqlServerPropertiesForReplica. /// public PostgreSqlServerPropertiesForReplica() : base() { - BicepValue.DefineProperty(this, "createMode", ["createMode"], defaultValue: "Replica"); - _sourceServerId = BicepValue.DefineProperty(this, "SourceServerId", ["sourceServerId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlServerPropertiesForReplica. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("createMode", ["createMode"], defaultValue: "Replica"); + _sourceServerId = DefineProperty("SourceServerId", ["sourceServerId"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForRestore.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForRestore.cs index 25c9d453b062b..d8d5655be0f63 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForRestore.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlServerPropertiesForRestore.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,23 +19,38 @@ public partial class PostgreSqlServerPropertiesForRestore : PostgreSqlServerProp /// /// The source server id to restore from. /// - public BicepValue SourceServerId { get => _sourceServerId; } - private readonly BicepValue _sourceServerId; + public BicepValue SourceServerId + { + get { Initialize(); return _sourceServerId!; } + } + private BicepValue? _sourceServerId; /// /// Restore point creation time (ISO8601 format), specifying the time to /// restore from. /// - public BicepValue RestorePointInTime { get => _restorePointInTime; } - private readonly BicepValue _restorePointInTime; + public BicepValue RestorePointInTime + { + get { Initialize(); return _restorePointInTime!; } + } + private BicepValue? _restorePointInTime; /// /// Creates a new PostgreSqlServerPropertiesForRestore. /// public PostgreSqlServerPropertiesForRestore() : base() { - BicepValue.DefineProperty(this, "createMode", ["createMode"], defaultValue: "PointInTimeRestore"); - _sourceServerId = BicepValue.DefineProperty(this, "SourceServerId", ["sourceServerId"], isOutput: true); - _restorePointInTime = BicepValue.DefineProperty(this, "RestorePointInTime", ["restorePointInTime"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlServerPropertiesForRestore. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("createMode", ["createMode"], defaultValue: "PointInTimeRestore"); + _sourceServerId = DefineProperty("SourceServerId", ["sourceServerId"], isOutput: true); + _restorePointInTime = DefineProperty("RestorePointInTime", ["restorePointInTime"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlSku.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlSku.cs index 5d3144706784f..80a942e85a74b 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlSku.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,42 +19,70 @@ public partial class PostgreSqlSku : ProvisionableConstruct /// The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, /// GP_Gen5_8. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The tier of the particular SKU, e.g. Basic. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// The scale up/out capacity, representing server's compute units. /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// The size code, to be interpreted by resource as appropriate. /// - public BicepValue Size { get => _size; set => _size.Assign(value); } - private readonly BicepValue _size; + public BicepValue Size + { + get { Initialize(); return _size!; } + set { Initialize(); _size!.Assign(value); } + } + private BicepValue? _size; /// /// The family of hardware. /// - public BicepValue Family { get => _family; set => _family.Assign(value); } - private readonly BicepValue _family; + public BicepValue Family + { + get { Initialize(); return _family!; } + set { Initialize(); _family!.Assign(value); } + } + private BicepValue? _family; /// /// Creates a new PostgreSqlSku. /// public PostgreSqlSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); - _size = BicepValue.DefineProperty(this, "Size", ["size"]); - _family = BicepValue.DefineProperty(this, "Family", ["family"]); + } + + /// + /// Define all the provisionable properties of PostgreSqlSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"]); + _capacity = DefineProperty("Capacity", ["capacity"]); + _size = DefineProperty("Size", ["size"]); + _family = DefineProperty("Family", ["family"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlStorageProfile.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlStorageProfile.cs index 83be2de727e1a..880237aa44daf 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlStorageProfile.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/PostgreSqlStorageProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class PostgreSqlStorageProfile : ProvisionableConstruct /// /// Backup retention days for the server. /// - public BicepValue BackupRetentionDays { get => _backupRetentionDays; set => _backupRetentionDays.Assign(value); } - private readonly BicepValue _backupRetentionDays; + public BicepValue BackupRetentionDays + { + get { Initialize(); return _backupRetentionDays!; } + set { Initialize(); _backupRetentionDays!.Assign(value); } + } + private BicepValue? _backupRetentionDays; /// /// Enable Geo-redundant or not for server backup. /// - public BicepValue GeoRedundantBackup { get => _geoRedundantBackup; set => _geoRedundantBackup.Assign(value); } - private readonly BicepValue _geoRedundantBackup; + public BicepValue GeoRedundantBackup + { + get { Initialize(); return _geoRedundantBackup!; } + set { Initialize(); _geoRedundantBackup!.Assign(value); } + } + private BicepValue? _geoRedundantBackup; /// /// Max storage allowed for a server. /// - public BicepValue StorageInMB { get => _storageInMB; set => _storageInMB.Assign(value); } - private readonly BicepValue _storageInMB; + public BicepValue StorageInMB + { + get { Initialize(); return _storageInMB!; } + set { Initialize(); _storageInMB!.Assign(value); } + } + private BicepValue? _storageInMB; /// /// Enable Storage Auto Grow. /// - public BicepValue StorageAutogrow { get => _storageAutogrow; set => _storageAutogrow.Assign(value); } - private readonly BicepValue _storageAutogrow; + public BicepValue StorageAutogrow + { + get { Initialize(); return _storageAutogrow!; } + set { Initialize(); _storageAutogrow!.Assign(value); } + } + private BicepValue? _storageAutogrow; /// /// Creates a new PostgreSqlStorageProfile. /// public PostgreSqlStorageProfile() { - _backupRetentionDays = BicepValue.DefineProperty(this, "BackupRetentionDays", ["backupRetentionDays"]); - _geoRedundantBackup = BicepValue.DefineProperty(this, "GeoRedundantBackup", ["geoRedundantBackup"]); - _storageInMB = BicepValue.DefineProperty(this, "StorageInMB", ["storageMB"]); - _storageAutogrow = BicepValue.DefineProperty(this, "StorageAutogrow", ["storageAutogrow"]); + } + + /// + /// Define all the provisionable properties of PostgreSqlStorageProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _backupRetentionDays = DefineProperty("BackupRetentionDays", ["backupRetentionDays"]); + _geoRedundantBackup = DefineProperty("GeoRedundantBackup", ["geoRedundantBackup"]); + _storageInMB = DefineProperty("StorageInMB", ["storageMB"]); + _storageAutogrow = DefineProperty("StorageAutogrow", ["storageAutogrow"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/ServerSku.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/ServerSku.cs index e6c475315a1af..754bfd2207ea8 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/ServerSku.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/Models/ServerSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,35 @@ public partial class ServerSku : ProvisionableConstruct /// The name of the sku, typically, tier + family + cores, e.g. /// Standard_D4s_v3. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The tier of the particular SKU, e.g. Burstable. /// - public BicepValue Tier { get => _tier; } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + } + private BicepValue? _tier; /// /// Creates a new ServerSku. /// public ServerSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ServerSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isOutput: true); + _tier = DefineProperty("Tier", ["tier"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlConfiguration.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlConfiguration.cs index a545173c3c586..de03a1a8f25e6 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlConfiguration.cs @@ -20,62 +20,96 @@ public partial class PostgreSqlConfiguration : ProvisionableResource /// /// The name of the server configuration. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Source of the configuration. /// - public BicepValue Source { get => _source; set => _source.Assign(value); } - private readonly BicepValue _source; + public BicepValue Source + { + get { Initialize(); return _source!; } + set { Initialize(); _source!.Assign(value); } + } + private BicepValue? _source; /// /// Value of the configuration. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Allowed values of the configuration. /// - public BicepValue AllowedValues { get => _allowedValues; } - private readonly BicepValue _allowedValues; + public BicepValue AllowedValues + { + get { Initialize(); return _allowedValues!; } + } + private BicepValue? _allowedValues; /// /// Data type of the configuration. /// - public BicepValue DataType { get => _dataType; } - private readonly BicepValue _dataType; + public BicepValue DataType + { + get { Initialize(); return _dataType!; } + } + private BicepValue? _dataType; /// /// Default value of the configuration. /// - public BicepValue DefaultValue { get => _defaultValue; } - private readonly BicepValue _defaultValue; + public BicepValue DefaultValue + { + get { Initialize(); return _defaultValue!; } + } + private BicepValue? _defaultValue; /// /// Description of the configuration. /// - public BicepValue Description { get => _description; } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + } + private BicepValue? _description; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent PostgreSqlServer. /// - public PostgreSqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PostgreSqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PostgreSqlConfiguration. @@ -90,16 +124,23 @@ public partial class PostgreSqlConfiguration : ProvisionableResource public PostgreSqlConfiguration(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/servers/configurations", resourceVersion ?? "2017-12-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _source = BicepValue.DefineProperty(this, "Source", ["properties", "source"]); - _value = BicepValue.DefineProperty(this, "Value", ["properties", "value"]); - _allowedValues = BicepValue.DefineProperty(this, "AllowedValues", ["properties", "allowedValues"], isOutput: true); - _dataType = BicepValue.DefineProperty(this, "DataType", ["properties", "dataType"], isOutput: true); - _defaultValue = BicepValue.DefineProperty(this, "DefaultValue", ["properties", "defaultValue"], isOutput: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of PostgreSqlConfiguration. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _source = DefineProperty("Source", ["properties", "source"]); + _value = DefineProperty("Value", ["properties", "value"]); + _allowedValues = DefineProperty("AllowedValues", ["properties", "allowedValues"], isOutput: true); + _dataType = DefineProperty("DataType", ["properties", "dataType"], isOutput: true); + _defaultValue = DefineProperty("DefaultValue", ["properties", "defaultValue"], isOutput: true); + _description = DefineProperty("Description", ["properties", "description"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlDatabase.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlDatabase.cs index b1aff7f17eb16..7d106d7b77932 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlDatabase.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlDatabase.cs @@ -21,38 +21,60 @@ public partial class PostgreSqlDatabase : ProvisionableResource /// /// The name of the database. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The charset of the database. /// - public BicepValue Charset { get => _charset; set => _charset.Assign(value); } - private readonly BicepValue _charset; + public BicepValue Charset + { + get { Initialize(); return _charset!; } + set { Initialize(); _charset!.Assign(value); } + } + private BicepValue? _charset; /// /// The collation of the database. /// - public BicepValue Collation { get => _collation; set => _collation.Assign(value); } - private readonly BicepValue _collation; + public BicepValue Collation + { + get { Initialize(); return _collation!; } + set { Initialize(); _collation!.Assign(value); } + } + private BicepValue? _collation; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent PostgreSqlServer. /// - public PostgreSqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PostgreSqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PostgreSqlDatabase. @@ -67,12 +89,19 @@ public partial class PostgreSqlDatabase : ProvisionableResource public PostgreSqlDatabase(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/servers/databases", resourceVersion ?? "2017-12-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _charset = BicepValue.DefineProperty(this, "Charset", ["properties", "charset"]); - _collation = BicepValue.DefineProperty(this, "Collation", ["properties", "collation"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of PostgreSqlDatabase. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _charset = DefineProperty("Charset", ["properties", "charset"]); + _collation = DefineProperty("Collation", ["properties", "collation"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFirewallRule.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFirewallRule.cs index 424a16be5ccb5..bede9fa9446f1 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFirewallRule.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFirewallRule.cs @@ -22,38 +22,60 @@ public partial class PostgreSqlFirewallRule : ProvisionableResource /// /// The name of the server firewall rule. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The end IP address of the server firewall rule. Must be IPv4 format. /// - public BicepValue EndIPAddress { get => _endIPAddress; set => _endIPAddress.Assign(value); } - private readonly BicepValue _endIPAddress; + public BicepValue EndIPAddress + { + get { Initialize(); return _endIPAddress!; } + set { Initialize(); _endIPAddress!.Assign(value); } + } + private BicepValue? _endIPAddress; /// /// The start IP address of the server firewall rule. Must be IPv4 format. /// - public BicepValue StartIPAddress { get => _startIPAddress; set => _startIPAddress.Assign(value); } - private readonly BicepValue _startIPAddress; + public BicepValue StartIPAddress + { + get { Initialize(); return _startIPAddress!; } + set { Initialize(); _startIPAddress!.Assign(value); } + } + private BicepValue? _startIPAddress; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent PostgreSqlServer. /// - public PostgreSqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PostgreSqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PostgreSqlFirewallRule. @@ -68,12 +90,19 @@ public partial class PostgreSqlFirewallRule : ProvisionableResource public PostgreSqlFirewallRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/servers/firewallRules", resourceVersion ?? "2017-12-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _endIPAddress = BicepValue.DefineProperty(this, "EndIPAddress", ["properties", "endIpAddress"], isRequired: true); - _startIPAddress = BicepValue.DefineProperty(this, "StartIPAddress", ["properties", "startIpAddress"], isRequired: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of PostgreSqlFirewallRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _endIPAddress = DefineProperty("EndIPAddress", ["properties", "endIpAddress"], isRequired: true); + _startIPAddress = DefineProperty("StartIPAddress", ["properties", "startIpAddress"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServer.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServer.cs index 6377d2b8bfdf3..b8f6bd52db856 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServer.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServer.cs @@ -22,82 +22,134 @@ public partial class PostgreSqlFlexibleServer : ProvisionableResource /// /// The name of the server. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The administrator's login name of a server. Can only be specified /// when the server is being created (and is required for creation). /// - public BicepValue AdministratorLogin { get => _administratorLogin; set => _administratorLogin.Assign(value); } - private readonly BicepValue _administratorLogin; + public BicepValue AdministratorLogin + { + get { Initialize(); return _administratorLogin!; } + set { Initialize(); _administratorLogin!.Assign(value); } + } + private BicepValue? _administratorLogin; /// /// The administrator login password (required for server creation). /// - public BicepValue AdministratorLoginPassword { get => _administratorLoginPassword; set => _administratorLoginPassword.Assign(value); } - private readonly BicepValue _administratorLoginPassword; + public BicepValue AdministratorLoginPassword + { + get { Initialize(); return _administratorLoginPassword!; } + set { Initialize(); _administratorLoginPassword!.Assign(value); } + } + private BicepValue? _administratorLoginPassword; /// /// AuthConfig properties of a server. /// - public BicepValue AuthConfig { get => _authConfig; set => _authConfig.Assign(value); } - private readonly BicepValue _authConfig; + public PostgreSqlFlexibleServerAuthConfig AuthConfig + { + get { Initialize(); return _authConfig!; } + set { Initialize(); AssignOrReplace(ref _authConfig, value); } + } + private PostgreSqlFlexibleServerAuthConfig? _authConfig; /// /// availability zone information of the server. /// - public BicepValue AvailabilityZone { get => _availabilityZone; set => _availabilityZone.Assign(value); } - private readonly BicepValue _availabilityZone; + public BicepValue AvailabilityZone + { + get { Initialize(); return _availabilityZone!; } + set { Initialize(); _availabilityZone!.Assign(value); } + } + private BicepValue? _availabilityZone; /// /// Backup properties of a server. /// - public BicepValue Backup { get => _backup; set => _backup.Assign(value); } - private readonly BicepValue _backup; + public PostgreSqlFlexibleServerBackupProperties Backup + { + get { Initialize(); return _backup!; } + set { Initialize(); AssignOrReplace(ref _backup, value); } + } + private PostgreSqlFlexibleServerBackupProperties? _backup; /// /// The mode to create a new PostgreSQL server. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// Data encryption properties of a server. /// - public BicepValue DataEncryption { get => _dataEncryption; set => _dataEncryption.Assign(value); } - private readonly BicepValue _dataEncryption; + public PostgreSqlFlexibleServerDataEncryption DataEncryption + { + get { Initialize(); return _dataEncryption!; } + set { Initialize(); AssignOrReplace(ref _dataEncryption, value); } + } + private PostgreSqlFlexibleServerDataEncryption? _dataEncryption; /// /// High availability properties of a server. /// - public BicepValue HighAvailability { get => _highAvailability; set => _highAvailability.Assign(value); } - private readonly BicepValue _highAvailability; + public PostgreSqlFlexibleServerHighAvailability HighAvailability + { + get { Initialize(); return _highAvailability!; } + set { Initialize(); AssignOrReplace(ref _highAvailability, value); } + } + private PostgreSqlFlexibleServerHighAvailability? _highAvailability; /// /// Describes the identity of the application. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public PostgreSqlFlexibleServerUserAssignedIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private PostgreSqlFlexibleServerUserAssignedIdentity? _identity; /// /// Maintenance window properties of a server. /// - public BicepValue MaintenanceWindow { get => _maintenanceWindow; set => _maintenanceWindow.Assign(value); } - private readonly BicepValue _maintenanceWindow; + public PostgreSqlFlexibleServerMaintenanceWindow MaintenanceWindow + { + get { Initialize(); return _maintenanceWindow!; } + set { Initialize(); AssignOrReplace(ref _maintenanceWindow, value); } + } + private PostgreSqlFlexibleServerMaintenanceWindow? _maintenanceWindow; /// /// Network properties of a server. This Network property is required to be /// passed only in case you want the server to be Private access server. /// - public BicepValue Network { get => _network; set => _network.Assign(value); } - private readonly BicepValue _network; + public PostgreSqlFlexibleServerNetwork Network + { + get { Initialize(); return _network!; } + set { Initialize(); AssignOrReplace(ref _network, value); } + } + private PostgreSqlFlexibleServerNetwork? _network; /// /// Restore point creation time (ISO8601 format), specifying the time to @@ -105,26 +157,42 @@ public partial class PostgreSqlFlexibleServer : ProvisionableResource /// 'PointInTimeRestore' or 'GeoRestore' or /// 'ReviveDropped'. /// - public BicepValue PointInTimeUtc { get => _pointInTimeUtc; set => _pointInTimeUtc.Assign(value); } - private readonly BicepValue _pointInTimeUtc; + public BicepValue PointInTimeUtc + { + get { Initialize(); return _pointInTimeUtc!; } + set { Initialize(); _pointInTimeUtc!.Assign(value); } + } + private BicepValue? _pointInTimeUtc; /// /// Replicas allowed for a server. /// - public BicepValue ReplicaCapacity { get => _replicaCapacity; set => _replicaCapacity.Assign(value); } - private readonly BicepValue _replicaCapacity; + public BicepValue ReplicaCapacity + { + get { Initialize(); return _replicaCapacity!; } + set { Initialize(); _replicaCapacity!.Assign(value); } + } + private BicepValue? _replicaCapacity; /// /// Replication role of the server. /// - public BicepValue ReplicationRole { get => _replicationRole; set => _replicationRole.Assign(value); } - private readonly BicepValue _replicationRole; + public BicepValue ReplicationRole + { + get { Initialize(); return _replicationRole!; } + set { Initialize(); _replicationRole!.Assign(value); } + } + private BicepValue? _replicationRole; /// /// The SKU (pricing tier) of the server. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public PostgreSqlFlexibleServerSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private PostgreSqlFlexibleServerSku? _sku; /// /// The source server resource ID to restore from. It's required when @@ -133,62 +201,97 @@ public partial class PostgreSqlFlexibleServer : ProvisionableResource /// 'ReviveDropped'. This property is returned only for Replica /// server. /// - public BicepValue SourceServerResourceId { get => _sourceServerResourceId; set => _sourceServerResourceId.Assign(value); } - private readonly BicepValue _sourceServerResourceId; + public BicepValue SourceServerResourceId + { + get { Initialize(); return _sourceServerResourceId!; } + set { Initialize(); _sourceServerResourceId!.Assign(value); } + } + private BicepValue? _sourceServerResourceId; /// /// Storage properties of a server. /// - public BicepValue Storage { get => _storage; set => _storage.Assign(value); } - private readonly BicepValue _storage; + public PostgreSqlFlexibleServerStorage Storage + { + get { Initialize(); return _storage!; } + set { Initialize(); AssignOrReplace(ref _storage, value); } + } + private PostgreSqlFlexibleServerStorage? _storage; /// /// Max storage allowed for a server. /// - public BicepValue StorageSizeInGB { get => _storageSizeInGB; set => _storageSizeInGB.Assign(value); } - private readonly BicepValue _storageSizeInGB; + public BicepValue StorageSizeInGB + { + get { Initialize(); return _storageSizeInGB!; } + set { Initialize(); _storageSizeInGB!.Assign(value); } + } + private BicepValue? _storageSizeInGB; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// PostgreSQL Server version. /// - public BicepValue Version { get => _version; set => _version.Assign(value); } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + set { Initialize(); _version!.Assign(value); } + } + private BicepValue? _version; /// /// The fully qualified domain name of a server. /// - public BicepValue FullyQualifiedDomainName { get => _fullyQualifiedDomainName; } - private readonly BicepValue _fullyQualifiedDomainName; + public BicepValue FullyQualifiedDomainName + { + get { Initialize(); return _fullyQualifiedDomainName!; } + } + private BicepValue? _fullyQualifiedDomainName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The minor version of the server. /// - public BicepValue MinorVersion { get => _minorVersion; } - private readonly BicepValue _minorVersion; + public BicepValue MinorVersion + { + get { Initialize(); return _minorVersion!; } + } + private BicepValue? _minorVersion; /// /// A state of a server that is visible to user. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new PostgreSqlFlexibleServer. @@ -203,33 +306,40 @@ public partial class PostgreSqlFlexibleServer : ProvisionableResource public PostgreSqlFlexibleServer(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/flexibleServers", resourceVersion ?? "2024-08-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _administratorLogin = BicepValue.DefineProperty(this, "AdministratorLogin", ["properties", "administratorLogin"]); - _administratorLoginPassword = BicepValue.DefineProperty(this, "AdministratorLoginPassword", ["properties", "administratorLoginPassword"]); - _authConfig = BicepValue.DefineProperty(this, "AuthConfig", ["properties", "authConfig"]); - _availabilityZone = BicepValue.DefineProperty(this, "AvailabilityZone", ["properties", "availabilityZone"]); - _backup = BicepValue.DefineProperty(this, "Backup", ["properties", "backup"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["properties", "createMode"]); - _dataEncryption = BicepValue.DefineProperty(this, "DataEncryption", ["properties", "dataEncryption"]); - _highAvailability = BicepValue.DefineProperty(this, "HighAvailability", ["properties", "highAvailability"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _maintenanceWindow = BicepValue.DefineProperty(this, "MaintenanceWindow", ["properties", "maintenanceWindow"]); - _network = BicepValue.DefineProperty(this, "Network", ["properties", "network"]); - _pointInTimeUtc = BicepValue.DefineProperty(this, "PointInTimeUtc", ["properties", "pointInTimeUTC"]); - _replicaCapacity = BicepValue.DefineProperty(this, "ReplicaCapacity", ["properties", "replicaCapacity"]); - _replicationRole = BicepValue.DefineProperty(this, "ReplicationRole", ["properties", "replicationRole"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _sourceServerResourceId = BicepValue.DefineProperty(this, "SourceServerResourceId", ["properties", "sourceServerResourceId"]); - _storage = BicepValue.DefineProperty(this, "Storage", ["properties", "storage"]); - _storageSizeInGB = BicepValue.DefineProperty(this, "StorageSizeInGB", ["properties", "storage", "storageSizeGB"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"]); - _fullyQualifiedDomainName = BicepValue.DefineProperty(this, "FullyQualifiedDomainName", ["properties", "fullyQualifiedDomainName"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _minorVersion = BicepValue.DefineProperty(this, "MinorVersion", ["properties", "minorVersion"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PostgreSqlFlexibleServer. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _administratorLogin = DefineProperty("AdministratorLogin", ["properties", "administratorLogin"]); + _administratorLoginPassword = DefineProperty("AdministratorLoginPassword", ["properties", "administratorLoginPassword"]); + _authConfig = DefineModelProperty("AuthConfig", ["properties", "authConfig"]); + _availabilityZone = DefineProperty("AvailabilityZone", ["properties", "availabilityZone"]); + _backup = DefineModelProperty("Backup", ["properties", "backup"]); + _createMode = DefineProperty("CreateMode", ["properties", "createMode"]); + _dataEncryption = DefineModelProperty("DataEncryption", ["properties", "dataEncryption"]); + _highAvailability = DefineModelProperty("HighAvailability", ["properties", "highAvailability"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _maintenanceWindow = DefineModelProperty("MaintenanceWindow", ["properties", "maintenanceWindow"]); + _network = DefineModelProperty("Network", ["properties", "network"]); + _pointInTimeUtc = DefineProperty("PointInTimeUtc", ["properties", "pointInTimeUTC"]); + _replicaCapacity = DefineProperty("ReplicaCapacity", ["properties", "replicaCapacity"]); + _replicationRole = DefineProperty("ReplicationRole", ["properties", "replicationRole"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _sourceServerResourceId = DefineProperty("SourceServerResourceId", ["properties", "sourceServerResourceId"]); + _storage = DefineModelProperty("Storage", ["properties", "storage"]); + _storageSizeInGB = DefineProperty("StorageSizeInGB", ["properties", "storage", "storageSizeGB"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _version = DefineProperty("Version", ["properties", "version"]); + _fullyQualifiedDomainName = DefineProperty("FullyQualifiedDomainName", ["properties", "fullyQualifiedDomainName"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _minorVersion = DefineProperty("MinorVersion", ["properties", "minorVersion"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerActiveDirectoryAdministrator.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerActiveDirectoryAdministrator.cs index 08b9befb47b79..57a5ea865c1e2 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerActiveDirectoryAdministrator.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerActiveDirectoryAdministrator.cs @@ -20,51 +20,80 @@ public partial class PostgreSqlFlexibleServerActiveDirectoryAdministrator : Prov /// /// Gets or sets the Name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Guid of the objectId for the administrator. /// - public BicepValue ObjectId { get => _objectId; } - private readonly BicepValue _objectId; + public BicepValue ObjectId + { + get { Initialize(); return _objectId!; } + } + private BicepValue? _objectId; /// /// Active Directory administrator principal name. /// - public BicepValue PrincipalName { get => _principalName; set => _principalName.Assign(value); } - private readonly BicepValue _principalName; + public BicepValue PrincipalName + { + get { Initialize(); return _principalName!; } + set { Initialize(); _principalName!.Assign(value); } + } + private BicepValue? _principalName; /// /// The principal type used to represent the type of Active Directory /// Administrator. /// - public BicepValue PrincipalType { get => _principalType; set => _principalType.Assign(value); } - private readonly BicepValue _principalType; + public BicepValue PrincipalType + { + get { Initialize(); return _principalType!; } + set { Initialize(); _principalType!.Assign(value); } + } + private BicepValue? _principalType; /// /// The tenantId of the Active Directory administrator. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent PostgreSqlFlexibleServer. /// - public PostgreSqlFlexibleServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PostgreSqlFlexibleServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PostgreSqlFlexibleServerActiveDirectoryAdministrator. @@ -80,14 +109,22 @@ public partial class PostgreSqlFlexibleServerActiveDirectoryAdministrator : Prov public PostgreSqlFlexibleServerActiveDirectoryAdministrator(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/flexibleServers/administrators", resourceVersion ?? "2024-08-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _objectId = BicepValue.DefineProperty(this, "ObjectId", ["properties", "objectId"], isOutput: true); - _principalName = BicepValue.DefineProperty(this, "PrincipalName", ["properties", "principalName"]); - _principalType = BicepValue.DefineProperty(this, "PrincipalType", ["properties", "principalType"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["properties", "tenantId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlFlexibleServerActiveDirectoryAdministrator. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _objectId = DefineProperty("ObjectId", ["properties", "objectId"], isOutput: true); + _principalName = DefineProperty("PrincipalName", ["properties", "principalName"]); + _principalType = DefineProperty("PrincipalType", ["properties", "principalType"]); + _tenantId = DefineProperty("TenantId", ["properties", "tenantId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerConfiguration.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerConfiguration.cs index 4e42f361d1f85..dde24999621e1 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerConfiguration.cs @@ -20,92 +20,141 @@ public partial class PostgreSqlFlexibleServerConfiguration : ProvisionableResour /// /// The name of the server configuration. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Source of the configuration. /// - public BicepValue Source { get => _source; set => _source.Assign(value); } - private readonly BicepValue _source; + public BicepValue Source + { + get { Initialize(); return _source!; } + set { Initialize(); _source!.Assign(value); } + } + private BicepValue? _source; /// /// Value of the configuration. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Allowed values of the configuration. /// - public BicepValue AllowedValues { get => _allowedValues; } - private readonly BicepValue _allowedValues; + public BicepValue AllowedValues + { + get { Initialize(); return _allowedValues!; } + } + private BicepValue? _allowedValues; /// /// Data type of the configuration. /// - public BicepValue DataType { get => _dataType; } - private readonly BicepValue _dataType; + public BicepValue DataType + { + get { Initialize(); return _dataType!; } + } + private BicepValue? _dataType; /// /// Default value of the configuration. /// - public BicepValue DefaultValue { get => _defaultValue; } - private readonly BicepValue _defaultValue; + public BicepValue DefaultValue + { + get { Initialize(); return _defaultValue!; } + } + private BicepValue? _defaultValue; /// /// Description of the configuration. /// - public BicepValue Description { get => _description; } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + } + private BicepValue? _description; /// /// Configuration documentation link. /// - public BicepValue DocumentationLink { get => _documentationLink; } - private readonly BicepValue _documentationLink; + public BicepValue DocumentationLink + { + get { Initialize(); return _documentationLink!; } + } + private BicepValue? _documentationLink; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Configuration is pending restart or not. /// - public BicepValue IsConfigPendingRestart { get => _isConfigPendingRestart; } - private readonly BicepValue _isConfigPendingRestart; + public BicepValue IsConfigPendingRestart + { + get { Initialize(); return _isConfigPendingRestart!; } + } + private BicepValue? _isConfigPendingRestart; /// /// Configuration dynamic or static. /// - public BicepValue IsDynamicConfig { get => _isDynamicConfig; } - private readonly BicepValue _isDynamicConfig; + public BicepValue IsDynamicConfig + { + get { Initialize(); return _isDynamicConfig!; } + } + private BicepValue? _isDynamicConfig; /// /// Configuration read-only or not. /// - public BicepValue IsReadOnly { get => _isReadOnly; } - private readonly BicepValue _isReadOnly; + public BicepValue IsReadOnly + { + get { Initialize(); return _isReadOnly!; } + } + private BicepValue? _isReadOnly; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Configuration unit. /// - public BicepValue Unit { get => _unit; } - private readonly BicepValue _unit; + public BicepValue Unit + { + get { Initialize(); return _unit!; } + } + private BicepValue? _unit; /// /// Gets or sets a reference to the parent PostgreSqlFlexibleServer. /// - public PostgreSqlFlexibleServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PostgreSqlFlexibleServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PostgreSqlFlexibleServerConfiguration. @@ -120,21 +169,29 @@ public partial class PostgreSqlFlexibleServerConfiguration : ProvisionableResour public PostgreSqlFlexibleServerConfiguration(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/flexibleServers/configurations", resourceVersion ?? "2024-08-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _source = BicepValue.DefineProperty(this, "Source", ["properties", "source"]); - _value = BicepValue.DefineProperty(this, "Value", ["properties", "value"]); - _allowedValues = BicepValue.DefineProperty(this, "AllowedValues", ["properties", "allowedValues"], isOutput: true); - _dataType = BicepValue.DefineProperty(this, "DataType", ["properties", "dataType"], isOutput: true); - _defaultValue = BicepValue.DefineProperty(this, "DefaultValue", ["properties", "defaultValue"], isOutput: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"], isOutput: true); - _documentationLink = BicepValue.DefineProperty(this, "DocumentationLink", ["properties", "documentationLink"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isConfigPendingRestart = BicepValue.DefineProperty(this, "IsConfigPendingRestart", ["properties", "isConfigPendingRestart"], isOutput: true); - _isDynamicConfig = BicepValue.DefineProperty(this, "IsDynamicConfig", ["properties", "isDynamicConfig"], isOutput: true); - _isReadOnly = BicepValue.DefineProperty(this, "IsReadOnly", ["properties", "isReadOnly"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _unit = BicepValue.DefineProperty(this, "Unit", ["properties", "unit"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlFlexibleServerConfiguration. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _source = DefineProperty("Source", ["properties", "source"]); + _value = DefineProperty("Value", ["properties", "value"]); + _allowedValues = DefineProperty("AllowedValues", ["properties", "allowedValues"], isOutput: true); + _dataType = DefineProperty("DataType", ["properties", "dataType"], isOutput: true); + _defaultValue = DefineProperty("DefaultValue", ["properties", "defaultValue"], isOutput: true); + _description = DefineProperty("Description", ["properties", "description"], isOutput: true); + _documentationLink = DefineProperty("DocumentationLink", ["properties", "documentationLink"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isConfigPendingRestart = DefineProperty("IsConfigPendingRestart", ["properties", "isConfigPendingRestart"], isOutput: true); + _isDynamicConfig = DefineProperty("IsDynamicConfig", ["properties", "isDynamicConfig"], isOutput: true); + _isReadOnly = DefineProperty("IsReadOnly", ["properties", "isReadOnly"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _unit = DefineProperty("Unit", ["properties", "unit"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerDatabase.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerDatabase.cs index df5cb99fe3fb7..b9c7bdff6ffd7 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerDatabase.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerDatabase.cs @@ -20,38 +20,60 @@ public partial class PostgreSqlFlexibleServerDatabase : ProvisionableResource /// /// The name of the database. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The charset of the database. /// - public BicepValue Charset { get => _charset; set => _charset.Assign(value); } - private readonly BicepValue _charset; + public BicepValue Charset + { + get { Initialize(); return _charset!; } + set { Initialize(); _charset!.Assign(value); } + } + private BicepValue? _charset; /// /// The collation of the database. /// - public BicepValue Collation { get => _collation; set => _collation.Assign(value); } - private readonly BicepValue _collation; + public BicepValue Collation + { + get { Initialize(); return _collation!; } + set { Initialize(); _collation!.Assign(value); } + } + private BicepValue? _collation; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent PostgreSqlFlexibleServer. /// - public PostgreSqlFlexibleServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PostgreSqlFlexibleServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PostgreSqlFlexibleServerDatabase. @@ -66,12 +88,20 @@ public partial class PostgreSqlFlexibleServerDatabase : ProvisionableResource public PostgreSqlFlexibleServerDatabase(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/flexibleServers/databases", resourceVersion ?? "2024-08-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _charset = BicepValue.DefineProperty(this, "Charset", ["properties", "charset"]); - _collation = BicepValue.DefineProperty(this, "Collation", ["properties", "collation"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlFlexibleServerDatabase. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _charset = DefineProperty("Charset", ["properties", "charset"]); + _collation = DefineProperty("Collation", ["properties", "collation"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerFirewallRule.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerFirewallRule.cs index 9f645486bbf99..720e7298f5a85 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerFirewallRule.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServerFirewallRule.cs @@ -21,38 +21,60 @@ public partial class PostgreSqlFlexibleServerFirewallRule : ProvisionableResourc /// /// The name of the server firewall rule. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The end IP address of the server firewall rule. Must be IPv4 format. /// - public BicepValue EndIPAddress { get => _endIPAddress; set => _endIPAddress.Assign(value); } - private readonly BicepValue _endIPAddress; + public BicepValue EndIPAddress + { + get { Initialize(); return _endIPAddress!; } + set { Initialize(); _endIPAddress!.Assign(value); } + } + private BicepValue? _endIPAddress; /// /// The start IP address of the server firewall rule. Must be IPv4 format. /// - public BicepValue StartIPAddress { get => _startIPAddress; set => _startIPAddress.Assign(value); } - private readonly BicepValue _startIPAddress; + public BicepValue StartIPAddress + { + get { Initialize(); return _startIPAddress!; } + set { Initialize(); _startIPAddress!.Assign(value); } + } + private BicepValue? _startIPAddress; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent PostgreSqlFlexibleServer. /// - public PostgreSqlFlexibleServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PostgreSqlFlexibleServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PostgreSqlFlexibleServerFirewallRule. @@ -67,12 +89,20 @@ public partial class PostgreSqlFlexibleServerFirewallRule : ProvisionableResourc public PostgreSqlFlexibleServerFirewallRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules", resourceVersion ?? "2024-08-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _endIPAddress = BicepValue.DefineProperty(this, "EndIPAddress", ["properties", "endIpAddress"], isRequired: true); - _startIPAddress = BicepValue.DefineProperty(this, "StartIPAddress", ["properties", "startIpAddress"], isRequired: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlFlexibleServerFirewallRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _endIPAddress = DefineProperty("EndIPAddress", ["properties", "endIpAddress"], isRequired: true); + _startIPAddress = DefineProperty("StartIPAddress", ["properties", "startIpAddress"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlMigration.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlMigration.cs index 1a95775ad725b..ee69a48b4bcf4 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlMigration.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlMigration.cs @@ -21,59 +21,95 @@ public partial class PostgreSqlMigration : ProvisionableResource /// /// The name of the migration. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// To trigger cancel for entire migration we need to send this flag as /// True. /// - public BicepValue Cancel { get => _cancel; set => _cancel.Assign(value); } - private readonly BicepValue _cancel; + public BicepValue Cancel + { + get { Initialize(); return _cancel!; } + set { Initialize(); _cancel!.Assign(value); } + } + private BicepValue? _cancel; /// /// When you want to trigger cancel for specific databases send cancel flag /// as True and database names in this array. /// - public BicepList DbsToCancelMigrationOn { get => _dbsToCancelMigrationOn; set => _dbsToCancelMigrationOn.Assign(value); } - private readonly BicepList _dbsToCancelMigrationOn; + public BicepList DbsToCancelMigrationOn + { + get { Initialize(); return _dbsToCancelMigrationOn!; } + set { Initialize(); _dbsToCancelMigrationOn!.Assign(value); } + } + private BicepList? _dbsToCancelMigrationOn; /// /// Number of databases to migrate. /// - public BicepList DbsToMigrate { get => _dbsToMigrate; set => _dbsToMigrate.Assign(value); } - private readonly BicepList _dbsToMigrate; + public BicepList DbsToMigrate + { + get { Initialize(); return _dbsToMigrate!; } + set { Initialize(); _dbsToMigrate!.Assign(value); } + } + private BicepList? _dbsToMigrate; /// /// When you want to trigger cutover for specific databases send /// triggerCutover flag as True and database names in this array. /// - public BicepList DbsToTriggerCutoverOn { get => _dbsToTriggerCutoverOn; set => _dbsToTriggerCutoverOn.Assign(value); } - private readonly BicepList _dbsToTriggerCutoverOn; + public BicepList DbsToTriggerCutoverOn + { + get { Initialize(); return _dbsToTriggerCutoverOn!; } + set { Initialize(); _dbsToTriggerCutoverOn!.Assign(value); } + } + private BicepList? _dbsToTriggerCutoverOn; /// /// There are two types of migration modes Online and Offline. /// - public BicepValue MigrationMode { get => _migrationMode; set => _migrationMode.Assign(value); } - private readonly BicepValue _migrationMode; + public BicepValue MigrationMode + { + get { Initialize(); return _migrationMode!; } + set { Initialize(); _migrationMode!.Assign(value); } + } + private BicepValue? _migrationMode; /// /// End time in UTC for migration window. /// - public BicepValue MigrationWindowEndTimeInUtc { get => _migrationWindowEndTimeInUtc; set => _migrationWindowEndTimeInUtc.Assign(value); } - private readonly BicepValue _migrationWindowEndTimeInUtc; + public BicepValue MigrationWindowEndTimeInUtc + { + get { Initialize(); return _migrationWindowEndTimeInUtc!; } + set { Initialize(); _migrationWindowEndTimeInUtc!.Assign(value); } + } + private BicepValue? _migrationWindowEndTimeInUtc; /// /// Start time in UTC for migration window. /// - public BicepValue MigrationWindowStartTimeInUtc { get => _migrationWindowStartTimeInUtc; set => _migrationWindowStartTimeInUtc.Assign(value); } - private readonly BicepValue _migrationWindowStartTimeInUtc; + public BicepValue MigrationWindowStartTimeInUtc + { + get { Initialize(); return _migrationWindowStartTimeInUtc!; } + set { Initialize(); _migrationWindowStartTimeInUtc!.Assign(value); } + } + private BicepValue? _migrationWindowStartTimeInUtc; /// /// Indicates whether the databases on the target server can be @@ -81,107 +117,168 @@ public partial class PostgreSqlMigration : ProvisionableResource /// workflow will wait for a confirmation, if it detects that the database /// already exists. /// - public BicepValue OverwriteDbsInTarget { get => _overwriteDbsInTarget; set => _overwriteDbsInTarget.Assign(value); } - private readonly BicepValue _overwriteDbsInTarget; + public BicepValue OverwriteDbsInTarget + { + get { Initialize(); return _overwriteDbsInTarget!; } + set { Initialize(); _overwriteDbsInTarget!.Assign(value); } + } + private BicepValue? _overwriteDbsInTarget; /// /// Migration secret parameters. /// - public BicepValue SecretParameters { get => _secretParameters; set => _secretParameters.Assign(value); } - private readonly BicepValue _secretParameters; + public PostgreSqlMigrationSecretParameters SecretParameters + { + get { Initialize(); return _secretParameters!; } + set { Initialize(); AssignOrReplace(ref _secretParameters, value); } + } + private PostgreSqlMigrationSecretParameters? _secretParameters; /// /// Indicates whether to setup LogicalReplicationOnSourceDb, if needed. /// - public BicepValue SetupLogicalReplicationOnSourceDbIfNeeded { get => _setupLogicalReplicationOnSourceDbIfNeeded; set => _setupLogicalReplicationOnSourceDbIfNeeded.Assign(value); } - private readonly BicepValue _setupLogicalReplicationOnSourceDbIfNeeded; + public BicepValue SetupLogicalReplicationOnSourceDbIfNeeded + { + get { Initialize(); return _setupLogicalReplicationOnSourceDbIfNeeded!; } + set { Initialize(); _setupLogicalReplicationOnSourceDbIfNeeded!.Assign(value); } + } + private BicepValue? _setupLogicalReplicationOnSourceDbIfNeeded; /// /// Source server fully qualified domain name or ip. It is a optional /// value, if customer provide it, dms will always use it for connection. /// - public BicepValue SourceDbServerFullyQualifiedDomainName { get => _sourceDbServerFullyQualifiedDomainName; set => _sourceDbServerFullyQualifiedDomainName.Assign(value); } - private readonly BicepValue _sourceDbServerFullyQualifiedDomainName; + public BicepValue SourceDbServerFullyQualifiedDomainName + { + get { Initialize(); return _sourceDbServerFullyQualifiedDomainName!; } + set { Initialize(); _sourceDbServerFullyQualifiedDomainName!.Assign(value); } + } + private BicepValue? _sourceDbServerFullyQualifiedDomainName; /// /// ResourceId of the source database server. /// - public BicepValue SourceDbServerResourceId { get => _sourceDbServerResourceId; set => _sourceDbServerResourceId.Assign(value); } - private readonly BicepValue _sourceDbServerResourceId; + public BicepValue SourceDbServerResourceId + { + get { Initialize(); return _sourceDbServerResourceId!; } + set { Initialize(); _sourceDbServerResourceId!.Assign(value); } + } + private BicepValue? _sourceDbServerResourceId; /// /// Indicates whether the data migration should start right away. /// - public BicepValue StartDataMigration { get => _startDataMigration; set => _startDataMigration.Assign(value); } - private readonly BicepValue _startDataMigration; + public BicepValue StartDataMigration + { + get { Initialize(); return _startDataMigration!; } + set { Initialize(); _startDataMigration!.Assign(value); } + } + private BicepValue? _startDataMigration; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Target server fully qualified domain name or ip. It is a optional /// value, if customer provide it, dms will always use it for connection. /// - public BicepValue TargetDbServerFullyQualifiedDomainName { get => _targetDbServerFullyQualifiedDomainName; set => _targetDbServerFullyQualifiedDomainName.Assign(value); } - private readonly BicepValue _targetDbServerFullyQualifiedDomainName; + public BicepValue TargetDbServerFullyQualifiedDomainName + { + get { Initialize(); return _targetDbServerFullyQualifiedDomainName!; } + set { Initialize(); _targetDbServerFullyQualifiedDomainName!.Assign(value); } + } + private BicepValue? _targetDbServerFullyQualifiedDomainName; /// /// To trigger cutover for entire migration we need to send this flag as /// True. /// - public BicepValue TriggerCutover { get => _triggerCutover; set => _triggerCutover.Assign(value); } - private readonly BicepValue _triggerCutover; + public BicepValue TriggerCutover + { + get { Initialize(); return _triggerCutover!; } + set { Initialize(); _triggerCutover!.Assign(value); } + } + private BicepValue? _triggerCutover; /// /// Current status of migration. /// - public BicepValue CurrentStatus { get => _currentStatus; } - private readonly BicepValue _currentStatus; + public PostgreSqlMigrationStatus CurrentStatus + { + get { Initialize(); return _currentStatus!; } + } + private PostgreSqlMigrationStatus? _currentStatus; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// ID for migration, a GUID. /// - public BicepValue MigrationId { get => _migrationId; } - private readonly BicepValue _migrationId; + public BicepValue MigrationId + { + get { Initialize(); return _migrationId!; } + } + private BicepValue? _migrationId; /// /// Metadata of the source database server. /// - public BicepValue SourceDbServerMetadata { get => _sourceDbServerMetadata; } - private readonly BicepValue _sourceDbServerMetadata; + public PostgreSqlServerMetadata SourceDbServerMetadata + { + get { Initialize(); return _sourceDbServerMetadata!; } + } + private PostgreSqlServerMetadata? _sourceDbServerMetadata; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Metadata of the target database server. /// - public BicepValue TargetDbServerMetadata { get => _targetDbServerMetadata; } - private readonly BicepValue _targetDbServerMetadata; + public PostgreSqlServerMetadata TargetDbServerMetadata + { + get { Initialize(); return _targetDbServerMetadata!; } + } + private PostgreSqlServerMetadata? _targetDbServerMetadata; /// /// ResourceId of the source database server. /// - public BicepValue TargetDbServerResourceId { get => _targetDbServerResourceId; } - private readonly BicepValue _targetDbServerResourceId; + public BicepValue TargetDbServerResourceId + { + get { Initialize(); return _targetDbServerResourceId!; } + } + private BicepValue? _targetDbServerResourceId; /// /// Gets or sets a reference to the parent PostgreSqlFlexibleServer. /// - public PostgreSqlFlexibleServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PostgreSqlFlexibleServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PostgreSqlMigration. @@ -196,32 +293,39 @@ public partial class PostgreSqlMigration : ProvisionableResource public PostgreSqlMigration(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/flexibleServers/migrations", resourceVersion ?? "2024-08-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _cancel = BicepValue.DefineProperty(this, "Cancel", ["properties", "cancel"]); - _dbsToCancelMigrationOn = BicepList.DefineProperty(this, "DbsToCancelMigrationOn", ["properties", "dbsToCancelMigrationOn"]); - _dbsToMigrate = BicepList.DefineProperty(this, "DbsToMigrate", ["properties", "dbsToMigrate"]); - _dbsToTriggerCutoverOn = BicepList.DefineProperty(this, "DbsToTriggerCutoverOn", ["properties", "dbsToTriggerCutoverOn"]); - _migrationMode = BicepValue.DefineProperty(this, "MigrationMode", ["properties", "migrationMode"]); - _migrationWindowEndTimeInUtc = BicepValue.DefineProperty(this, "MigrationWindowEndTimeInUtc", ["properties", "migrationWindowEndTimeInUtc"]); - _migrationWindowStartTimeInUtc = BicepValue.DefineProperty(this, "MigrationWindowStartTimeInUtc", ["properties", "migrationWindowStartTimeInUtc"]); - _overwriteDbsInTarget = BicepValue.DefineProperty(this, "OverwriteDbsInTarget", ["properties", "overwriteDbsInTarget"]); - _secretParameters = BicepValue.DefineProperty(this, "SecretParameters", ["properties", "secretParameters"]); - _setupLogicalReplicationOnSourceDbIfNeeded = BicepValue.DefineProperty(this, "SetupLogicalReplicationOnSourceDbIfNeeded", ["properties", "setupLogicalReplicationOnSourceDbIfNeeded"]); - _sourceDbServerFullyQualifiedDomainName = BicepValue.DefineProperty(this, "SourceDbServerFullyQualifiedDomainName", ["properties", "sourceDbServerFullyQualifiedDomainName"]); - _sourceDbServerResourceId = BicepValue.DefineProperty(this, "SourceDbServerResourceId", ["properties", "sourceDbServerResourceId"]); - _startDataMigration = BicepValue.DefineProperty(this, "StartDataMigration", ["properties", "startDataMigration"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _targetDbServerFullyQualifiedDomainName = BicepValue.DefineProperty(this, "TargetDbServerFullyQualifiedDomainName", ["properties", "targetDbServerFullyQualifiedDomainName"]); - _triggerCutover = BicepValue.DefineProperty(this, "TriggerCutover", ["properties", "triggerCutover"]); - _currentStatus = BicepValue.DefineProperty(this, "CurrentStatus", ["properties", "currentStatus"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _migrationId = BicepValue.DefineProperty(this, "MigrationId", ["properties", "migrationId"], isOutput: true); - _sourceDbServerMetadata = BicepValue.DefineProperty(this, "SourceDbServerMetadata", ["properties", "sourceDbServerMetadata"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _targetDbServerMetadata = BicepValue.DefineProperty(this, "TargetDbServerMetadata", ["properties", "targetDbServerMetadata"], isOutput: true); - _targetDbServerResourceId = BicepValue.DefineProperty(this, "TargetDbServerResourceId", ["properties", "targetDbServerResourceId"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of PostgreSqlMigration. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _cancel = DefineProperty("Cancel", ["properties", "cancel"]); + _dbsToCancelMigrationOn = DefineListProperty("DbsToCancelMigrationOn", ["properties", "dbsToCancelMigrationOn"]); + _dbsToMigrate = DefineListProperty("DbsToMigrate", ["properties", "dbsToMigrate"]); + _dbsToTriggerCutoverOn = DefineListProperty("DbsToTriggerCutoverOn", ["properties", "dbsToTriggerCutoverOn"]); + _migrationMode = DefineProperty("MigrationMode", ["properties", "migrationMode"]); + _migrationWindowEndTimeInUtc = DefineProperty("MigrationWindowEndTimeInUtc", ["properties", "migrationWindowEndTimeInUtc"]); + _migrationWindowStartTimeInUtc = DefineProperty("MigrationWindowStartTimeInUtc", ["properties", "migrationWindowStartTimeInUtc"]); + _overwriteDbsInTarget = DefineProperty("OverwriteDbsInTarget", ["properties", "overwriteDbsInTarget"]); + _secretParameters = DefineModelProperty("SecretParameters", ["properties", "secretParameters"]); + _setupLogicalReplicationOnSourceDbIfNeeded = DefineProperty("SetupLogicalReplicationOnSourceDbIfNeeded", ["properties", "setupLogicalReplicationOnSourceDbIfNeeded"]); + _sourceDbServerFullyQualifiedDomainName = DefineProperty("SourceDbServerFullyQualifiedDomainName", ["properties", "sourceDbServerFullyQualifiedDomainName"]); + _sourceDbServerResourceId = DefineProperty("SourceDbServerResourceId", ["properties", "sourceDbServerResourceId"]); + _startDataMigration = DefineProperty("StartDataMigration", ["properties", "startDataMigration"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _targetDbServerFullyQualifiedDomainName = DefineProperty("TargetDbServerFullyQualifiedDomainName", ["properties", "targetDbServerFullyQualifiedDomainName"]); + _triggerCutover = DefineProperty("TriggerCutover", ["properties", "triggerCutover"]); + _currentStatus = DefineModelProperty("CurrentStatus", ["properties", "currentStatus"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _migrationId = DefineProperty("MigrationId", ["properties", "migrationId"], isOutput: true); + _sourceDbServerMetadata = DefineModelProperty("SourceDbServerMetadata", ["properties", "sourceDbServerMetadata"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _targetDbServerMetadata = DefineModelProperty("TargetDbServerMetadata", ["properties", "targetDbServerMetadata"], isOutput: true); + _targetDbServerResourceId = DefineProperty("TargetDbServerResourceId", ["properties", "targetDbServerResourceId"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlPrivateEndpointConnection.cs index c97cbc5c057ba..d7f1c32d2d2ac 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlPrivateEndpointConnection.cs @@ -20,44 +20,69 @@ public partial class PostgreSqlPrivateEndpointConnection : ProvisionableResource /// /// The System.String to use. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Connection state of the private endpoint connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public PostgreSqlPrivateLinkServiceConnectionStateProperty ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private PostgreSqlPrivateLinkServiceConnectionStateProperty? _connectionState; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// State of the private endpoint connection. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent PostgreSqlServer. /// - public PostgreSqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PostgreSqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PostgreSqlPrivateEndpointConnection. @@ -72,13 +97,21 @@ public partial class PostgreSqlPrivateEndpointConnection : ProvisionableResource public PostgreSqlPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections", resourceVersion ?? "2018-06-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServer.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServer.cs index 4b88cadb90592..ef185d6829d06 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServer.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServer.cs @@ -22,14 +22,22 @@ public partial class PostgreSqlServer : ProvisionableResource /// /// The name of the server. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The location the resource resides in. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Properties of the server. Please note @@ -44,133 +52,200 @@ public partial class PostgreSqlServer : ProvisionableResource /// and /// Azure.ResourceManager.PostgreSql.Models.PostgreSqlServerPropertiesForReplica. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public PostgreSqlServerPropertiesForCreate Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private PostgreSqlServerPropertiesForCreate? _properties; /// /// The Azure Active Directory identity of the server. Current supported /// identity types: SystemAssigned. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// The SKU (pricing tier) of the server. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public PostgreSqlSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private PostgreSqlSku? _sku; /// /// Application-specific metadata in the form of key-value pairs. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The administrator's login name of a server. Can only be specified /// when the server is being created (and is required for creation). /// - public BicepValue AdministratorLogin { get => _administratorLogin; } - private readonly BicepValue _administratorLogin; + public BicepValue AdministratorLogin + { + get { Initialize(); return _administratorLogin!; } + } + private BicepValue? _administratorLogin; /// /// Status showing whether the server data encryption is enabled with /// customer-managed keys. /// - public BicepValue ByokEnforcement { get => _byokEnforcement; } - private readonly BicepValue _byokEnforcement; + public BicepValue ByokEnforcement + { + get { Initialize(); return _byokEnforcement!; } + } + private BicepValue? _byokEnforcement; /// /// Earliest restore point creation time (ISO8601 format). /// - public BicepValue EarliestRestoreOn { get => _earliestRestoreOn; } - private readonly BicepValue _earliestRestoreOn; + public BicepValue EarliestRestoreOn + { + get { Initialize(); return _earliestRestoreOn!; } + } + private BicepValue? _earliestRestoreOn; /// /// The fully qualified domain name of a server. /// - public BicepValue FullyQualifiedDomainName { get => _fullyQualifiedDomainName; } - private readonly BicepValue _fullyQualifiedDomainName; + public BicepValue FullyQualifiedDomainName + { + get { Initialize(); return _fullyQualifiedDomainName!; } + } + private BicepValue? _fullyQualifiedDomainName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Status showing whether the server enabled infrastructure encryption. /// - public BicepValue InfrastructureEncryption { get => _infrastructureEncryption; } - private readonly BicepValue _infrastructureEncryption; + public BicepValue InfrastructureEncryption + { + get { Initialize(); return _infrastructureEncryption!; } + } + private BicepValue? _infrastructureEncryption; /// /// The master server id of a replica server. /// - public BicepValue MasterServerId { get => _masterServerId; } - private readonly BicepValue _masterServerId; + public BicepValue MasterServerId + { + get { Initialize(); return _masterServerId!; } + } + private BicepValue? _masterServerId; /// /// Enforce a minimal Tls version for the server. /// - public BicepValue MinimalTlsVersion { get => _minimalTlsVersion; } - private readonly BicepValue _minimalTlsVersion; + public BicepValue MinimalTlsVersion + { + get { Initialize(); return _minimalTlsVersion!; } + } + private BicepValue? _minimalTlsVersion; /// /// List of private endpoint connections on a server. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// Whether or not public network access is allowed for this server. Value /// is optional but if passed in, must be 'Enabled' or /// 'Disabled'. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + } + private BicepValue? _publicNetworkAccess; /// /// The maximum number of replicas that a master server can have. /// - public BicepValue ReplicaCapacity { get => _replicaCapacity; } - private readonly BicepValue _replicaCapacity; + public BicepValue ReplicaCapacity + { + get { Initialize(); return _replicaCapacity!; } + } + private BicepValue? _replicaCapacity; /// /// The replication role of the server. /// - public BicepValue ReplicationRole { get => _replicationRole; } - private readonly BicepValue _replicationRole; + public BicepValue ReplicationRole + { + get { Initialize(); return _replicationRole!; } + } + private BicepValue? _replicationRole; /// /// Enable ssl enforcement or not when connect to server. /// - public BicepValue SslEnforcement { get => _sslEnforcement; } - private readonly BicepValue _sslEnforcement; + public BicepValue SslEnforcement + { + get { Initialize(); return _sslEnforcement!; } + } + private BicepValue? _sslEnforcement; /// /// Storage profile of a server. /// - public BicepValue StorageProfile { get => _storageProfile; } - private readonly BicepValue _storageProfile; + public PostgreSqlStorageProfile StorageProfile + { + get { Initialize(); return _storageProfile!; } + } + private PostgreSqlStorageProfile? _storageProfile; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// A state of a server that is visible to user. /// - public BicepValue UserVisibleState { get => _userVisibleState; } - private readonly BicepValue _userVisibleState; + public BicepValue UserVisibleState + { + get { Initialize(); return _userVisibleState!; } + } + private BicepValue? _userVisibleState; /// /// Server version. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// Creates a new PostgreSqlServer. @@ -185,29 +260,36 @@ public partial class PostgreSqlServer : ProvisionableResource public PostgreSqlServer(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/servers", resourceVersion ?? "2017-12-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _administratorLogin = BicepValue.DefineProperty(this, "AdministratorLogin", ["properties", "administratorLogin"], isOutput: true); - _byokEnforcement = BicepValue.DefineProperty(this, "ByokEnforcement", ["properties", "byokEnforcement"], isOutput: true); - _earliestRestoreOn = BicepValue.DefineProperty(this, "EarliestRestoreOn", ["properties", "earliestRestoreDate"], isOutput: true); - _fullyQualifiedDomainName = BicepValue.DefineProperty(this, "FullyQualifiedDomainName", ["properties", "fullyQualifiedDomainName"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _infrastructureEncryption = BicepValue.DefineProperty(this, "InfrastructureEncryption", ["properties", "infrastructureEncryption"], isOutput: true); - _masterServerId = BicepValue.DefineProperty(this, "MasterServerId", ["properties", "masterServerId"], isOutput: true); - _minimalTlsVersion = BicepValue.DefineProperty(this, "MinimalTlsVersion", ["properties", "minimalTlsVersion"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"], isOutput: true); - _replicaCapacity = BicepValue.DefineProperty(this, "ReplicaCapacity", ["properties", "replicaCapacity"], isOutput: true); - _replicationRole = BicepValue.DefineProperty(this, "ReplicationRole", ["properties", "replicationRole"], isOutput: true); - _sslEnforcement = BicepValue.DefineProperty(this, "SslEnforcement", ["properties", "sslEnforcement"], isOutput: true); - _storageProfile = BicepValue.DefineProperty(this, "StorageProfile", ["properties", "storageProfile"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _userVisibleState = BicepValue.DefineProperty(this, "UserVisibleState", ["properties", "userVisibleState"], isOutput: true); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PostgreSqlServer. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _administratorLogin = DefineProperty("AdministratorLogin", ["properties", "administratorLogin"], isOutput: true); + _byokEnforcement = DefineProperty("ByokEnforcement", ["properties", "byokEnforcement"], isOutput: true); + _earliestRestoreOn = DefineProperty("EarliestRestoreOn", ["properties", "earliestRestoreDate"], isOutput: true); + _fullyQualifiedDomainName = DefineProperty("FullyQualifiedDomainName", ["properties", "fullyQualifiedDomainName"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _infrastructureEncryption = DefineProperty("InfrastructureEncryption", ["properties", "infrastructureEncryption"], isOutput: true); + _masterServerId = DefineProperty("MasterServerId", ["properties", "masterServerId"], isOutput: true); + _minimalTlsVersion = DefineProperty("MinimalTlsVersion", ["properties", "minimalTlsVersion"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"], isOutput: true); + _replicaCapacity = DefineProperty("ReplicaCapacity", ["properties", "replicaCapacity"], isOutput: true); + _replicationRole = DefineProperty("ReplicationRole", ["properties", "replicationRole"], isOutput: true); + _sslEnforcement = DefineProperty("SslEnforcement", ["properties", "sslEnforcement"], isOutput: true); + _storageProfile = DefineModelProperty("StorageProfile", ["properties", "storageProfile"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _userVisibleState = DefineProperty("UserVisibleState", ["properties", "userVisibleState"], isOutput: true); + _version = DefineProperty("Version", ["properties", "version"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServerAdministrator.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServerAdministrator.cs index cfab21060bc2f..0a5e817c836f9 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServerAdministrator.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServerAdministrator.cs @@ -20,50 +20,79 @@ public partial class PostgreSqlServerAdministrator : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The type of administrator. /// - public BicepValue AdministratorType { get => _administratorType; set => _administratorType.Assign(value); } - private readonly BicepValue _administratorType; + public BicepValue AdministratorType + { + get { Initialize(); return _administratorType!; } + set { Initialize(); _administratorType!.Assign(value); } + } + private BicepValue? _administratorType; /// /// The server administrator login account name. /// - public BicepValue LoginAccountName { get => _loginAccountName; set => _loginAccountName.Assign(value); } - private readonly BicepValue _loginAccountName; + public BicepValue LoginAccountName + { + get { Initialize(); return _loginAccountName!; } + set { Initialize(); _loginAccountName!.Assign(value); } + } + private BicepValue? _loginAccountName; /// /// The server administrator Sid (Secure ID). /// - public BicepValue SecureId { get => _secureId; set => _secureId.Assign(value); } - private readonly BicepValue _secureId; + public BicepValue SecureId + { + get { Initialize(); return _secureId!; } + set { Initialize(); _secureId!.Assign(value); } + } + private BicepValue? _secureId; /// /// The server Active Directory Administrator tenant id. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent PostgreSqlServer. /// - public PostgreSqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PostgreSqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PostgreSqlServerAdministrator. @@ -78,14 +107,22 @@ public partial class PostgreSqlServerAdministrator : ProvisionableResource public PostgreSqlServerAdministrator(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/servers/administrators", resourceVersion ?? "2017-12-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _administratorType = BicepValue.DefineProperty(this, "AdministratorType", ["properties", "administratorType"]); - _loginAccountName = BicepValue.DefineProperty(this, "LoginAccountName", ["properties", "login"]); - _secureId = BicepValue.DefineProperty(this, "SecureId", ["properties", "sid"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["properties", "tenantId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlServerAdministrator. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _administratorType = DefineProperty("AdministratorType", ["properties", "administratorType"]); + _loginAccountName = DefineProperty("LoginAccountName", ["properties", "login"]); + _secureId = DefineProperty("SecureId", ["properties", "sid"]); + _tenantId = DefineProperty("TenantId", ["properties", "tenantId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServerKey.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServerKey.cs index e3be727e7273f..a12ed8171d2ad 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServerKey.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServerKey.cs @@ -21,50 +21,78 @@ public partial class PostgreSqlServerKey : ProvisionableResource /// The name of the PostgreSQL Server key to be operated on (updated or /// created). /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The key type like 'AzureKeyVault'. /// - public BicepValue ServerKeyType { get => _serverKeyType; set => _serverKeyType.Assign(value); } - private readonly BicepValue _serverKeyType; + public BicepValue ServerKeyType + { + get { Initialize(); return _serverKeyType!; } + set { Initialize(); _serverKeyType!.Assign(value); } + } + private BicepValue? _serverKeyType; /// /// The URI of the key. /// - public BicepValue Uri { get => _uri; set => _uri.Assign(value); } - private readonly BicepValue _uri; + public BicepValue Uri + { + get { Initialize(); return _uri!; } + set { Initialize(); _uri!.Assign(value); } + } + private BicepValue? _uri; /// /// The key creation date. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Kind of encryption protector used to protect the key. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent PostgreSqlServer. /// - public PostgreSqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PostgreSqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PostgreSqlServerKey. @@ -79,14 +107,21 @@ public partial class PostgreSqlServerKey : ProvisionableResource public PostgreSqlServerKey(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/servers/keys", resourceVersion ?? "2020-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _serverKeyType = BicepValue.DefineProperty(this, "ServerKeyType", ["properties", "serverKeyType"]); - _uri = BicepValue.DefineProperty(this, "Uri", ["properties", "uri"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationDate"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of PostgreSqlServerKey. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _serverKeyType = DefineProperty("ServerKeyType", ["properties", "serverKeyType"]); + _uri = DefineProperty("Uri", ["properties", "uri"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationDate"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServerSecurityAlertPolicy.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServerSecurityAlertPolicy.cs index 1b2724b71f1a6..8f22e4d955f46 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServerSecurityAlertPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlServerSecurityAlertPolicy.cs @@ -21,72 +21,113 @@ public partial class PostgreSqlServerSecurityAlertPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies an array of alerts that are disabled. Allowed values are: /// Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly. /// - public BicepList DisabledAlerts { get => _disabledAlerts; set => _disabledAlerts.Assign(value); } - private readonly BicepList _disabledAlerts; + public BicepList DisabledAlerts + { + get { Initialize(); return _disabledAlerts!; } + set { Initialize(); _disabledAlerts!.Assign(value); } + } + private BicepList? _disabledAlerts; /// /// Specifies an array of e-mail addresses to which the alert is sent. /// - public BicepList EmailAddresses { get => _emailAddresses; set => _emailAddresses.Assign(value); } - private readonly BicepList _emailAddresses; + public BicepList EmailAddresses + { + get { Initialize(); return _emailAddresses!; } + set { Initialize(); _emailAddresses!.Assign(value); } + } + private BicepList? _emailAddresses; /// /// Specifies the number of days to keep in the Threat Detection audit logs. /// - public BicepValue RetentionDays { get => _retentionDays; set => _retentionDays.Assign(value); } - private readonly BicepValue _retentionDays; + public BicepValue RetentionDays + { + get { Initialize(); return _retentionDays!; } + set { Initialize(); _retentionDays!.Assign(value); } + } + private BicepValue? _retentionDays; /// /// Specifies that the alert is sent to the account administrators. /// - public BicepValue SendToEmailAccountAdmins { get => _sendToEmailAccountAdmins; set => _sendToEmailAccountAdmins.Assign(value); } - private readonly BicepValue _sendToEmailAccountAdmins; + public BicepValue SendToEmailAccountAdmins + { + get { Initialize(); return _sendToEmailAccountAdmins!; } + set { Initialize(); _sendToEmailAccountAdmins!.Assign(value); } + } + private BicepValue? _sendToEmailAccountAdmins; /// /// Specifies the state of the policy, whether it is enabled or disabled. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the identifier key of the Threat Detection audit storage /// account. /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// Specifies the blob storage endpoint (e.g. /// https://MyAccount.blob.core.windows.net). This blob storage will hold /// all Threat Detection audit logs. /// - public BicepValue StorageEndpoint { get => _storageEndpoint; set => _storageEndpoint.Assign(value); } - private readonly BicepValue _storageEndpoint; + public BicepValue StorageEndpoint + { + get { Initialize(); return _storageEndpoint!; } + set { Initialize(); _storageEndpoint!.Assign(value); } + } + private BicepValue? _storageEndpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent PostgreSqlServer. /// - public PostgreSqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PostgreSqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PostgreSqlServerSecurityAlertPolicy. @@ -101,17 +142,25 @@ public partial class PostgreSqlServerSecurityAlertPolicy : ProvisionableResource public PostgreSqlServerSecurityAlertPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/servers/securityAlertPolicies", resourceVersion ?? "2017-12-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _disabledAlerts = BicepList.DefineProperty(this, "DisabledAlerts", ["properties", "disabledAlerts"]); - _emailAddresses = BicepList.DefineProperty(this, "EmailAddresses", ["properties", "emailAddresses"]); - _retentionDays = BicepValue.DefineProperty(this, "RetentionDays", ["properties", "retentionDays"]); - _sendToEmailAccountAdmins = BicepValue.DefineProperty(this, "SendToEmailAccountAdmins", ["properties", "emailAccountAdmins"]); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageEndpoint = BicepValue.DefineProperty(this, "StorageEndpoint", ["properties", "storageEndpoint"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// PostgreSqlServerSecurityAlertPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _disabledAlerts = DefineListProperty("DisabledAlerts", ["properties", "disabledAlerts"]); + _emailAddresses = DefineListProperty("EmailAddresses", ["properties", "emailAddresses"]); + _retentionDays = DefineProperty("RetentionDays", ["properties", "retentionDays"]); + _sendToEmailAccountAdmins = DefineProperty("SendToEmailAccountAdmins", ["properties", "emailAccountAdmins"]); + _state = DefineProperty("State", ["properties", "state"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageEndpoint = DefineProperty("StorageEndpoint", ["properties", "storageEndpoint"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlVirtualNetworkRule.cs b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlVirtualNetworkRule.cs index 2c04c42041210..3d5d659f21adc 100644 --- a/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlVirtualNetworkRule.cs +++ b/sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlVirtualNetworkRule.cs @@ -21,45 +21,70 @@ public partial class PostgreSqlVirtualNetworkRule : ProvisionableResource /// /// The name of the virtual network rule. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Create firewall rule before the virtual network has vnet service /// endpoint enabled. /// - public BicepValue IgnoreMissingVnetServiceEndpoint { get => _ignoreMissingVnetServiceEndpoint; set => _ignoreMissingVnetServiceEndpoint.Assign(value); } - private readonly BicepValue _ignoreMissingVnetServiceEndpoint; + public BicepValue IgnoreMissingVnetServiceEndpoint + { + get { Initialize(); return _ignoreMissingVnetServiceEndpoint!; } + set { Initialize(); _ignoreMissingVnetServiceEndpoint!.Assign(value); } + } + private BicepValue? _ignoreMissingVnetServiceEndpoint; /// /// The ARM resource id of the virtual network subnet. /// - public BicepValue VirtualNetworkSubnetId { get => _virtualNetworkSubnetId; set => _virtualNetworkSubnetId.Assign(value); } - private readonly BicepValue _virtualNetworkSubnetId; + public BicepValue VirtualNetworkSubnetId + { + get { Initialize(); return _virtualNetworkSubnetId!; } + set { Initialize(); _virtualNetworkSubnetId!.Assign(value); } + } + private BicepValue? _virtualNetworkSubnetId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Virtual Network Rule State. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent PostgreSqlServer. /// - public PostgreSqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public PostgreSqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new PostgreSqlVirtualNetworkRule. @@ -74,13 +99,20 @@ public partial class PostgreSqlVirtualNetworkRule : ProvisionableResource public PostgreSqlVirtualNetworkRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", resourceVersion ?? "2017-12-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _ignoreMissingVnetServiceEndpoint = BicepValue.DefineProperty(this, "IgnoreMissingVnetServiceEndpoint", ["properties", "ignoreMissingVnetServiceEndpoint"]); - _virtualNetworkSubnetId = BicepValue.DefineProperty(this, "VirtualNetworkSubnetId", ["properties", "virtualNetworkSubnetId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of PostgreSqlVirtualNetworkRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _ignoreMissingVnetServiceEndpoint = DefineProperty("IgnoreMissingVnetServiceEndpoint", ["properties", "ignoreMissingVnetServiceEndpoint"]); + _virtualNetworkSubnetId = DefineProperty("VirtualNetworkSubnetId", ["properties", "virtualNetworkSubnetId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Redis/api/Azure.Provisioning.Redis.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.Redis/api/Azure.Provisioning.Redis.netstandard2.0.cs index 19cebf414f9a2..de2dc664871a1 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/api/Azure.Provisioning.Redis.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/api/Azure.Provisioning.Redis.netstandard2.0.cs @@ -28,8 +28,7 @@ public partial class RedisAccessKeys : Azure.Provisioning.Primitives.Provisionab public RedisAccessKeys() { } public Azure.Provisioning.BicepValue PrimaryKey { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryKey { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.Redis.RedisAccessKeys FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct RedisBuiltInRole : System.IEquatable @@ -58,8 +57,9 @@ public partial class RedisCacheAccessPolicy : Azure.Provisioning.Primitives.Prov public Azure.Provisioning.Redis.RedisResource? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Permissions { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TypePropertiesType { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Redis.RedisCacheAccessPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -91,7 +91,8 @@ public partial class RedisCacheAccessPolicyAssignment : Azure.Provisioning.Primi public Azure.Provisioning.BicepValue ObjectIdAlias { get { throw null; } set { } } public Azure.Provisioning.Redis.RedisResource? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Redis.RedisCacheAccessPolicyAssignment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -136,6 +137,7 @@ public RedisCommonConfiguration() { } public Azure.Provisioning.BicepValue RdbStorageConnectionString { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageSubscriptionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ZonalConfiguration { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum RedisDayOfWeek { @@ -157,7 +159,8 @@ public partial class RedisFirewallRule : Azure.Provisioning.Primitives.Provision public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Redis.RedisResource? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartIP { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Redis.RedisFirewallRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -190,6 +193,7 @@ public RedisInstanceDetails() { } public Azure.Provisioning.BicepValue ShardId { get { throw null; } } public Azure.Provisioning.BicepValue SslPort { get { throw null; } } public Azure.Provisioning.BicepValue Zone { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum RedisLinkedServerRole { @@ -208,7 +212,8 @@ public partial class RedisLinkedServerWithProperty : Azure.Provisioning.Primitiv public Azure.Provisioning.BicepValue PrimaryHostName { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue ServerRole { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Redis.RedisLinkedServerWithProperty FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -238,7 +243,8 @@ public partial class RedisPatchSchedule : Azure.Provisioning.Primitives.Provisio public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Redis.RedisResource? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList ScheduleEntries { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Redis.RedisPatchSchedule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -271,6 +277,7 @@ public RedisPatchScheduleSetting() { } public Azure.Provisioning.BicepValue DayOfWeek { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaintenanceWindow { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartHourUtc { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RedisPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { @@ -279,9 +286,10 @@ public partial class RedisPrivateEndpointConnection : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Redis.RedisResource? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } - public Azure.Provisioning.BicepValue RedisPrivateLinkServiceConnectionState { get { throw null; } set { } } + public Azure.Provisioning.Redis.RedisPrivateLinkServiceConnectionState RedisPrivateLinkServiceConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue RedisProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Redis.RedisPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -302,9 +310,10 @@ public RedisPrivateEndpointConnectionData() { } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } - public Azure.Provisioning.BicepValue RedisPrivateLinkServiceConnectionState { get { throw null; } set { } } + public Azure.Provisioning.Redis.RedisPrivateLinkServiceConnectionState RedisPrivateLinkServiceConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue RedisProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum RedisPrivateEndpointConnectionProvisioningState { @@ -325,6 +334,7 @@ public RedisPrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum RedisProvisioningState { @@ -350,11 +360,11 @@ public enum RedisPublicNetworkAccess public partial class RedisResource : Azure.Provisioning.Primitives.ProvisionableResource { public RedisResource(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue AccessKeys { get { throw null; } } + public Azure.Provisioning.Redis.RedisAccessKeys AccessKeys { get { throw null; } } public Azure.Provisioning.BicepValue EnableNonSslPort { get { throw null; } set { } } public Azure.Provisioning.BicepValue HostName { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepList Instances { get { throw null; } } public Azure.Provisioning.BicepValue IsAccessKeyAuthenticationDisabled { get { throw null; } set { } } public Azure.Provisioning.BicepList LinkedServers { get { throw null; } } @@ -365,22 +375,23 @@ public partial class RedisResource : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepList PrivateEndpointConnections { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RedisConfiguration { get { throw null; } set { } } + public Azure.Provisioning.Redis.RedisCommonConfiguration RedisConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue RedisVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReplicasPerMaster { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReplicasPerPrimary { get { throw null; } set { } } public Azure.Provisioning.BicepValue ShardCount { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.Redis.RedisSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue SslPort { get { throw null; } } public Azure.Provisioning.BicepValue StaticIP { get { throw null; } set { } } public Azure.Provisioning.BicepValue SubnetId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary TenantSettings { get { throw null; } set { } } public Azure.Provisioning.BicepValue UpdateChannel { get { throw null; } set { } } public Azure.Provisioning.BicepList Zones { get { throw null; } set { } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.Redis.RedisBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.Redis.RedisBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Redis.RedisResource FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.Redis.RedisAccessKeys GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -411,6 +422,7 @@ public RedisSku() { } public Azure.Provisioning.BicepValue Capacity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Family { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum RedisSkuFamily { diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisAccessKeys.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisAccessKeys.cs index 58d1ef2e7a3a5..577e052f36384 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisAccessKeys.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisAccessKeys.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Expressions; using Azure.Provisioning.Primitives; using System; @@ -19,38 +21,36 @@ public partial class RedisAccessKeys : ProvisionableConstruct /// The current primary key that clients can use to authenticate with Redis /// cache. /// - public BicepValue PrimaryKey { get => _primaryKey; } - private readonly BicepValue _primaryKey; + public BicepValue PrimaryKey + { + get { Initialize(); return _primaryKey!; } + } + private BicepValue? _primaryKey; /// /// The current secondary key that clients can use to authenticate with /// Redis cache. /// - public BicepValue SecondaryKey { get => _secondaryKey; } - private readonly BicepValue _secondaryKey; + public BicepValue SecondaryKey + { + get { Initialize(); return _secondaryKey!; } + } + private BicepValue? _secondaryKey; /// /// Creates a new RedisAccessKeys. /// public RedisAccessKeys() { - _primaryKey = BicepValue.DefineProperty(this, "PrimaryKey", ["primaryKey"], isOutput: true, isSecure: true); - _secondaryKey = BicepValue.DefineProperty(this, "SecondaryKey", ["secondaryKey"], isOutput: true, isSecure: true); } /// - /// Creates a new RedisAccessKeys resource from a Bicep expression that - /// evaluates to a RedisAccessKeys. + /// Define all the provisionable properties of RedisAccessKeys. /// - /// - /// A Bicep expression that evaluates to a RedisAccessKeys resource. - /// - /// A RedisAccessKeys resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static RedisAccessKeys FromExpression(BicepExpression expression) + protected override void DefineProvisionableProperties() { - RedisAccessKeys resource = new(); - resource.OverrideWithExpression(expression); - return resource; + base.DefineProvisionableProperties(); + _primaryKey = DefineProperty("PrimaryKey", ["primaryKey"], isOutput: true, isSecure: true); + _secondaryKey = DefineProperty("SecondaryKey", ["secondaryKey"], isOutput: true, isSecure: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisCommonConfiguration.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisCommonConfiguration.cs index f4413f7c38661..13f471fb444a1 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisCommonConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisCommonConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -20,123 +22,196 @@ public partial class RedisCommonConfiguration : ProvisionableConstruct /// /// Specifies whether the rdb backup is enabled. /// - public BicepValue IsRdbBackupEnabled { get => _isRdbBackupEnabled; set => _isRdbBackupEnabled.Assign(value); } - private readonly BicepValue _isRdbBackupEnabled; + public BicepValue IsRdbBackupEnabled + { + get { Initialize(); return _isRdbBackupEnabled!; } + set { Initialize(); _isRdbBackupEnabled!.Assign(value); } + } + private BicepValue? _isRdbBackupEnabled; /// /// Specifies the frequency for creating rdb backup in minutes. Valid /// values: (15, 30, 60, 360, 720, 1440). /// - public BicepValue RdbBackupFrequency { get => _rdbBackupFrequency; set => _rdbBackupFrequency.Assign(value); } - private readonly BicepValue _rdbBackupFrequency; + public BicepValue RdbBackupFrequency + { + get { Initialize(); return _rdbBackupFrequency!; } + set { Initialize(); _rdbBackupFrequency!.Assign(value); } + } + private BicepValue? _rdbBackupFrequency; /// /// Specifies the maximum number of snapshots for rdb backup. /// - public BicepValue RdbBackupMaxSnapshotCount { get => _rdbBackupMaxSnapshotCount; set => _rdbBackupMaxSnapshotCount.Assign(value); } - private readonly BicepValue _rdbBackupMaxSnapshotCount; + public BicepValue RdbBackupMaxSnapshotCount + { + get { Initialize(); return _rdbBackupMaxSnapshotCount!; } + set { Initialize(); _rdbBackupMaxSnapshotCount!.Assign(value); } + } + private BicepValue? _rdbBackupMaxSnapshotCount; /// /// The storage account connection string for storing rdb file. /// - public BicepValue RdbStorageConnectionString { get => _rdbStorageConnectionString; set => _rdbStorageConnectionString.Assign(value); } - private readonly BicepValue _rdbStorageConnectionString; + public BicepValue RdbStorageConnectionString + { + get { Initialize(); return _rdbStorageConnectionString!; } + set { Initialize(); _rdbStorageConnectionString!.Assign(value); } + } + private BicepValue? _rdbStorageConnectionString; /// /// Specifies whether the aof backup is enabled. /// - public BicepValue IsAofBackupEnabled { get => _isAofBackupEnabled; set => _isAofBackupEnabled.Assign(value); } - private readonly BicepValue _isAofBackupEnabled; + public BicepValue IsAofBackupEnabled + { + get { Initialize(); return _isAofBackupEnabled!; } + set { Initialize(); _isAofBackupEnabled!.Assign(value); } + } + private BicepValue? _isAofBackupEnabled; /// /// First storage account connection string. /// - public BicepValue AofStorageConnectionString0 { get => _aofStorageConnectionString0; set => _aofStorageConnectionString0.Assign(value); } - private readonly BicepValue _aofStorageConnectionString0; + public BicepValue AofStorageConnectionString0 + { + get { Initialize(); return _aofStorageConnectionString0!; } + set { Initialize(); _aofStorageConnectionString0!.Assign(value); } + } + private BicepValue? _aofStorageConnectionString0; /// /// Second storage account connection string. /// - public BicepValue AofStorageConnectionString1 { get => _aofStorageConnectionString1; set => _aofStorageConnectionString1.Assign(value); } - private readonly BicepValue _aofStorageConnectionString1; + public BicepValue AofStorageConnectionString1 + { + get { Initialize(); return _aofStorageConnectionString1!; } + set { Initialize(); _aofStorageConnectionString1!.Assign(value); } + } + private BicepValue? _aofStorageConnectionString1; /// /// Value in megabytes reserved for fragmentation per shard. /// - public BicepValue MaxFragmentationMemoryReserved { get => _maxFragmentationMemoryReserved; set => _maxFragmentationMemoryReserved.Assign(value); } - private readonly BicepValue _maxFragmentationMemoryReserved; + public BicepValue MaxFragmentationMemoryReserved + { + get { Initialize(); return _maxFragmentationMemoryReserved!; } + set { Initialize(); _maxFragmentationMemoryReserved!.Assign(value); } + } + private BicepValue? _maxFragmentationMemoryReserved; /// /// The eviction strategy used when your data won't fit within its /// memory limit. /// - public BicepValue MaxMemoryPolicy { get => _maxMemoryPolicy; set => _maxMemoryPolicy.Assign(value); } - private readonly BicepValue _maxMemoryPolicy; + public BicepValue MaxMemoryPolicy + { + get { Initialize(); return _maxMemoryPolicy!; } + set { Initialize(); _maxMemoryPolicy!.Assign(value); } + } + private BicepValue? _maxMemoryPolicy; /// /// Value in megabytes reserved for non-cache usage per shard e.g. failover. /// - public BicepValue MaxMemoryReserved { get => _maxMemoryReserved; set => _maxMemoryReserved.Assign(value); } - private readonly BicepValue _maxMemoryReserved; + public BicepValue MaxMemoryReserved + { + get { Initialize(); return _maxMemoryReserved!; } + set { Initialize(); _maxMemoryReserved!.Assign(value); } + } + private BicepValue? _maxMemoryReserved; /// /// Value in megabytes reserved for non-cache usage per shard e.g. failover. /// - public BicepValue MaxMemoryDelta { get => _maxMemoryDelta; set => _maxMemoryDelta.Assign(value); } - private readonly BicepValue _maxMemoryDelta; + public BicepValue MaxMemoryDelta + { + get { Initialize(); return _maxMemoryDelta!; } + set { Initialize(); _maxMemoryDelta!.Assign(value); } + } + private BicepValue? _maxMemoryDelta; /// /// The max clients config. /// - public BicepValue MaxClients { get => _maxClients; } - private readonly BicepValue _maxClients; + public BicepValue MaxClients + { + get { Initialize(); return _maxClients!; } + } + private BicepValue? _maxClients; /// /// The keyspace events which should be monitored. /// - public BicepValue NotifyKeyspaceEvents { get => _notifyKeyspaceEvents; set => _notifyKeyspaceEvents.Assign(value); } - private readonly BicepValue _notifyKeyspaceEvents; + public BicepValue NotifyKeyspaceEvents + { + get { Initialize(); return _notifyKeyspaceEvents!; } + set { Initialize(); _notifyKeyspaceEvents!.Assign(value); } + } + private BicepValue? _notifyKeyspaceEvents; /// /// Preferred auth method to communicate to storage account used for data /// archive, specify SAS or ManagedIdentity, default value is SAS. /// - public BicepValue PreferredDataArchiveAuthMethod { get => _preferredDataArchiveAuthMethod; } - private readonly BicepValue _preferredDataArchiveAuthMethod; + public BicepValue PreferredDataArchiveAuthMethod + { + get { Initialize(); return _preferredDataArchiveAuthMethod!; } + } + private BicepValue? _preferredDataArchiveAuthMethod; /// /// Preferred auth method to communicate to storage account used for data /// persistence, specify SAS or ManagedIdentity, default value is SAS. /// - public BicepValue PreferredDataPersistenceAuthMethod { get => _preferredDataPersistenceAuthMethod; set => _preferredDataPersistenceAuthMethod.Assign(value); } - private readonly BicepValue _preferredDataPersistenceAuthMethod; + public BicepValue PreferredDataPersistenceAuthMethod + { + get { Initialize(); return _preferredDataPersistenceAuthMethod!; } + set { Initialize(); _preferredDataPersistenceAuthMethod!.Assign(value); } + } + private BicepValue? _preferredDataPersistenceAuthMethod; /// /// Zonal Configuration. /// - public BicepValue ZonalConfiguration { get => _zonalConfiguration; } - private readonly BicepValue _zonalConfiguration; + public BicepValue ZonalConfiguration + { + get { Initialize(); return _zonalConfiguration!; } + } + private BicepValue? _zonalConfiguration; /// /// Specifies whether the authentication is disabled. Setting this property /// is highly discouraged from security point of view. /// - public BicepValue AuthNotRequired { get => _authNotRequired; set => _authNotRequired.Assign(value); } - private readonly BicepValue _authNotRequired; + public BicepValue AuthNotRequired + { + get { Initialize(); return _authNotRequired!; } + set { Initialize(); _authNotRequired!.Assign(value); } + } + private BicepValue? _authNotRequired; /// /// SubscriptionId of the storage account for persistence (aof/rdb) using /// ManagedIdentity. /// - public BicepValue StorageSubscriptionId { get => _storageSubscriptionId; set => _storageSubscriptionId.Assign(value); } - private readonly BicepValue _storageSubscriptionId; + public BicepValue StorageSubscriptionId + { + get { Initialize(); return _storageSubscriptionId!; } + set { Initialize(); _storageSubscriptionId!.Assign(value); } + } + private BicepValue? _storageSubscriptionId; /// /// Specifies whether AAD based authentication has been enabled or disabled /// for the cache. /// - public BicepValue IsAadEnabled { get => _isAadEnabled; set => _isAadEnabled.Assign(value); } - private readonly BicepValue _isAadEnabled; + public BicepValue IsAadEnabled + { + get { Initialize(); return _isAadEnabled!; } + set { Initialize(); _isAadEnabled!.Assign(value); } + } + private BicepValue? _isAadEnabled; /// /// Additional Properties To assign an object to @@ -154,33 +229,45 @@ public partial class RedisCommonConfiguration : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepDictionary AdditionalProperties { get => _additionalProperties; set => _additionalProperties.Assign(value); } - private readonly BicepDictionary _additionalProperties; + public BicepDictionary AdditionalProperties + { + get { Initialize(); return _additionalProperties!; } + set { Initialize(); _additionalProperties!.Assign(value); } + } + private BicepDictionary? _additionalProperties; /// /// Creates a new RedisCommonConfiguration. /// public RedisCommonConfiguration() { - _isRdbBackupEnabled = BicepValue.DefineProperty(this, "IsRdbBackupEnabled", ["rdb-backup-enabled"]); - _rdbBackupFrequency = BicepValue.DefineProperty(this, "RdbBackupFrequency", ["rdb-backup-frequency"]); - _rdbBackupMaxSnapshotCount = BicepValue.DefineProperty(this, "RdbBackupMaxSnapshotCount", ["rdb-backup-max-snapshot-count"]); - _rdbStorageConnectionString = BicepValue.DefineProperty(this, "RdbStorageConnectionString", ["rdb-storage-connection-string"]); - _isAofBackupEnabled = BicepValue.DefineProperty(this, "IsAofBackupEnabled", ["aof-backup-enabled"]); - _aofStorageConnectionString0 = BicepValue.DefineProperty(this, "AofStorageConnectionString0", ["aof-storage-connection-string-0"]); - _aofStorageConnectionString1 = BicepValue.DefineProperty(this, "AofStorageConnectionString1", ["aof-storage-connection-string-1"]); - _maxFragmentationMemoryReserved = BicepValue.DefineProperty(this, "MaxFragmentationMemoryReserved", ["maxfragmentationmemory-reserved"]); - _maxMemoryPolicy = BicepValue.DefineProperty(this, "MaxMemoryPolicy", ["maxmemory-policy"]); - _maxMemoryReserved = BicepValue.DefineProperty(this, "MaxMemoryReserved", ["maxmemory-reserved"]); - _maxMemoryDelta = BicepValue.DefineProperty(this, "MaxMemoryDelta", ["maxmemory-delta"]); - _maxClients = BicepValue.DefineProperty(this, "MaxClients", ["maxclients"], isOutput: true); - _notifyKeyspaceEvents = BicepValue.DefineProperty(this, "NotifyKeyspaceEvents", ["notify-keyspace-events"]); - _preferredDataArchiveAuthMethod = BicepValue.DefineProperty(this, "PreferredDataArchiveAuthMethod", ["preferred-data-archive-auth-method"], isOutput: true); - _preferredDataPersistenceAuthMethod = BicepValue.DefineProperty(this, "PreferredDataPersistenceAuthMethod", ["preferred-data-persistence-auth-method"]); - _zonalConfiguration = BicepValue.DefineProperty(this, "ZonalConfiguration", ["zonal-configuration"], isOutput: true); - _authNotRequired = BicepValue.DefineProperty(this, "AuthNotRequired", ["authnotrequired"]); - _storageSubscriptionId = BicepValue.DefineProperty(this, "StorageSubscriptionId", ["storage-subscription-id"]); - _isAadEnabled = BicepValue.DefineProperty(this, "IsAadEnabled", ["aad-enabled"]); - _additionalProperties = BicepDictionary.DefineProperty(this, "AdditionalProperties", ["AdditionalProperties"]); + } + + /// + /// Define all the provisionable properties of RedisCommonConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isRdbBackupEnabled = DefineProperty("IsRdbBackupEnabled", ["rdb-backup-enabled"]); + _rdbBackupFrequency = DefineProperty("RdbBackupFrequency", ["rdb-backup-frequency"]); + _rdbBackupMaxSnapshotCount = DefineProperty("RdbBackupMaxSnapshotCount", ["rdb-backup-max-snapshot-count"]); + _rdbStorageConnectionString = DefineProperty("RdbStorageConnectionString", ["rdb-storage-connection-string"]); + _isAofBackupEnabled = DefineProperty("IsAofBackupEnabled", ["aof-backup-enabled"]); + _aofStorageConnectionString0 = DefineProperty("AofStorageConnectionString0", ["aof-storage-connection-string-0"]); + _aofStorageConnectionString1 = DefineProperty("AofStorageConnectionString1", ["aof-storage-connection-string-1"]); + _maxFragmentationMemoryReserved = DefineProperty("MaxFragmentationMemoryReserved", ["maxfragmentationmemory-reserved"]); + _maxMemoryPolicy = DefineProperty("MaxMemoryPolicy", ["maxmemory-policy"]); + _maxMemoryReserved = DefineProperty("MaxMemoryReserved", ["maxmemory-reserved"]); + _maxMemoryDelta = DefineProperty("MaxMemoryDelta", ["maxmemory-delta"]); + _maxClients = DefineProperty("MaxClients", ["maxclients"], isOutput: true); + _notifyKeyspaceEvents = DefineProperty("NotifyKeyspaceEvents", ["notify-keyspace-events"]); + _preferredDataArchiveAuthMethod = DefineProperty("PreferredDataArchiveAuthMethod", ["preferred-data-archive-auth-method"], isOutput: true); + _preferredDataPersistenceAuthMethod = DefineProperty("PreferredDataPersistenceAuthMethod", ["preferred-data-persistence-auth-method"]); + _zonalConfiguration = DefineProperty("ZonalConfiguration", ["zonal-configuration"], isOutput: true); + _authNotRequired = DefineProperty("AuthNotRequired", ["authnotrequired"]); + _storageSubscriptionId = DefineProperty("StorageSubscriptionId", ["storage-subscription-id"]); + _isAadEnabled = DefineProperty("IsAadEnabled", ["aad-enabled"]); + _additionalProperties = DefineDictionaryProperty("AdditionalProperties", ["AdditionalProperties"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisInstanceDetails.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisInstanceDetails.cs index 4a04db90400c4..6ca8cdd18a778 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisInstanceDetails.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisInstanceDetails.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,50 +18,76 @@ public partial class RedisInstanceDetails : ProvisionableConstruct /// /// Redis instance SSL port. /// - public BicepValue SslPort { get => _sslPort; } - private readonly BicepValue _sslPort; + public BicepValue SslPort + { + get { Initialize(); return _sslPort!; } + } + private BicepValue? _sslPort; /// /// If enableNonSslPort is true, provides Redis instance Non-SSL port. /// - public BicepValue NonSslPort { get => _nonSslPort; } - private readonly BicepValue _nonSslPort; + public BicepValue NonSslPort + { + get { Initialize(); return _nonSslPort!; } + } + private BicepValue? _nonSslPort; /// /// If the Cache uses availability zones, specifies availability zone where /// this instance is located. /// - public BicepValue Zone { get => _zone; } - private readonly BicepValue _zone; + public BicepValue Zone + { + get { Initialize(); return _zone!; } + } + private BicepValue? _zone; /// /// If clustering is enabled, the Shard ID of Redis Instance. /// - public BicepValue ShardId { get => _shardId; } - private readonly BicepValue _shardId; + public BicepValue ShardId + { + get { Initialize(); return _shardId!; } + } + private BicepValue? _shardId; /// /// Specifies whether the instance is a primary node. /// - public BicepValue IsMaster { get => _isMaster; } - private readonly BicepValue _isMaster; + public BicepValue IsMaster + { + get { Initialize(); return _isMaster!; } + } + private BicepValue? _isMaster; /// /// Specifies whether the instance is a primary node. /// - public BicepValue IsPrimary { get => _isPrimary; } - private readonly BicepValue _isPrimary; + public BicepValue IsPrimary + { + get { Initialize(); return _isPrimary!; } + } + private BicepValue? _isPrimary; /// /// Creates a new RedisInstanceDetails. /// public RedisInstanceDetails() { - _sslPort = BicepValue.DefineProperty(this, "SslPort", ["sslPort"], isOutput: true); - _nonSslPort = BicepValue.DefineProperty(this, "NonSslPort", ["nonSslPort"], isOutput: true); - _zone = BicepValue.DefineProperty(this, "Zone", ["zone"], isOutput: true); - _shardId = BicepValue.DefineProperty(this, "ShardId", ["shardId"], isOutput: true); - _isMaster = BicepValue.DefineProperty(this, "IsMaster", ["isMaster"], isOutput: true); - _isPrimary = BicepValue.DefineProperty(this, "IsPrimary", ["isPrimary"], isOutput: true); + } + + /// + /// Define all the provisionable properties of RedisInstanceDetails. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _sslPort = DefineProperty("SslPort", ["sslPort"], isOutput: true); + _nonSslPort = DefineProperty("NonSslPort", ["nonSslPort"], isOutput: true); + _zone = DefineProperty("Zone", ["zone"], isOutput: true); + _shardId = DefineProperty("ShardId", ["shardId"], isOutput: true); + _isMaster = DefineProperty("IsMaster", ["isMaster"], isOutput: true); + _isPrimary = DefineProperty("IsPrimary", ["isPrimary"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisPatchScheduleSetting.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisPatchScheduleSetting.cs index 5017b0fcf427b..d4b0eaf0a1cf0 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisPatchScheduleSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisPatchScheduleSetting.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class RedisPatchScheduleSetting : ProvisionableConstruct /// /// Day of the week when a cache can be patched. /// - public BicepValue DayOfWeek { get => _dayOfWeek; set => _dayOfWeek.Assign(value); } - private readonly BicepValue _dayOfWeek; + public BicepValue DayOfWeek + { + get { Initialize(); return _dayOfWeek!; } + set { Initialize(); _dayOfWeek!.Assign(value); } + } + private BicepValue? _dayOfWeek; /// /// Start hour after which cache patching can start. /// - public BicepValue StartHourUtc { get => _startHourUtc; set => _startHourUtc.Assign(value); } - private readonly BicepValue _startHourUtc; + public BicepValue StartHourUtc + { + get { Initialize(); return _startHourUtc!; } + set { Initialize(); _startHourUtc!.Assign(value); } + } + private BicepValue? _startHourUtc; /// /// ISO8601 timespan specifying how much time cache patching can take. /// - public BicepValue MaintenanceWindow { get => _maintenanceWindow; set => _maintenanceWindow.Assign(value); } - private readonly BicepValue _maintenanceWindow; + public BicepValue MaintenanceWindow + { + get { Initialize(); return _maintenanceWindow!; } + set { Initialize(); _maintenanceWindow!.Assign(value); } + } + private BicepValue? _maintenanceWindow; /// /// Creates a new RedisPatchScheduleSetting. /// public RedisPatchScheduleSetting() { - _dayOfWeek = BicepValue.DefineProperty(this, "DayOfWeek", ["dayOfWeek"]); - _startHourUtc = BicepValue.DefineProperty(this, "StartHourUtc", ["startHourUtc"]); - _maintenanceWindow = BicepValue.DefineProperty(this, "MaintenanceWindow", ["maintenanceWindow"], format: "P"); + } + + /// + /// Define all the provisionable properties of RedisPatchScheduleSetting. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _dayOfWeek = DefineProperty("DayOfWeek", ["dayOfWeek"]); + _startHourUtc = DefineProperty("StartHourUtc", ["startHourUtc"]); + _maintenanceWindow = DefineProperty("MaintenanceWindow", ["maintenanceWindow"], format: "P"); } } diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisPrivateEndpointConnectionData.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisPrivateEndpointConnectionData.cs index bbaede70d7449..25de996c40e0c 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisPrivateEndpointConnectionData.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisPrivateEndpointConnectionData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -19,50 +21,78 @@ public partial class RedisPrivateEndpointConnectionData : ProvisionableConstruct /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// A collection of information about the state of the connection between /// service consumer and provider. /// - public BicepValue RedisPrivateLinkServiceConnectionState { get => _redisPrivateLinkServiceConnectionState; set => _redisPrivateLinkServiceConnectionState.Assign(value); } - private readonly BicepValue _redisPrivateLinkServiceConnectionState; + public RedisPrivateLinkServiceConnectionState RedisPrivateLinkServiceConnectionState + { + get { Initialize(); return _redisPrivateLinkServiceConnectionState!; } + set { Initialize(); AssignOrReplace(ref _redisPrivateLinkServiceConnectionState, value); } + } + private RedisPrivateLinkServiceConnectionState? _redisPrivateLinkServiceConnectionState; /// /// The provisioning state of the private endpoint connection resource. /// - public BicepValue RedisProvisioningState { get => _redisProvisioningState; } - private readonly BicepValue _redisProvisioningState; + public BicepValue RedisProvisioningState + { + get { Initialize(); return _redisProvisioningState!; } + } + private BicepValue? _redisProvisioningState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new RedisPrivateEndpointConnectionData. /// public RedisPrivateEndpointConnectionData() { - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _redisPrivateLinkServiceConnectionState = BicepValue.DefineProperty(this, "RedisPrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _redisProvisioningState = BicepValue.DefineProperty(this, "RedisProvisioningState", ["properties", "provisioningState"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// RedisPrivateEndpointConnectionData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _redisPrivateLinkServiceConnectionState = DefineModelProperty("RedisPrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _redisProvisioningState = DefineProperty("RedisProvisioningState", ["properties", "provisioningState"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisPrivateLinkServiceConnectionState.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisPrivateLinkServiceConnectionState.cs index 18fbf7f185b7a..568e810cec376 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisPrivateLinkServiceConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisPrivateLinkServiceConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,29 +20,50 @@ public partial class RedisPrivateLinkServiceConnectionState : ProvisionableConst /// Indicates whether the connection has been Approved/Rejected/Removed by /// the owner of the service. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The reason for approval/rejection of the connection. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// A message indicating if changes on the service provider require any /// updates on the consumer. /// - public BicepValue ActionsRequired { get => _actionsRequired; set => _actionsRequired.Assign(value); } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + set { Initialize(); _actionsRequired!.Assign(value); } + } + private BicepValue? _actionsRequired; /// /// Creates a new RedisPrivateLinkServiceConnectionState. /// public RedisPrivateLinkServiceConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"]); + } + + /// + /// Define all the provisionable properties of + /// RedisPrivateLinkServiceConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisSku.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisSku.cs index e124ce4efd771..0d19d99068525 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisSku.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,31 +19,51 @@ public partial class RedisSku : ProvisionableConstruct /// The type of Redis cache to deploy. Valid values: (Basic, Standard, /// Premium). /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The SKU family to use. Valid values: (C, P). (C = Basic/Standard, P = /// Premium). /// - public BicepValue Family { get => _family; set => _family.Assign(value); } - private readonly BicepValue _family; + public BicepValue Family + { + get { Initialize(); return _family!; } + set { Initialize(); _family!.Assign(value); } + } + private BicepValue? _family; /// /// The size of the Redis cache to deploy. Valid values: for C /// (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family /// (1, 2, 3, 4). /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// Creates a new RedisSku. /// public RedisSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _family = BicepValue.DefineProperty(this, "Family", ["family"]); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); + } + + /// + /// Define all the provisionable properties of RedisSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _family = DefineProperty("Family", ["family"]); + _capacity = DefineProperty("Capacity", ["capacity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisCacheAccessPolicy.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisCacheAccessPolicy.cs index 8daeae36f607e..ba25eeab4dab1 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisCacheAccessPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisCacheAccessPolicy.cs @@ -20,45 +20,69 @@ public partial class RedisCacheAccessPolicy : ProvisionableResource /// /// The name of the access policy that is being added to the Redis cache. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Permissions for the access policy. Learn how to configure permissions /// at https://aka.ms/redis/AADPreRequisites. /// - public BicepValue Permissions { get => _permissions; set => _permissions.Assign(value); } - private readonly BicepValue _permissions; + public BicepValue Permissions + { + get { Initialize(); return _permissions!; } + set { Initialize(); _permissions!.Assign(value); } + } + private BicepValue? _permissions; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of access policy. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Built-In or Custom access policy. /// - public BicepValue TypePropertiesType { get => _typePropertiesType; } - private readonly BicepValue _typePropertiesType; + public BicepValue TypePropertiesType + { + get { Initialize(); return _typePropertiesType!; } + } + private BicepValue? _typePropertiesType; /// /// Gets or sets a reference to the parent RedisResource. /// - public RedisResource? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public RedisResource? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new RedisCacheAccessPolicy. @@ -73,13 +97,20 @@ public partial class RedisCacheAccessPolicy : ProvisionableResource public RedisCacheAccessPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Cache/redis/accessPolicies", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _permissions = BicepValue.DefineProperty(this, "Permissions", ["properties", "permissions"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _typePropertiesType = BicepValue.DefineProperty(this, "TypePropertiesType", ["properties", "type"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of RedisCacheAccessPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _permissions = DefineProperty("Permissions", ["properties", "permissions"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _typePropertiesType = DefineProperty("TypePropertiesType", ["properties", "type"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisCacheAccessPolicyAssignment.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisCacheAccessPolicyAssignment.cs index c766080aa8037..8a82d4a7402ae 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisCacheAccessPolicyAssignment.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisCacheAccessPolicyAssignment.cs @@ -20,51 +20,80 @@ public partial class RedisCacheAccessPolicyAssignment : ProvisionableResource /// /// The name of the access policy assignment. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The name of the access policy that is being assigned. /// - public BicepValue AccessPolicyName { get => _accessPolicyName; set => _accessPolicyName.Assign(value); } - private readonly BicepValue _accessPolicyName; + public BicepValue AccessPolicyName + { + get { Initialize(); return _accessPolicyName!; } + set { Initialize(); _accessPolicyName!.Assign(value); } + } + private BicepValue? _accessPolicyName; /// /// Object Id to assign access policy to. /// - public BicepValue ObjectId { get => _objectId; set => _objectId.Assign(value); } - private readonly BicepValue _objectId; + public BicepValue ObjectId + { + get { Initialize(); return _objectId!; } + set { Initialize(); _objectId!.Assign(value); } + } + private BicepValue? _objectId; /// /// User friendly name for object id. Also represents username for token /// based authentication. /// - public BicepValue ObjectIdAlias { get => _objectIdAlias; set => _objectIdAlias.Assign(value); } - private readonly BicepValue _objectIdAlias; + public BicepValue ObjectIdAlias + { + get { Initialize(); return _objectIdAlias!; } + set { Initialize(); _objectIdAlias!.Assign(value); } + } + private BicepValue? _objectIdAlias; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of an access policy assignment set. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent RedisResource. /// - public RedisResource? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public RedisResource? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new RedisCacheAccessPolicyAssignment. @@ -79,14 +108,22 @@ public partial class RedisCacheAccessPolicyAssignment : ProvisionableResource public RedisCacheAccessPolicyAssignment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Cache/redis/accessPolicyAssignments", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _accessPolicyName = BicepValue.DefineProperty(this, "AccessPolicyName", ["properties", "accessPolicyName"]); - _objectId = BicepValue.DefineProperty(this, "ObjectId", ["properties", "objectId"]); - _objectIdAlias = BicepValue.DefineProperty(this, "ObjectIdAlias", ["properties", "objectIdAlias"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// RedisCacheAccessPolicyAssignment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _accessPolicyName = DefineProperty("AccessPolicyName", ["properties", "accessPolicyName"]); + _objectId = DefineProperty("ObjectId", ["properties", "objectId"]); + _objectIdAlias = DefineProperty("ObjectIdAlias", ["properties", "objectIdAlias"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisFirewallRule.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisFirewallRule.cs index 4614013ad82e4..1f93be859f68e 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisFirewallRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisFirewallRule.cs @@ -22,38 +22,60 @@ public partial class RedisFirewallRule : ProvisionableResource /// /// The name of the firewall rule. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// highest IP address included in the range. /// - public BicepValue EndIP { get => _endIP; set => _endIP.Assign(value); } - private readonly BicepValue _endIP; + public BicepValue EndIP + { + get { Initialize(); return _endIP!; } + set { Initialize(); _endIP!.Assign(value); } + } + private BicepValue? _endIP; /// /// lowest IP address included in the range. /// - public BicepValue StartIP { get => _startIP; set => _startIP.Assign(value); } - private readonly BicepValue _startIP; + public BicepValue StartIP + { + get { Initialize(); return _startIP!; } + set { Initialize(); _startIP!.Assign(value); } + } + private BicepValue? _startIP; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent RedisResource. /// - public RedisResource? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public RedisResource? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new RedisFirewallRule. @@ -68,12 +90,19 @@ public partial class RedisFirewallRule : ProvisionableResource public RedisFirewallRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Cache/redis/firewallRules", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _endIP = BicepValue.DefineProperty(this, "EndIP", ["properties", "endIP"], isRequired: true); - _startIP = BicepValue.DefineProperty(this, "StartIP", ["properties", "startIP"], isRequired: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of RedisFirewallRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _endIP = DefineProperty("EndIP", ["properties", "endIP"], isRequired: true); + _startIP = DefineProperty("StartIP", ["properties", "startIP"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisLinkedServerWithProperty.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisLinkedServerWithProperty.cs index 90b771ca0fffb..323372dc1e208 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisLinkedServerWithProperty.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisLinkedServerWithProperty.cs @@ -20,65 +20,100 @@ public partial class RedisLinkedServerWithProperty : ProvisionableResource /// /// The name of the linked server that is being added to the Redis cache. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Fully qualified resourceId of the linked redis cache. /// - public BicepValue LinkedRedisCacheId { get => _linkedRedisCacheId; set => _linkedRedisCacheId.Assign(value); } - private readonly BicepValue _linkedRedisCacheId; + public BicepValue LinkedRedisCacheId + { + get { Initialize(); return _linkedRedisCacheId!; } + set { Initialize(); _linkedRedisCacheId!.Assign(value); } + } + private BicepValue? _linkedRedisCacheId; /// /// Location of the linked redis cache. /// - public BicepValue LinkedRedisCacheLocation { get => _linkedRedisCacheLocation; set => _linkedRedisCacheLocation.Assign(value); } - private readonly BicepValue _linkedRedisCacheLocation; + public BicepValue LinkedRedisCacheLocation + { + get { Initialize(); return _linkedRedisCacheLocation!; } + set { Initialize(); _linkedRedisCacheLocation!.Assign(value); } + } + private BicepValue? _linkedRedisCacheLocation; /// /// Role of the linked server. /// - public BicepValue ServerRole { get => _serverRole; set => _serverRole.Assign(value); } - private readonly BicepValue _serverRole; + public BicepValue ServerRole + { + get { Initialize(); return _serverRole!; } + set { Initialize(); _serverRole!.Assign(value); } + } + private BicepValue? _serverRole; /// /// The unchanging DNS name which will always point to current geo-primary /// cache among the linked redis caches for seamless Geo Failover /// experience. /// - public BicepValue GeoReplicatedPrimaryHostName { get => _geoReplicatedPrimaryHostName; } - private readonly BicepValue _geoReplicatedPrimaryHostName; + public BicepValue GeoReplicatedPrimaryHostName + { + get { Initialize(); return _geoReplicatedPrimaryHostName!; } + } + private BicepValue? _geoReplicatedPrimaryHostName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The changing DNS name that resolves to the current geo-primary cache /// among the linked redis caches before or after the Geo Failover. /// - public BicepValue PrimaryHostName { get => _primaryHostName; } - private readonly BicepValue _primaryHostName; + public BicepValue PrimaryHostName + { + get { Initialize(); return _primaryHostName!; } + } + private BicepValue? _primaryHostName; /// /// Terminal state of the link between primary and secondary redis cache. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent RedisResource. /// - public RedisResource? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public RedisResource? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new RedisLinkedServerWithProperty. @@ -93,16 +128,24 @@ public partial class RedisLinkedServerWithProperty : ProvisionableResource public RedisLinkedServerWithProperty(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Cache/redis/linkedServers", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _linkedRedisCacheId = BicepValue.DefineProperty(this, "LinkedRedisCacheId", ["properties", "linkedRedisCacheId"], isRequired: true); - _linkedRedisCacheLocation = BicepValue.DefineProperty(this, "LinkedRedisCacheLocation", ["properties", "linkedRedisCacheLocation"], isRequired: true); - _serverRole = BicepValue.DefineProperty(this, "ServerRole", ["properties", "serverRole"], isRequired: true); - _geoReplicatedPrimaryHostName = BicepValue.DefineProperty(this, "GeoReplicatedPrimaryHostName", ["properties", "geoReplicatedPrimaryHostName"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _primaryHostName = BicepValue.DefineProperty(this, "PrimaryHostName", ["properties", "primaryHostName"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// RedisLinkedServerWithProperty. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _linkedRedisCacheId = DefineProperty("LinkedRedisCacheId", ["properties", "linkedRedisCacheId"], isRequired: true); + _linkedRedisCacheLocation = DefineProperty("LinkedRedisCacheLocation", ["properties", "linkedRedisCacheLocation"], isRequired: true); + _serverRole = DefineProperty("ServerRole", ["properties", "serverRole"], isRequired: true); + _geoReplicatedPrimaryHostName = DefineProperty("GeoReplicatedPrimaryHostName", ["properties", "geoReplicatedPrimaryHostName"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _primaryHostName = DefineProperty("PrimaryHostName", ["properties", "primaryHostName"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisPatchSchedule.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisPatchSchedule.cs index 32af1debb3d31..5f4a1785c06f6 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisPatchSchedule.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisPatchSchedule.cs @@ -21,38 +21,58 @@ public partial class RedisPatchSchedule : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// List of patch schedules for a Redis cache. /// - public BicepList ScheduleEntries { get => _scheduleEntries; set => _scheduleEntries.Assign(value); } - private readonly BicepList _scheduleEntries; + public BicepList ScheduleEntries + { + get { Initialize(); return _scheduleEntries!; } + set { Initialize(); _scheduleEntries!.Assign(value); } + } + private BicepList? _scheduleEntries; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent RedisResource. /// - public RedisResource? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public RedisResource? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new RedisPatchSchedule. @@ -67,12 +87,19 @@ public partial class RedisPatchSchedule : ProvisionableResource public RedisPatchSchedule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Cache/redis/patchSchedules", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _scheduleEntries = BicepList.DefineProperty(this, "ScheduleEntries", ["properties", "scheduleEntries"], isRequired: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of RedisPatchSchedule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _scheduleEntries = DefineListProperty("ScheduleEntries", ["properties", "scheduleEntries"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisPrivateEndpointConnection.cs index af0f1e63163b0..e4b6b1ef10c94 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisPrivateEndpointConnection.cs @@ -21,45 +21,69 @@ public partial class RedisPrivateEndpointConnection : ProvisionableResource /// The name of the private endpoint connection associated with the Azure /// resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// A collection of information about the state of the connection between /// service consumer and provider. /// - public BicepValue RedisPrivateLinkServiceConnectionState { get => _redisPrivateLinkServiceConnectionState; set => _redisPrivateLinkServiceConnectionState.Assign(value); } - private readonly BicepValue _redisPrivateLinkServiceConnectionState; + public RedisPrivateLinkServiceConnectionState RedisPrivateLinkServiceConnectionState + { + get { Initialize(); return _redisPrivateLinkServiceConnectionState!; } + set { Initialize(); AssignOrReplace(ref _redisPrivateLinkServiceConnectionState, value); } + } + private RedisPrivateLinkServiceConnectionState? _redisPrivateLinkServiceConnectionState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// The provisioning state of the private endpoint connection resource. /// - public BicepValue RedisProvisioningState { get => _redisProvisioningState; } - private readonly BicepValue _redisProvisioningState; + public BicepValue RedisProvisioningState + { + get { Initialize(); return _redisProvisioningState!; } + } + private BicepValue? _redisProvisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent RedisResource. /// - public RedisResource? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public RedisResource? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new RedisPrivateEndpointConnection. @@ -74,13 +98,21 @@ public partial class RedisPrivateEndpointConnection : ProvisionableResource public RedisPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Cache/redis/privateEndpointConnections", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _redisPrivateLinkServiceConnectionState = BicepValue.DefineProperty(this, "RedisPrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _redisProvisioningState = BicepValue.DefineProperty(this, "RedisProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// RedisPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _redisPrivateLinkServiceConnectionState = DefineModelProperty("RedisPrivateLinkServiceConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _redisProvisioningState = DefineProperty("RedisProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisResource.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisResource.cs index 9ba3cd2ac1406..c17448d5b9504 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisResource.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisResource.cs @@ -26,46 +26,74 @@ public partial class RedisResource : ProvisionableResource /// /// The name of the Redis cache. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The SKU of the Redis cache to deploy. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public RedisSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private RedisSku? _sku; /// /// Specifies whether the non-ssl Redis server port (6379) is enabled. /// - public BicepValue EnableNonSslPort { get => _enableNonSslPort; set => _enableNonSslPort.Assign(value); } - private readonly BicepValue _enableNonSslPort; + public BicepValue EnableNonSslPort + { + get { Initialize(); return _enableNonSslPort!; } + set { Initialize(); _enableNonSslPort!.Assign(value); } + } + private BicepValue? _enableNonSslPort; /// /// The identity of the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Authentication to Redis through access keys is disabled when set as /// true. Default value is false. /// - public BicepValue IsAccessKeyAuthenticationDisabled { get => _isAccessKeyAuthenticationDisabled; set => _isAccessKeyAuthenticationDisabled.Assign(value); } - private readonly BicepValue _isAccessKeyAuthenticationDisabled; + public BicepValue IsAccessKeyAuthenticationDisabled + { + get { Initialize(); return _isAccessKeyAuthenticationDisabled!; } + set { Initialize(); _isAccessKeyAuthenticationDisabled!.Assign(value); } + } + private BicepValue? _isAccessKeyAuthenticationDisabled; /// /// Optional: requires clients to use a specified TLS version (or higher) /// to connect (e,g, '1.0', '1.1', '1.2'). /// - public BicepValue MinimumTlsVersion { get => _minimumTlsVersion; set => _minimumTlsVersion.Assign(value); } - private readonly BicepValue _minimumTlsVersion; + public BicepValue MinimumTlsVersion + { + get { Initialize(); return _minimumTlsVersion!; } + set { Initialize(); _minimumTlsVersion!.Assign(value); } + } + private BicepValue? _minimumTlsVersion; /// /// Whether or not public endpoint access is allowed for this cache. Value @@ -73,8 +101,12 @@ public partial class RedisResource : ProvisionableResource /// 'Disabled'. If 'Disabled', private endpoints are /// the exclusive access method. Default value is 'Enabled'. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// All Redis Settings. Few possible keys: @@ -82,8 +114,12 @@ public partial class RedisResource : ProvisionableResource /// maxmemory-policy,notify-keyspace-events, aof-backup-enabled, /// aof-storage-connection-string-0, aof-storage-connection-string-1 etc. /// - public BicepValue RedisConfiguration { get => _redisConfiguration; set => _redisConfiguration.Assign(value); } - private readonly BicepValue _redisConfiguration; + public RedisCommonConfiguration RedisConfiguration + { + get { Initialize(); return _redisConfiguration!; } + set { Initialize(); AssignOrReplace(ref _redisConfiguration, value); } + } + private RedisCommonConfiguration? _redisConfiguration; /// /// Redis version. This should be in the form 'major[.minor]' @@ -92,54 +128,86 @@ public partial class RedisResource : ProvisionableResource /// Supported versions: 4.0, 6.0 (latest). Default value is /// 'latest'. /// - public BicepValue RedisVersion { get => _redisVersion; set => _redisVersion.Assign(value); } - private readonly BicepValue _redisVersion; + public BicepValue RedisVersion + { + get { Initialize(); return _redisVersion!; } + set { Initialize(); _redisVersion!.Assign(value); } + } + private BicepValue? _redisVersion; /// /// The number of replicas to be created per primary. /// - public BicepValue ReplicasPerMaster { get => _replicasPerMaster; set => _replicasPerMaster.Assign(value); } - private readonly BicepValue _replicasPerMaster; + public BicepValue ReplicasPerMaster + { + get { Initialize(); return _replicasPerMaster!; } + set { Initialize(); _replicasPerMaster!.Assign(value); } + } + private BicepValue? _replicasPerMaster; /// /// The number of replicas to be created per primary. /// - public BicepValue ReplicasPerPrimary { get => _replicasPerPrimary; set => _replicasPerPrimary.Assign(value); } - private readonly BicepValue _replicasPerPrimary; + public BicepValue ReplicasPerPrimary + { + get { Initialize(); return _replicasPerPrimary!; } + set { Initialize(); _replicasPerPrimary!.Assign(value); } + } + private BicepValue? _replicasPerPrimary; /// /// The number of shards to be created on a Premium Cluster Cache. /// - public BicepValue ShardCount { get => _shardCount; set => _shardCount.Assign(value); } - private readonly BicepValue _shardCount; + public BicepValue ShardCount + { + get { Initialize(); return _shardCount!; } + set { Initialize(); _shardCount!.Assign(value); } + } + private BicepValue? _shardCount; /// /// Static IP address. Optionally, may be specified when deploying a Redis /// cache inside an existing Azure Virtual Network; auto assigned by /// default. /// - public BicepValue StaticIP { get => _staticIP; set => _staticIP.Assign(value); } - private readonly BicepValue _staticIP; + public BicepValue StaticIP + { + get { Initialize(); return _staticIP!; } + set { Initialize(); _staticIP!.Assign(value); } + } + private BicepValue? _staticIP; /// /// The full resource ID of a subnet in a virtual network to deploy the /// Redis cache in. Example format: /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1. /// - public BicepValue SubnetId { get => _subnetId; set => _subnetId.Assign(value); } - private readonly BicepValue _subnetId; + public BicepValue SubnetId + { + get { Initialize(); return _subnetId!; } + set { Initialize(); _subnetId!.Assign(value); } + } + private BicepValue? _subnetId; /// /// Resource tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// A dictionary of tenant settings. /// - public BicepDictionary TenantSettings { get => _tenantSettings; set => _tenantSettings.Assign(value); } - private readonly BicepDictionary _tenantSettings; + public BicepDictionary TenantSettings + { + get { Initialize(); return _tenantSettings!; } + set { Initialize(); _tenantSettings!.Assign(value); } + } + private BicepDictionary? _tenantSettings; /// /// Optional: Specifies the update channel for the monthly Redis updates @@ -147,77 +215,115 @@ public partial class RedisResource : ProvisionableResource /// channel get latest Redis updates at least 4 weeks ahead of /// 'Stable' channel caches. Default value is 'Stable'. /// - public BicepValue UpdateChannel { get => _updateChannel; set => _updateChannel.Assign(value); } - private readonly BicepValue _updateChannel; + public BicepValue UpdateChannel + { + get { Initialize(); return _updateChannel!; } + set { Initialize(); _updateChannel!.Assign(value); } + } + private BicepValue? _updateChannel; /// /// A list of availability zones denoting where the resource needs to come /// from. /// - public BicepList Zones { get => _zones; set => _zones.Assign(value); } - private readonly BicepList _zones; + public BicepList Zones + { + get { Initialize(); return _zones!; } + set { Initialize(); _zones!.Assign(value); } + } + private BicepList? _zones; /// /// The keys of the Redis cache - not set if this object is not the /// response to Create or Update redis cache. /// - public BicepValue AccessKeys { get => _accessKeys; } - private readonly BicepValue _accessKeys; + public RedisAccessKeys AccessKeys + { + get { Initialize(); return _accessKeys!; } + } + private RedisAccessKeys? _accessKeys; /// /// Redis host name. /// - public BicepValue HostName { get => _hostName; } - private readonly BicepValue _hostName; + public BicepValue HostName + { + get { Initialize(); return _hostName!; } + } + private BicepValue? _hostName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// List of the Redis instances associated with the cache. /// - public BicepList Instances { get => _instances; } - private readonly BicepList _instances; + public BicepList Instances + { + get { Initialize(); return _instances!; } + } + private BicepList? _instances; /// /// List of the linked servers associated with the cache. /// - public BicepList LinkedServers { get => _linkedServers; } - private readonly BicepList _linkedServers; + public BicepList LinkedServers + { + get { Initialize(); return _linkedServers!; } + } + private BicepList? _linkedServers; /// /// Redis non-SSL port. /// - public BicepValue Port { get => _port; } - private readonly BicepValue _port; + public BicepValue Port + { + get { Initialize(); return _port!; } + } + private BicepValue? _port; /// /// List of private endpoint connection associated with the specified redis /// cache. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// Redis instance provisioning status. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Redis SSL port. /// - public BicepValue SslPort { get => _sslPort; } - private readonly BicepValue _sslPort; + public BicepValue SslPort + { + get { Initialize(); return _sslPort!; } + } + private BicepValue? _sslPort; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new RedisResource. @@ -232,35 +338,42 @@ public partial class RedisResource : ProvisionableResource public RedisResource(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Cache/redis", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _sku = BicepValue.DefineProperty(this, "Sku", ["properties", "sku"], isRequired: true); - _enableNonSslPort = BicepValue.DefineProperty(this, "EnableNonSslPort", ["properties", "enableNonSslPort"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _isAccessKeyAuthenticationDisabled = BicepValue.DefineProperty(this, "IsAccessKeyAuthenticationDisabled", ["properties", "disableAccessKeyAuthentication"]); - _minimumTlsVersion = BicepValue.DefineProperty(this, "MinimumTlsVersion", ["properties", "minimumTlsVersion"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _redisConfiguration = BicepValue.DefineProperty(this, "RedisConfiguration", ["properties", "redisConfiguration"]); - _redisVersion = BicepValue.DefineProperty(this, "RedisVersion", ["properties", "redisVersion"]); - _replicasPerMaster = BicepValue.DefineProperty(this, "ReplicasPerMaster", ["properties", "replicasPerMaster"]); - _replicasPerPrimary = BicepValue.DefineProperty(this, "ReplicasPerPrimary", ["properties", "replicasPerPrimary"]); - _shardCount = BicepValue.DefineProperty(this, "ShardCount", ["properties", "shardCount"]); - _staticIP = BicepValue.DefineProperty(this, "StaticIP", ["properties", "staticIP"]); - _subnetId = BicepValue.DefineProperty(this, "SubnetId", ["properties", "subnetId"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _tenantSettings = BicepDictionary.DefineProperty(this, "TenantSettings", ["properties", "tenantSettings"]); - _updateChannel = BicepValue.DefineProperty(this, "UpdateChannel", ["properties", "updateChannel"]); - _zones = BicepList.DefineProperty(this, "Zones", ["zones"]); - _accessKeys = BicepValue.DefineProperty(this, "AccessKeys", ["properties", "accessKeys"], isOutput: true); - _hostName = BicepValue.DefineProperty(this, "HostName", ["properties", "hostName"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _instances = BicepList.DefineProperty(this, "Instances", ["properties", "instances"], isOutput: true); - _linkedServers = BicepList.DefineProperty(this, "LinkedServers", ["properties", "linkedServers"], isOutput: true); - _port = BicepValue.DefineProperty(this, "Port", ["properties", "port"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _sslPort = BicepValue.DefineProperty(this, "SslPort", ["properties", "sslPort"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of RedisResource. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _sku = DefineModelProperty("Sku", ["properties", "sku"], isRequired: true); + _enableNonSslPort = DefineProperty("EnableNonSslPort", ["properties", "enableNonSslPort"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _isAccessKeyAuthenticationDisabled = DefineProperty("IsAccessKeyAuthenticationDisabled", ["properties", "disableAccessKeyAuthentication"]); + _minimumTlsVersion = DefineProperty("MinimumTlsVersion", ["properties", "minimumTlsVersion"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _redisConfiguration = DefineModelProperty("RedisConfiguration", ["properties", "redisConfiguration"]); + _redisVersion = DefineProperty("RedisVersion", ["properties", "redisVersion"]); + _replicasPerMaster = DefineProperty("ReplicasPerMaster", ["properties", "replicasPerMaster"]); + _replicasPerPrimary = DefineProperty("ReplicasPerPrimary", ["properties", "replicasPerPrimary"]); + _shardCount = DefineProperty("ShardCount", ["properties", "shardCount"]); + _staticIP = DefineProperty("StaticIP", ["properties", "staticIP"]); + _subnetId = DefineProperty("SubnetId", ["properties", "subnetId"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _tenantSettings = DefineDictionaryProperty("TenantSettings", ["properties", "tenantSettings"]); + _updateChannel = DefineProperty("UpdateChannel", ["properties", "updateChannel"]); + _zones = DefineListProperty("Zones", ["zones"]); + _accessKeys = DefineModelProperty("AccessKeys", ["properties", "accessKeys"], isOutput: true); + _hostName = DefineProperty("HostName", ["properties", "hostName"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _instances = DefineListProperty("Instances", ["properties", "instances"], isOutput: true); + _linkedServers = DefineListProperty("LinkedServers", ["properties", "linkedServers"], isOutput: true); + _port = DefineProperty("Port", ["properties", "port"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _sslPort = DefineProperty("SslPort", ["properties", "sslPort"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// @@ -375,9 +488,12 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this RedisResource resource. /// /// The keys for this RedisResource resource. - public RedisAccessKeys GetKeys() => - RedisAccessKeys.FromExpression( - new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys"))); + public RedisAccessKeys GetKeys() + { + RedisAccessKeys key = new(); + ((IBicepValue)key).Expression = new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")); + return key; + } /// /// Creates a role assignment for a user-assigned identity that grants diff --git a/sdk/provisioning/Azure.Provisioning.Search/api/Azure.Provisioning.Search.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.Search/api/Azure.Provisioning.Search.netstandard2.0.cs index 29391266d8bce..3c15c591510c0 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/api/Azure.Provisioning.Search.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/api/Azure.Provisioning.Search.netstandard2.0.cs @@ -5,6 +5,7 @@ public partial class SearchAadAuthDataPlaneAuthOptions : Azure.Provisioning.Prim public SearchAadAuthDataPlaneAuthOptions() { } public Azure.Provisioning.BicepValue AadAuthFailureMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue ApiKeyOnly { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SearchAadAuthFailureMode { @@ -53,6 +54,7 @@ public partial class SearchEncryptionWithCmk : Azure.Provisioning.Primitives.Pro public SearchEncryptionWithCmk() { } public Azure.Provisioning.BicepValue EncryptionComplianceStatus { get { throw null; } } public Azure.Provisioning.BicepValue Enforcement { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SearchEncryptionWithCmkEnforcement { @@ -64,6 +66,7 @@ public partial class SearchManagementRequestOptions : Azure.Provisioning.Primiti { public SearchManagementRequestOptions() { } public Azure.Provisioning.BicepValue ClientRequestId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SearchPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { @@ -71,8 +74,9 @@ public partial class SearchPrivateEndpointConnection : Azure.Provisioning.Primit public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Search.SearchService? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Search.SearchServicePrivateEndpointConnectionProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Search.SearchPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -96,8 +100,9 @@ public partial class SearchPrivateEndpointConnectionData : Azure.Provisioning.Pr public SearchPrivateEndpointConnectionData() { } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Search.SearchServicePrivateEndpointConnectionProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum SearchPrivateLinkServiceConnectionProvisioningState { @@ -120,18 +125,18 @@ public enum SearchSemanticSearch public partial class SearchService : Azure.Provisioning.Primitives.ProvisionableResource { public SearchService(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue AuthOptions { get { throw null; } set { } } + public Azure.Provisioning.Search.SearchAadAuthDataPlaneAuthOptions AuthOptions { get { throw null; } set { } } public Azure.Provisioning.BicepList DisabledDataExfiltrationOptions { get { throw null; } set { } } - public Azure.Provisioning.BicepValue EncryptionWithCmk { get { throw null; } set { } } + public Azure.Provisioning.Search.SearchEncryptionWithCmk EncryptionWithCmk { get { throw null; } set { } } public Azure.Provisioning.BicepValue ETag { get { throw null; } } public Azure.Provisioning.BicepValue HostingMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepList IPRules { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsLocalAuthDisabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue NetworkRuleSet { get { throw null; } set { } } + public Azure.Provisioning.Search.SearchServiceNetworkRuleSet NetworkRuleSet { get { throw null; } set { } } public Azure.Provisioning.BicepValue PartitionCount { get { throw null; } set { } } public Azure.Provisioning.BicepList PrivateEndpointConnections { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } @@ -142,10 +147,11 @@ public partial class SearchService : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepList SharedPrivateLinkResources { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } public Azure.Provisioning.BicepValue StatusDetails { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.Search.SearchBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.Search.SearchBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Search.SearchService FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -177,20 +183,23 @@ public partial class SearchServiceIPRule : Azure.Provisioning.Primitives.Provisi { public SearchServiceIPRule() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SearchServiceNetworkRuleSet : Azure.Provisioning.Primitives.ProvisionableConstruct { public SearchServiceNetworkRuleSet() { } public Azure.Provisioning.BicepValue Bypass { get { throw null; } set { } } public Azure.Provisioning.BicepList IPRules { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SearchServicePrivateEndpointConnectionProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { public SearchServicePrivateEndpointConnectionProperties() { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.Search.SearchServicePrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue GroupId { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SearchServicePrivateLinkServiceConnectionState : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -198,6 +207,7 @@ public SearchServicePrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SearchServicePrivateLinkServiceConnectionStatus { @@ -272,8 +282,9 @@ public partial class SharedSearchServicePrivateLink : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Search.SearchService? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Search.SharedSearchServicePrivateLinkResourceProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Search.SharedSearchServicePrivateLink FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -297,8 +308,9 @@ public partial class SharedSearchServicePrivateLinkResourceData : Azure.Provisio public SharedSearchServicePrivateLinkResourceData() { } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Search.SharedSearchServicePrivateLinkResourceProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class SharedSearchServicePrivateLinkResourceProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -309,6 +321,7 @@ public SharedSearchServicePrivateLinkResourceProperties() { } public Azure.Provisioning.BicepValue RequestMessage { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceRegion { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SharedSearchServicePrivateLinkResourceProvisioningState { diff --git a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchAadAuthDataPlaneAuthOptions.cs b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchAadAuthDataPlaneAuthOptions.cs index ab6ff2483b227..e80d51406d047 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchAadAuthDataPlaneAuthOptions.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchAadAuthDataPlaneAuthOptions.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -30,22 +32,39 @@ public partial class SearchAadAuthDataPlaneAuthOptions : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue ApiKeyOnly { get => _apiKeyOnly; set => _apiKeyOnly.Assign(value); } - private readonly BicepValue _apiKeyOnly; + public BicepValue ApiKeyOnly + { + get { Initialize(); return _apiKeyOnly!; } + set { Initialize(); _apiKeyOnly!.Assign(value); } + } + private BicepValue? _apiKeyOnly; /// /// Describes what response the data plane API of a search service would /// send for requests that failed authentication. /// - public BicepValue AadAuthFailureMode { get => _aadAuthFailureMode; set => _aadAuthFailureMode.Assign(value); } - private readonly BicepValue _aadAuthFailureMode; + public BicepValue AadAuthFailureMode + { + get { Initialize(); return _aadAuthFailureMode!; } + set { Initialize(); _aadAuthFailureMode!.Assign(value); } + } + private BicepValue? _aadAuthFailureMode; /// /// Creates a new SearchAadAuthDataPlaneAuthOptions. /// public SearchAadAuthDataPlaneAuthOptions() { - _apiKeyOnly = BicepValue.DefineProperty(this, "ApiKeyOnly", ["apiKeyOnly"]); - _aadAuthFailureMode = BicepValue.DefineProperty(this, "AadAuthFailureMode", ["aadOrApiKey", "aadAuthFailureMode"]); + } + + /// + /// Define all the provisionable properties of + /// SearchAadAuthDataPlaneAuthOptions. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _apiKeyOnly = DefineProperty("ApiKeyOnly", ["apiKeyOnly"]); + _aadAuthFailureMode = DefineProperty("AadAuthFailureMode", ["aadOrApiKey", "aadAuthFailureMode"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchEncryptionWithCmk.cs b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchEncryptionWithCmk.cs index d86cc96c69e2a..6354af9045bc7 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchEncryptionWithCmk.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchEncryptionWithCmk.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.Search; @@ -17,8 +19,12 @@ public partial class SearchEncryptionWithCmk : ProvisionableConstruct /// Describes how a search service should enforce compliance if it finds /// objects that aren't encrypted with the customer-managed key. /// - public BicepValue Enforcement { get => _enforcement; set => _enforcement.Assign(value); } - private readonly BicepValue _enforcement; + public BicepValue Enforcement + { + get { Initialize(); return _enforcement!; } + set { Initialize(); _enforcement!.Assign(value); } + } + private BicepValue? _enforcement; /// /// Returns the status of search service compliance with respect to @@ -26,15 +32,26 @@ public partial class SearchEncryptionWithCmk : ProvisionableConstruct /// object, and enforcement is enabled, the service is marked as /// noncompliant. /// - public BicepValue EncryptionComplianceStatus { get => _encryptionComplianceStatus; } - private readonly BicepValue _encryptionComplianceStatus; + public BicepValue EncryptionComplianceStatus + { + get { Initialize(); return _encryptionComplianceStatus!; } + } + private BicepValue? _encryptionComplianceStatus; /// /// Creates a new SearchEncryptionWithCmk. /// public SearchEncryptionWithCmk() { - _enforcement = BicepValue.DefineProperty(this, "Enforcement", ["enforcement"]); - _encryptionComplianceStatus = BicepValue.DefineProperty(this, "EncryptionComplianceStatus", ["encryptionComplianceStatus"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SearchEncryptionWithCmk. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _enforcement = DefineProperty("Enforcement", ["enforcement"]); + _encryptionComplianceStatus = DefineProperty("EncryptionComplianceStatus", ["encryptionComplianceStatus"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchManagementRequestOptions.cs b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchManagementRequestOptions.cs index 81373faa4bc71..a9de586e39db9 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchManagementRequestOptions.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchManagementRequestOptions.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,14 +20,27 @@ public partial class SearchManagementRequestOptions : ProvisionableConstruct /// specified, this will be included in response information as a way to /// track the request. /// - public BicepValue ClientRequestId { get => _clientRequestId; set => _clientRequestId.Assign(value); } - private readonly BicepValue _clientRequestId; + public BicepValue ClientRequestId + { + get { Initialize(); return _clientRequestId!; } + set { Initialize(); _clientRequestId!.Assign(value); } + } + private BicepValue? _clientRequestId; /// /// Creates a new SearchManagementRequestOptions. /// public SearchManagementRequestOptions() { - _clientRequestId = BicepValue.DefineProperty(this, "ClientRequestId", ["clientRequestId"]); + } + + /// + /// Define all the provisionable properties of + /// SearchManagementRequestOptions. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _clientRequestId = DefineProperty("ClientRequestId", ["clientRequestId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchPrivateEndpointConnectionData.cs b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchPrivateEndpointConnectionData.cs index ccf022bc91844..d56e308ee7b06 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchPrivateEndpointConnectionData.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchPrivateEndpointConnectionData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -21,35 +23,57 @@ public partial class SearchPrivateEndpointConnectionData : ProvisionableConstruc /// Describes the properties of an existing private endpoint connection to /// the Azure AI Search service. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public SearchServicePrivateEndpointConnectionProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private SearchServicePrivateEndpointConnectionProperties? _properties; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SearchPrivateEndpointConnectionData. /// public SearchPrivateEndpointConnectionData() { - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// SearchPrivateEndpointConnectionData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _properties = DefineModelProperty("Properties", ["properties"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServiceIPRule.cs b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServiceIPRule.cs index 29fd40cbd863f..9aed80e62fdbe 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServiceIPRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServiceIPRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,14 +19,26 @@ public partial class SearchServiceIPRule : ProvisionableConstruct /// Value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP /// range in CIDR format (eg., 123.1.2.3/24) to be allowed. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new SearchServiceIPRule. /// public SearchServiceIPRule() { - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of SearchServiceIPRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServiceNetworkRuleSet.cs b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServiceNetworkRuleSet.cs index a71dcff6c312b..468c269a3fe27 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServiceNetworkRuleSet.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServiceNetworkRuleSet.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -25,22 +27,38 @@ public partial class SearchServiceNetworkRuleSet : ProvisionableConstruct /// allowed even with any public IP rules, and private endpoint /// connections would be the exclusive access method. /// - public BicepList IPRules { get => _iPRules; set => _iPRules.Assign(value); } - private readonly BicepList _iPRules; + public BicepList IPRules + { + get { Initialize(); return _iPRules!; } + set { Initialize(); _iPRules!.Assign(value); } + } + private BicepList? _iPRules; /// /// Possible origins of inbound traffic that can bypass the rules defined /// in the 'ipRules' section. /// - public BicepValue Bypass { get => _bypass; set => _bypass.Assign(value); } - private readonly BicepValue _bypass; + public BicepValue Bypass + { + get { Initialize(); return _bypass!; } + set { Initialize(); _bypass!.Assign(value); } + } + private BicepValue? _bypass; /// /// Creates a new SearchServiceNetworkRuleSet. /// public SearchServiceNetworkRuleSet() { - _iPRules = BicepList.DefineProperty(this, "IPRules", ["ipRules"]); - _bypass = BicepValue.DefineProperty(this, "Bypass", ["bypass"]); + } + + /// + /// Define all the provisionable properties of SearchServiceNetworkRuleSet. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _iPRules = DefineListProperty("IPRules", ["ipRules"]); + _bypass = DefineProperty("Bypass", ["bypass"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServicePrivateEndpointConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServicePrivateEndpointConnectionProperties.cs index 3b4f40c2f016f..7baf44dae9579 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServicePrivateEndpointConnectionProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServicePrivateEndpointConnectionProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -18,39 +20,64 @@ public partial class SearchServicePrivateEndpointConnectionProperties : Provisio /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Describes the current state of an existing Azure Private Link service /// connection to the private endpoint. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public SearchServicePrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private SearchServicePrivateLinkServiceConnectionState? _connectionState; /// /// The group ID of the Azure resource for which the private link service /// is for. /// - public BicepValue GroupId { get => _groupId; set => _groupId.Assign(value); } - private readonly BicepValue _groupId; + public BicepValue GroupId + { + get { Initialize(); return _groupId!; } + set { Initialize(); _groupId!.Assign(value); } + } + private BicepValue? _groupId; /// /// The provisioning state of the private link service connection. Valid /// values are Updating, Deleting, Failed, Succeeded, Incomplete, or /// Canceled. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// Creates a new SearchServicePrivateEndpointConnectionProperties. /// public SearchServicePrivateEndpointConnectionProperties() { - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["privateEndpoint", "id"]); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["privateLinkServiceConnectionState"]); - _groupId = BicepValue.DefineProperty(this, "GroupId", ["groupId"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"]); + } + + /// + /// Define all the provisionable properties of + /// SearchServicePrivateEndpointConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["privateEndpoint", "id"]); + _connectionState = DefineModelProperty("ConnectionState", ["privateLinkServiceConnectionState"]); + _groupId = DefineProperty("GroupId", ["groupId"]); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionState.cs b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionState.cs index 926a091fc5451..15fe2b8ded114 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,28 +20,49 @@ public partial class SearchServicePrivateLinkServiceConnectionState : Provisiona /// Status of the the private link service connection. Valid values are /// Pending, Approved, Rejected, or Disconnected. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The description for the private link service connection state. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// A description of any extra actions that may be required. /// - public BicepValue ActionsRequired { get => _actionsRequired; set => _actionsRequired.Assign(value); } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + set { Initialize(); _actionsRequired!.Assign(value); } + } + private BicepValue? _actionsRequired; /// /// Creates a new SearchServicePrivateLinkServiceConnectionState. /// public SearchServicePrivateLinkServiceConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"]); + } + + /// + /// Define all the provisionable properties of + /// SearchServicePrivateLinkServiceConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceData.cs b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceData.cs index cc8e9ee1c469b..24a40ba5d91d6 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceData.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -21,35 +23,57 @@ public partial class SharedSearchServicePrivateLinkResourceData : ProvisionableC /// Describes the properties of a shared private link resource managed by /// the Azure AI Search service. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public SharedSearchServicePrivateLinkResourceProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private SharedSearchServicePrivateLinkResourceProperties? _properties; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SharedSearchServicePrivateLinkResourceData. /// public SharedSearchServicePrivateLinkResourceData() { - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// SharedSearchServicePrivateLinkResourceData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _properties = DefineModelProperty("Properties", ["properties"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProperties.cs b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProperties.cs index e7e95cf7fe3d5..bc028aaa91466 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -19,34 +21,54 @@ public partial class SharedSearchServicePrivateLinkResourceProperties : Provisio /// Status of the shared private link resource. Valid values are Pending, /// Approved, Rejected or Disconnected. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The provisioning state of the shared private link resource. Valid /// values are Updating, Deleting, Failed, Succeeded or Incomplete. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// The resource ID of the resource the shared private link resource is for. /// - public BicepValue PrivateLinkResourceId { get => _privateLinkResourceId; set => _privateLinkResourceId.Assign(value); } - private readonly BicepValue _privateLinkResourceId; + public BicepValue PrivateLinkResourceId + { + get { Initialize(); return _privateLinkResourceId!; } + set { Initialize(); _privateLinkResourceId!.Assign(value); } + } + private BicepValue? _privateLinkResourceId; /// /// The group ID from the provider of resource the shared private link /// resource is for. /// - public BicepValue GroupId { get => _groupId; set => _groupId.Assign(value); } - private readonly BicepValue _groupId; + public BicepValue GroupId + { + get { Initialize(); return _groupId!; } + set { Initialize(); _groupId!.Assign(value); } + } + private BicepValue? _groupId; /// /// The message for requesting approval of the shared private link resource. /// - public BicepValue RequestMessage { get => _requestMessage; set => _requestMessage.Assign(value); } - private readonly BicepValue _requestMessage; + public BicepValue RequestMessage + { + get { Initialize(); return _requestMessage!; } + set { Initialize(); _requestMessage!.Assign(value); } + } + private BicepValue? _requestMessage; /// /// Optional. Can be used to specify the Azure Resource Manager location of @@ -54,19 +76,32 @@ public partial class SharedSearchServicePrivateLinkResourceProperties : Provisio /// only required for those resources whose DNS configuration are regional /// (such as Azure Kubernetes Service). /// - public BicepValue ResourceRegion { get => _resourceRegion; set => _resourceRegion.Assign(value); } - private readonly BicepValue _resourceRegion; + public BicepValue ResourceRegion + { + get { Initialize(); return _resourceRegion!; } + set { Initialize(); _resourceRegion!.Assign(value); } + } + private BicepValue? _resourceRegion; /// /// Creates a new SharedSearchServicePrivateLinkResourceProperties. /// public SharedSearchServicePrivateLinkResourceProperties() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"]); - _privateLinkResourceId = BicepValue.DefineProperty(this, "PrivateLinkResourceId", ["privateLinkResourceId"]); - _groupId = BicepValue.DefineProperty(this, "GroupId", ["groupId"]); - _requestMessage = BicepValue.DefineProperty(this, "RequestMessage", ["requestMessage"]); - _resourceRegion = BicepValue.DefineProperty(this, "ResourceRegion", ["resourceRegion"]); + } + + /// + /// Define all the provisionable properties of + /// SharedSearchServicePrivateLinkResourceProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"]); + _privateLinkResourceId = DefineProperty("PrivateLinkResourceId", ["privateLinkResourceId"]); + _groupId = DefineProperty("GroupId", ["groupId"]); + _requestMessage = DefineProperty("RequestMessage", ["requestMessage"]); + _resourceRegion = DefineProperty("ResourceRegion", ["resourceRegion"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/SearchPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/SearchPrivateEndpointConnection.cs index c05f7d064e9de..56245a1f5d529 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/SearchPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/SearchPrivateEndpointConnection.cs @@ -21,33 +21,51 @@ public partial class SearchPrivateEndpointConnection : ProvisionableResource /// The name of the private endpoint connection to the Azure AI Search /// service with the specified resource group. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Describes the properties of an existing private endpoint connection to /// the Azure AI Search service. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public SearchServicePrivateEndpointConnectionProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private SearchServicePrivateEndpointConnectionProperties? _properties; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SearchService. /// - public SearchService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SearchService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SearchPrivateEndpointConnection. @@ -62,11 +80,19 @@ public partial class SearchPrivateEndpointConnection : ProvisionableResource public SearchPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Search/searchServices/privateEndpointConnections", resourceVersion ?? "2023-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SearchPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/SearchService.cs b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/SearchService.cs index f45418ade5794..afd5bfab783bd 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/SearchService.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/SearchService.cs @@ -32,22 +32,34 @@ public partial class SearchService : ProvisionableResource /// part of the service URI (https://<name>.search.windows.net). You /// cannot change the service name after the service is created. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Defines the options for how the data plane API of a search service /// authenticates requests. This cannot be set if /// 'disableLocalAuth' is set to true. /// - public BicepValue AuthOptions { get => _authOptions; set => _authOptions.Assign(value); } - private readonly BicepValue _authOptions; + public SearchAadAuthDataPlaneAuthOptions AuthOptions + { + get { Initialize(); return _authOptions!; } + set { Initialize(); AssignOrReplace(ref _authOptions, value); } + } + private SearchAadAuthDataPlaneAuthOptions? _authOptions; /// /// A list of data exfiltration scenarios that are explicitly disallowed @@ -55,15 +67,23 @@ public partial class SearchService : ProvisionableResource /// 'All' to disable all possible data export scenarios with /// more fine grained controls planned for the future. /// - public BicepList DisabledDataExfiltrationOptions { get => _disabledDataExfiltrationOptions; set => _disabledDataExfiltrationOptions.Assign(value); } - private readonly BicepList _disabledDataExfiltrationOptions; + public BicepList DisabledDataExfiltrationOptions + { + get { Initialize(); return _disabledDataExfiltrationOptions!; } + set { Initialize(); _disabledDataExfiltrationOptions!.Assign(value); } + } + private BicepList? _disabledDataExfiltrationOptions; /// /// Specifies any policy regarding encryption of resources (such as /// indexes) using customer manager keys within a search service. /// - public BicepValue EncryptionWithCmk { get => _encryptionWithCmk; set => _encryptionWithCmk.Assign(value); } - private readonly BicepValue _encryptionWithCmk; + public SearchEncryptionWithCmk EncryptionWithCmk + { + get { Initialize(); return _encryptionWithCmk!; } + set { Initialize(); AssignOrReplace(ref _encryptionWithCmk, value); } + } + private SearchEncryptionWithCmk? _encryptionWithCmk; /// /// Applicable only for the standard3 SKU. You can set this property to @@ -73,14 +93,22 @@ public partial class SearchService : ProvisionableResource /// 'highDensity'. For all other SKUs, this value must be /// 'default'. /// - public BicepValue HostingMode { get => _hostingMode; set => _hostingMode.Assign(value); } - private readonly BicepValue _hostingMode; + public BicepValue HostingMode + { + get { Initialize(); return _hostingMode!; } + set { Initialize(); _hostingMode!.Assign(value); } + } + private BicepValue? _hostingMode; /// /// The identity of the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// A list of IP restriction rules used for an IP firewall. Any IPs that do @@ -88,23 +116,35 @@ public partial class SearchService : ProvisionableResource /// applied when the 'publicNetworkAccess' of the search service /// is 'enabled'. /// - public BicepList IPRules { get => _iPRules; set => _iPRules.Assign(value); } - private readonly BicepList _iPRules; + public BicepList IPRules + { + get { Initialize(); return _iPRules!; } + set { Initialize(); _iPRules!.Assign(value); } + } + private BicepList? _iPRules; /// /// When set to true, calls to the search service will not be permitted to /// utilize API keys for authentication. This cannot be set to true if /// 'dataPlaneAuthOptions' are defined. /// - public BicepValue IsLocalAuthDisabled { get => _isLocalAuthDisabled; set => _isLocalAuthDisabled.Assign(value); } - private readonly BicepValue _isLocalAuthDisabled; + public BicepValue IsLocalAuthDisabled + { + get { Initialize(); return _isLocalAuthDisabled!; } + set { Initialize(); _isLocalAuthDisabled!.Assign(value); } + } + private BicepValue? _isLocalAuthDisabled; /// /// Network specific rules that determine how the Azure AI Search service /// may be reached. /// - public BicepValue NetworkRuleSet { get => _networkRuleSet; set => _networkRuleSet.Assign(value); } - private readonly BicepValue _networkRuleSet; + public SearchServiceNetworkRuleSet NetworkRuleSet + { + get { Initialize(); return _networkRuleSet!; } + set { Initialize(); AssignOrReplace(ref _networkRuleSet, value); } + } + private SearchServiceNetworkRuleSet? _networkRuleSet; /// /// The number of partitions in the search service; if specified, it can be @@ -112,8 +152,12 @@ public partial class SearchService : ProvisionableResource /// standard SKUs. For 'standard3' services with hostingMode set /// to 'highDensity', the allowed values are between 1 and 3. /// - public BicepValue PartitionCount { get => _partitionCount; set => _partitionCount.Assign(value); } - private readonly BicepValue _partitionCount; + public BicepValue PartitionCount + { + get { Initialize(); return _partitionCount!; } + set { Initialize(); _partitionCount!.Assign(value); } + } + private BicepValue? _partitionCount; /// /// This value can be set to 'enabled' to avoid breaking changes @@ -121,16 +165,24 @@ public partial class SearchService : ProvisionableResource /// 'disabled', traffic over public interface is not allowed, /// and private endpoint connections would be the exclusive access method. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// The number of replicas in the search service. If specified, it must be /// a value between 1 and 12 inclusive for standard SKUs or between 1 and /// 3 inclusive for basic SKU. /// - public BicepValue ReplicaCount { get => _replicaCount; set => _replicaCount.Assign(value); } - private readonly BicepValue _replicaCount; + public BicepValue ReplicaCount + { + get { Initialize(); return _replicaCount!; } + set { Initialize(); _replicaCount!.Assign(value); } + } + private BicepValue? _replicaCount; /// /// The SKU of the search service. Valid values include: 'free': @@ -145,41 +197,62 @@ public partial class SearchService : ProvisionableResource /// partitions. 'storage_optimized_l2': Supports 2TB per /// partition, up to 12 partitions.'. /// - public BicepValue SearchSkuName { get => _searchSkuName; set => _searchSkuName.Assign(value); } - private readonly BicepValue _searchSkuName; + public BicepValue SearchSkuName + { + get { Initialize(); return _searchSkuName!; } + set { Initialize(); _searchSkuName!.Assign(value); } + } + private BicepValue? _searchSkuName; /// /// Sets options that control the availability of semantic search. This /// configuration is only possible for certain Azure AI Search SKUs in /// certain locations. /// - public BicepValue SemanticSearch { get => _semanticSearch; set => _semanticSearch.Assign(value); } - private readonly BicepValue _semanticSearch; + public BicepValue SemanticSearch + { + get { Initialize(); return _semanticSearch!; } + set { Initialize(); _semanticSearch!.Assign(value); } + } + private BicepValue? _semanticSearch; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// A system generated property representing the service's etag that /// can be for optimistic concurrency control during updates. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The list of private endpoint connections to the Azure AI Search service. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// The state of the last provisioning operation performed on the search @@ -194,15 +267,21 @@ public partial class SearchService : ProvisionableResource /// service. This is because the free service uses capacity that is /// already set up. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The list of shared private link resources managed by the Azure AI /// Search service. /// - public BicepList SharedPrivateLinkResources { get => _sharedPrivateLinkResources; } - private readonly BicepList _sharedPrivateLinkResources; + public BicepList SharedPrivateLinkResources + { + get { Initialize(); return _sharedPrivateLinkResources!; } + } + private BicepList? _sharedPrivateLinkResources; /// /// The status of the search service. Possible values include: @@ -222,20 +301,29 @@ public partial class SearchService : ProvisionableResource /// services in these states are still chargeable based on the number of /// search units provisioned. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// The details of the search service status. /// - public BicepValue StatusDetails { get => _statusDetails; } - private readonly BicepValue _statusDetails; + public BicepValue StatusDetails + { + get { Initialize(); return _statusDetails!; } + } + private BicepValue? _statusDetails; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SearchService. @@ -250,30 +338,37 @@ public partial class SearchService : ProvisionableResource public SearchService(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Search/searchServices", resourceVersion ?? "2023-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _authOptions = BicepValue.DefineProperty(this, "AuthOptions", ["properties", "authOptions"]); - _disabledDataExfiltrationOptions = BicepList.DefineProperty(this, "DisabledDataExfiltrationOptions", ["properties", "disabledDataExfiltrationOptions"]); - _encryptionWithCmk = BicepValue.DefineProperty(this, "EncryptionWithCmk", ["properties", "encryptionWithCmk"]); - _hostingMode = BicepValue.DefineProperty(this, "HostingMode", ["properties", "hostingMode"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _iPRules = BicepList.DefineProperty(this, "IPRules", ["properties", "networkRuleSet", "ipRules"]); - _isLocalAuthDisabled = BicepValue.DefineProperty(this, "IsLocalAuthDisabled", ["properties", "disableLocalAuth"]); - _networkRuleSet = BicepValue.DefineProperty(this, "NetworkRuleSet", ["properties", "networkRuleSet"]); - _partitionCount = BicepValue.DefineProperty(this, "PartitionCount", ["properties", "partitionCount"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _replicaCount = BicepValue.DefineProperty(this, "ReplicaCount", ["properties", "replicaCount"]); - _searchSkuName = BicepValue.DefineProperty(this, "SearchSkuName", ["sku", "name"]); - _semanticSearch = BicepValue.DefineProperty(this, "SemanticSearch", ["properties", "semanticSearch"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["properties", "eTag"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _sharedPrivateLinkResources = BicepList.DefineProperty(this, "SharedPrivateLinkResources", ["properties", "sharedPrivateLinkResources"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _statusDetails = BicepValue.DefineProperty(this, "StatusDetails", ["properties", "statusDetails"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SearchService. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _authOptions = DefineModelProperty("AuthOptions", ["properties", "authOptions"]); + _disabledDataExfiltrationOptions = DefineListProperty("DisabledDataExfiltrationOptions", ["properties", "disabledDataExfiltrationOptions"]); + _encryptionWithCmk = DefineModelProperty("EncryptionWithCmk", ["properties", "encryptionWithCmk"]); + _hostingMode = DefineProperty("HostingMode", ["properties", "hostingMode"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _iPRules = DefineListProperty("IPRules", ["properties", "networkRuleSet", "ipRules"]); + _isLocalAuthDisabled = DefineProperty("IsLocalAuthDisabled", ["properties", "disableLocalAuth"]); + _networkRuleSet = DefineModelProperty("NetworkRuleSet", ["properties", "networkRuleSet"]); + _partitionCount = DefineProperty("PartitionCount", ["properties", "partitionCount"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _replicaCount = DefineProperty("ReplicaCount", ["properties", "replicaCount"]); + _searchSkuName = DefineProperty("SearchSkuName", ["sku", "name"]); + _semanticSearch = DefineProperty("SemanticSearch", ["properties", "semanticSearch"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _eTag = DefineProperty("ETag", ["properties", "eTag"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _sharedPrivateLinkResources = DefineListProperty("SharedPrivateLinkResources", ["properties", "sharedPrivateLinkResources"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _statusDetails = DefineProperty("StatusDetails", ["properties", "statusDetails"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/SharedSearchServicePrivateLink.cs b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/SharedSearchServicePrivateLink.cs index 59e4c4410c5a5..753b3de99d748 100644 --- a/sdk/provisioning/Azure.Provisioning.Search/src/Generated/SharedSearchServicePrivateLink.cs +++ b/sdk/provisioning/Azure.Provisioning.Search/src/Generated/SharedSearchServicePrivateLink.cs @@ -21,33 +21,51 @@ public partial class SharedSearchServicePrivateLink : ProvisionableResource /// The name of the shared private link resource managed by the Azure AI /// Search service within the specified resource group. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Describes the properties of a shared private link resource managed by /// the Azure AI Search service. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public SharedSearchServicePrivateLinkResourceProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private SharedSearchServicePrivateLinkResourceProperties? _properties; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SearchService. /// - public SearchService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SearchService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SharedSearchServicePrivateLink. @@ -62,11 +80,19 @@ public partial class SharedSearchServicePrivateLink : ProvisionableResource public SharedSearchServicePrivateLink(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Search/searchServices/sharedPrivateLinkResources", resourceVersion ?? "2023-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SharedSearchServicePrivateLink. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/api/Azure.Provisioning.ServiceBus.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/api/Azure.Provisioning.ServiceBus.netstandard2.0.cs index 0448ed9b4be0f..863cdd017710d 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/api/Azure.Provisioning.ServiceBus.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/api/Azure.Provisioning.ServiceBus.netstandard2.0.cs @@ -8,6 +8,7 @@ public MessageCountDetails() { } public Azure.Provisioning.BicepValue ScheduledMessageCount { get { throw null; } } public Azure.Provisioning.BicepValue TransferDeadLetterMessageCount { get { throw null; } } public Azure.Provisioning.BicepValue TransferMessageCount { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class MigrationConfiguration : Azure.Provisioning.Primitives.ProvisionableResource { @@ -19,8 +20,9 @@ public partial class MigrationConfiguration : Azure.Provisioning.Primitives.Prov public Azure.Provisioning.BicepValue PendingReplicationOperationsCount { get { throw null; } } public Azure.Provisioning.BicepValue PostMigrationName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TargetServiceBusNamespace { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ServiceBus.MigrationConfiguration FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -44,8 +46,7 @@ public ServiceBusAccessKeys() { } public Azure.Provisioning.BicepValue PrimaryKey { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryConnectionString { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryKey { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.ServiceBus.ServiceBusAccessKeys FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } } public enum ServiceBusAccessRight { @@ -80,6 +81,7 @@ public ServiceBusClientAffineProperties() { } public Azure.Provisioning.BicepValue ClientId { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsDurable { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsShared { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ServiceBusCorrelationFilter : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -94,6 +96,7 @@ public ServiceBusCorrelationFilter() { } public Azure.Provisioning.BicepValue SendTo { get { throw null; } set { } } public Azure.Provisioning.BicepValue SessionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue Subject { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ServiceBusDisasterRecovery : Azure.Provisioning.Primitives.ProvisionableResource { @@ -107,7 +110,8 @@ public partial class ServiceBusDisasterRecovery : Azure.Provisioning.Primitives. public Azure.Provisioning.BicepValue PendingReplicationOperationsCount { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue Role { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ServiceBus.ServiceBusDisasterRecovery FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -136,6 +140,7 @@ public ServiceBusEncryption() { } public Azure.Provisioning.BicepValue KeySource { get { throw null; } set { } } public Azure.Provisioning.BicepList KeyVaultProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequireInfrastructureEncryption { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ServiceBusEncryptionKeySource { @@ -148,6 +153,7 @@ public ServiceBusFilterAction() { } public Azure.Provisioning.BicepValue CompatibilityLevel { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequiresPreprocessing { get { throw null; } set { } } public Azure.Provisioning.BicepValue SqlExpression { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ServiceBusFilterType { @@ -161,6 +167,7 @@ public ServiceBusKeyVaultProperties() { } public Azure.Provisioning.BicepValue KeyVaultUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserAssignedIdentity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ServiceBusMessagingEntityStatus { @@ -189,9 +196,9 @@ public partial class ServiceBusNamespace : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.BicepValue AlternateName { get { throw null; } set { } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue DisableLocalAuth { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Encryption { get { throw null; } set { } } + public Azure.Provisioning.ServiceBus.ServiceBusEncryption Encryption { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsZoneRedundant { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue MetricId { get { throw null; } } @@ -202,13 +209,14 @@ public partial class ServiceBusNamespace : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServiceBusEndpoint { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.ServiceBus.ServiceBusSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue UpdatedOn { get { throw null; } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.ServiceBus.ServiceBusBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.ServiceBus.ServiceBusBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ServiceBus.ServiceBusNamespace FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -229,7 +237,8 @@ public partial class ServiceBusNamespaceAuthorizationRule : Azure.Provisioning.P public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.ServiceBus.ServiceBusNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList Rights { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ServiceBus.ServiceBusNamespaceAuthorizationRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.ServiceBus.ServiceBusAccessKeys GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -256,8 +265,9 @@ public partial class ServiceBusNetworkRuleSet : Azure.Provisioning.Primitives.Pr public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.ServiceBus.ServiceBusNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepList VirtualNetworkRules { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ServiceBus.ServiceBusNetworkRuleSet FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -276,24 +286,27 @@ public partial class ServiceBusNetworkRuleSetIPRules : Azure.Provisioning.Primit public ServiceBusNetworkRuleSetIPRules() { } public Azure.Provisioning.BicepValue Action { get { throw null; } set { } } public Azure.Provisioning.BicepValue IPMask { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ServiceBusNetworkRuleSetVirtualNetworkRules : Azure.Provisioning.Primitives.ProvisionableConstruct { public ServiceBusNetworkRuleSetVirtualNetworkRules() { } public Azure.Provisioning.BicepValue IgnoreMissingVnetServiceEndpoint { get { throw null; } set { } } public Azure.Provisioning.BicepValue SubnetId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ServiceBusPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public ServiceBusPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.ServiceBus.ServiceBusPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.ServiceBus.ServiceBusNamespace? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ServiceBus.ServiceBusPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -304,13 +317,14 @@ public static partial class ResourceVersions public partial class ServiceBusPrivateEndpointConnectionData : Azure.Provisioning.Primitives.ProvisionableConstruct { public ServiceBusPrivateEndpointConnectionData() { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.ServiceBus.ServiceBusPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ServiceBusPrivateEndpointConnectionProvisioningState { @@ -333,6 +347,7 @@ public partial class ServiceBusPrivateLinkServiceConnectionState : Azure.Provisi public ServiceBusPrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ServiceBusPublicNetworkAccess { @@ -350,7 +365,7 @@ public partial class ServiceBusQueue : Azure.Provisioning.Primitives.Provisionab public ServiceBusQueue(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue AccessedOn { get { throw null; } } public Azure.Provisioning.BicepValue AutoDeleteOnIdle { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CountDetails { get { throw null; } } + public Azure.Provisioning.ServiceBus.MessageCountDetails CountDetails { get { throw null; } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue DeadLetteringOnMessageExpiration { get { throw null; } set { } } public Azure.Provisioning.BicepValue DefaultMessageTimeToLive { get { throw null; } set { } } @@ -373,8 +388,9 @@ public partial class ServiceBusQueue : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.BicepValue RequiresSession { get { throw null; } set { } } public Azure.Provisioning.BicepValue SizeInBytes { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue UpdatedOn { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ServiceBus.ServiceBusQueue FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -393,7 +409,8 @@ public partial class ServiceBusQueueAuthorizationRule : Azure.Provisioning.Primi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.ServiceBus.ServiceBusQueue? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList Rights { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ServiceBus.ServiceBusQueueAuthorizationRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.ServiceBus.ServiceBusAccessKeys GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -408,15 +425,16 @@ public static partial class ResourceVersions public partial class ServiceBusRule : Azure.Provisioning.Primitives.ProvisionableResource { public ServiceBusRule(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue Action { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CorrelationFilter { get { throw null; } set { } } + public Azure.Provisioning.ServiceBus.ServiceBusFilterAction Action { get { throw null; } set { } } + public Azure.Provisioning.ServiceBus.ServiceBusCorrelationFilter CorrelationFilter { get { throw null; } set { } } public Azure.Provisioning.BicepValue FilterType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.ServiceBus.ServiceBusSubscription? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SqlFilter { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.ServiceBus.ServiceBusSqlFilter SqlFilter { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ServiceBus.ServiceBusRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -431,6 +449,7 @@ public ServiceBusSku() { } public Azure.Provisioning.BicepValue Capacity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ServiceBusSkuName { @@ -450,14 +469,15 @@ public ServiceBusSqlFilter() { } public Azure.Provisioning.BicepValue CompatibilityLevel { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequiresPreprocessing { get { throw null; } set { } } public Azure.Provisioning.BicepValue SqlExpression { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ServiceBusSubscription : Azure.Provisioning.Primitives.ProvisionableResource { public ServiceBusSubscription(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue AccessedOn { get { throw null; } } public Azure.Provisioning.BicepValue AutoDeleteOnIdle { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ClientAffineProperties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CountDetails { get { throw null; } } + public Azure.Provisioning.ServiceBus.ServiceBusClientAffineProperties ClientAffineProperties { get { throw null; } set { } } + public Azure.Provisioning.ServiceBus.MessageCountDetails CountDetails { get { throw null; } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue DeadLetteringOnFilterEvaluationExceptions { get { throw null; } set { } } public Azure.Provisioning.BicepValue DeadLetteringOnMessageExpiration { get { throw null; } set { } } @@ -476,8 +496,9 @@ public partial class ServiceBusSubscription : Azure.Provisioning.Primitives.Prov public Azure.Provisioning.ServiceBus.ServiceBusTopic? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequiresSession { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue UpdatedOn { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ServiceBus.ServiceBusSubscription FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -493,7 +514,7 @@ public partial class ServiceBusTopic : Azure.Provisioning.Primitives.Provisionab public ServiceBusTopic(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue AccessedOn { get { throw null; } } public Azure.Provisioning.BicepValue AutoDeleteOnIdle { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CountDetails { get { throw null; } } + public Azure.Provisioning.ServiceBus.MessageCountDetails CountDetails { get { throw null; } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue DefaultMessageTimeToLive { get { throw null; } set { } } public Azure.Provisioning.BicepValue DuplicateDetectionHistoryTimeWindow { get { throw null; } set { } } @@ -511,8 +532,9 @@ public partial class ServiceBusTopic : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } public Azure.Provisioning.BicepValue SubscriptionCount { get { throw null; } } public Azure.Provisioning.BicepValue SupportOrdering { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue UpdatedOn { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ServiceBus.ServiceBusTopic FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -531,7 +553,8 @@ public partial class ServiceBusTopicAuthorizationRule : Azure.Provisioning.Primi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.ServiceBus.ServiceBusTopic? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList Rights { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.ServiceBus.ServiceBusTopicAuthorizationRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.ServiceBus.ServiceBusAccessKeys GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/MigrationConfiguration.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/MigrationConfiguration.cs index 65045f6927d45..c5725cc45cc11 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/MigrationConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/MigrationConfiguration.cs @@ -17,63 +17,93 @@ namespace Azure.Provisioning.ServiceBus; /// public partial class MigrationConfiguration : ProvisionableResource { - private readonly BicepValue _name; + private BicepValue? _name; /// /// Name to access Standard Namespace after migration. /// - public BicepValue PostMigrationName { get => _postMigrationName; set => _postMigrationName.Assign(value); } - private readonly BicepValue _postMigrationName; + public BicepValue PostMigrationName + { + get { Initialize(); return _postMigrationName!; } + set { Initialize(); _postMigrationName!.Assign(value); } + } + private BicepValue? _postMigrationName; /// /// Existing premium Namespace ARM Id name which has no entities, will be /// used for migration. /// - public BicepValue TargetServiceBusNamespace { get => _targetServiceBusNamespace; set => _targetServiceBusNamespace.Assign(value); } - private readonly BicepValue _targetServiceBusNamespace; + public BicepValue TargetServiceBusNamespace + { + get { Initialize(); return _targetServiceBusNamespace!; } + set { Initialize(); _targetServiceBusNamespace!.Assign(value); } + } + private BicepValue? _targetServiceBusNamespace; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// State in which Standard to Premium Migration is, possible values : /// Unknown, Reverting, Completing, Initiating, Syncing, Active. /// - public BicepValue MigrationState { get => _migrationState; } - private readonly BicepValue _migrationState; + public BicepValue MigrationState + { + get { Initialize(); return _migrationState!; } + } + private BicepValue? _migrationState; /// /// Number of entities pending to be replicated. /// - public BicepValue PendingReplicationOperationsCount { get => _pendingReplicationOperationsCount; } - private readonly BicepValue _pendingReplicationOperationsCount; + public BicepValue PendingReplicationOperationsCount + { + get { Initialize(); return _pendingReplicationOperationsCount!; } + } + private BicepValue? _pendingReplicationOperationsCount; /// /// Provisioning state of Migration Configuration. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ServiceBusNamespace. /// - public ServiceBusNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ServiceBusNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Get the default value for the Name property. @@ -93,16 +123,23 @@ public partial class MigrationConfiguration : ProvisionableResource public MigrationConfiguration(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ServiceBus/namespaces/migrationConfigurations", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true, defaultValue: GetNameDefaultValue()); - _postMigrationName = BicepValue.DefineProperty(this, "PostMigrationName", ["properties", "postMigrationName"]); - _targetServiceBusNamespace = BicepValue.DefineProperty(this, "TargetServiceBusNamespace", ["properties", "targetNamespace"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _migrationState = BicepValue.DefineProperty(this, "MigrationState", ["properties", "migrationState"], isOutput: true); - _pendingReplicationOperationsCount = BicepValue.DefineProperty(this, "PendingReplicationOperationsCount", ["properties", "pendingReplicationOperationsCount"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of MigrationConfiguration. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true, defaultValue: GetNameDefaultValue()); + _postMigrationName = DefineProperty("PostMigrationName", ["properties", "postMigrationName"]); + _targetServiceBusNamespace = DefineProperty("TargetServiceBusNamespace", ["properties", "targetNamespace"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _migrationState = DefineProperty("MigrationState", ["properties", "migrationState"], isOutput: true); + _pendingReplicationOperationsCount = DefineProperty("PendingReplicationOperationsCount", ["properties", "pendingReplicationOperationsCount"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/MessageCountDetails.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/MessageCountDetails.cs index 913d028eb6354..6e63d77c0bfe8 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/MessageCountDetails.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/MessageCountDetails.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,65 @@ public partial class MessageCountDetails : ProvisionableConstruct /// /// Number of active messages in the queue, topic, or subscription. /// - public BicepValue ActiveMessageCount { get => _activeMessageCount; } - private readonly BicepValue _activeMessageCount; + public BicepValue ActiveMessageCount + { + get { Initialize(); return _activeMessageCount!; } + } + private BicepValue? _activeMessageCount; /// /// Number of messages that are dead lettered. /// - public BicepValue DeadLetterMessageCount { get => _deadLetterMessageCount; } - private readonly BicepValue _deadLetterMessageCount; + public BicepValue DeadLetterMessageCount + { + get { Initialize(); return _deadLetterMessageCount!; } + } + private BicepValue? _deadLetterMessageCount; /// /// Number of scheduled messages. /// - public BicepValue ScheduledMessageCount { get => _scheduledMessageCount; } - private readonly BicepValue _scheduledMessageCount; + public BicepValue ScheduledMessageCount + { + get { Initialize(); return _scheduledMessageCount!; } + } + private BicepValue? _scheduledMessageCount; /// /// Number of messages transferred to another queue, topic, or subscription. /// - public BicepValue TransferMessageCount { get => _transferMessageCount; } - private readonly BicepValue _transferMessageCount; + public BicepValue TransferMessageCount + { + get { Initialize(); return _transferMessageCount!; } + } + private BicepValue? _transferMessageCount; /// /// Number of messages transferred into dead letters. /// - public BicepValue TransferDeadLetterMessageCount { get => _transferDeadLetterMessageCount; } - private readonly BicepValue _transferDeadLetterMessageCount; + public BicepValue TransferDeadLetterMessageCount + { + get { Initialize(); return _transferDeadLetterMessageCount!; } + } + private BicepValue? _transferDeadLetterMessageCount; /// /// Creates a new MessageCountDetails. /// public MessageCountDetails() { - _activeMessageCount = BicepValue.DefineProperty(this, "ActiveMessageCount", ["activeMessageCount"], isOutput: true); - _deadLetterMessageCount = BicepValue.DefineProperty(this, "DeadLetterMessageCount", ["deadLetterMessageCount"], isOutput: true); - _scheduledMessageCount = BicepValue.DefineProperty(this, "ScheduledMessageCount", ["scheduledMessageCount"], isOutput: true); - _transferMessageCount = BicepValue.DefineProperty(this, "TransferMessageCount", ["transferMessageCount"], isOutput: true); - _transferDeadLetterMessageCount = BicepValue.DefineProperty(this, "TransferDeadLetterMessageCount", ["transferDeadLetterMessageCount"], isOutput: true); + } + + /// + /// Define all the provisionable properties of MessageCountDetails. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _activeMessageCount = DefineProperty("ActiveMessageCount", ["activeMessageCount"], isOutput: true); + _deadLetterMessageCount = DefineProperty("DeadLetterMessageCount", ["deadLetterMessageCount"], isOutput: true); + _scheduledMessageCount = DefineProperty("ScheduledMessageCount", ["scheduledMessageCount"], isOutput: true); + _transferMessageCount = DefineProperty("TransferMessageCount", ["transferMessageCount"], isOutput: true); + _transferDeadLetterMessageCount = DefineProperty("TransferDeadLetterMessageCount", ["transferDeadLetterMessageCount"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusAccessKeys.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusAccessKeys.cs index 6a90bbbf5526a..72d4dd55eca31 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusAccessKeys.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusAccessKeys.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Expressions; using Azure.Provisioning.Primitives; using System; @@ -18,74 +20,87 @@ public partial class ServiceBusAccessKeys : ProvisionableConstruct /// /// Primary connection string of the created namespace authorization rule. /// - public BicepValue PrimaryConnectionString { get => _primaryConnectionString; } - private readonly BicepValue _primaryConnectionString; + public BicepValue PrimaryConnectionString + { + get { Initialize(); return _primaryConnectionString!; } + } + private BicepValue? _primaryConnectionString; /// /// Secondary connection string of the created namespace authorization rule. /// - public BicepValue SecondaryConnectionString { get => _secondaryConnectionString; } - private readonly BicepValue _secondaryConnectionString; + public BicepValue SecondaryConnectionString + { + get { Initialize(); return _secondaryConnectionString!; } + } + private BicepValue? _secondaryConnectionString; /// /// Primary connection string of the alias if GEO DR is enabled. /// - public BicepValue AliasPrimaryConnectionString { get => _aliasPrimaryConnectionString; } - private readonly BicepValue _aliasPrimaryConnectionString; + public BicepValue AliasPrimaryConnectionString + { + get { Initialize(); return _aliasPrimaryConnectionString!; } + } + private BicepValue? _aliasPrimaryConnectionString; /// /// Secondary connection string of the alias if GEO DR is enabled. /// - public BicepValue AliasSecondaryConnectionString { get => _aliasSecondaryConnectionString; } - private readonly BicepValue _aliasSecondaryConnectionString; + public BicepValue AliasSecondaryConnectionString + { + get { Initialize(); return _aliasSecondaryConnectionString!; } + } + private BicepValue? _aliasSecondaryConnectionString; /// /// A base64-encoded 256-bit primary key for signing and validating the SAS /// token. /// - public BicepValue PrimaryKey { get => _primaryKey; } - private readonly BicepValue _primaryKey; + public BicepValue PrimaryKey + { + get { Initialize(); return _primaryKey!; } + } + private BicepValue? _primaryKey; /// /// A base64-encoded 256-bit primary key for signing and validating the SAS /// token. /// - public BicepValue SecondaryKey { get => _secondaryKey; } - private readonly BicepValue _secondaryKey; + public BicepValue SecondaryKey + { + get { Initialize(); return _secondaryKey!; } + } + private BicepValue? _secondaryKey; /// /// A string that describes the authorization rule. /// - public BicepValue KeyName { get => _keyName; } - private readonly BicepValue _keyName; + public BicepValue KeyName + { + get { Initialize(); return _keyName!; } + } + private BicepValue? _keyName; /// /// Creates a new ServiceBusAccessKeys. /// public ServiceBusAccessKeys() { - _primaryConnectionString = BicepValue.DefineProperty(this, "PrimaryConnectionString", ["primaryConnectionString"], isOutput: true, isSecure: true); - _secondaryConnectionString = BicepValue.DefineProperty(this, "SecondaryConnectionString", ["secondaryConnectionString"], isOutput: true, isSecure: true); - _aliasPrimaryConnectionString = BicepValue.DefineProperty(this, "AliasPrimaryConnectionString", ["aliasPrimaryConnectionString"], isOutput: true, isSecure: true); - _aliasSecondaryConnectionString = BicepValue.DefineProperty(this, "AliasSecondaryConnectionString", ["aliasSecondaryConnectionString"], isOutput: true, isSecure: true); - _primaryKey = BicepValue.DefineProperty(this, "PrimaryKey", ["primaryKey"], isOutput: true, isSecure: true); - _secondaryKey = BicepValue.DefineProperty(this, "SecondaryKey", ["secondaryKey"], isOutput: true, isSecure: true); - _keyName = BicepValue.DefineProperty(this, "KeyName", ["keyName"], isOutput: true); } /// - /// Creates a new ServiceBusAccessKeys resource from a Bicep expression - /// that evaluates to a ServiceBusAccessKeys. + /// Define all the provisionable properties of ServiceBusAccessKeys. /// - /// - /// A Bicep expression that evaluates to a ServiceBusAccessKeys resource. - /// - /// A ServiceBusAccessKeys resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static ServiceBusAccessKeys FromExpression(BicepExpression expression) + protected override void DefineProvisionableProperties() { - ServiceBusAccessKeys resource = new(); - resource.OverrideWithExpression(expression); - return resource; + base.DefineProvisionableProperties(); + _primaryConnectionString = DefineProperty("PrimaryConnectionString", ["primaryConnectionString"], isOutput: true, isSecure: true); + _secondaryConnectionString = DefineProperty("SecondaryConnectionString", ["secondaryConnectionString"], isOutput: true, isSecure: true); + _aliasPrimaryConnectionString = DefineProperty("AliasPrimaryConnectionString", ["aliasPrimaryConnectionString"], isOutput: true, isSecure: true); + _aliasSecondaryConnectionString = DefineProperty("AliasSecondaryConnectionString", ["aliasSecondaryConnectionString"], isOutput: true, isSecure: true); + _primaryKey = DefineProperty("PrimaryKey", ["primaryKey"], isOutput: true, isSecure: true); + _secondaryKey = DefineProperty("SecondaryKey", ["secondaryKey"], isOutput: true, isSecure: true); + _keyName = DefineProperty("KeyName", ["keyName"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusClientAffineProperties.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusClientAffineProperties.cs index 72580f1bcc677..904a8360b7950 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusClientAffineProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusClientAffineProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,51 @@ public partial class ServiceBusClientAffineProperties : ProvisionableConstruct /// Indicates the Client ID of the application that created the /// client-affine subscription. /// - public BicepValue ClientId { get => _clientId; set => _clientId.Assign(value); } - private readonly BicepValue _clientId; + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + set { Initialize(); _clientId!.Assign(value); } + } + private BicepValue? _clientId; /// /// For client-affine subscriptions, this value indicates whether the /// subscription is durable or not. /// - public BicepValue IsDurable { get => _isDurable; set => _isDurable.Assign(value); } - private readonly BicepValue _isDurable; + public BicepValue IsDurable + { + get { Initialize(); return _isDurable!; } + set { Initialize(); _isDurable!.Assign(value); } + } + private BicepValue? _isDurable; /// /// For client-affine subscriptions, this value indicates whether the /// subscription is shared or not. /// - public BicepValue IsShared { get => _isShared; set => _isShared.Assign(value); } - private readonly BicepValue _isShared; + public BicepValue IsShared + { + get { Initialize(); return _isShared!; } + set { Initialize(); _isShared!.Assign(value); } + } + private BicepValue? _isShared; /// /// Creates a new ServiceBusClientAffineProperties. /// public ServiceBusClientAffineProperties() { - _clientId = BicepValue.DefineProperty(this, "ClientId", ["clientId"]); - _isDurable = BicepValue.DefineProperty(this, "IsDurable", ["isDurable"]); - _isShared = BicepValue.DefineProperty(this, "IsShared", ["isShared"]); + } + + /// + /// Define all the provisionable properties of + /// ServiceBusClientAffineProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _clientId = DefineProperty("ClientId", ["clientId"]); + _isDurable = DefineProperty("IsDurable", ["isDurable"]); + _isShared = DefineProperty("IsShared", ["isShared"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusCorrelationFilter.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusCorrelationFilter.cs index 080775748344c..48f13ae8e7446 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusCorrelationFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusCorrelationFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,77 +19,125 @@ public partial class ServiceBusCorrelationFilter : ProvisionableConstruct /// /// dictionary object for custom filters. /// - public BicepDictionary ApplicationProperties { get => _applicationProperties; set => _applicationProperties.Assign(value); } - private readonly BicepDictionary _applicationProperties; + public BicepDictionary ApplicationProperties + { + get { Initialize(); return _applicationProperties!; } + set { Initialize(); _applicationProperties!.Assign(value); } + } + private BicepDictionary? _applicationProperties; /// /// Identifier of the correlation. /// - public BicepValue CorrelationId { get => _correlationId; set => _correlationId.Assign(value); } - private readonly BicepValue _correlationId; + public BicepValue CorrelationId + { + get { Initialize(); return _correlationId!; } + set { Initialize(); _correlationId!.Assign(value); } + } + private BicepValue? _correlationId; /// /// Identifier of the message. /// - public BicepValue MessageId { get => _messageId; set => _messageId.Assign(value); } - private readonly BicepValue _messageId; + public BicepValue MessageId + { + get { Initialize(); return _messageId!; } + set { Initialize(); _messageId!.Assign(value); } + } + private BicepValue? _messageId; /// /// Address to send to. /// - public BicepValue SendTo { get => _sendTo; set => _sendTo.Assign(value); } - private readonly BicepValue _sendTo; + public BicepValue SendTo + { + get { Initialize(); return _sendTo!; } + set { Initialize(); _sendTo!.Assign(value); } + } + private BicepValue? _sendTo; /// /// Address of the queue to reply to. /// - public BicepValue ReplyTo { get => _replyTo; set => _replyTo.Assign(value); } - private readonly BicepValue _replyTo; + public BicepValue ReplyTo + { + get { Initialize(); return _replyTo!; } + set { Initialize(); _replyTo!.Assign(value); } + } + private BicepValue? _replyTo; /// /// Application specific label. /// - public BicepValue Subject { get => _subject; set => _subject.Assign(value); } - private readonly BicepValue _subject; + public BicepValue Subject + { + get { Initialize(); return _subject!; } + set { Initialize(); _subject!.Assign(value); } + } + private BicepValue? _subject; /// /// Session identifier. /// - public BicepValue SessionId { get => _sessionId; set => _sessionId.Assign(value); } - private readonly BicepValue _sessionId; + public BicepValue SessionId + { + get { Initialize(); return _sessionId!; } + set { Initialize(); _sessionId!.Assign(value); } + } + private BicepValue? _sessionId; /// /// Session identifier to reply to. /// - public BicepValue ReplyToSessionId { get => _replyToSessionId; set => _replyToSessionId.Assign(value); } - private readonly BicepValue _replyToSessionId; + public BicepValue ReplyToSessionId + { + get { Initialize(); return _replyToSessionId!; } + set { Initialize(); _replyToSessionId!.Assign(value); } + } + private BicepValue? _replyToSessionId; /// /// Content type of the message. /// - public BicepValue ContentType { get => _contentType; set => _contentType.Assign(value); } - private readonly BicepValue _contentType; + public BicepValue ContentType + { + get { Initialize(); return _contentType!; } + set { Initialize(); _contentType!.Assign(value); } + } + private BicepValue? _contentType; /// /// Value that indicates whether the rule action requires preprocessing. /// - public BicepValue RequiresPreprocessing { get => _requiresPreprocessing; set => _requiresPreprocessing.Assign(value); } - private readonly BicepValue _requiresPreprocessing; + public BicepValue RequiresPreprocessing + { + get { Initialize(); return _requiresPreprocessing!; } + set { Initialize(); _requiresPreprocessing!.Assign(value); } + } + private BicepValue? _requiresPreprocessing; /// /// Creates a new ServiceBusCorrelationFilter. /// public ServiceBusCorrelationFilter() { - _applicationProperties = BicepDictionary.DefineProperty(this, "ApplicationProperties", ["properties"]); - _correlationId = BicepValue.DefineProperty(this, "CorrelationId", ["correlationId"]); - _messageId = BicepValue.DefineProperty(this, "MessageId", ["messageId"]); - _sendTo = BicepValue.DefineProperty(this, "SendTo", ["to"]); - _replyTo = BicepValue.DefineProperty(this, "ReplyTo", ["replyTo"]); - _subject = BicepValue.DefineProperty(this, "Subject", ["label"]); - _sessionId = BicepValue.DefineProperty(this, "SessionId", ["sessionId"]); - _replyToSessionId = BicepValue.DefineProperty(this, "ReplyToSessionId", ["replyToSessionId"]); - _contentType = BicepValue.DefineProperty(this, "ContentType", ["contentType"]); - _requiresPreprocessing = BicepValue.DefineProperty(this, "RequiresPreprocessing", ["requiresPreprocessing"]); + } + + /// + /// Define all the provisionable properties of ServiceBusCorrelationFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _applicationProperties = DefineDictionaryProperty("ApplicationProperties", ["properties"]); + _correlationId = DefineProperty("CorrelationId", ["correlationId"]); + _messageId = DefineProperty("MessageId", ["messageId"]); + _sendTo = DefineProperty("SendTo", ["to"]); + _replyTo = DefineProperty("ReplyTo", ["replyTo"]); + _subject = DefineProperty("Subject", ["label"]); + _sessionId = DefineProperty("SessionId", ["sessionId"]); + _replyToSessionId = DefineProperty("ReplyToSessionId", ["replyToSessionId"]); + _contentType = DefineProperty("ContentType", ["contentType"]); + _requiresPreprocessing = DefineProperty("RequiresPreprocessing", ["requiresPreprocessing"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusEncryption.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusEncryption.cs index 7403a6c9e8137..e86c543fda5af 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusEncryption.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusEncryption.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,48 @@ public partial class ServiceBusEncryption : ProvisionableConstruct /// /// Properties of KeyVault. /// - public BicepList KeyVaultProperties { get => _keyVaultProperties; set => _keyVaultProperties.Assign(value); } - private readonly BicepList _keyVaultProperties; + public BicepList KeyVaultProperties + { + get { Initialize(); return _keyVaultProperties!; } + set { Initialize(); _keyVaultProperties!.Assign(value); } + } + private BicepList? _keyVaultProperties; /// /// Enumerates the possible value of keySource for Encryption. /// - public BicepValue KeySource { get => _keySource; set => _keySource.Assign(value); } - private readonly BicepValue _keySource; + public BicepValue KeySource + { + get { Initialize(); return _keySource!; } + set { Initialize(); _keySource!.Assign(value); } + } + private BicepValue? _keySource; /// /// Enable Infrastructure Encryption (Double Encryption). /// - public BicepValue RequireInfrastructureEncryption { get => _requireInfrastructureEncryption; set => _requireInfrastructureEncryption.Assign(value); } - private readonly BicepValue _requireInfrastructureEncryption; + public BicepValue RequireInfrastructureEncryption + { + get { Initialize(); return _requireInfrastructureEncryption!; } + set { Initialize(); _requireInfrastructureEncryption!.Assign(value); } + } + private BicepValue? _requireInfrastructureEncryption; /// /// Creates a new ServiceBusEncryption. /// public ServiceBusEncryption() { - _keyVaultProperties = BicepList.DefineProperty(this, "KeyVaultProperties", ["keyVaultProperties"]); - _keySource = BicepValue.DefineProperty(this, "KeySource", ["keySource"]); - _requireInfrastructureEncryption = BicepValue.DefineProperty(this, "RequireInfrastructureEncryption", ["requireInfrastructureEncryption"]); + } + + /// + /// Define all the provisionable properties of ServiceBusEncryption. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyVaultProperties = DefineListProperty("KeyVaultProperties", ["keyVaultProperties"]); + _keySource = DefineProperty("KeySource", ["keySource"]); + _requireInfrastructureEncryption = DefineProperty("RequireInfrastructureEncryption", ["requireInfrastructureEncryption"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusFilterAction.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusFilterAction.cs index 4b1328ed6f889..32dc9935a3d05 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusFilterAction.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusFilterAction.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,49 @@ public partial class ServiceBusFilterAction : ProvisionableConstruct /// /// SQL expression. e.g. MyProperty='ABC'. /// - public BicepValue SqlExpression { get => _sqlExpression; set => _sqlExpression.Assign(value); } - private readonly BicepValue _sqlExpression; + public BicepValue SqlExpression + { + get { Initialize(); return _sqlExpression!; } + set { Initialize(); _sqlExpression!.Assign(value); } + } + private BicepValue? _sqlExpression; /// /// This property is reserved for future use. An integer value showing the /// compatibility level, currently hard-coded to 20. /// - public BicepValue CompatibilityLevel { get => _compatibilityLevel; set => _compatibilityLevel.Assign(value); } - private readonly BicepValue _compatibilityLevel; + public BicepValue CompatibilityLevel + { + get { Initialize(); return _compatibilityLevel!; } + set { Initialize(); _compatibilityLevel!.Assign(value); } + } + private BicepValue? _compatibilityLevel; /// /// Value that indicates whether the rule action requires preprocessing. /// - public BicepValue RequiresPreprocessing { get => _requiresPreprocessing; set => _requiresPreprocessing.Assign(value); } - private readonly BicepValue _requiresPreprocessing; + public BicepValue RequiresPreprocessing + { + get { Initialize(); return _requiresPreprocessing!; } + set { Initialize(); _requiresPreprocessing!.Assign(value); } + } + private BicepValue? _requiresPreprocessing; /// /// Creates a new ServiceBusFilterAction. /// public ServiceBusFilterAction() { - _sqlExpression = BicepValue.DefineProperty(this, "SqlExpression", ["sqlExpression"]); - _compatibilityLevel = BicepValue.DefineProperty(this, "CompatibilityLevel", ["compatibilityLevel"]); - _requiresPreprocessing = BicepValue.DefineProperty(this, "RequiresPreprocessing", ["requiresPreprocessing"]); + } + + /// + /// Define all the provisionable properties of ServiceBusFilterAction. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _sqlExpression = DefineProperty("SqlExpression", ["sqlExpression"]); + _compatibilityLevel = DefineProperty("CompatibilityLevel", ["compatibilityLevel"]); + _requiresPreprocessing = DefineProperty("RequiresPreprocessing", ["requiresPreprocessing"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusKeyVaultProperties.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusKeyVaultProperties.cs index 31b290d75d141..875e8df8f8b50 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusKeyVaultProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusKeyVaultProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class ServiceBusKeyVaultProperties : ProvisionableConstruct /// /// Name of the Key from KeyVault. /// - public BicepValue KeyName { get => _keyName; set => _keyName.Assign(value); } - private readonly BicepValue _keyName; + public BicepValue KeyName + { + get { Initialize(); return _keyName!; } + set { Initialize(); _keyName!.Assign(value); } + } + private BicepValue? _keyName; /// /// Uri of KeyVault. /// - public BicepValue KeyVaultUri { get => _keyVaultUri; set => _keyVaultUri.Assign(value); } - private readonly BicepValue _keyVaultUri; + public BicepValue KeyVaultUri + { + get { Initialize(); return _keyVaultUri!; } + set { Initialize(); _keyVaultUri!.Assign(value); } + } + private BicepValue? _keyVaultUri; /// /// Version of KeyVault. /// - public BicepValue KeyVersion { get => _keyVersion; set => _keyVersion.Assign(value); } - private readonly BicepValue _keyVersion; + public BicepValue KeyVersion + { + get { Initialize(); return _keyVersion!; } + set { Initialize(); _keyVersion!.Assign(value); } + } + private BicepValue? _keyVersion; /// /// ARM ID of user Identity selected for encryption. /// - public BicepValue UserAssignedIdentity { get => _userAssignedIdentity; set => _userAssignedIdentity.Assign(value); } - private readonly BicepValue _userAssignedIdentity; + public BicepValue UserAssignedIdentity + { + get { Initialize(); return _userAssignedIdentity!; } + set { Initialize(); _userAssignedIdentity!.Assign(value); } + } + private BicepValue? _userAssignedIdentity; /// /// Creates a new ServiceBusKeyVaultProperties. /// public ServiceBusKeyVaultProperties() { - _keyName = BicepValue.DefineProperty(this, "KeyName", ["keyName"]); - _keyVaultUri = BicepValue.DefineProperty(this, "KeyVaultUri", ["keyVaultUri"]); - _keyVersion = BicepValue.DefineProperty(this, "KeyVersion", ["keyVersion"]); - _userAssignedIdentity = BicepValue.DefineProperty(this, "UserAssignedIdentity", ["identity", "userAssignedIdentity"]); + } + + /// + /// Define all the provisionable properties of ServiceBusKeyVaultProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyName = DefineProperty("KeyName", ["keyName"]); + _keyVaultUri = DefineProperty("KeyVaultUri", ["keyVaultUri"]); + _keyVersion = DefineProperty("KeyVersion", ["keyVersion"]); + _userAssignedIdentity = DefineProperty("UserAssignedIdentity", ["identity", "userAssignedIdentity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusNetworkRuleSetIPRules.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusNetworkRuleSetIPRules.cs index 04388ad2fea29..1ab97bbd053f6 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusNetworkRuleSetIPRules.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusNetworkRuleSetIPRules.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class ServiceBusNetworkRuleSetIPRules : ProvisionableConstruct /// /// IP Mask. /// - public BicepValue IPMask { get => _iPMask; set => _iPMask.Assign(value); } - private readonly BicepValue _iPMask; + public BicepValue IPMask + { + get { Initialize(); return _iPMask!; } + set { Initialize(); _iPMask!.Assign(value); } + } + private BicepValue? _iPMask; /// /// The IP Filter Action. /// - public BicepValue Action { get => _action; set => _action.Assign(value); } - private readonly BicepValue _action; + public BicepValue Action + { + get { Initialize(); return _action!; } + set { Initialize(); _action!.Assign(value); } + } + private BicepValue? _action; /// /// Creates a new ServiceBusNetworkRuleSetIPRules. /// public ServiceBusNetworkRuleSetIPRules() { - _iPMask = BicepValue.DefineProperty(this, "IPMask", ["ipMask"]); - _action = BicepValue.DefineProperty(this, "Action", ["action"]); + } + + /// + /// Define all the provisionable properties of + /// ServiceBusNetworkRuleSetIPRules. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _iPMask = DefineProperty("IPMask", ["ipMask"]); + _action = DefineProperty("Action", ["action"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusNetworkRuleSetVirtualNetworkRules.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusNetworkRuleSetVirtualNetworkRules.cs index 5c802a17ff3fc..de0e429440e93 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusNetworkRuleSetVirtualNetworkRules.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusNetworkRuleSetVirtualNetworkRules.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class ServiceBusNetworkRuleSetVirtualNetworkRules : Provisionable /// /// Gets or sets Id. /// - public BicepValue SubnetId { get => _subnetId; set => _subnetId.Assign(value); } - private readonly BicepValue _subnetId; + public BicepValue SubnetId + { + get { Initialize(); return _subnetId!; } + set { Initialize(); _subnetId!.Assign(value); } + } + private BicepValue? _subnetId; /// /// Value that indicates whether to ignore missing VNet Service Endpoint. /// - public BicepValue IgnoreMissingVnetServiceEndpoint { get => _ignoreMissingVnetServiceEndpoint; set => _ignoreMissingVnetServiceEndpoint.Assign(value); } - private readonly BicepValue _ignoreMissingVnetServiceEndpoint; + public BicepValue IgnoreMissingVnetServiceEndpoint + { + get { Initialize(); return _ignoreMissingVnetServiceEndpoint!; } + set { Initialize(); _ignoreMissingVnetServiceEndpoint!.Assign(value); } + } + private BicepValue? _ignoreMissingVnetServiceEndpoint; /// /// Creates a new ServiceBusNetworkRuleSetVirtualNetworkRules. /// public ServiceBusNetworkRuleSetVirtualNetworkRules() { - _subnetId = BicepValue.DefineProperty(this, "SubnetId", ["subnet", "id"]); - _ignoreMissingVnetServiceEndpoint = BicepValue.DefineProperty(this, "IgnoreMissingVnetServiceEndpoint", ["ignoreMissingVnetServiceEndpoint"]); + } + + /// + /// Define all the provisionable properties of + /// ServiceBusNetworkRuleSetVirtualNetworkRules. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _subnetId = DefineProperty("SubnetId", ["subnet", "id"]); + _ignoreMissingVnetServiceEndpoint = DefineProperty("IgnoreMissingVnetServiceEndpoint", ["ignoreMissingVnetServiceEndpoint"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusPrivateEndpointConnectionData.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusPrivateEndpointConnectionData.cs index 20b79cb8eb494..c3fcac238d357 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusPrivateEndpointConnectionData.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusPrivateEndpointConnectionData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -19,56 +21,89 @@ public partial class ServiceBusPrivateEndpointConnectionData : ProvisionableCons /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Details about the state of the connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public ServiceBusPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private ServiceBusPrivateLinkServiceConnectionState? _connectionState; /// /// Provisioning state of the Private Endpoint Connection. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ServiceBusPrivateEndpointConnectionData. /// public ServiceBusPrivateEndpointConnectionData() { - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ServiceBusPrivateEndpointConnectionData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _location = DefineProperty("Location", ["location"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusPrivateLinkServiceConnectionState.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusPrivateLinkServiceConnectionState.cs index f0b18e3b6a00b..5c19e148684b9 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusPrivateLinkServiceConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusPrivateLinkServiceConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class ServiceBusPrivateLinkServiceConnectionState : Provisionable /// /// Status of the connection. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Description of the connection state. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Creates a new ServiceBusPrivateLinkServiceConnectionState. /// public ServiceBusPrivateLinkServiceConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); + } + + /// + /// Define all the provisionable properties of + /// ServiceBusPrivateLinkServiceConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusSku.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusSku.cs index 1bbd3b0d84a0e..e4c9ae3b36c6c 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusSku.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,14 +18,22 @@ public partial class ServiceBusSku : ProvisionableConstruct /// /// Name of this SKU. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The billing tier of this particular SKU. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// Messaging units for your service bus premium namespace. Valid @@ -34,16 +44,28 @@ public partial class ServiceBusSku : ProvisionableConstruct /// properties.premiumMessagingPartitions is 4 then possible capacity /// values are 4, 8, 16, 32 and 64. /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// Creates a new ServiceBusSku. /// public ServiceBusSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); + } + + /// + /// Define all the provisionable properties of ServiceBusSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"]); + _capacity = DefineProperty("Capacity", ["capacity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusSqlFilter.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusSqlFilter.cs index 5ed64b4525ded..f65ccbf20476e 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusSqlFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/Models/ServiceBusSqlFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,49 @@ public partial class ServiceBusSqlFilter : ProvisionableConstruct /// /// The SQL expression. e.g. MyProperty='ABC'. /// - public BicepValue SqlExpression { get => _sqlExpression; set => _sqlExpression.Assign(value); } - private readonly BicepValue _sqlExpression; + public BicepValue SqlExpression + { + get { Initialize(); return _sqlExpression!; } + set { Initialize(); _sqlExpression!.Assign(value); } + } + private BicepValue? _sqlExpression; /// /// This property is reserved for future use. An integer value showing the /// compatibility level, currently hard-coded to 20. /// - public BicepValue CompatibilityLevel { get => _compatibilityLevel; set => _compatibilityLevel.Assign(value); } - private readonly BicepValue _compatibilityLevel; + public BicepValue CompatibilityLevel + { + get { Initialize(); return _compatibilityLevel!; } + set { Initialize(); _compatibilityLevel!.Assign(value); } + } + private BicepValue? _compatibilityLevel; /// /// Value that indicates whether the rule action requires preprocessing. /// - public BicepValue RequiresPreprocessing { get => _requiresPreprocessing; set => _requiresPreprocessing.Assign(value); } - private readonly BicepValue _requiresPreprocessing; + public BicepValue RequiresPreprocessing + { + get { Initialize(); return _requiresPreprocessing!; } + set { Initialize(); _requiresPreprocessing!.Assign(value); } + } + private BicepValue? _requiresPreprocessing; /// /// Creates a new ServiceBusSqlFilter. /// public ServiceBusSqlFilter() { - _sqlExpression = BicepValue.DefineProperty(this, "SqlExpression", ["sqlExpression"]); - _compatibilityLevel = BicepValue.DefineProperty(this, "CompatibilityLevel", ["compatibilityLevel"]); - _requiresPreprocessing = BicepValue.DefineProperty(this, "RequiresPreprocessing", ["requiresPreprocessing"]); + } + + /// + /// Define all the provisionable properties of ServiceBusSqlFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _sqlExpression = DefineProperty("SqlExpression", ["sqlExpression"]); + _compatibilityLevel = DefineProperty("CompatibilityLevel", ["compatibilityLevel"]); + _requiresPreprocessing = DefineProperty("RequiresPreprocessing", ["requiresPreprocessing"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusDisasterRecovery.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusDisasterRecovery.cs index 69a999d2235b6..0fb59c7b9eb4e 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusDisasterRecovery.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusDisasterRecovery.cs @@ -21,67 +21,100 @@ public partial class ServiceBusDisasterRecovery : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Primary/Secondary eventhub namespace name, which is part of GEO DR /// pairing. /// - public BicepValue AlternateName { get => _alternateName; set => _alternateName.Assign(value); } - private readonly BicepValue _alternateName; + public BicepValue AlternateName + { + get { Initialize(); return _alternateName!; } + set { Initialize(); _alternateName!.Assign(value); } + } + private BicepValue? _alternateName; /// /// ARM Id of the Primary/Secondary eventhub namespace name, which is part /// of GEO DR pairing. /// - public BicepValue PartnerNamespace { get => _partnerNamespace; set => _partnerNamespace.Assign(value); } - private readonly BicepValue _partnerNamespace; + public BicepValue PartnerNamespace + { + get { Initialize(); return _partnerNamespace!; } + set { Initialize(); _partnerNamespace!.Assign(value); } + } + private BicepValue? _partnerNamespace; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Number of entities pending to be replicated. /// - public BicepValue PendingReplicationOperationsCount { get => _pendingReplicationOperationsCount; } - private readonly BicepValue _pendingReplicationOperationsCount; + public BicepValue PendingReplicationOperationsCount + { + get { Initialize(); return _pendingReplicationOperationsCount!; } + } + private BicepValue? _pendingReplicationOperationsCount; /// /// Provisioning state of the Alias(Disaster Recovery configuration) - /// possible values 'Accepted' or 'Succeeded' or /// 'Failed'. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// role of namespace in GEO DR - possible values 'Primary' or /// 'PrimaryNotReplicating' or 'Secondary'. /// - public BicepValue Role { get => _role; } - private readonly BicepValue _role; + public BicepValue Role + { + get { Initialize(); return _role!; } + } + private BicepValue? _role; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ServiceBusNamespace. /// - public ServiceBusNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ServiceBusNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ServiceBusDisasterRecovery. @@ -96,16 +129,23 @@ public partial class ServiceBusDisasterRecovery : ProvisionableResource public ServiceBusDisasterRecovery(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _alternateName = BicepValue.DefineProperty(this, "AlternateName", ["properties", "alternateName"]); - _partnerNamespace = BicepValue.DefineProperty(this, "PartnerNamespace", ["properties", "partnerNamespace"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _pendingReplicationOperationsCount = BicepValue.DefineProperty(this, "PendingReplicationOperationsCount", ["properties", "pendingReplicationOperationsCount"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _role = BicepValue.DefineProperty(this, "Role", ["properties", "role"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ServiceBusDisasterRecovery. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _alternateName = DefineProperty("AlternateName", ["properties", "alternateName"]); + _partnerNamespace = DefineProperty("PartnerNamespace", ["properties", "partnerNamespace"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _pendingReplicationOperationsCount = DefineProperty("PendingReplicationOperationsCount", ["properties", "pendingReplicationOperationsCount"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _role = DefineProperty("Role", ["properties", "role"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusNamespace.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusNamespace.cs index 5a0f43575b82d..75f0127799021 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusNamespace.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusNamespace.cs @@ -25,133 +25,209 @@ public partial class ServiceBusNamespace : ProvisionableResource /// /// The namespace name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Alternate name for namespace. /// - public BicepValue AlternateName { get => _alternateName; set => _alternateName.Assign(value); } - private readonly BicepValue _alternateName; + public BicepValue AlternateName + { + get { Initialize(); return _alternateName!; } + set { Initialize(); _alternateName!.Assign(value); } + } + private BicepValue? _alternateName; /// /// This property disables SAS authentication for the Service Bus namespace. /// - public BicepValue DisableLocalAuth { get => _disableLocalAuth; set => _disableLocalAuth.Assign(value); } - private readonly BicepValue _disableLocalAuth; + public BicepValue DisableLocalAuth + { + get { Initialize(); return _disableLocalAuth!; } + set { Initialize(); _disableLocalAuth!.Assign(value); } + } + private BicepValue? _disableLocalAuth; /// /// Properties of BYOK Encryption description. /// - public BicepValue Encryption { get => _encryption; set => _encryption.Assign(value); } - private readonly BicepValue _encryption; + public ServiceBusEncryption Encryption + { + get { Initialize(); return _encryption!; } + set { Initialize(); AssignOrReplace(ref _encryption, value); } + } + private ServiceBusEncryption? _encryption; /// /// Properties of BYOK Identity description. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Enabling this property creates a Premium Service Bus Namespace in /// regions supported availability zones. /// - public BicepValue IsZoneRedundant { get => _isZoneRedundant; set => _isZoneRedundant.Assign(value); } - private readonly BicepValue _isZoneRedundant; + public BicepValue IsZoneRedundant + { + get { Initialize(); return _isZoneRedundant!; } + set { Initialize(); _isZoneRedundant!.Assign(value); } + } + private BicepValue? _isZoneRedundant; /// /// The minimum TLS version for the cluster to support, e.g. /// '1.2'. /// - public BicepValue MinimumTlsVersion { get => _minimumTlsVersion; set => _minimumTlsVersion.Assign(value); } - private readonly BicepValue _minimumTlsVersion; + public BicepValue MinimumTlsVersion + { + get { Initialize(); return _minimumTlsVersion!; } + set { Initialize(); _minimumTlsVersion!.Assign(value); } + } + private BicepValue? _minimumTlsVersion; /// /// The number of partitions of a Service Bus namespace. This property is /// only applicable to Premium SKU namespaces. The default value is 1 and /// possible values are 1, 2 and 4. /// - public BicepValue PremiumMessagingPartitions { get => _premiumMessagingPartitions; set => _premiumMessagingPartitions.Assign(value); } - private readonly BicepValue _premiumMessagingPartitions; + public BicepValue PremiumMessagingPartitions + { + get { Initialize(); return _premiumMessagingPartitions!; } + set { Initialize(); _premiumMessagingPartitions!.Assign(value); } + } + private BicepValue? _premiumMessagingPartitions; /// /// List of private endpoint connections. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; set => _privateEndpointConnections.Assign(value); } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + set { Initialize(); _privateEndpointConnections!.Assign(value); } + } + private BicepList? _privateEndpointConnections; /// /// This determines if traffic is allowed over public network. By default /// it is enabled. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Properties of SKU. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public ServiceBusSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private ServiceBusSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The time the namespace was created. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Identifier for Azure Insights metrics. /// - public BicepValue MetricId { get => _metricId; } - private readonly BicepValue _metricId; + public BicepValue MetricId + { + get { Initialize(); return _metricId!; } + } + private BicepValue? _metricId; /// /// Provisioning state of the namespace. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Endpoint you can use to perform Service Bus operations. /// - public BicepValue ServiceBusEndpoint { get => _serviceBusEndpoint; } - private readonly BicepValue _serviceBusEndpoint; + public BicepValue ServiceBusEndpoint + { + get { Initialize(); return _serviceBusEndpoint!; } + } + private BicepValue? _serviceBusEndpoint; /// /// Status of the namespace. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The time the namespace was updated. /// - public BicepValue UpdatedOn { get => _updatedOn; } - private readonly BicepValue _updatedOn; + public BicepValue UpdatedOn + { + get { Initialize(); return _updatedOn!; } + } + private BicepValue? _updatedOn; /// /// Creates a new ServiceBusNamespace. @@ -166,27 +242,34 @@ public partial class ServiceBusNamespace : ProvisionableResource public ServiceBusNamespace(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ServiceBus/namespaces", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _alternateName = BicepValue.DefineProperty(this, "AlternateName", ["properties", "alternateName"]); - _disableLocalAuth = BicepValue.DefineProperty(this, "DisableLocalAuth", ["properties", "disableLocalAuth"]); - _encryption = BicepValue.DefineProperty(this, "Encryption", ["properties", "encryption"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _isZoneRedundant = BicepValue.DefineProperty(this, "IsZoneRedundant", ["properties", "zoneRedundant"]); - _minimumTlsVersion = BicepValue.DefineProperty(this, "MinimumTlsVersion", ["properties", "minimumTlsVersion"]); - _premiumMessagingPartitions = BicepValue.DefineProperty(this, "PremiumMessagingPartitions", ["properties", "premiumMessagingPartitions"]); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdAt"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _metricId = BicepValue.DefineProperty(this, "MetricId", ["properties", "metricId"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _serviceBusEndpoint = BicepValue.DefineProperty(this, "ServiceBusEndpoint", ["properties", "serviceBusEndpoint"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _updatedOn = BicepValue.DefineProperty(this, "UpdatedOn", ["properties", "updatedAt"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ServiceBusNamespace. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _alternateName = DefineProperty("AlternateName", ["properties", "alternateName"]); + _disableLocalAuth = DefineProperty("DisableLocalAuth", ["properties", "disableLocalAuth"]); + _encryption = DefineModelProperty("Encryption", ["properties", "encryption"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _isZoneRedundant = DefineProperty("IsZoneRedundant", ["properties", "zoneRedundant"]); + _minimumTlsVersion = DefineProperty("MinimumTlsVersion", ["properties", "minimumTlsVersion"]); + _premiumMessagingPartitions = DefineProperty("PremiumMessagingPartitions", ["properties", "premiumMessagingPartitions"]); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdAt"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _metricId = DefineProperty("MetricId", ["properties", "metricId"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _serviceBusEndpoint = DefineProperty("ServiceBusEndpoint", ["properties", "serviceBusEndpoint"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _updatedOn = DefineProperty("UpdatedOn", ["properties", "updatedAt"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusNamespaceAuthorizationRule.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusNamespaceAuthorizationRule.cs index dafb8e1dc5551..015ccaaef4d93 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusNamespaceAuthorizationRule.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusNamespaceAuthorizationRule.cs @@ -23,38 +23,59 @@ public partial class ServiceBusNamespaceAuthorizationRule : ProvisionableResourc /// /// The authorization rule name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The rights associated with the rule. /// - public BicepList Rights { get => _rights; set => _rights.Assign(value); } - private readonly BicepList _rights; + public BicepList Rights + { + get { Initialize(); return _rights!; } + set { Initialize(); _rights!.Assign(value); } + } + private BicepList? _rights; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ServiceBusNamespace. /// - public ServiceBusNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ServiceBusNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ServiceBusNamespaceAuthorizationRule. @@ -69,12 +90,20 @@ public partial class ServiceBusNamespaceAuthorizationRule : ProvisionableResourc public ServiceBusNamespaceAuthorizationRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ServiceBus/namespaces/AuthorizationRules", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _rights = BicepList.DefineProperty(this, "Rights", ["properties", "rights"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ServiceBusNamespaceAuthorizationRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _rights = DefineListProperty("Rights", ["properties", "rights"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// @@ -125,7 +154,10 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this ServiceBusNamespaceAuthorizationRule resource. /// /// The keys for this ServiceBusNamespaceAuthorizationRule resource. - public ServiceBusAccessKeys GetKeys() => - ServiceBusAccessKeys.FromExpression( - new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys"))); + public ServiceBusAccessKeys GetKeys() + { + ServiceBusAccessKeys key = new(); + ((IBicepValue)key).Expression = new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")); + return key; + } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusNetworkRuleSet.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusNetworkRuleSet.cs index 4afbd6cee1dd3..7a8687636684e 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusNetworkRuleSet.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusNetworkRuleSet.cs @@ -21,63 +21,99 @@ public partial class ServiceBusNetworkRuleSet : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Default Action for Network Rule Set. /// - public BicepValue DefaultAction { get => _defaultAction; set => _defaultAction.Assign(value); } - private readonly BicepValue _defaultAction; + public BicepValue DefaultAction + { + get { Initialize(); return _defaultAction!; } + set { Initialize(); _defaultAction!.Assign(value); } + } + private BicepValue? _defaultAction; /// /// List of IpRules. /// - public BicepList IPRules { get => _iPRules; set => _iPRules.Assign(value); } - private readonly BicepList _iPRules; + public BicepList IPRules + { + get { Initialize(); return _iPRules!; } + set { Initialize(); _iPRules!.Assign(value); } + } + private BicepList? _iPRules; /// /// Value that indicates whether Trusted Service Access is Enabled or not. /// - public BicepValue IsTrustedServiceAccessEnabled { get => _isTrustedServiceAccessEnabled; set => _isTrustedServiceAccessEnabled.Assign(value); } - private readonly BicepValue _isTrustedServiceAccessEnabled; + public BicepValue IsTrustedServiceAccessEnabled + { + get { Initialize(); return _isTrustedServiceAccessEnabled!; } + set { Initialize(); _isTrustedServiceAccessEnabled!.Assign(value); } + } + private BicepValue? _isTrustedServiceAccessEnabled; /// /// This determines if traffic is allowed over public network. By default /// it is enabled. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// List VirtualNetwork Rules. /// - public BicepList VirtualNetworkRules { get => _virtualNetworkRules; set => _virtualNetworkRules.Assign(value); } - private readonly BicepList _virtualNetworkRules; + public BicepList VirtualNetworkRules + { + get { Initialize(); return _virtualNetworkRules!; } + set { Initialize(); _virtualNetworkRules!.Assign(value); } + } + private BicepList? _virtualNetworkRules; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ServiceBusNamespace. /// - public ServiceBusNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ServiceBusNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ServiceBusNetworkRuleSet. @@ -92,16 +128,23 @@ public partial class ServiceBusNetworkRuleSet : ProvisionableResource public ServiceBusNetworkRuleSet(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ServiceBus/namespaces/networkRuleSets", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _defaultAction = BicepValue.DefineProperty(this, "DefaultAction", ["properties", "defaultAction"]); - _iPRules = BicepList.DefineProperty(this, "IPRules", ["properties", "ipRules"]); - _isTrustedServiceAccessEnabled = BicepValue.DefineProperty(this, "IsTrustedServiceAccessEnabled", ["properties", "trustedServiceAccessEnabled"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _virtualNetworkRules = BicepList.DefineProperty(this, "VirtualNetworkRules", ["properties", "virtualNetworkRules"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ServiceBusNetworkRuleSet. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _defaultAction = DefineProperty("DefaultAction", ["properties", "defaultAction"]); + _iPRules = DefineListProperty("IPRules", ["properties", "ipRules"]); + _isTrustedServiceAccessEnabled = DefineProperty("IsTrustedServiceAccessEnabled", ["properties", "trustedServiceAccessEnabled"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _virtualNetworkRules = DefineListProperty("VirtualNetworkRules", ["properties", "virtualNetworkRules"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusPrivateEndpointConnection.cs index 45752ffe8b338..3b283f82b216f 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusPrivateEndpointConnection.cs @@ -20,50 +20,79 @@ public partial class ServiceBusPrivateEndpointConnection : ProvisionableResource /// /// The PrivateEndpointConnection name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Details about the state of the connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public ServiceBusPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private ServiceBusPrivateLinkServiceConnectionState? _connectionState; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Provisioning state of the Private Endpoint Connection. /// - public BicepValue ProvisioningState { get => _provisioningState; set => _provisioningState.Assign(value); } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + set { Initialize(); _provisioningState!.Assign(value); } + } + private BicepValue? _provisioningState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ServiceBusNamespace. /// - public ServiceBusNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ServiceBusNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ServiceBusPrivateEndpointConnection. @@ -78,14 +107,22 @@ public partial class ServiceBusPrivateEndpointConnection : ProvisionableResource public ServiceBusPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ServiceBus/namespaces/privateEndpointConnections", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ServiceBusPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusQueue.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusQueue.cs index 24adb1e001d5c..34cef14e36a6a 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusQueue.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusQueue.cs @@ -21,22 +21,34 @@ public partial class ServiceBusQueue : ProvisionableResource /// /// The queue name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// ISO 8061 timeSpan idle interval after which the queue is automatically /// deleted. The minimum duration is 5 minutes. /// - public BicepValue AutoDeleteOnIdle { get => _autoDeleteOnIdle; set => _autoDeleteOnIdle.Assign(value); } - private readonly BicepValue _autoDeleteOnIdle; + public BicepValue AutoDeleteOnIdle + { + get { Initialize(); return _autoDeleteOnIdle!; } + set { Initialize(); _autoDeleteOnIdle!.Assign(value); } + } + private BicepValue? _autoDeleteOnIdle; /// /// A value that indicates whether this queue has dead letter support when /// a message expires. /// - public BicepValue DeadLetteringOnMessageExpiration { get => _deadLetteringOnMessageExpiration; set => _deadLetteringOnMessageExpiration.Assign(value); } - private readonly BicepValue _deadLetteringOnMessageExpiration; + public BicepValue DeadLetteringOnMessageExpiration + { + get { Initialize(); return _deadLetteringOnMessageExpiration!; } + set { Initialize(); _deadLetteringOnMessageExpiration!.Assign(value); } + } + private BicepValue? _deadLetteringOnMessageExpiration; /// /// ISO 8601 default message timespan to live value. This is the duration @@ -44,157 +56,244 @@ public partial class ServiceBusQueue : ProvisionableResource /// sent to Service Bus. This is the default value used when TimeToLive is /// not set on a message itself. /// - public BicepValue DefaultMessageTimeToLive { get => _defaultMessageTimeToLive; set => _defaultMessageTimeToLive.Assign(value); } - private readonly BicepValue _defaultMessageTimeToLive; + public BicepValue DefaultMessageTimeToLive + { + get { Initialize(); return _defaultMessageTimeToLive!; } + set { Initialize(); _defaultMessageTimeToLive!.Assign(value); } + } + private BicepValue? _defaultMessageTimeToLive; /// /// ISO 8601 timeSpan structure that defines the duration of the duplicate /// detection history. The default value is 10 minutes. /// - public BicepValue DuplicateDetectionHistoryTimeWindow { get => _duplicateDetectionHistoryTimeWindow; set => _duplicateDetectionHistoryTimeWindow.Assign(value); } - private readonly BicepValue _duplicateDetectionHistoryTimeWindow; + public BicepValue DuplicateDetectionHistoryTimeWindow + { + get { Initialize(); return _duplicateDetectionHistoryTimeWindow!; } + set { Initialize(); _duplicateDetectionHistoryTimeWindow!.Assign(value); } + } + private BicepValue? _duplicateDetectionHistoryTimeWindow; /// /// Value that indicates whether server-side batched operations are enabled. /// - public BicepValue EnableBatchedOperations { get => _enableBatchedOperations; set => _enableBatchedOperations.Assign(value); } - private readonly BicepValue _enableBatchedOperations; + public BicepValue EnableBatchedOperations + { + get { Initialize(); return _enableBatchedOperations!; } + set { Initialize(); _enableBatchedOperations!.Assign(value); } + } + private BicepValue? _enableBatchedOperations; /// /// A value that indicates whether Express Entities are enabled. An express /// queue holds a message in memory temporarily before writing it to /// persistent storage. /// - public BicepValue EnableExpress { get => _enableExpress; set => _enableExpress.Assign(value); } - private readonly BicepValue _enableExpress; + public BicepValue EnableExpress + { + get { Initialize(); return _enableExpress!; } + set { Initialize(); _enableExpress!.Assign(value); } + } + private BicepValue? _enableExpress; /// /// A value that indicates whether the queue is to be partitioned across /// multiple message brokers. /// - public BicepValue EnablePartitioning { get => _enablePartitioning; set => _enablePartitioning.Assign(value); } - private readonly BicepValue _enablePartitioning; + public BicepValue EnablePartitioning + { + get { Initialize(); return _enablePartitioning!; } + set { Initialize(); _enablePartitioning!.Assign(value); } + } + private BicepValue? _enablePartitioning; /// /// Queue/Topic name to forward the Dead Letter message. /// - public BicepValue ForwardDeadLetteredMessagesTo { get => _forwardDeadLetteredMessagesTo; set => _forwardDeadLetteredMessagesTo.Assign(value); } - private readonly BicepValue _forwardDeadLetteredMessagesTo; + public BicepValue ForwardDeadLetteredMessagesTo + { + get { Initialize(); return _forwardDeadLetteredMessagesTo!; } + set { Initialize(); _forwardDeadLetteredMessagesTo!.Assign(value); } + } + private BicepValue? _forwardDeadLetteredMessagesTo; /// /// Queue/Topic name to forward the messages. /// - public BicepValue ForwardTo { get => _forwardTo; set => _forwardTo.Assign(value); } - private readonly BicepValue _forwardTo; + public BicepValue ForwardTo + { + get { Initialize(); return _forwardTo!; } + set { Initialize(); _forwardTo!.Assign(value); } + } + private BicepValue? _forwardTo; /// /// ISO 8601 timespan duration of a peek-lock; that is, the amount of time /// that the message is locked for other receivers. The maximum value for /// LockDuration is 5 minutes; the default value is 1 minute. /// - public BicepValue LockDuration { get => _lockDuration; set => _lockDuration.Assign(value); } - private readonly BicepValue _lockDuration; + public BicepValue LockDuration + { + get { Initialize(); return _lockDuration!; } + set { Initialize(); _lockDuration!.Assign(value); } + } + private BicepValue? _lockDuration; /// /// The maximum delivery count. A message is automatically deadlettered /// after this number of deliveries. default value is 10. /// - public BicepValue MaxDeliveryCount { get => _maxDeliveryCount; set => _maxDeliveryCount.Assign(value); } - private readonly BicepValue _maxDeliveryCount; + public BicepValue MaxDeliveryCount + { + get { Initialize(); return _maxDeliveryCount!; } + set { Initialize(); _maxDeliveryCount!.Assign(value); } + } + private BicepValue? _maxDeliveryCount; /// /// Maximum size (in KB) of the message payload that can be accepted by the /// queue. This property is only used in Premium today and default is 1024. /// - public BicepValue MaxMessageSizeInKilobytes { get => _maxMessageSizeInKilobytes; set => _maxMessageSizeInKilobytes.Assign(value); } - private readonly BicepValue _maxMessageSizeInKilobytes; + public BicepValue MaxMessageSizeInKilobytes + { + get { Initialize(); return _maxMessageSizeInKilobytes!; } + set { Initialize(); _maxMessageSizeInKilobytes!.Assign(value); } + } + private BicepValue? _maxMessageSizeInKilobytes; /// /// The maximum size of the queue in megabytes, which is the size of memory /// allocated for the queue. Default is 1024. /// - public BicepValue MaxSizeInMegabytes { get => _maxSizeInMegabytes; set => _maxSizeInMegabytes.Assign(value); } - private readonly BicepValue _maxSizeInMegabytes; + public BicepValue MaxSizeInMegabytes + { + get { Initialize(); return _maxSizeInMegabytes!; } + set { Initialize(); _maxSizeInMegabytes!.Assign(value); } + } + private BicepValue? _maxSizeInMegabytes; /// /// A value indicating if this queue requires duplicate detection. /// - public BicepValue RequiresDuplicateDetection { get => _requiresDuplicateDetection; set => _requiresDuplicateDetection.Assign(value); } - private readonly BicepValue _requiresDuplicateDetection; + public BicepValue RequiresDuplicateDetection + { + get { Initialize(); return _requiresDuplicateDetection!; } + set { Initialize(); _requiresDuplicateDetection!.Assign(value); } + } + private BicepValue? _requiresDuplicateDetection; /// /// A value that indicates whether the queue supports the concept of /// sessions. /// - public BicepValue RequiresSession { get => _requiresSession; set => _requiresSession.Assign(value); } - private readonly BicepValue _requiresSession; + public BicepValue RequiresSession + { + get { Initialize(); return _requiresSession!; } + set { Initialize(); _requiresSession!.Assign(value); } + } + private BicepValue? _requiresSession; /// /// Enumerates the possible values for the status of a messaging entity. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Last time a message was sent, or the last time there was a receive /// request to this queue. /// - public BicepValue AccessedOn { get => _accessedOn; } - private readonly BicepValue _accessedOn; + public BicepValue AccessedOn + { + get { Initialize(); return _accessedOn!; } + } + private BicepValue? _accessedOn; /// /// Message Count Details. /// - public BicepValue CountDetails { get => _countDetails; } - private readonly BicepValue _countDetails; + public MessageCountDetails CountDetails + { + get { Initialize(); return _countDetails!; } + } + private MessageCountDetails? _countDetails; /// /// The exact time the message was created. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// The number of messages in the queue. /// - public BicepValue MessageCount { get => _messageCount; } - private readonly BicepValue _messageCount; + public BicepValue MessageCount + { + get { Initialize(); return _messageCount!; } + } + private BicepValue? _messageCount; /// /// The size of the queue, in bytes. /// - public BicepValue SizeInBytes { get => _sizeInBytes; } - private readonly BicepValue _sizeInBytes; + public BicepValue SizeInBytes + { + get { Initialize(); return _sizeInBytes!; } + } + private BicepValue? _sizeInBytes; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The exact time the message was updated. /// - public BicepValue UpdatedOn { get => _updatedOn; } - private readonly BicepValue _updatedOn; + public BicepValue UpdatedOn + { + get { Initialize(); return _updatedOn!; } + } + private BicepValue? _updatedOn; /// /// Gets or sets a reference to the parent ServiceBusNamespace. /// - public ServiceBusNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ServiceBusNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ServiceBusQueue. @@ -209,33 +308,40 @@ public partial class ServiceBusQueue : ProvisionableResource public ServiceBusQueue(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ServiceBus/namespaces/queues", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _autoDeleteOnIdle = BicepValue.DefineProperty(this, "AutoDeleteOnIdle", ["properties", "autoDeleteOnIdle"], format: "P"); - _deadLetteringOnMessageExpiration = BicepValue.DefineProperty(this, "DeadLetteringOnMessageExpiration", ["properties", "deadLetteringOnMessageExpiration"]); - _defaultMessageTimeToLive = BicepValue.DefineProperty(this, "DefaultMessageTimeToLive", ["properties", "defaultMessageTimeToLive"], format: "P"); - _duplicateDetectionHistoryTimeWindow = BicepValue.DefineProperty(this, "DuplicateDetectionHistoryTimeWindow", ["properties", "duplicateDetectionHistoryTimeWindow"], format: "P"); - _enableBatchedOperations = BicepValue.DefineProperty(this, "EnableBatchedOperations", ["properties", "enableBatchedOperations"]); - _enableExpress = BicepValue.DefineProperty(this, "EnableExpress", ["properties", "enableExpress"]); - _enablePartitioning = BicepValue.DefineProperty(this, "EnablePartitioning", ["properties", "enablePartitioning"]); - _forwardDeadLetteredMessagesTo = BicepValue.DefineProperty(this, "ForwardDeadLetteredMessagesTo", ["properties", "forwardDeadLetteredMessagesTo"]); - _forwardTo = BicepValue.DefineProperty(this, "ForwardTo", ["properties", "forwardTo"]); - _lockDuration = BicepValue.DefineProperty(this, "LockDuration", ["properties", "lockDuration"], format: "P"); - _maxDeliveryCount = BicepValue.DefineProperty(this, "MaxDeliveryCount", ["properties", "maxDeliveryCount"]); - _maxMessageSizeInKilobytes = BicepValue.DefineProperty(this, "MaxMessageSizeInKilobytes", ["properties", "maxMessageSizeInKilobytes"]); - _maxSizeInMegabytes = BicepValue.DefineProperty(this, "MaxSizeInMegabytes", ["properties", "maxSizeInMegabytes"]); - _requiresDuplicateDetection = BicepValue.DefineProperty(this, "RequiresDuplicateDetection", ["properties", "requiresDuplicateDetection"]); - _requiresSession = BicepValue.DefineProperty(this, "RequiresSession", ["properties", "requiresSession"]); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"]); - _accessedOn = BicepValue.DefineProperty(this, "AccessedOn", ["properties", "accessedAt"], isOutput: true); - _countDetails = BicepValue.DefineProperty(this, "CountDetails", ["properties", "countDetails"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdAt"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _messageCount = BicepValue.DefineProperty(this, "MessageCount", ["properties", "messageCount"], isOutput: true); - _sizeInBytes = BicepValue.DefineProperty(this, "SizeInBytes", ["properties", "sizeInBytes"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _updatedOn = BicepValue.DefineProperty(this, "UpdatedOn", ["properties", "updatedAt"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ServiceBusQueue. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _autoDeleteOnIdle = DefineProperty("AutoDeleteOnIdle", ["properties", "autoDeleteOnIdle"], format: "P"); + _deadLetteringOnMessageExpiration = DefineProperty("DeadLetteringOnMessageExpiration", ["properties", "deadLetteringOnMessageExpiration"]); + _defaultMessageTimeToLive = DefineProperty("DefaultMessageTimeToLive", ["properties", "defaultMessageTimeToLive"], format: "P"); + _duplicateDetectionHistoryTimeWindow = DefineProperty("DuplicateDetectionHistoryTimeWindow", ["properties", "duplicateDetectionHistoryTimeWindow"], format: "P"); + _enableBatchedOperations = DefineProperty("EnableBatchedOperations", ["properties", "enableBatchedOperations"]); + _enableExpress = DefineProperty("EnableExpress", ["properties", "enableExpress"]); + _enablePartitioning = DefineProperty("EnablePartitioning", ["properties", "enablePartitioning"]); + _forwardDeadLetteredMessagesTo = DefineProperty("ForwardDeadLetteredMessagesTo", ["properties", "forwardDeadLetteredMessagesTo"]); + _forwardTo = DefineProperty("ForwardTo", ["properties", "forwardTo"]); + _lockDuration = DefineProperty("LockDuration", ["properties", "lockDuration"], format: "P"); + _maxDeliveryCount = DefineProperty("MaxDeliveryCount", ["properties", "maxDeliveryCount"]); + _maxMessageSizeInKilobytes = DefineProperty("MaxMessageSizeInKilobytes", ["properties", "maxMessageSizeInKilobytes"]); + _maxSizeInMegabytes = DefineProperty("MaxSizeInMegabytes", ["properties", "maxSizeInMegabytes"]); + _requiresDuplicateDetection = DefineProperty("RequiresDuplicateDetection", ["properties", "requiresDuplicateDetection"]); + _requiresSession = DefineProperty("RequiresSession", ["properties", "requiresSession"]); + _status = DefineProperty("Status", ["properties", "status"]); + _accessedOn = DefineProperty("AccessedOn", ["properties", "accessedAt"], isOutput: true); + _countDetails = DefineModelProperty("CountDetails", ["properties", "countDetails"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdAt"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _messageCount = DefineProperty("MessageCount", ["properties", "messageCount"], isOutput: true); + _sizeInBytes = DefineProperty("SizeInBytes", ["properties", "sizeInBytes"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _updatedOn = DefineProperty("UpdatedOn", ["properties", "updatedAt"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusQueueAuthorizationRule.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusQueueAuthorizationRule.cs index 937d9ef2b0166..36cf61df1e274 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusQueueAuthorizationRule.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusQueueAuthorizationRule.cs @@ -23,38 +23,59 @@ public partial class ServiceBusQueueAuthorizationRule : ProvisionableResource /// /// The authorization rule name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The rights associated with the rule. /// - public BicepList Rights { get => _rights; set => _rights.Assign(value); } - private readonly BicepList _rights; + public BicepList Rights + { + get { Initialize(); return _rights!; } + set { Initialize(); _rights!.Assign(value); } + } + private BicepList? _rights; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ServiceBusQueue. /// - public ServiceBusQueue? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ServiceBusQueue? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ServiceBusQueueAuthorizationRule. @@ -69,12 +90,20 @@ public partial class ServiceBusQueueAuthorizationRule : ProvisionableResource public ServiceBusQueueAuthorizationRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ServiceBus/namespaces/queues/authorizationRules", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _rights = BicepList.DefineProperty(this, "Rights", ["properties", "rights"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ServiceBusQueueAuthorizationRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _rights = DefineListProperty("Rights", ["properties", "rights"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// @@ -125,7 +154,10 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this ServiceBusQueueAuthorizationRule resource. /// /// The keys for this ServiceBusQueueAuthorizationRule resource. - public ServiceBusAccessKeys GetKeys() => - ServiceBusAccessKeys.FromExpression( - new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys"))); + public ServiceBusAccessKeys GetKeys() + { + ServiceBusAccessKeys key = new(); + ((IBicepValue)key).Expression = new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")); + return key; + } } diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusRule.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusRule.cs index 935ac080fca2d..558cdd8fe0e27 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusRule.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusRule.cs @@ -21,57 +21,90 @@ public partial class ServiceBusRule : ProvisionableResource /// /// The rule name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Represents the filter actions which are allowed for the transformation /// of a message that have been matched by a filter expression. /// - public BicepValue Action { get => _action; set => _action.Assign(value); } - private readonly BicepValue _action; + public ServiceBusFilterAction Action + { + get { Initialize(); return _action!; } + set { Initialize(); AssignOrReplace(ref _action, value); } + } + private ServiceBusFilterAction? _action; /// /// Properties of correlationFilter. /// - public BicepValue CorrelationFilter { get => _correlationFilter; set => _correlationFilter.Assign(value); } - private readonly BicepValue _correlationFilter; + public ServiceBusCorrelationFilter CorrelationFilter + { + get { Initialize(); return _correlationFilter!; } + set { Initialize(); AssignOrReplace(ref _correlationFilter, value); } + } + private ServiceBusCorrelationFilter? _correlationFilter; /// /// Filter type that is evaluated against a BrokeredMessage. /// - public BicepValue FilterType { get => _filterType; set => _filterType.Assign(value); } - private readonly BicepValue _filterType; + public BicepValue FilterType + { + get { Initialize(); return _filterType!; } + set { Initialize(); _filterType!.Assign(value); } + } + private BicepValue? _filterType; /// /// Properties of sqlFilter. /// - public BicepValue SqlFilter { get => _sqlFilter; set => _sqlFilter.Assign(value); } - private readonly BicepValue _sqlFilter; + public ServiceBusSqlFilter SqlFilter + { + get { Initialize(); return _sqlFilter!; } + set { Initialize(); AssignOrReplace(ref _sqlFilter, value); } + } + private ServiceBusSqlFilter? _sqlFilter; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ServiceBusSubscription. /// - public ServiceBusSubscription? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ServiceBusSubscription? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ServiceBusRule. @@ -86,15 +119,22 @@ public partial class ServiceBusRule : ProvisionableResource public ServiceBusRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ServiceBus/namespaces/topics/subscriptions/rules", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _action = BicepValue.DefineProperty(this, "Action", ["properties", "action"]); - _correlationFilter = BicepValue.DefineProperty(this, "CorrelationFilter", ["properties", "correlationFilter"]); - _filterType = BicepValue.DefineProperty(this, "FilterType", ["properties", "filterType"]); - _sqlFilter = BicepValue.DefineProperty(this, "SqlFilter", ["properties", "sqlFilter"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ServiceBusRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _action = DefineModelProperty("Action", ["properties", "action"]); + _correlationFilter = DefineModelProperty("CorrelationFilter", ["properties", "correlationFilter"]); + _filterType = DefineProperty("FilterType", ["properties", "filterType"]); + _sqlFilter = DefineModelProperty("SqlFilter", ["properties", "sqlFilter"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusSubscription.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusSubscription.cs index fbc9a8a9a7396..d0740c7a0d25e 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusSubscription.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusSubscription.cs @@ -21,35 +21,55 @@ public partial class ServiceBusSubscription : ProvisionableResource /// /// The subscription name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// ISO 8061 timeSpan idle interval after which the topic is automatically /// deleted. The minimum duration is 5 minutes. /// - public BicepValue AutoDeleteOnIdle { get => _autoDeleteOnIdle; set => _autoDeleteOnIdle.Assign(value); } - private readonly BicepValue _autoDeleteOnIdle; + public BicepValue AutoDeleteOnIdle + { + get { Initialize(); return _autoDeleteOnIdle!; } + set { Initialize(); _autoDeleteOnIdle!.Assign(value); } + } + private BicepValue? _autoDeleteOnIdle; /// /// Properties specific to client affine subscriptions. /// - public BicepValue ClientAffineProperties { get => _clientAffineProperties; set => _clientAffineProperties.Assign(value); } - private readonly BicepValue _clientAffineProperties; + public ServiceBusClientAffineProperties ClientAffineProperties + { + get { Initialize(); return _clientAffineProperties!; } + set { Initialize(); AssignOrReplace(ref _clientAffineProperties, value); } + } + private ServiceBusClientAffineProperties? _clientAffineProperties; /// /// Value that indicates whether a subscription has dead letter support on /// filter evaluation exceptions. /// - public BicepValue DeadLetteringOnFilterEvaluationExceptions { get => _deadLetteringOnFilterEvaluationExceptions; set => _deadLetteringOnFilterEvaluationExceptions.Assign(value); } - private readonly BicepValue _deadLetteringOnFilterEvaluationExceptions; + public BicepValue DeadLetteringOnFilterEvaluationExceptions + { + get { Initialize(); return _deadLetteringOnFilterEvaluationExceptions!; } + set { Initialize(); _deadLetteringOnFilterEvaluationExceptions!.Assign(value); } + } + private BicepValue? _deadLetteringOnFilterEvaluationExceptions; /// /// Value that indicates whether a subscription has dead letter support /// when a message expires. /// - public BicepValue DeadLetteringOnMessageExpiration { get => _deadLetteringOnMessageExpiration; set => _deadLetteringOnMessageExpiration.Assign(value); } - private readonly BicepValue _deadLetteringOnMessageExpiration; + public BicepValue DeadLetteringOnMessageExpiration + { + get { Initialize(); return _deadLetteringOnMessageExpiration!; } + set { Initialize(); _deadLetteringOnMessageExpiration!.Assign(value); } + } + private BicepValue? _deadLetteringOnMessageExpiration; /// /// ISO 8061 Default message timespan to live value. This is the duration @@ -57,119 +77,187 @@ public partial class ServiceBusSubscription : ProvisionableResource /// sent to Service Bus. This is the default value used when TimeToLive is /// not set on a message itself. /// - public BicepValue DefaultMessageTimeToLive { get => _defaultMessageTimeToLive; set => _defaultMessageTimeToLive.Assign(value); } - private readonly BicepValue _defaultMessageTimeToLive; + public BicepValue DefaultMessageTimeToLive + { + get { Initialize(); return _defaultMessageTimeToLive!; } + set { Initialize(); _defaultMessageTimeToLive!.Assign(value); } + } + private BicepValue? _defaultMessageTimeToLive; /// /// ISO 8601 timeSpan structure that defines the duration of the duplicate /// detection history. The default value is 10 minutes. /// - public BicepValue DuplicateDetectionHistoryTimeWindow { get => _duplicateDetectionHistoryTimeWindow; set => _duplicateDetectionHistoryTimeWindow.Assign(value); } - private readonly BicepValue _duplicateDetectionHistoryTimeWindow; + public BicepValue DuplicateDetectionHistoryTimeWindow + { + get { Initialize(); return _duplicateDetectionHistoryTimeWindow!; } + set { Initialize(); _duplicateDetectionHistoryTimeWindow!.Assign(value); } + } + private BicepValue? _duplicateDetectionHistoryTimeWindow; /// /// Value that indicates whether server-side batched operations are enabled. /// - public BicepValue EnableBatchedOperations { get => _enableBatchedOperations; set => _enableBatchedOperations.Assign(value); } - private readonly BicepValue _enableBatchedOperations; + public BicepValue EnableBatchedOperations + { + get { Initialize(); return _enableBatchedOperations!; } + set { Initialize(); _enableBatchedOperations!.Assign(value); } + } + private BicepValue? _enableBatchedOperations; /// /// Queue/Topic name to forward the Dead Letter message. /// - public BicepValue ForwardDeadLetteredMessagesTo { get => _forwardDeadLetteredMessagesTo; set => _forwardDeadLetteredMessagesTo.Assign(value); } - private readonly BicepValue _forwardDeadLetteredMessagesTo; + public BicepValue ForwardDeadLetteredMessagesTo + { + get { Initialize(); return _forwardDeadLetteredMessagesTo!; } + set { Initialize(); _forwardDeadLetteredMessagesTo!.Assign(value); } + } + private BicepValue? _forwardDeadLetteredMessagesTo; /// /// Queue/Topic name to forward the messages. /// - public BicepValue ForwardTo { get => _forwardTo; set => _forwardTo.Assign(value); } - private readonly BicepValue _forwardTo; + public BicepValue ForwardTo + { + get { Initialize(); return _forwardTo!; } + set { Initialize(); _forwardTo!.Assign(value); } + } + private BicepValue? _forwardTo; /// /// Value that indicates whether the subscription has an affinity to the /// client id. /// - public BicepValue IsClientAffine { get => _isClientAffine; set => _isClientAffine.Assign(value); } - private readonly BicepValue _isClientAffine; + public BicepValue IsClientAffine + { + get { Initialize(); return _isClientAffine!; } + set { Initialize(); _isClientAffine!.Assign(value); } + } + private BicepValue? _isClientAffine; /// /// ISO 8061 lock duration timespan for the subscription. The default value /// is 1 minute. /// - public BicepValue LockDuration { get => _lockDuration; set => _lockDuration.Assign(value); } - private readonly BicepValue _lockDuration; + public BicepValue LockDuration + { + get { Initialize(); return _lockDuration!; } + set { Initialize(); _lockDuration!.Assign(value); } + } + private BicepValue? _lockDuration; /// /// Number of maximum deliveries. /// - public BicepValue MaxDeliveryCount { get => _maxDeliveryCount; set => _maxDeliveryCount.Assign(value); } - private readonly BicepValue _maxDeliveryCount; + public BicepValue MaxDeliveryCount + { + get { Initialize(); return _maxDeliveryCount!; } + set { Initialize(); _maxDeliveryCount!.Assign(value); } + } + private BicepValue? _maxDeliveryCount; /// /// Value indicating if a subscription supports the concept of sessions. /// - public BicepValue RequiresSession { get => _requiresSession; set => _requiresSession.Assign(value); } - private readonly BicepValue _requiresSession; + public BicepValue RequiresSession + { + get { Initialize(); return _requiresSession!; } + set { Initialize(); _requiresSession!.Assign(value); } + } + private BicepValue? _requiresSession; /// /// Enumerates the possible values for the status of a messaging entity. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Last time there was a receive request to this subscription. /// - public BicepValue AccessedOn { get => _accessedOn; } - private readonly BicepValue _accessedOn; + public BicepValue AccessedOn + { + get { Initialize(); return _accessedOn!; } + } + private BicepValue? _accessedOn; /// /// Message count details. /// - public BicepValue CountDetails { get => _countDetails; } - private readonly BicepValue _countDetails; + public MessageCountDetails CountDetails + { + get { Initialize(); return _countDetails!; } + } + private MessageCountDetails? _countDetails; /// /// Exact time the message was created. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Number of messages. /// - public BicepValue MessageCount { get => _messageCount; } - private readonly BicepValue _messageCount; + public BicepValue MessageCount + { + get { Initialize(); return _messageCount!; } + } + private BicepValue? _messageCount; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The exact time the message was updated. /// - public BicepValue UpdatedOn { get => _updatedOn; } - private readonly BicepValue _updatedOn; + public BicepValue UpdatedOn + { + get { Initialize(); return _updatedOn!; } + } + private BicepValue? _updatedOn; /// /// Gets or sets a reference to the parent ServiceBusTopic. /// - public ServiceBusTopic? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ServiceBusTopic? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ServiceBusSubscription. @@ -184,30 +272,37 @@ public partial class ServiceBusSubscription : ProvisionableResource public ServiceBusSubscription(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ServiceBus/namespaces/topics/subscriptions", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _autoDeleteOnIdle = BicepValue.DefineProperty(this, "AutoDeleteOnIdle", ["properties", "autoDeleteOnIdle"], format: "P"); - _clientAffineProperties = BicepValue.DefineProperty(this, "ClientAffineProperties", ["properties", "clientAffineProperties"]); - _deadLetteringOnFilterEvaluationExceptions = BicepValue.DefineProperty(this, "DeadLetteringOnFilterEvaluationExceptions", ["properties", "deadLetteringOnFilterEvaluationExceptions"]); - _deadLetteringOnMessageExpiration = BicepValue.DefineProperty(this, "DeadLetteringOnMessageExpiration", ["properties", "deadLetteringOnMessageExpiration"]); - _defaultMessageTimeToLive = BicepValue.DefineProperty(this, "DefaultMessageTimeToLive", ["properties", "defaultMessageTimeToLive"], format: "P"); - _duplicateDetectionHistoryTimeWindow = BicepValue.DefineProperty(this, "DuplicateDetectionHistoryTimeWindow", ["properties", "duplicateDetectionHistoryTimeWindow"], format: "P"); - _enableBatchedOperations = BicepValue.DefineProperty(this, "EnableBatchedOperations", ["properties", "enableBatchedOperations"]); - _forwardDeadLetteredMessagesTo = BicepValue.DefineProperty(this, "ForwardDeadLetteredMessagesTo", ["properties", "forwardDeadLetteredMessagesTo"]); - _forwardTo = BicepValue.DefineProperty(this, "ForwardTo", ["properties", "forwardTo"]); - _isClientAffine = BicepValue.DefineProperty(this, "IsClientAffine", ["properties", "isClientAffine"]); - _lockDuration = BicepValue.DefineProperty(this, "LockDuration", ["properties", "lockDuration"], format: "P"); - _maxDeliveryCount = BicepValue.DefineProperty(this, "MaxDeliveryCount", ["properties", "maxDeliveryCount"]); - _requiresSession = BicepValue.DefineProperty(this, "RequiresSession", ["properties", "requiresSession"]); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"]); - _accessedOn = BicepValue.DefineProperty(this, "AccessedOn", ["properties", "accessedAt"], isOutput: true); - _countDetails = BicepValue.DefineProperty(this, "CountDetails", ["properties", "countDetails"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdAt"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _messageCount = BicepValue.DefineProperty(this, "MessageCount", ["properties", "messageCount"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _updatedOn = BicepValue.DefineProperty(this, "UpdatedOn", ["properties", "updatedAt"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ServiceBusSubscription. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _autoDeleteOnIdle = DefineProperty("AutoDeleteOnIdle", ["properties", "autoDeleteOnIdle"], format: "P"); + _clientAffineProperties = DefineModelProperty("ClientAffineProperties", ["properties", "clientAffineProperties"]); + _deadLetteringOnFilterEvaluationExceptions = DefineProperty("DeadLetteringOnFilterEvaluationExceptions", ["properties", "deadLetteringOnFilterEvaluationExceptions"]); + _deadLetteringOnMessageExpiration = DefineProperty("DeadLetteringOnMessageExpiration", ["properties", "deadLetteringOnMessageExpiration"]); + _defaultMessageTimeToLive = DefineProperty("DefaultMessageTimeToLive", ["properties", "defaultMessageTimeToLive"], format: "P"); + _duplicateDetectionHistoryTimeWindow = DefineProperty("DuplicateDetectionHistoryTimeWindow", ["properties", "duplicateDetectionHistoryTimeWindow"], format: "P"); + _enableBatchedOperations = DefineProperty("EnableBatchedOperations", ["properties", "enableBatchedOperations"]); + _forwardDeadLetteredMessagesTo = DefineProperty("ForwardDeadLetteredMessagesTo", ["properties", "forwardDeadLetteredMessagesTo"]); + _forwardTo = DefineProperty("ForwardTo", ["properties", "forwardTo"]); + _isClientAffine = DefineProperty("IsClientAffine", ["properties", "isClientAffine"]); + _lockDuration = DefineProperty("LockDuration", ["properties", "lockDuration"], format: "P"); + _maxDeliveryCount = DefineProperty("MaxDeliveryCount", ["properties", "maxDeliveryCount"]); + _requiresSession = DefineProperty("RequiresSession", ["properties", "requiresSession"]); + _status = DefineProperty("Status", ["properties", "status"]); + _accessedOn = DefineProperty("AccessedOn", ["properties", "accessedAt"], isOutput: true); + _countDetails = DefineModelProperty("CountDetails", ["properties", "countDetails"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdAt"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _messageCount = DefineProperty("MessageCount", ["properties", "messageCount"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _updatedOn = DefineProperty("UpdatedOn", ["properties", "updatedAt"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusTopic.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusTopic.cs index f84a2ff429529..590eddf5f656f 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusTopic.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusTopic.cs @@ -21,15 +21,23 @@ public partial class ServiceBusTopic : ProvisionableResource /// /// The topic name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// ISO 8601 timespan idle interval after which the topic is automatically /// deleted. The minimum duration is 5 minutes. /// - public BicepValue AutoDeleteOnIdle { get => _autoDeleteOnIdle; set => _autoDeleteOnIdle.Assign(value); } - private readonly BicepValue _autoDeleteOnIdle; + public BicepValue AutoDeleteOnIdle + { + get { Initialize(); return _autoDeleteOnIdle!; } + set { Initialize(); _autoDeleteOnIdle!.Assign(value); } + } + private BicepValue? _autoDeleteOnIdle; /// /// ISO 8601 Default message timespan to live value. This is the duration @@ -37,129 +45,200 @@ public partial class ServiceBusTopic : ProvisionableResource /// sent to Service Bus. This is the default value used when TimeToLive is /// not set on a message itself. /// - public BicepValue DefaultMessageTimeToLive { get => _defaultMessageTimeToLive; set => _defaultMessageTimeToLive.Assign(value); } - private readonly BicepValue _defaultMessageTimeToLive; + public BicepValue DefaultMessageTimeToLive + { + get { Initialize(); return _defaultMessageTimeToLive!; } + set { Initialize(); _defaultMessageTimeToLive!.Assign(value); } + } + private BicepValue? _defaultMessageTimeToLive; /// /// ISO8601 timespan structure that defines the duration of the duplicate /// detection history. The default value is 10 minutes. /// - public BicepValue DuplicateDetectionHistoryTimeWindow { get => _duplicateDetectionHistoryTimeWindow; set => _duplicateDetectionHistoryTimeWindow.Assign(value); } - private readonly BicepValue _duplicateDetectionHistoryTimeWindow; + public BicepValue DuplicateDetectionHistoryTimeWindow + { + get { Initialize(); return _duplicateDetectionHistoryTimeWindow!; } + set { Initialize(); _duplicateDetectionHistoryTimeWindow!.Assign(value); } + } + private BicepValue? _duplicateDetectionHistoryTimeWindow; /// /// Value that indicates whether server-side batched operations are enabled. /// - public BicepValue EnableBatchedOperations { get => _enableBatchedOperations; set => _enableBatchedOperations.Assign(value); } - private readonly BicepValue _enableBatchedOperations; + public BicepValue EnableBatchedOperations + { + get { Initialize(); return _enableBatchedOperations!; } + set { Initialize(); _enableBatchedOperations!.Assign(value); } + } + private BicepValue? _enableBatchedOperations; /// /// Value that indicates whether Express Entities are enabled. An express /// topic holds a message in memory temporarily before writing it to /// persistent storage. /// - public BicepValue EnableExpress { get => _enableExpress; set => _enableExpress.Assign(value); } - private readonly BicepValue _enableExpress; + public BicepValue EnableExpress + { + get { Initialize(); return _enableExpress!; } + set { Initialize(); _enableExpress!.Assign(value); } + } + private BicepValue? _enableExpress; /// /// Value that indicates whether the topic to be partitioned across /// multiple message brokers is enabled. /// - public BicepValue EnablePartitioning { get => _enablePartitioning; set => _enablePartitioning.Assign(value); } - private readonly BicepValue _enablePartitioning; + public BicepValue EnablePartitioning + { + get { Initialize(); return _enablePartitioning!; } + set { Initialize(); _enablePartitioning!.Assign(value); } + } + private BicepValue? _enablePartitioning; /// /// Maximum size (in KB) of the message payload that can be accepted by the /// topic. This property is only used in Premium today and default is 1024. /// - public BicepValue MaxMessageSizeInKilobytes { get => _maxMessageSizeInKilobytes; set => _maxMessageSizeInKilobytes.Assign(value); } - private readonly BicepValue _maxMessageSizeInKilobytes; + public BicepValue MaxMessageSizeInKilobytes + { + get { Initialize(); return _maxMessageSizeInKilobytes!; } + set { Initialize(); _maxMessageSizeInKilobytes!.Assign(value); } + } + private BicepValue? _maxMessageSizeInKilobytes; /// /// Maximum size of the topic in megabytes, which is the size of the memory /// allocated for the topic. Default is 1024. /// - public BicepValue MaxSizeInMegabytes { get => _maxSizeInMegabytes; set => _maxSizeInMegabytes.Assign(value); } - private readonly BicepValue _maxSizeInMegabytes; + public BicepValue MaxSizeInMegabytes + { + get { Initialize(); return _maxSizeInMegabytes!; } + set { Initialize(); _maxSizeInMegabytes!.Assign(value); } + } + private BicepValue? _maxSizeInMegabytes; /// /// Value indicating if this topic requires duplicate detection. /// - public BicepValue RequiresDuplicateDetection { get => _requiresDuplicateDetection; set => _requiresDuplicateDetection.Assign(value); } - private readonly BicepValue _requiresDuplicateDetection; + public BicepValue RequiresDuplicateDetection + { + get { Initialize(); return _requiresDuplicateDetection!; } + set { Initialize(); _requiresDuplicateDetection!.Assign(value); } + } + private BicepValue? _requiresDuplicateDetection; /// /// Enumerates the possible values for the status of a messaging entity. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// Value that indicates whether the topic supports ordering. /// - public BicepValue SupportOrdering { get => _supportOrdering; set => _supportOrdering.Assign(value); } - private readonly BicepValue _supportOrdering; + public BicepValue SupportOrdering + { + get { Initialize(); return _supportOrdering!; } + set { Initialize(); _supportOrdering!.Assign(value); } + } + private BicepValue? _supportOrdering; /// /// Last time the message was sent, or a request was received, for this /// topic. /// - public BicepValue AccessedOn { get => _accessedOn; } - private readonly BicepValue _accessedOn; + public BicepValue AccessedOn + { + get { Initialize(); return _accessedOn!; } + } + private BicepValue? _accessedOn; /// /// Message count details. /// - public BicepValue CountDetails { get => _countDetails; } - private readonly BicepValue _countDetails; + public MessageCountDetails CountDetails + { + get { Initialize(); return _countDetails!; } + } + private MessageCountDetails? _countDetails; /// /// Exact time the message was created. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Size of the topic, in bytes. /// - public BicepValue SizeInBytes { get => _sizeInBytes; } - private readonly BicepValue _sizeInBytes; + public BicepValue SizeInBytes + { + get { Initialize(); return _sizeInBytes!; } + } + private BicepValue? _sizeInBytes; /// /// Number of subscriptions. /// - public BicepValue SubscriptionCount { get => _subscriptionCount; } - private readonly BicepValue _subscriptionCount; + public BicepValue SubscriptionCount + { + get { Initialize(); return _subscriptionCount!; } + } + private BicepValue? _subscriptionCount; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The exact time the message was updated. /// - public BicepValue UpdatedOn { get => _updatedOn; } - private readonly BicepValue _updatedOn; + public BicepValue UpdatedOn + { + get { Initialize(); return _updatedOn!; } + } + private BicepValue? _updatedOn; /// /// Gets or sets a reference to the parent ServiceBusNamespace. /// - public ServiceBusNamespace? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ServiceBusNamespace? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ServiceBusTopic. @@ -174,28 +253,35 @@ public partial class ServiceBusTopic : ProvisionableResource public ServiceBusTopic(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ServiceBus/namespaces/topics", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _autoDeleteOnIdle = BicepValue.DefineProperty(this, "AutoDeleteOnIdle", ["properties", "autoDeleteOnIdle"], format: "P"); - _defaultMessageTimeToLive = BicepValue.DefineProperty(this, "DefaultMessageTimeToLive", ["properties", "defaultMessageTimeToLive"], format: "P"); - _duplicateDetectionHistoryTimeWindow = BicepValue.DefineProperty(this, "DuplicateDetectionHistoryTimeWindow", ["properties", "duplicateDetectionHistoryTimeWindow"], format: "P"); - _enableBatchedOperations = BicepValue.DefineProperty(this, "EnableBatchedOperations", ["properties", "enableBatchedOperations"]); - _enableExpress = BicepValue.DefineProperty(this, "EnableExpress", ["properties", "enableExpress"]); - _enablePartitioning = BicepValue.DefineProperty(this, "EnablePartitioning", ["properties", "enablePartitioning"]); - _maxMessageSizeInKilobytes = BicepValue.DefineProperty(this, "MaxMessageSizeInKilobytes", ["properties", "maxMessageSizeInKilobytes"]); - _maxSizeInMegabytes = BicepValue.DefineProperty(this, "MaxSizeInMegabytes", ["properties", "maxSizeInMegabytes"]); - _requiresDuplicateDetection = BicepValue.DefineProperty(this, "RequiresDuplicateDetection", ["properties", "requiresDuplicateDetection"]); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"]); - _supportOrdering = BicepValue.DefineProperty(this, "SupportOrdering", ["properties", "supportOrdering"]); - _accessedOn = BicepValue.DefineProperty(this, "AccessedOn", ["properties", "accessedAt"], isOutput: true); - _countDetails = BicepValue.DefineProperty(this, "CountDetails", ["properties", "countDetails"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdAt"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _sizeInBytes = BicepValue.DefineProperty(this, "SizeInBytes", ["properties", "sizeInBytes"], isOutput: true); - _subscriptionCount = BicepValue.DefineProperty(this, "SubscriptionCount", ["properties", "subscriptionCount"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _updatedOn = BicepValue.DefineProperty(this, "UpdatedOn", ["properties", "updatedAt"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ServiceBusTopic. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _autoDeleteOnIdle = DefineProperty("AutoDeleteOnIdle", ["properties", "autoDeleteOnIdle"], format: "P"); + _defaultMessageTimeToLive = DefineProperty("DefaultMessageTimeToLive", ["properties", "defaultMessageTimeToLive"], format: "P"); + _duplicateDetectionHistoryTimeWindow = DefineProperty("DuplicateDetectionHistoryTimeWindow", ["properties", "duplicateDetectionHistoryTimeWindow"], format: "P"); + _enableBatchedOperations = DefineProperty("EnableBatchedOperations", ["properties", "enableBatchedOperations"]); + _enableExpress = DefineProperty("EnableExpress", ["properties", "enableExpress"]); + _enablePartitioning = DefineProperty("EnablePartitioning", ["properties", "enablePartitioning"]); + _maxMessageSizeInKilobytes = DefineProperty("MaxMessageSizeInKilobytes", ["properties", "maxMessageSizeInKilobytes"]); + _maxSizeInMegabytes = DefineProperty("MaxSizeInMegabytes", ["properties", "maxSizeInMegabytes"]); + _requiresDuplicateDetection = DefineProperty("RequiresDuplicateDetection", ["properties", "requiresDuplicateDetection"]); + _status = DefineProperty("Status", ["properties", "status"]); + _supportOrdering = DefineProperty("SupportOrdering", ["properties", "supportOrdering"]); + _accessedOn = DefineProperty("AccessedOn", ["properties", "accessedAt"], isOutput: true); + _countDetails = DefineModelProperty("CountDetails", ["properties", "countDetails"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdAt"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _sizeInBytes = DefineProperty("SizeInBytes", ["properties", "sizeInBytes"], isOutput: true); + _subscriptionCount = DefineProperty("SubscriptionCount", ["properties", "subscriptionCount"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _updatedOn = DefineProperty("UpdatedOn", ["properties", "updatedAt"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusTopicAuthorizationRule.cs b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusTopicAuthorizationRule.cs index fe1c34fccc1b6..5b2da9c42a2f2 100644 --- a/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusTopicAuthorizationRule.cs +++ b/sdk/provisioning/Azure.Provisioning.ServiceBus/src/Generated/ServiceBusTopicAuthorizationRule.cs @@ -23,38 +23,59 @@ public partial class ServiceBusTopicAuthorizationRule : ProvisionableResource /// /// The authorization rule name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The rights associated with the rule. /// - public BicepList Rights { get => _rights; set => _rights.Assign(value); } - private readonly BicepList _rights; + public BicepList Rights + { + get { Initialize(); return _rights!; } + set { Initialize(); _rights!.Assign(value); } + } + private BicepList? _rights; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ServiceBusTopic. /// - public ServiceBusTopic? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ServiceBusTopic? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ServiceBusTopicAuthorizationRule. @@ -69,12 +90,20 @@ public partial class ServiceBusTopicAuthorizationRule : ProvisionableResource public ServiceBusTopicAuthorizationRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ServiceBus/namespaces/topics/authorizationRules", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _rights = BicepList.DefineProperty(this, "Rights", ["properties", "rights"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ServiceBusTopicAuthorizationRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _rights = DefineListProperty("Rights", ["properties", "rights"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// @@ -125,7 +154,10 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this ServiceBusTopicAuthorizationRule resource. /// /// The keys for this ServiceBusTopicAuthorizationRule resource. - public ServiceBusAccessKeys GetKeys() => - ServiceBusAccessKeys.FromExpression( - new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys"))); + public ServiceBusAccessKeys GetKeys() + { + ServiceBusAccessKeys key = new(); + ((IBicepValue)key).Expression = new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")); + return key; + } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/api/Azure.Provisioning.SignalR.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.SignalR/api/Azure.Provisioning.SignalR.netstandard2.0.cs index 184132f3930b4..526358a520579 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/api/Azure.Provisioning.SignalR.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/api/Azure.Provisioning.SignalR.netstandard2.0.cs @@ -41,7 +41,8 @@ public partial class SignalRCustomCertificate : Azure.Provisioning.Primitives.Pr public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.SignalR.SignalRService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.SignalR.SignalRCustomCertificate FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -62,7 +63,8 @@ public partial class SignalRCustomDomain : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.SignalR.SignalRService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.SignalR.SignalRCustomDomain FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -79,6 +81,7 @@ public SignalRFeature() { } public Azure.Provisioning.BicepValue Flag { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary Properties { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SignalRFeatureFlag { @@ -94,26 +97,28 @@ public SignalRKeys() { } public Azure.Provisioning.BicepValue PrimaryKey { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryConnectionString { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryKey { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.SignalR.SignalRKeys FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } } public partial class SignalRLiveTraceCategory : Azure.Provisioning.Primitives.ProvisionableConstruct { public SignalRLiveTraceCategory() { } public Azure.Provisioning.BicepValue Enabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SignalRLiveTraceConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public SignalRLiveTraceConfiguration() { } public Azure.Provisioning.BicepList Categories { get { throw null; } set { } } public Azure.Provisioning.BicepValue Enabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SignalRNetworkAcl : Azure.Provisioning.Primitives.ProvisionableConstruct { public SignalRNetworkAcl() { } public Azure.Provisioning.BicepList Allow { get { throw null; } set { } } public Azure.Provisioning.BicepList Deny { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SignalRNetworkAclAction { @@ -125,24 +130,27 @@ public partial class SignalRNetworkAcls : Azure.Provisioning.Primitives.Provisio public SignalRNetworkAcls() { } public Azure.Provisioning.BicepValue DefaultAction { get { throw null; } set { } } public Azure.Provisioning.BicepList PrivateEndpoints { get { throw null; } set { } } - public Azure.Provisioning.BicepValue PublicNetwork { get { throw null; } set { } } + public Azure.Provisioning.SignalR.SignalRNetworkAcl PublicNetwork { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SignalRPrivateEndpointAcl : Azure.Provisioning.SignalR.SignalRNetworkAcl { public SignalRPrivateEndpointAcl() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SignalRPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public SignalRPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.SignalR.SignalRPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepList GroupIds { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.SignalR.SignalRService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.SignalR.SignalRPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -157,13 +165,14 @@ public static partial class ResourceVersions public partial class SignalRPrivateEndpointConnectionData : Azure.Provisioning.Primitives.ProvisionableConstruct { public SignalRPrivateEndpointConnectionData() { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.SignalR.SignalRPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepList GroupIds { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class SignalRPrivateLinkServiceConnectionState : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -171,6 +180,7 @@ public SignalRPrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SignalRProvisioningState { @@ -197,6 +207,7 @@ public partial class SignalRResourceLogCategory : Azure.Provisioning.Primitives. public SignalRResourceLogCategory() { } public Azure.Provisioning.BicepValue Enabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SignalRResourceSku : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -206,6 +217,7 @@ public SignalRResourceSku() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Size { get { throw null; } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SignalRService : Azure.Provisioning.Primitives.ProvisionableResource { @@ -218,13 +230,13 @@ public partial class SignalRService : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue HostName { get { throw null; } } public Azure.Provisioning.BicepValue HostNamePrefix { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsClientCertEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } - public Azure.Provisioning.BicepValue LiveTraceConfiguration { get { throw null; } set { } } + public Azure.Provisioning.SignalR.SignalRLiveTraceConfiguration LiveTraceConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue NetworkACLs { get { throw null; } set { } } + public Azure.Provisioning.SignalR.SignalRNetworkAcls NetworkACLs { get { throw null; } set { } } public Azure.Provisioning.BicepList PrivateEndpointConnections { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } @@ -232,13 +244,14 @@ public partial class SignalRService : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepList ResourceLogCategories { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServerPort { get { throw null; } } public Azure.Provisioning.BicepList SharedPrivateLinkResources { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.SignalR.SignalRResourceSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepList UpstreamTemplates { get { throw null; } set { } } public Azure.Provisioning.BicepValue Version { get { throw null; } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.SignalR.SignalRBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.SignalR.SignalRBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.SignalR.SignalRService FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.SignalR.SignalRKeys GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -269,7 +282,8 @@ public partial class SignalRSharedPrivateLink : Azure.Provisioning.Primitives.Pr public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue RequestMessage { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.SignalR.SignalRSharedPrivateLink FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -291,7 +305,8 @@ public SignalRSharedPrivateLinkResourceData() { } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue RequestMessage { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum SignalRSharedPrivateLinkResourceStatus { @@ -313,6 +328,7 @@ public partial class SignalRUpstreamAuthSettings : Azure.Provisioning.Primitives public SignalRUpstreamAuthSettings() { } public Azure.Provisioning.BicepValue AuthType { get { throw null; } set { } } public Azure.Provisioning.BicepValue ManagedIdentityResource { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SignalRUpstreamAuthType { @@ -322,10 +338,11 @@ public enum SignalRUpstreamAuthType public partial class SignalRUpstreamTemplate : Azure.Provisioning.Primitives.ProvisionableConstruct { public SignalRUpstreamTemplate() { } - public Azure.Provisioning.BicepValue Auth { get { throw null; } set { } } + public Azure.Provisioning.SignalR.SignalRUpstreamAuthSettings Auth { get { throw null; } set { } } public Azure.Provisioning.BicepValue CategoryPattern { get { throw null; } set { } } public Azure.Provisioning.BicepValue EventPattern { get { throw null; } set { } } public Azure.Provisioning.BicepValue HubPattern { get { throw null; } set { } } public Azure.Provisioning.BicepValue UrlTemplate { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRFeature.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRFeature.cs index ed0c6d069bf6c..e75393b4c7da6 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRFeature.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRFeature.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -35,29 +37,49 @@ public partial class SignalRFeature : ProvisionableConstruct /// "true"/"false", to enable/disable live trace /// feature. /// - public BicepValue Flag { get => _flag; set => _flag.Assign(value); } - private readonly BicepValue _flag; + public BicepValue Flag + { + get { Initialize(); return _flag!; } + set { Initialize(); _flag!.Assign(value); } + } + private BicepValue? _flag; /// /// Value of the feature flag. See Azure SignalR service document /// https://docs.microsoft.com/azure/azure-signalr/ for allowed values. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Optional properties related to this feature. /// - public BicepDictionary Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepDictionary _properties; + public BicepDictionary Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); _properties!.Assign(value); } + } + private BicepDictionary? _properties; /// /// Creates a new SignalRFeature. /// public SignalRFeature() { - _flag = BicepValue.DefineProperty(this, "Flag", ["flag"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _properties = BicepDictionary.DefineProperty(this, "Properties", ["properties"]); + } + + /// + /// Define all the provisionable properties of SignalRFeature. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _flag = DefineProperty("Flag", ["flag"]); + _value = DefineProperty("Value", ["value"]); + _properties = DefineDictionaryProperty("Properties", ["properties"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRKeys.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRKeys.cs index 031cb956888ec..9009600ecc4c0 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRKeys.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRKeys.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Expressions; using Azure.Provisioning.Primitives; using System; @@ -18,51 +20,55 @@ public partial class SignalRKeys : ProvisionableConstruct /// /// The primary access key. /// - public BicepValue PrimaryKey { get => _primaryKey; } - private readonly BicepValue _primaryKey; + public BicepValue PrimaryKey + { + get { Initialize(); return _primaryKey!; } + } + private BicepValue? _primaryKey; /// /// The secondary access key. /// - public BicepValue SecondaryKey { get => _secondaryKey; } - private readonly BicepValue _secondaryKey; + public BicepValue SecondaryKey + { + get { Initialize(); return _secondaryKey!; } + } + private BicepValue? _secondaryKey; /// /// Connection string constructed via the primaryKey. /// - public BicepValue PrimaryConnectionString { get => _primaryConnectionString; } - private readonly BicepValue _primaryConnectionString; + public BicepValue PrimaryConnectionString + { + get { Initialize(); return _primaryConnectionString!; } + } + private BicepValue? _primaryConnectionString; /// /// Connection string constructed via the secondaryKey. /// - public BicepValue SecondaryConnectionString { get => _secondaryConnectionString; } - private readonly BicepValue _secondaryConnectionString; + public BicepValue SecondaryConnectionString + { + get { Initialize(); return _secondaryConnectionString!; } + } + private BicepValue? _secondaryConnectionString; /// /// Creates a new SignalRKeys. /// public SignalRKeys() { - _primaryKey = BicepValue.DefineProperty(this, "PrimaryKey", ["primaryKey"], isOutput: true, isSecure: true); - _secondaryKey = BicepValue.DefineProperty(this, "SecondaryKey", ["secondaryKey"], isOutput: true, isSecure: true); - _primaryConnectionString = BicepValue.DefineProperty(this, "PrimaryConnectionString", ["primaryConnectionString"], isOutput: true, isSecure: true); - _secondaryConnectionString = BicepValue.DefineProperty(this, "SecondaryConnectionString", ["secondaryConnectionString"], isOutput: true, isSecure: true); } /// - /// Creates a new SignalRKeys resource from a Bicep expression that - /// evaluates to a SignalRKeys. + /// Define all the provisionable properties of SignalRKeys. /// - /// - /// A Bicep expression that evaluates to a SignalRKeys resource. - /// - /// A SignalRKeys resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static SignalRKeys FromExpression(BicepExpression expression) + protected override void DefineProvisionableProperties() { - SignalRKeys resource = new(); - resource.OverrideWithExpression(expression); - return resource; + base.DefineProvisionableProperties(); + _primaryKey = DefineProperty("PrimaryKey", ["primaryKey"], isOutput: true, isSecure: true); + _secondaryKey = DefineProperty("SecondaryKey", ["secondaryKey"], isOutput: true, isSecure: true); + _primaryConnectionString = DefineProperty("PrimaryConnectionString", ["primaryConnectionString"], isOutput: true, isSecure: true); + _secondaryConnectionString = DefineProperty("SecondaryConnectionString", ["secondaryConnectionString"], isOutput: true, isSecure: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRLiveTraceCategory.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRLiveTraceCategory.cs index 2f9144a3e1568..6b020e4d5e8c1 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRLiveTraceCategory.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRLiveTraceCategory.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,23 +19,39 @@ public partial class SignalRLiveTraceCategory : ProvisionableConstruct /// Gets or sets the live trace category's name. Available /// values: ConnectivityLogs, MessagingLogs. Case insensitive. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Indicates whether or the live trace category is enabled. /// Available values: true, false. Case /// insensitive. /// - public BicepValue Enabled { get => _enabled; set => _enabled.Assign(value); } - private readonly BicepValue _enabled; + public BicepValue Enabled + { + get { Initialize(); return _enabled!; } + set { Initialize(); _enabled!.Assign(value); } + } + private BicepValue? _enabled; /// /// Creates a new SignalRLiveTraceCategory. /// public SignalRLiveTraceCategory() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _enabled = BicepValue.DefineProperty(this, "Enabled", ["enabled"]); + } + + /// + /// Define all the provisionable properties of SignalRLiveTraceCategory. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _enabled = DefineProperty("Enabled", ["enabled"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRLiveTraceConfiguration.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRLiveTraceConfiguration.cs index 7ce2600aa9ad7..debada8af23e3 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRLiveTraceConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRLiveTraceConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -22,21 +24,38 @@ public partial class SignalRLiveTraceConfiguration : ProvisionableConstruct /// configure in "categories". Available values: /// true, false. Case insensitive. /// - public BicepValue Enabled { get => _enabled; set => _enabled.Assign(value); } - private readonly BicepValue _enabled; + public BicepValue Enabled + { + get { Initialize(); return _enabled!; } + set { Initialize(); _enabled!.Assign(value); } + } + private BicepValue? _enabled; /// /// Gets or sets the list of category configurations. /// - public BicepList Categories { get => _categories; set => _categories.Assign(value); } - private readonly BicepList _categories; + public BicepList Categories + { + get { Initialize(); return _categories!; } + set { Initialize(); _categories!.Assign(value); } + } + private BicepList? _categories; /// /// Creates a new SignalRLiveTraceConfiguration. /// public SignalRLiveTraceConfiguration() { - _enabled = BicepValue.DefineProperty(this, "Enabled", ["enabled"]); - _categories = BicepList.DefineProperty(this, "Categories", ["categories"]); + } + + /// + /// Define all the provisionable properties of + /// SignalRLiveTraceConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _enabled = DefineProperty("Enabled", ["enabled"]); + _categories = DefineListProperty("Categories", ["categories"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRNetworkAcl.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRNetworkAcl.cs index 05b62d5a88ced..c9c27c6138706 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRNetworkAcl.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRNetworkAcl.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -17,22 +19,38 @@ public partial class SignalRNetworkAcl : ProvisionableConstruct /// Allowed request types. The value can be one or more of: /// ClientConnection, ServerConnection, RESTAPI. /// - public BicepList Allow { get => _allow; set => _allow.Assign(value); } - private readonly BicepList _allow; + public BicepList Allow + { + get { Initialize(); return _allow!; } + set { Initialize(); _allow!.Assign(value); } + } + private BicepList? _allow; /// /// Denied request types. The value can be one or more of: /// ClientConnection, ServerConnection, RESTAPI. /// - public BicepList Deny { get => _deny; set => _deny.Assign(value); } - private readonly BicepList _deny; + public BicepList Deny + { + get { Initialize(); return _deny!; } + set { Initialize(); _deny!.Assign(value); } + } + private BicepList? _deny; /// /// Creates a new SignalRNetworkAcl. /// public SignalRNetworkAcl() { - _allow = BicepList.DefineProperty(this, "Allow", ["allow"]); - _deny = BicepList.DefineProperty(this, "Deny", ["deny"]); + } + + /// + /// Define all the provisionable properties of SignalRNetworkAcl. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _allow = DefineListProperty("Allow", ["allow"]); + _deny = DefineListProperty("Deny", ["deny"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRNetworkAcls.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRNetworkAcls.cs index a1079c3c9ea8c..4210280663e75 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRNetworkAcls.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRNetworkAcls.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,48 @@ public partial class SignalRNetworkAcls : ProvisionableConstruct /// /// Azure Networking ACL Action. /// - public BicepValue DefaultAction { get => _defaultAction; set => _defaultAction.Assign(value); } - private readonly BicepValue _defaultAction; + public BicepValue DefaultAction + { + get { Initialize(); return _defaultAction!; } + set { Initialize(); _defaultAction!.Assign(value); } + } + private BicepValue? _defaultAction; /// /// Network ACL. /// - public BicepValue PublicNetwork { get => _publicNetwork; set => _publicNetwork.Assign(value); } - private readonly BicepValue _publicNetwork; + public SignalRNetworkAcl PublicNetwork + { + get { Initialize(); return _publicNetwork!; } + set { Initialize(); AssignOrReplace(ref _publicNetwork, value); } + } + private SignalRNetworkAcl? _publicNetwork; /// /// ACLs for requests from private endpoints. /// - public BicepList PrivateEndpoints { get => _privateEndpoints; set => _privateEndpoints.Assign(value); } - private readonly BicepList _privateEndpoints; + public BicepList PrivateEndpoints + { + get { Initialize(); return _privateEndpoints!; } + set { Initialize(); _privateEndpoints!.Assign(value); } + } + private BicepList? _privateEndpoints; /// /// Creates a new SignalRNetworkAcls. /// public SignalRNetworkAcls() { - _defaultAction = BicepValue.DefineProperty(this, "DefaultAction", ["defaultAction"]); - _publicNetwork = BicepValue.DefineProperty(this, "PublicNetwork", ["publicNetwork"]); - _privateEndpoints = BicepList.DefineProperty(this, "PrivateEndpoints", ["privateEndpoints"]); + } + + /// + /// Define all the provisionable properties of SignalRNetworkAcls. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _defaultAction = DefineProperty("DefaultAction", ["defaultAction"]); + _publicNetwork = DefineModelProperty("PublicNetwork", ["publicNetwork"]); + _privateEndpoints = DefineListProperty("PrivateEndpoints", ["privateEndpoints"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRPrivateEndpointAcl.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRPrivateEndpointAcl.cs index 190d410b6b168..57e1982e99a28 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRPrivateEndpointAcl.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRPrivateEndpointAcl.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,14 +18,26 @@ public partial class SignalRPrivateEndpointAcl : SignalRNetworkAcl /// /// Name of the private endpoint connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new SignalRPrivateEndpointAcl. /// public SignalRPrivateEndpointAcl() : base() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of SignalRPrivateEndpointAcl. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRPrivateEndpointConnectionData.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRPrivateEndpointConnectionData.cs index 2c1f221bda3bc..f5ae7e5173b88 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRPrivateEndpointConnectionData.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRPrivateEndpointConnectionData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -20,56 +22,88 @@ public partial class SignalRPrivateEndpointConnectionData : ProvisionableConstru /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Group IDs. /// - public BicepList GroupIds { get => _groupIds; } - private readonly BicepList _groupIds; + public BicepList GroupIds + { + get { Initialize(); return _groupIds!; } + } + private BicepList? _groupIds; /// /// Connection state of the private endpoint connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public SignalRPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private SignalRPrivateLinkServiceConnectionState? _connectionState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SignalRPrivateEndpointConnectionData. /// public SignalRPrivateEndpointConnectionData() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _groupIds = BicepList.DefineProperty(this, "GroupIds", ["properties", "groupIds"], isOutput: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// SignalRPrivateEndpointConnectionData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _groupIds = DefineListProperty("GroupIds", ["properties", "groupIds"], isOutput: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRPrivateLinkServiceConnectionState.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRPrivateLinkServiceConnectionState.cs index 3e7c665d1e7ab..f4f9e0805546a 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRPrivateLinkServiceConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRPrivateLinkServiceConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,50 @@ public partial class SignalRPrivateLinkServiceConnectionState : ProvisionableCon /// Indicates whether the connection has been Approved/Rejected/Removed by /// the owner of the service. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The reason for approval/rejection of the connection. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// A message indicating if changes on the service provider require any /// updates on the consumer. /// - public BicepValue ActionsRequired { get => _actionsRequired; set => _actionsRequired.Assign(value); } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + set { Initialize(); _actionsRequired!.Assign(value); } + } + private BicepValue? _actionsRequired; /// /// Creates a new SignalRPrivateLinkServiceConnectionState. /// public SignalRPrivateLinkServiceConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"]); + } + + /// + /// Define all the provisionable properties of + /// SignalRPrivateLinkServiceConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRResourceLogCategory.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRResourceLogCategory.cs index 0db3a4c143bfe..a48d2cf72b5f4 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRResourceLogCategory.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRResourceLogCategory.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,23 +20,39 @@ public partial class SignalRResourceLogCategory : ProvisionableConstruct /// Available values: ConnectivityLogs, MessagingLogs. /// Case insensitive. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Indicates whether or the resource log category is enabled. /// Available values: true, false. Case /// insensitive. /// - public BicepValue Enabled { get => _enabled; set => _enabled.Assign(value); } - private readonly BicepValue _enabled; + public BicepValue Enabled + { + get { Initialize(); return _enabled!; } + set { Initialize(); _enabled!.Assign(value); } + } + private BicepValue? _enabled; /// /// Creates a new SignalRResourceLogCategory. /// public SignalRResourceLogCategory() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _enabled = BicepValue.DefineProperty(this, "Enabled", ["enabled"]); + } + + /// + /// Define all the provisionable properties of SignalRResourceLogCategory. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _enabled = DefineProperty("Enabled", ["enabled"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRResourceSku.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRResourceSku.cs index 6de9098b9e040..0020477ca2f99 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRResourceSku.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRResourceSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,46 +19,72 @@ public partial class SignalRResourceSku : ProvisionableConstruct /// The name of the SKU. Required. Allowed /// values: Standard_S1, Free_F1 /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Optional tier of this particular SKU. 'Standard' or /// 'Free'. `Basic` is deprecated, use /// `Standard` instead. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// Not used. Retained for future use. /// - public BicepValue Size { get => _size; } - private readonly BicepValue _size; + public BicepValue Size + { + get { Initialize(); return _size!; } + } + private BicepValue? _size; /// /// Not used. Retained for future use. /// - public BicepValue Family { get => _family; } - private readonly BicepValue _family; + public BicepValue Family + { + get { Initialize(); return _family!; } + } + private BicepValue? _family; /// /// Optional, integer. The unit count of the resource. 1 by default. /// If present, following values are allowed: /// Free: 1 Standard: 1,2,5,10,20,50,100 /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// Creates a new SignalRResourceSku. /// public SignalRResourceSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); - _size = BicepValue.DefineProperty(this, "Size", ["size"], isOutput: true); - _family = BicepValue.DefineProperty(this, "Family", ["family"], isOutput: true); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); + } + + /// + /// Define all the provisionable properties of SignalRResourceSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"]); + _size = DefineProperty("Size", ["size"], isOutput: true); + _family = DefineProperty("Family", ["family"], isOutput: true); + _capacity = DefineProperty("Capacity", ["capacity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRSharedPrivateLinkResourceData.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRSharedPrivateLinkResourceData.cs index d84e8e172bd76..d41ee6c9417e5 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRSharedPrivateLinkResourceData.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRSharedPrivateLinkResourceData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -20,64 +22,100 @@ public partial class SignalRSharedPrivateLinkResourceData : ProvisionableConstru /// The group id from the provider of resource the shared private link /// resource is for. /// - public BicepValue GroupId { get => _groupId; set => _groupId.Assign(value); } - private readonly BicepValue _groupId; + public BicepValue GroupId + { + get { Initialize(); return _groupId!; } + set { Initialize(); _groupId!.Assign(value); } + } + private BicepValue? _groupId; /// /// The resource id of the resource the shared private link resource is for. /// - public BicepValue PrivateLinkResourceId { get => _privateLinkResourceId; set => _privateLinkResourceId.Assign(value); } - private readonly BicepValue _privateLinkResourceId; + public BicepValue PrivateLinkResourceId + { + get { Initialize(); return _privateLinkResourceId!; } + set { Initialize(); _privateLinkResourceId!.Assign(value); } + } + private BicepValue? _privateLinkResourceId; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The request message for requesting approval of the shared private link /// resource. /// - public BicepValue RequestMessage { get => _requestMessage; set => _requestMessage.Assign(value); } - private readonly BicepValue _requestMessage; + public BicepValue RequestMessage + { + get { Initialize(); return _requestMessage!; } + set { Initialize(); _requestMessage!.Assign(value); } + } + private BicepValue? _requestMessage; /// /// Status of the shared private link resource. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SignalRSharedPrivateLinkResourceData. /// public SignalRSharedPrivateLinkResourceData() { - _groupId = BicepValue.DefineProperty(this, "GroupId", ["properties", "groupId"]); - _privateLinkResourceId = BicepValue.DefineProperty(this, "PrivateLinkResourceId", ["properties", "privateLinkResourceId"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _requestMessage = BicepValue.DefineProperty(this, "RequestMessage", ["properties", "requestMessage"]); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// SignalRSharedPrivateLinkResourceData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _groupId = DefineProperty("GroupId", ["properties", "groupId"]); + _privateLinkResourceId = DefineProperty("PrivateLinkResourceId", ["properties", "privateLinkResourceId"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _requestMessage = DefineProperty("RequestMessage", ["properties", "requestMessage"]); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRUpstreamAuthSettings.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRUpstreamAuthSettings.cs index 5fe485fb36834..6ed3191890b1b 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRUpstreamAuthSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRUpstreamAuthSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,23 +18,39 @@ public partial class SignalRUpstreamAuthSettings : ProvisionableConstruct /// /// Upstream auth type enum. /// - public BicepValue AuthType { get => _authType; set => _authType.Assign(value); } - private readonly BicepValue _authType; + public BicepValue AuthType + { + get { Initialize(); return _authType!; } + set { Initialize(); _authType!.Assign(value); } + } + private BicepValue? _authType; /// /// The Resource indicating the App ID URI of the target resource. /// It also appears in the aud (audience) claim of the issued /// token. /// - public BicepValue ManagedIdentityResource { get => _managedIdentityResource; set => _managedIdentityResource.Assign(value); } - private readonly BicepValue _managedIdentityResource; + public BicepValue ManagedIdentityResource + { + get { Initialize(); return _managedIdentityResource!; } + set { Initialize(); _managedIdentityResource!.Assign(value); } + } + private BicepValue? _managedIdentityResource; /// /// Creates a new SignalRUpstreamAuthSettings. /// public SignalRUpstreamAuthSettings() { - _authType = BicepValue.DefineProperty(this, "AuthType", ["type"]); - _managedIdentityResource = BicepValue.DefineProperty(this, "ManagedIdentityResource", ["managedIdentity", "resource"]); + } + + /// + /// Define all the provisionable properties of SignalRUpstreamAuthSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _authType = DefineProperty("AuthType", ["type"]); + _managedIdentityResource = DefineProperty("ManagedIdentityResource", ["managedIdentity", "resource"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRUpstreamTemplate.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRUpstreamTemplate.cs index ab29fecb495ec..ddd9e35a69406 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRUpstreamTemplate.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/Models/SignalRUpstreamTemplate.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -25,8 +27,12 @@ public partial class SignalRUpstreamTemplate : ProvisionableConstruct /// "hub2". 3. The single hub name, for example, /// "hub1", it matches "hub1". /// - public BicepValue HubPattern { get => _hubPattern; set => _hubPattern.Assign(value); } - private readonly BicepValue _hubPattern; + public BicepValue HubPattern + { + get { Initialize(); return _hubPattern!; } + set { Initialize(); _hubPattern!.Assign(value); } + } + private BicepValue? _hubPattern; /// /// Gets or sets the matching pattern for event names. If not set, it @@ -38,8 +44,12 @@ public partial class SignalRUpstreamTemplate : ProvisionableConstruct /// single event name, for example, "connect", it matches /// "connect". /// - public BicepValue EventPattern { get => _eventPattern; set => _eventPattern.Assign(value); } - private readonly BicepValue _eventPattern; + public BicepValue EventPattern + { + get { Initialize(); return _eventPattern!; } + set { Initialize(); _eventPattern!.Assign(value); } + } + private BicepValue? _eventPattern; /// /// Gets or sets the matching pattern for category names. If not set, it @@ -52,8 +62,12 @@ public partial class SignalRUpstreamTemplate : ProvisionableConstruct /// "connections", it matches the category /// "connections". /// - public BicepValue CategoryPattern { get => _categoryPattern; set => _categoryPattern.Assign(value); } - private readonly BicepValue _categoryPattern; + public BicepValue CategoryPattern + { + get { Initialize(); return _categoryPattern!; } + set { Initialize(); _categoryPattern!.Assign(value); } + } + private BicepValue? _categoryPattern; /// /// Gets or sets the Upstream URL template. You can use 3 predefined @@ -64,25 +78,41 @@ public partial class SignalRUpstreamTemplate : ProvisionableConstruct /// `chat` connects, it will first POST to this URL: /// `http://example.com/chat/api/connect`. /// - public BicepValue UrlTemplate { get => _urlTemplate; set => _urlTemplate.Assign(value); } - private readonly BicepValue _urlTemplate; + public BicepValue UrlTemplate + { + get { Initialize(); return _urlTemplate!; } + set { Initialize(); _urlTemplate!.Assign(value); } + } + private BicepValue? _urlTemplate; /// /// Upstream auth settings. If not set, no auth is used for upstream /// messages. /// - public BicepValue Auth { get => _auth; set => _auth.Assign(value); } - private readonly BicepValue _auth; + public SignalRUpstreamAuthSettings Auth + { + get { Initialize(); return _auth!; } + set { Initialize(); AssignOrReplace(ref _auth, value); } + } + private SignalRUpstreamAuthSettings? _auth; /// /// Creates a new SignalRUpstreamTemplate. /// public SignalRUpstreamTemplate() { - _hubPattern = BicepValue.DefineProperty(this, "HubPattern", ["hubPattern"]); - _eventPattern = BicepValue.DefineProperty(this, "EventPattern", ["eventPattern"]); - _categoryPattern = BicepValue.DefineProperty(this, "CategoryPattern", ["categoryPattern"]); - _urlTemplate = BicepValue.DefineProperty(this, "UrlTemplate", ["urlTemplate"]); - _auth = BicepValue.DefineProperty(this, "Auth", ["auth"]); + } + + /// + /// Define all the provisionable properties of SignalRUpstreamTemplate. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _hubPattern = DefineProperty("HubPattern", ["hubPattern"]); + _eventPattern = DefineProperty("EventPattern", ["eventPattern"]); + _categoryPattern = DefineProperty("CategoryPattern", ["categoryPattern"]); + _urlTemplate = DefineProperty("UrlTemplate", ["urlTemplate"]); + _auth = DefineModelProperty("Auth", ["auth"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRCustomCertificate.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRCustomCertificate.cs index 5aff50a043cc0..b9e9121f3b83d 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRCustomCertificate.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRCustomCertificate.cs @@ -20,50 +20,79 @@ public partial class SignalRCustomCertificate : ProvisionableResource /// /// Custom certificate name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Base uri of the KeyVault that stores certificate. /// - public BicepValue KeyVaultBaseUri { get => _keyVaultBaseUri; set => _keyVaultBaseUri.Assign(value); } - private readonly BicepValue _keyVaultBaseUri; + public BicepValue KeyVaultBaseUri + { + get { Initialize(); return _keyVaultBaseUri!; } + set { Initialize(); _keyVaultBaseUri!.Assign(value); } + } + private BicepValue? _keyVaultBaseUri; /// /// Certificate secret name. /// - public BicepValue KeyVaultSecretName { get => _keyVaultSecretName; set => _keyVaultSecretName.Assign(value); } - private readonly BicepValue _keyVaultSecretName; + public BicepValue KeyVaultSecretName + { + get { Initialize(); return _keyVaultSecretName!; } + set { Initialize(); _keyVaultSecretName!.Assign(value); } + } + private BicepValue? _keyVaultSecretName; /// /// Certificate secret version. /// - public BicepValue KeyVaultSecretVersion { get => _keyVaultSecretVersion; set => _keyVaultSecretVersion.Assign(value); } - private readonly BicepValue _keyVaultSecretVersion; + public BicepValue KeyVaultSecretVersion + { + get { Initialize(); return _keyVaultSecretVersion!; } + set { Initialize(); _keyVaultSecretVersion!.Assign(value); } + } + private BicepValue? _keyVaultSecretVersion; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SignalRService. /// - public SignalRService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SignalRService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SignalRCustomCertificate. @@ -78,14 +107,21 @@ public partial class SignalRCustomCertificate : ProvisionableResource public SignalRCustomCertificate(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.SignalRService/signalR/customCertificates", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _keyVaultBaseUri = BicepValue.DefineProperty(this, "KeyVaultBaseUri", ["properties", "keyVaultBaseUri"], isRequired: true); - _keyVaultSecretName = BicepValue.DefineProperty(this, "KeyVaultSecretName", ["properties", "keyVaultSecretName"], isRequired: true); - _keyVaultSecretVersion = BicepValue.DefineProperty(this, "KeyVaultSecretVersion", ["properties", "keyVaultSecretVersion"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SignalRCustomCertificate. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _keyVaultBaseUri = DefineProperty("KeyVaultBaseUri", ["properties", "keyVaultBaseUri"], isRequired: true); + _keyVaultSecretName = DefineProperty("KeyVaultSecretName", ["properties", "keyVaultSecretName"], isRequired: true); + _keyVaultSecretVersion = DefineProperty("KeyVaultSecretVersion", ["properties", "keyVaultSecretVersion"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRCustomDomain.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRCustomDomain.cs index c34daffadaab8..ca98630d3a60d 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRCustomDomain.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRCustomDomain.cs @@ -20,44 +20,69 @@ public partial class SignalRCustomDomain : ProvisionableResource /// /// Custom domain name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The custom domain name. /// - public BicepValue DomainName { get => _domainName; set => _domainName.Assign(value); } - private readonly BicepValue _domainName; + public BicepValue DomainName + { + get { Initialize(); return _domainName!; } + set { Initialize(); _domainName!.Assign(value); } + } + private BicepValue? _domainName; /// /// Gets or sets Id. /// - public BicepValue CustomCertificateId { get => _customCertificateId; set => _customCertificateId.Assign(value); } - private readonly BicepValue _customCertificateId; + public BicepValue CustomCertificateId + { + get { Initialize(); return _customCertificateId!; } + set { Initialize(); _customCertificateId!.Assign(value); } + } + private BicepValue? _customCertificateId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SignalRService. /// - public SignalRService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SignalRService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SignalRCustomDomain. @@ -72,13 +97,20 @@ public partial class SignalRCustomDomain : ProvisionableResource public SignalRCustomDomain(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.SignalRService/signalR/customDomains", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _domainName = BicepValue.DefineProperty(this, "DomainName", ["properties", "domainName"], isRequired: true); - _customCertificateId = BicepValue.DefineProperty(this, "CustomCertificateId", ["properties", "customCertificate", "id"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SignalRCustomDomain. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _domainName = DefineProperty("DomainName", ["properties", "domainName"], isRequired: true); + _customCertificateId = DefineProperty("CustomCertificateId", ["properties", "customCertificate", "id"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRPrivateEndpointConnection.cs index 8633096d66aae..c6a9a7283d77d 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRPrivateEndpointConnection.cs @@ -21,50 +21,78 @@ public partial class SignalRPrivateEndpointConnection : ProvisionableResource /// /// The name of the private endpoint connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Connection state of the private endpoint connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public SignalRPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private SignalRPrivateLinkServiceConnectionState? _connectionState; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Group IDs. /// - public BicepList GroupIds { get => _groupIds; } - private readonly BicepList _groupIds; + public BicepList GroupIds + { + get { Initialize(); return _groupIds!; } + } + private BicepList? _groupIds; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SignalRService. /// - public SignalRService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SignalRService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SignalRPrivateEndpointConnection. @@ -79,14 +107,22 @@ public partial class SignalRPrivateEndpointConnection : ProvisionableResource public SignalRPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.SignalRService/signalR/privateEndpointConnections", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _groupIds = BicepList.DefineProperty(this, "GroupIds", ["properties", "groupIds"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SignalRPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _groupIds = DefineListProperty("GroupIds", ["properties", "groupIds"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRService.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRService.cs index d6d86316ca655..61bad65811d52 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRService.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRService.cs @@ -25,38 +25,58 @@ public partial class SignalRService : ProvisionableResource /// /// The name of the resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Gets or sets the list of origins that should be allowed to make /// cross-origin calls (for example: http://example.com:12345). Use /// "*" to allow all. If omitted, allow all by default. /// - public BicepList CorsAllowedOrigins { get => _corsAllowedOrigins; set => _corsAllowedOrigins.Assign(value); } - private readonly BicepList _corsAllowedOrigins; + public BicepList CorsAllowedOrigins + { + get { Initialize(); return _corsAllowedOrigins!; } + set { Initialize(); _corsAllowedOrigins!.Assign(value); } + } + private BicepList? _corsAllowedOrigins; /// /// DisableLocalAuth Enable or disable aad auth /// When set as true, connection with AuthType=aad won't /// work. /// - public BicepValue DisableAadAuth { get => _disableAadAuth; set => _disableAadAuth.Assign(value); } - private readonly BicepValue _disableAadAuth; + public BicepValue DisableAadAuth + { + get { Initialize(); return _disableAadAuth!; } + set { Initialize(); _disableAadAuth!.Assign(value); } + } + private BicepValue? _disableAadAuth; /// /// DisableLocalAuth Enable or disable local auth with /// AccessKey When set as true, connection with AccessKey=xxx /// won't work. /// - public BicepValue DisableLocalAuth { get => _disableLocalAuth; set => _disableLocalAuth.Assign(value); } - private readonly BicepValue _disableLocalAuth; + public BicepValue DisableLocalAuth + { + get { Initialize(); return _disableLocalAuth!; } + set { Initialize(); _disableLocalAuth!.Assign(value); } + } + private BicepValue? _disableLocalAuth; /// /// List of the featureFlags. FeatureFlags that @@ -67,39 +87,63 @@ public partial class SignalRService : ProvisionableResource /// But keep in mind, the default value doesn't mean /// "false". It varies in terms of different FeatureFlags. /// - public BicepList Features { get => _features; set => _features.Assign(value); } - private readonly BicepList _features; + public BicepList Features + { + get { Initialize(); return _features!; } + set { Initialize(); _features!.Assign(value); } + } + private BicepList? _features; /// /// A class represent managed identities used for request and response. /// Current supported identity types: None, SystemAssigned, UserAssigned. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Request client certificate during TLS handshake if enabled. /// - public BicepValue IsClientCertEnabled { get => _isClientCertEnabled; set => _isClientCertEnabled.Assign(value); } - private readonly BicepValue _isClientCertEnabled; + public BicepValue IsClientCertEnabled + { + get { Initialize(); return _isClientCertEnabled!; } + set { Initialize(); _isClientCertEnabled!.Assign(value); } + } + private BicepValue? _isClientCertEnabled; /// /// The kind of the service, it can be SignalR or RawWebSockets. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Live trace configuration of a Microsoft.SignalRService resource. /// - public BicepValue LiveTraceConfiguration { get => _liveTraceConfiguration; set => _liveTraceConfiguration.Assign(value); } - private readonly BicepValue _liveTraceConfiguration; + public SignalRLiveTraceConfiguration LiveTraceConfiguration + { + get { Initialize(); return _liveTraceConfiguration!; } + set { Initialize(); AssignOrReplace(ref _liveTraceConfiguration, value); } + } + private SignalRLiveTraceConfiguration? _liveTraceConfiguration; /// /// Network ACLs for the resource. /// - public BicepValue NetworkACLs { get => _networkACLs; set => _networkACLs.Assign(value); } - private readonly BicepValue _networkACLs; + public SignalRNetworkAcls NetworkACLs + { + get { Initialize(); return _networkACLs!; } + set { Initialize(); AssignOrReplace(ref _networkACLs, value); } + } + private SignalRNetworkAcls? _networkACLs; /// /// Enable or disable public network access. Default to @@ -107,102 +151,155 @@ public partial class SignalRService : ProvisionableResource /// still apply. When it's Disabled, public network /// access is always disabled no matter what you set in network ACLs. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Gets or sets the list of category configurations. /// - public BicepList ResourceLogCategories { get => _resourceLogCategories; set => _resourceLogCategories.Assign(value); } - private readonly BicepList _resourceLogCategories; + public BicepList ResourceLogCategories + { + get { Initialize(); return _resourceLogCategories!; } + set { Initialize(); _resourceLogCategories!.Assign(value); } + } + private BicepList? _resourceLogCategories; /// /// The billing information of the resource. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public SignalRResourceSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private SignalRResourceSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets or sets the list of Upstream URL templates. Order matters, and the /// first matching template takes effects. /// - public BicepList UpstreamTemplates { get => _upstreamTemplates; set => _upstreamTemplates.Assign(value); } - private readonly BicepList _upstreamTemplates; + public BicepList UpstreamTemplates + { + get { Initialize(); return _upstreamTemplates!; } + set { Initialize(); _upstreamTemplates!.Assign(value); } + } + private BicepList? _upstreamTemplates; /// /// The publicly accessible IP of the resource. /// - public BicepValue ExternalIP { get => _externalIP; } - private readonly BicepValue _externalIP; + public BicepValue ExternalIP + { + get { Initialize(); return _externalIP!; } + } + private BicepValue? _externalIP; /// /// FQDN of the service instance. /// - public BicepValue HostName { get => _hostName; } - private readonly BicepValue _hostName; + public BicepValue HostName + { + get { Initialize(); return _hostName!; } + } + private BicepValue? _hostName; /// /// Deprecated. /// - public BicepValue HostNamePrefix { get => _hostNamePrefix; } - private readonly BicepValue _hostNamePrefix; + public BicepValue HostNamePrefix + { + get { Initialize(); return _hostNamePrefix!; } + } + private BicepValue? _hostNamePrefix; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Private endpoint connections to the resource. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The publicly accessible port of the resource which is designed for /// browser/client side usage. /// - public BicepValue PublicPort { get => _publicPort; } - private readonly BicepValue _publicPort; + public BicepValue PublicPort + { + get { Initialize(); return _publicPort!; } + } + private BicepValue? _publicPort; /// /// The publicly accessible port of the resource which is designed for /// customer server side usage. /// - public BicepValue ServerPort { get => _serverPort; } - private readonly BicepValue _serverPort; + public BicepValue ServerPort + { + get { Initialize(); return _serverPort!; } + } + private BicepValue? _serverPort; /// /// The list of shared private link resources. /// - public BicepList SharedPrivateLinkResources { get => _sharedPrivateLinkResources; } - private readonly BicepList _sharedPrivateLinkResources; + public BicepList SharedPrivateLinkResources + { + get { Initialize(); return _sharedPrivateLinkResources!; } + } + private BicepList? _sharedPrivateLinkResources; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Version of the resource. Probably you need the same or higher version /// of client SDKs. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// Creates a new SignalRService. @@ -217,33 +314,40 @@ public partial class SignalRService : ProvisionableResource public SignalRService(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.SignalRService/signalR", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _corsAllowedOrigins = BicepList.DefineProperty(this, "CorsAllowedOrigins", ["properties", "cors", "allowedOrigins"]); - _disableAadAuth = BicepValue.DefineProperty(this, "DisableAadAuth", ["properties", "disableAadAuth"]); - _disableLocalAuth = BicepValue.DefineProperty(this, "DisableLocalAuth", ["properties", "disableLocalAuth"]); - _features = BicepList.DefineProperty(this, "Features", ["properties", "features"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _isClientCertEnabled = BicepValue.DefineProperty(this, "IsClientCertEnabled", ["properties", "tls", "clientCertEnabled"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _liveTraceConfiguration = BicepValue.DefineProperty(this, "LiveTraceConfiguration", ["properties", "liveTraceConfiguration"]); - _networkACLs = BicepValue.DefineProperty(this, "NetworkACLs", ["properties", "networkACLs"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _resourceLogCategories = BicepList.DefineProperty(this, "ResourceLogCategories", ["properties", "resourceLogConfiguration", "categories"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _upstreamTemplates = BicepList.DefineProperty(this, "UpstreamTemplates", ["properties", "upstream", "templates"]); - _externalIP = BicepValue.DefineProperty(this, "ExternalIP", ["properties", "externalIP"], isOutput: true); - _hostName = BicepValue.DefineProperty(this, "HostName", ["properties", "hostName"], isOutput: true); - _hostNamePrefix = BicepValue.DefineProperty(this, "HostNamePrefix", ["properties", "hostNamePrefix"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _publicPort = BicepValue.DefineProperty(this, "PublicPort", ["properties", "publicPort"], isOutput: true); - _serverPort = BicepValue.DefineProperty(this, "ServerPort", ["properties", "serverPort"], isOutput: true); - _sharedPrivateLinkResources = BicepList.DefineProperty(this, "SharedPrivateLinkResources", ["properties", "sharedPrivateLinkResources"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SignalRService. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _corsAllowedOrigins = DefineListProperty("CorsAllowedOrigins", ["properties", "cors", "allowedOrigins"]); + _disableAadAuth = DefineProperty("DisableAadAuth", ["properties", "disableAadAuth"]); + _disableLocalAuth = DefineProperty("DisableLocalAuth", ["properties", "disableLocalAuth"]); + _features = DefineListProperty("Features", ["properties", "features"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _isClientCertEnabled = DefineProperty("IsClientCertEnabled", ["properties", "tls", "clientCertEnabled"]); + _kind = DefineProperty("Kind", ["kind"]); + _liveTraceConfiguration = DefineModelProperty("LiveTraceConfiguration", ["properties", "liveTraceConfiguration"]); + _networkACLs = DefineModelProperty("NetworkACLs", ["properties", "networkACLs"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _resourceLogCategories = DefineListProperty("ResourceLogCategories", ["properties", "resourceLogConfiguration", "categories"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _upstreamTemplates = DefineListProperty("UpstreamTemplates", ["properties", "upstream", "templates"]); + _externalIP = DefineProperty("ExternalIP", ["properties", "externalIP"], isOutput: true); + _hostName = DefineProperty("HostName", ["properties", "hostName"], isOutput: true); + _hostNamePrefix = DefineProperty("HostNamePrefix", ["properties", "hostNamePrefix"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _publicPort = DefineProperty("PublicPort", ["properties", "publicPort"], isOutput: true); + _serverPort = DefineProperty("ServerPort", ["properties", "serverPort"], isOutput: true); + _sharedPrivateLinkResources = DefineListProperty("SharedPrivateLinkResources", ["properties", "sharedPrivateLinkResources"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _version = DefineProperty("Version", ["properties", "version"], isOutput: true); } /// @@ -308,9 +412,12 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this SignalRService resource. /// /// The keys for this SignalRService resource. - public SignalRKeys GetKeys() => - SignalRKeys.FromExpression( - new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys"))); + public SignalRKeys GetKeys() + { + SignalRKeys key = new(); + ((IBicepValue)key).Expression = new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")); + return key; + } /// /// Creates a role assignment for a user-assigned identity that grants diff --git a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRSharedPrivateLink.cs b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRSharedPrivateLink.cs index d1caa4723a58f..c85bef490271c 100644 --- a/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRSharedPrivateLink.cs +++ b/sdk/provisioning/Azure.Provisioning.SignalR/src/Generated/SignalRSharedPrivateLink.cs @@ -20,58 +20,90 @@ public partial class SignalRSharedPrivateLink : ProvisionableResource /// /// The name of the shared private link resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The group id from the provider of resource the shared private link /// resource is for. /// - public BicepValue GroupId { get => _groupId; set => _groupId.Assign(value); } - private readonly BicepValue _groupId; + public BicepValue GroupId + { + get { Initialize(); return _groupId!; } + set { Initialize(); _groupId!.Assign(value); } + } + private BicepValue? _groupId; /// /// The resource id of the resource the shared private link resource is for. /// - public BicepValue PrivateLinkResourceId { get => _privateLinkResourceId; set => _privateLinkResourceId.Assign(value); } - private readonly BicepValue _privateLinkResourceId; + public BicepValue PrivateLinkResourceId + { + get { Initialize(); return _privateLinkResourceId!; } + set { Initialize(); _privateLinkResourceId!.Assign(value); } + } + private BicepValue? _privateLinkResourceId; /// /// The request message for requesting approval of the shared private link /// resource. /// - public BicepValue RequestMessage { get => _requestMessage; set => _requestMessage.Assign(value); } - private readonly BicepValue _requestMessage; + public BicepValue RequestMessage + { + get { Initialize(); return _requestMessage!; } + set { Initialize(); _requestMessage!.Assign(value); } + } + private BicepValue? _requestMessage; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Status of the shared private link resource. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SignalRService. /// - public SignalRService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SignalRService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SignalRSharedPrivateLink. @@ -86,15 +118,22 @@ public partial class SignalRSharedPrivateLink : ProvisionableResource public SignalRSharedPrivateLink(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.SignalRService/signalR/sharedPrivateLinkResources", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _groupId = BicepValue.DefineProperty(this, "GroupId", ["properties", "groupId"]); - _privateLinkResourceId = BicepValue.DefineProperty(this, "PrivateLinkResourceId", ["properties", "privateLinkResourceId"]); - _requestMessage = BicepValue.DefineProperty(this, "RequestMessage", ["properties", "requestMessage"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SignalRSharedPrivateLink. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _groupId = DefineProperty("GroupId", ["properties", "groupId"]); + _privateLinkResourceId = DefineProperty("PrivateLinkResourceId", ["properties", "privateLinkResourceId"]); + _requestMessage = DefineProperty("RequestMessage", ["properties", "requestMessage"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/api/Azure.Provisioning.Sql.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.Sql/api/Azure.Provisioning.Sql.netstandard2.0.cs index 913423a1a8563..c1257aea82af2 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/api/Azure.Provisioning.Sql.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/api/Azure.Provisioning.Sql.netstandard2.0.cs @@ -22,7 +22,8 @@ public partial class BackupShortTermRetentionPolicy : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlDatabase? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue RetentionDays { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.BackupShortTermRetentionPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -55,6 +56,7 @@ public partial class CreateDatabaseRestorePointDefinition : Azure.Provisioning.P { public CreateDatabaseRestorePointDefinition() { } public Azure.Provisioning.BicepValue RestorePointLabel { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class DatabaseAdvancedThreatProtection : Azure.Provisioning.Primitives.ProvisionableResource { @@ -64,7 +66,8 @@ public partial class DatabaseAdvancedThreatProtection : Azure.Provisioning.Primi public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlDatabase? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.DatabaseAdvancedThreatProtection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -77,6 +80,7 @@ public DatabaseIdentity() { } public Azure.Provisioning.BicepValue IdentityType { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } public Azure.Provisioning.BicepDictionary UserAssignedIdentities { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum DatabaseIdentityType { @@ -97,6 +101,7 @@ public partial class DatabaseVulnerabilityAssessmentRuleBaselineItem : Azure.Pro { public DatabaseVulnerabilityAssessmentRuleBaselineItem() { } public Azure.Provisioning.BicepList Result { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class DataMaskingPolicy : Azure.Provisioning.Primitives.ProvisionableResource { @@ -110,7 +115,8 @@ public partial class DataMaskingPolicy : Azure.Provisioning.Primitives.Provision public Azure.Provisioning.BicepValue MaskingLevel { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlDatabase? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.DataMaskingPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -138,9 +144,10 @@ public partial class DistributedAvailabilityGroup : Azure.Provisioning.Primitive public Azure.Provisioning.BicepValue SecondaryAvailabilityGroupName { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceEndpoint { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceReplicaId { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TargetDatabase { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetReplicaId { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.DistributedAvailabilityGroup FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -173,12 +180,13 @@ public partial class ElasticPool : Azure.Provisioning.Primitives.ProvisionableRe public Azure.Provisioning.BicepValue MinCapacity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue PerDatabaseSettings { get { throw null; } set { } } + public Azure.Provisioning.Sql.ElasticPoolPerDatabaseSettings PerDatabaseSettings { get { throw null; } set { } } public Azure.Provisioning.BicepValue PreferredEnclaveType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.Sql.SqlSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ElasticPool FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -200,6 +208,7 @@ public partial class ElasticPoolPerDatabaseSettings : Azure.Provisioning.Primiti public ElasticPoolPerDatabaseSettings() { } public Azure.Provisioning.BicepValue MaxCapacity { get { throw null; } set { } } public Azure.Provisioning.BicepValue MinCapacity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ElasticPoolState { @@ -219,9 +228,10 @@ public partial class EncryptionProtector : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.BicepValue ServerKeyName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServerKeyType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Subregion { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Thumbprint { get { throw null; } } public Azure.Provisioning.BicepValue Uri { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.EncryptionProtector FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -250,7 +260,8 @@ public partial class ExtendedDatabaseBlobAuditingPolicy : Azure.Provisioning.Pri public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountSubscriptionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageEndpoint { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ExtendedDatabaseBlobAuditingPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -278,7 +289,8 @@ public partial class ExtendedServerBlobAuditingPolicy : Azure.Provisioning.Primi public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountSubscriptionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageEndpoint { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ExtendedServerBlobAuditingPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -299,12 +311,13 @@ public partial class FailoverGroup : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList PartnerServers { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ReadOnlyEndpoint { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ReadWriteEndpoint { get { throw null; } set { } } + public Azure.Provisioning.Sql.FailoverGroupReadOnlyEndpoint ReadOnlyEndpoint { get { throw null; } set { } } + public Azure.Provisioning.Sql.FailoverGroupReadWriteEndpoint ReadWriteEndpoint { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReplicationRole { get { throw null; } } public Azure.Provisioning.BicepValue ReplicationState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.FailoverGroup FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -318,12 +331,14 @@ public partial class FailoverGroupReadOnlyEndpoint : Azure.Provisioning.Primitiv public FailoverGroupReadOnlyEndpoint() { } public Azure.Provisioning.BicepValue FailoverPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetServer { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class FailoverGroupReadWriteEndpoint : Azure.Provisioning.Primitives.ProvisionableConstruct { public FailoverGroupReadWriteEndpoint() { } public Azure.Provisioning.BicepValue FailoverPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue FailoverWithDataLossGracePeriodMinutes { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum FailoverGroupReplicationRole { @@ -345,7 +360,8 @@ public partial class GeoBackupPolicy : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.Sql.SqlDatabase? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageType { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.GeoBackupPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -376,11 +392,12 @@ public partial class InstanceFailoverGroup : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepList PartnerRegions { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReadOnlyEndpointFailoverPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ReadWriteEndpoint { get { throw null; } set { } } + public Azure.Provisioning.Sql.InstanceFailoverGroupReadWriteEndpoint ReadWriteEndpoint { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReplicationRole { get { throw null; } } public Azure.Provisioning.BicepValue ReplicationState { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.InstanceFailoverGroup FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -392,6 +409,7 @@ public partial class InstanceFailoverGroupReadWriteEndpoint : Azure.Provisioning public InstanceFailoverGroupReadWriteEndpoint() { } public Azure.Provisioning.BicepValue FailoverPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue FailoverWithDataLossGracePeriodMinutes { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum InstanceFailoverGroupReplicationRole { @@ -407,11 +425,12 @@ public partial class InstancePool : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaintenanceConfigurationId { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.Sql.SqlSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue SubnetId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue VCores { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.InstancePool FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -431,6 +450,7 @@ public partial class IPv6FirewallRule : Azure.Provisioning.Primitives.Provisiona public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartIPv6Address { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.IPv6FirewallRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -474,6 +494,7 @@ public JobExecutionTarget() { } public Azure.Provisioning.BicepValue DatabaseName { get { throw null; } } public Azure.Provisioning.BicepValue ServerName { get { throw null; } } public Azure.Provisioning.BicepValue TargetType { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class JobStepAction : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -481,6 +502,7 @@ public JobStepAction() { } public Azure.Provisioning.BicepValue ActionType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Source { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum JobStepActionSource { @@ -498,6 +520,7 @@ public JobStepExecutionOptions() { } public Azure.Provisioning.BicepValue RetryAttempts { get { throw null; } set { } } public Azure.Provisioning.BicepValue RetryIntervalBackoffMultiplier { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeoutSeconds { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class JobStepOutput : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -510,6 +533,7 @@ public JobStepOutput() { } public Azure.Provisioning.BicepValue ServerName { get { throw null; } set { } } public Azure.Provisioning.BicepValue SubscriptionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue TableName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum JobStepOutputType { @@ -525,6 +549,7 @@ public JobTarget() { } public Azure.Provisioning.BicepValue ServerName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ShardMapName { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum JobTargetGroupMembershipType { @@ -547,7 +572,8 @@ public partial class LedgerDigestUpload : Azure.Provisioning.Primitives.Provisio public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlDatabase? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.LedgerDigestUpload FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -571,7 +597,8 @@ public partial class LogicalDatabaseTransparentDataEncryption : Azure.Provisioni public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlDatabase? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.LogicalDatabaseTransparentDataEncryption FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -588,10 +615,11 @@ public partial class LongTermRetentionPolicy : Azure.Provisioning.Primitives.Pro public Azure.Provisioning.BicepValue MonthlyRetention { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlDatabase? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue WeeklyRetention { get { throw null; } set { } } public Azure.Provisioning.BicepValue WeekOfYear { get { throw null; } set { } } public Azure.Provisioning.BicepValue YearlyRetention { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.LongTermRetentionPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -610,7 +638,8 @@ public partial class ManagedBackupShortTermRetentionPolicy : Azure.Provisioning. public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.ManagedDatabase? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue RetentionDays { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedBackupShortTermRetentionPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -646,8 +675,9 @@ public partial class ManagedDatabase : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.BicepValue StorageContainerIdentity { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageContainerSasToken { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageContainerUri { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedDatabase FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -662,7 +692,8 @@ public partial class ManagedDatabaseAdvancedThreatProtection : Azure.Provisionin public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.ManagedDatabase? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedDatabaseAdvancedThreatProtection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -691,7 +722,8 @@ public partial class ManagedDatabaseSecurityAlertPolicy : Azure.Provisioning.Pri public Azure.Provisioning.BicepValue State { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageEndpoint { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedDatabaseSecurityAlertPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -712,8 +744,9 @@ public partial class ManagedDatabaseSensitivityLabel : Azure.Provisioning.Primit public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue Rank { get { throw null; } set { } } public Azure.Provisioning.BicepValue SchemaName { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TableName { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedDatabaseSensitivityLabel FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public enum ManagedDatabaseStatus @@ -739,11 +772,12 @@ public partial class ManagedDatabaseVulnerabilityAssessment : Azure.Provisioning public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.ManagedDatabase? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RecurringScans { get { throw null; } set { } } + public Azure.Provisioning.Sql.VulnerabilityAssessmentRecurringScansProperties RecurringScans { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageContainerPath { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageContainerSasKey { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedDatabaseVulnerabilityAssessment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -756,7 +790,8 @@ public partial class ManagedDatabaseVulnerabilityAssessmentRuleBaseline : Azure. public Azure.Provisioning.BicepList BaselineResults { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedDatabaseVulnerabilityAssessmentRuleBaseline FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public partial class ManagedInstance : Azure.Provisioning.Primitives.ProvisionableResource @@ -764,13 +799,13 @@ public partial class ManagedInstance : Azure.Provisioning.Primitives.Provisionab public ManagedInstance(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue AdministratorLogin { get { throw null; } set { } } public Azure.Provisioning.BicepValue AdministratorLoginPassword { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Administrators { get { throw null; } set { } } + public Azure.Provisioning.Sql.ManagedInstanceExternalAdministrator Administrators { get { throw null; } set { } } public Azure.Provisioning.BicepValue Collation { get { throw null; } set { } } public Azure.Provisioning.BicepValue CurrentBackupStorageRedundancy { get { throw null; } } public Azure.Provisioning.BicepValue DnsZone { get { throw null; } } public Azure.Provisioning.BicepValue FullyQualifiedDomainName { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue InstancePoolId { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsPublicDataEndpointEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsZoneRedundant { get { throw null; } set { } } @@ -788,16 +823,17 @@ public partial class ManagedInstance : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.BicepValue ProxyOverride { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequestedBackupStorageRedundancy { get { throw null; } set { } } public Azure.Provisioning.BicepValue RestorePointInTime { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ServicePrincipal { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.Sql.SqlServicePrincipal ServicePrincipal { get { throw null; } set { } } + public Azure.Provisioning.Sql.SqlSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceManagedInstanceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } public Azure.Provisioning.BicepValue StorageSizeInGB { get { throw null; } set { } } public Azure.Provisioning.BicepValue SubnetId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimezoneId { get { throw null; } set { } } public Azure.Provisioning.BicepValue VCores { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedInstance FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -815,8 +851,9 @@ public partial class ManagedInstanceAdministrator : Azure.Provisioning.Primitive public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.ManagedInstance? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Sid { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedInstanceAdministrator FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -835,7 +872,8 @@ public partial class ManagedInstanceAdvancedThreatProtection : Azure.Provisionin public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.ManagedInstance? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedInstanceAdvancedThreatProtection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -849,7 +887,8 @@ public partial class ManagedInstanceAzureADOnlyAuthentication : Azure.Provisioni public Azure.Provisioning.BicepValue IsAzureADOnlyAuthenticationEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.ManagedInstance? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedInstanceAzureADOnlyAuthentication FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -866,8 +905,9 @@ public partial class ManagedInstanceDtc : Azure.Provisioning.Primitives.Provisio public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.ManagedInstance? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SecuritySettings { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Sql.ManagedInstanceDtcSecuritySettings SecuritySettings { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedInstanceDtc FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -879,9 +919,10 @@ public partial class ManagedInstanceDtcSecuritySettings : Azure.Provisioning.Pri public ManagedInstanceDtcSecuritySettings() { } public Azure.Provisioning.BicepValue IsXATransactionsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue SnaLu6Point2TransactionsEnabled { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TransactionManagerCommunicationSettings { get { throw null; } set { } } + public Azure.Provisioning.Sql.ManagedInstanceDtcTransactionManagerCommunicationSettings TransactionManagerCommunicationSettings { get { throw null; } set { } } public Azure.Provisioning.BicepValue XATransactionsDefaultTimeoutInSeconds { get { throw null; } set { } } public Azure.Provisioning.BicepValue XATransactionsMaximumTimeoutInSeconds { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedInstanceDtcTransactionManagerCommunicationSettings : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -889,6 +930,7 @@ public ManagedInstanceDtcTransactionManagerCommunicationSettings() { } public Azure.Provisioning.BicepValue AllowInboundEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue AllowOutboundEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Authentication { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedInstanceEncryptionProtector : Azure.Provisioning.Primitives.ProvisionableResource { @@ -900,9 +942,10 @@ public partial class ManagedInstanceEncryptionProtector : Azure.Provisioning.Pri public Azure.Provisioning.Sql.ManagedInstance? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServerKeyName { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServerKeyType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Thumbprint { get { throw null; } } public Azure.Provisioning.BicepValue Uri { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedInstanceEncryptionProtector FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -918,6 +961,7 @@ public ManagedInstanceExternalAdministrator() { } public Azure.Provisioning.BicepValue PrincipalType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Sid { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedInstanceKey : Azure.Provisioning.Primitives.ProvisionableResource { @@ -929,9 +973,10 @@ public partial class ManagedInstanceKey : Azure.Provisioning.Primitives.Provisio public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.ManagedInstance? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServerKeyType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Thumbprint { get { throw null; } } public Azure.Provisioning.BicepValue Uri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedInstanceKey FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -950,10 +995,11 @@ public partial class ManagedInstanceLongTermRetentionPolicy : Azure.Provisioning public Azure.Provisioning.BicepValue MonthlyRetention { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.ManagedDatabase? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue WeeklyRetention { get { throw null; } set { } } public Azure.Provisioning.BicepValue WeekOfYear { get { throw null; } set { } } public Azure.Provisioning.BicepValue YearlyRetention { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedInstanceLongTermRetentionPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -970,23 +1016,26 @@ public partial class ManagedInstancePairInfo : Azure.Provisioning.Primitives.Pro public ManagedInstancePairInfo() { } public Azure.Provisioning.BicepValue PartnerManagedInstanceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrimaryManagedInstanceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedInstancePecProperty : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedInstancePecProperty() { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } } + public Azure.Provisioning.Sql.ManagedInstancePrivateEndpointConnectionProperties Properties { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedInstancePrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public ManagedInstancePrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.Sql.ManagedInstancePrivateLinkServiceConnectionStateProperty ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.ManagedInstance? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedInstancePrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -997,8 +1046,9 @@ public partial class ManagedInstancePrivateEndpointConnectionProperties : Azure. { public ManagedInstancePrivateEndpointConnectionProperties() { } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } - public Azure.Provisioning.BicepValue PrivateLinkServiceConnectionState { get { throw null; } } + public Azure.Provisioning.Sql.ManagedInstancePrivateLinkServiceConnectionStateProperty PrivateLinkServiceConnectionState { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedInstancePrivateLinkServiceConnectionStateProperty : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1006,6 +1056,7 @@ public ManagedInstancePrivateLinkServiceConnectionStateProperty() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ManagedInstancePropertiesProvisioningState { @@ -1039,7 +1090,8 @@ public partial class ManagedInstanceServerConfigurationOption : Azure.Provisioni public Azure.Provisioning.Sql.ManagedInstance? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue ServerConfigurationOptionValue { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedInstanceServerConfigurationOption FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1059,8 +1111,9 @@ public partial class ManagedInstanceServerTrustCertificate : Azure.Provisioning. public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.ManagedInstance? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicBlob { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Thumbprint { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedInstanceServerTrustCertificate FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1077,8 +1130,9 @@ public partial class ManagedInstanceStartStopSchedule : Azure.Provisioning.Primi public Azure.Provisioning.BicepValue NextRunAction { get { throw null; } } public Azure.Provisioning.Sql.ManagedInstance? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList ScheduleList { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TimeZoneId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedInstanceStartStopSchedule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1096,11 +1150,12 @@ public partial class ManagedInstanceVulnerabilityAssessment : Azure.Provisioning public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.ManagedInstance? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RecurringScans { get { throw null; } set { } } + public Azure.Provisioning.Sql.VulnerabilityAssessmentRecurringScansProperties RecurringScans { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageContainerPath { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageContainerSasKey { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedInstanceVulnerabilityAssessment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1115,7 +1170,8 @@ public partial class ManagedLedgerDigestUpload : Azure.Provisioning.Primitives.P public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.ManagedDatabase? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedLedgerDigestUpload FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1138,7 +1194,8 @@ public partial class ManagedRestorableDroppedDbBackupShortTermRetentionPolicy : public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue RetentionDays { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedRestorableDroppedDbBackupShortTermRetentionPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public enum ManagedServerCreateMode @@ -1155,7 +1212,8 @@ public partial class ManagedServerDnsAlias : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.ManagedInstance? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicAzureDnsRecord { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedServerDnsAlias FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1176,7 +1234,8 @@ public partial class ManagedServerSecurityAlertPolicy : Azure.Provisioning.Primi public Azure.Provisioning.BicepValue State { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageEndpoint { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedServerSecurityAlertPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1195,7 +1254,8 @@ public partial class ManagedTransparentDataEncryption : Azure.Provisioning.Primi public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.ManagedDatabase? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ManagedTransparentDataEncryption FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1209,7 +1269,8 @@ public partial class OutboundFirewallRule : Azure.Provisioning.Primitives.Provis public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.OutboundFirewallRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1223,6 +1284,7 @@ public partial class PartnerRegionInfo : Azure.Provisioning.Primitives.Provision public PartnerRegionInfo() { } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue ReplicationRole { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class PartnerServerInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1230,6 +1292,7 @@ public PartnerServerInfo() { } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue ReplicationRole { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ReadOnlyEndpointFailoverPolicy { @@ -1287,7 +1350,8 @@ public partial class ServerAdvancedThreatProtection : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.ServerAdvancedThreatProtection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1309,6 +1373,7 @@ public ServerExternalAdministrator() { } public Azure.Provisioning.BicepValue PrincipalType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Sid { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ServerNetworkAccessFlag { @@ -1319,10 +1384,11 @@ public enum ServerNetworkAccessFlag public partial class ServerPrivateEndpointConnectionProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { public ServerPrivateEndpointConnectionProperties() { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } } + public Azure.Provisioning.Sql.SqlPrivateLinkServiceConnectionStateProperty ConnectionState { get { throw null; } } public Azure.Provisioning.BicepList GroupIds { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ServerTrustGroupPropertiesTrustScopesItem { @@ -1333,6 +1399,7 @@ public partial class ServerTrustGroupServerInfo : Azure.Provisioning.Primitives. { public ServerTrustGroupServerInfo() { } public Azure.Provisioning.BicepValue ServerId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ServerWorkspaceFeature { @@ -1359,7 +1426,8 @@ public partial class SqlAgentConfiguration : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.ManagedInstance? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlAgentConfiguration FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1434,7 +1502,7 @@ public partial class SqlDatabase : Azure.Provisioning.Primitives.ProvisionableRe public Azure.Provisioning.BicepValue CreateMode { get { throw null; } set { } } public Azure.Provisioning.BicepValue CurrentBackupStorageRedundancy { get { throw null; } } public Azure.Provisioning.BicepValue CurrentServiceObjectiveName { get { throw null; } } - public Azure.Provisioning.BicepValue CurrentSku { get { throw null; } } + public Azure.Provisioning.Sql.SqlSku CurrentSku { get { throw null; } } public Azure.Provisioning.BicepValue DatabaseId { get { throw null; } } public Azure.Provisioning.BicepValue DefaultSecondaryLocation { get { throw null; } } public Azure.Provisioning.BicepValue EarliestRestoreOn { get { throw null; } } @@ -1446,7 +1514,7 @@ public partial class SqlDatabase : Azure.Provisioning.Primitives.ProvisionableRe public Azure.Provisioning.BicepValue FreeLimitExhaustionBehavior { get { throw null; } set { } } public Azure.Provisioning.BicepValue HighAvailabilityReplicaCount { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Sql.DatabaseIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsInfraEncryptionEnabled { get { throw null; } } public Azure.Provisioning.BicepValue IsLedgerOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsZoneRedundant { get { throw null; } set { } } @@ -1476,14 +1544,15 @@ public partial class SqlDatabase : Azure.Provisioning.Primitives.ProvisionableRe public Azure.Provisioning.BicepValue ResumedOn { get { throw null; } } public Azure.Provisioning.BicepValue SampleName { get { throw null; } set { } } public Azure.Provisioning.BicepValue SecondaryType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.Sql.SqlSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceDatabaseDeletedOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceDatabaseId { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceResourceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue UseFreeLimit { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlDatabase FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -1512,7 +1581,8 @@ public partial class SqlDatabaseBlobAuditingPolicy : Azure.Provisioning.Primitiv public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountSubscriptionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageEndpoint { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlDatabaseBlobAuditingPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1539,6 +1609,7 @@ public SqlDatabaseKey() { } public Azure.Provisioning.BicepValue KeyType { get { throw null; } } public Azure.Provisioning.BicepValue Subregion { get { throw null; } } public Azure.Provisioning.BicepValue Thumbprint { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum SqlDatabaseKeyType { @@ -1558,7 +1629,8 @@ public partial class SqlDatabaseSecurityAlertPolicy : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue State { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageEndpoint { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlDatabaseSecurityAlertPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1581,8 +1653,9 @@ public partial class SqlDatabaseSensitivityLabel : Azure.Provisioning.Primitives public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue Rank { get { throw null; } set { } } public Azure.Provisioning.BicepValue SchemaName { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TableName { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlDatabaseSensitivityLabel FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public partial class SqlDatabaseSqlVulnerabilityAssessmentBaseline : Azure.Provisioning.Primitives.ProvisionableResource @@ -1592,7 +1665,8 @@ public partial class SqlDatabaseSqlVulnerabilityAssessmentBaseline : Azure.Provi public Azure.Provisioning.BicepValue IsLatestScan { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepDictionary>> Results { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlDatabaseSqlVulnerabilityAssessmentBaseline FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public partial class SqlDatabaseSqlVulnerabilityAssessmentBaselineRule : Azure.Provisioning.Primitives.ProvisionableResource @@ -1603,7 +1677,8 @@ public partial class SqlDatabaseSqlVulnerabilityAssessmentBaselineRule : Azure.P public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlDatabaseSqlVulnerabilityAssessmentBaseline? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList> Results { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlDatabaseSqlVulnerabilityAssessmentBaselineRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public enum SqlDatabaseStatus @@ -1639,11 +1714,12 @@ public partial class SqlDatabaseVulnerabilityAssessment : Azure.Provisioning.Pri public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlDatabase? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RecurringScans { get { throw null; } set { } } + public Azure.Provisioning.Sql.VulnerabilityAssessmentRecurringScansProperties RecurringScans { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageContainerPath { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageContainerSasKey { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlDatabaseVulnerabilityAssessment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1656,7 +1732,8 @@ public partial class SqlDatabaseVulnerabilityAssessmentRuleBaseline : Azure.Prov public Azure.Provisioning.BicepList BaselineResults { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlDatabaseVulnerabilityAssessmentRuleBaseline FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public enum SqlDayOfWeek @@ -1677,6 +1754,7 @@ public partial class SqlFirewallRule : Azure.Provisioning.Primitives.Provisionab public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartIPAddress { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlFirewallRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -1703,14 +1781,15 @@ public enum SqlMinimalTlsVersion public partial class SqlPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public SqlPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.Sql.SqlPrivateLinkServiceConnectionStateProperty ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepList GroupIds { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1737,6 +1816,7 @@ public SqlPrivateLinkServiceConnectionStateProperty() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SqlPrivateLinkServiceConnectionStatus { @@ -1752,6 +1832,7 @@ public SqlScheduleItem() { } public Azure.Provisioning.BicepValue StartTime { get { throw null; } set { } } public Azure.Provisioning.BicepValue StopDay { get { throw null; } set { } } public Azure.Provisioning.BicepValue StopTime { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SqlSecurityAlertPolicyName { @@ -1762,12 +1843,12 @@ public partial class SqlServer : Azure.Provisioning.Primitives.ProvisionableReso public SqlServer(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue AdministratorLogin { get { throw null; } set { } } public Azure.Provisioning.BicepValue AdministratorLoginPassword { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Administrators { get { throw null; } set { } } + public Azure.Provisioning.Sql.ServerExternalAdministrator Administrators { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExternalGovernanceStatus { get { throw null; } } public Azure.Provisioning.BicepValue FederatedClientId { get { throw null; } set { } } public Azure.Provisioning.BicepValue FullyQualifiedDomainName { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsIPv6Enabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyId { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } } @@ -1779,12 +1860,13 @@ public partial class SqlServer : Azure.Provisioning.Primitives.ProvisionableReso public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue RestrictOutboundNetworkAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue Version { get { throw null; } set { } } public Azure.Provisioning.BicepValue WorkspaceFeature { get { throw null; } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.Sql.SqlBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.Sql.SqlBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServer FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -1804,8 +1886,9 @@ public partial class SqlServerAzureADAdministrator : Azure.Provisioning.Primitiv public Azure.Provisioning.BicepValue Login { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Sid { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerAzureADAdministrator FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1821,7 +1904,8 @@ public partial class SqlServerAzureADOnlyAuthentication : Azure.Provisioning.Pri public Azure.Provisioning.BicepValue IsAzureADOnlyAuthenticationEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerAzureADOnlyAuthentication FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1847,7 +1931,8 @@ public partial class SqlServerBlobAuditingPolicy : Azure.Provisioning.Primitives public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountSubscriptionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageEndpoint { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerBlobAuditingPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1864,7 +1949,8 @@ public partial class SqlServerCommunicationLink : Azure.Provisioning.Primitives. public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PartnerServer { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerCommunicationLink FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1881,7 +1967,8 @@ public partial class SqlServerConnectionPolicy : Azure.Provisioning.Primitives.P public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerConnectionPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1901,7 +1988,8 @@ public partial class SqlServerDatabaseRestorePoint : Azure.Provisioning.Primitiv public Azure.Provisioning.BicepValue RestorePointCreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue RestorePointLabel { get { throw null; } } public Azure.Provisioning.BicepValue RestorePointType { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerDatabaseRestorePoint FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1923,7 +2011,8 @@ public partial class SqlServerDevOpsAuditingSetting : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountSubscriptionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageEndpoint { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerDevOpsAuditingSetting FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1937,7 +2026,8 @@ public partial class SqlServerDnsAlias : Azure.Provisioning.Primitives.Provision public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerDnsAlias FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1951,9 +2041,10 @@ public partial class SqlServerJob : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlServerJobAgent? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Schedule { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Sql.SqlServerJobSchedule Schedule { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerJob FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1968,10 +2059,11 @@ public partial class SqlServerJobAgent : Azure.Provisioning.Primitives.Provision public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.Sql.SqlSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerJobAgent FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1985,8 +2077,9 @@ public partial class SqlServerJobCredential : Azure.Provisioning.Primitives.Prov public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlServerJobAgent? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Password { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Username { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerJobCredential FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2011,8 +2104,9 @@ public partial class SqlServerJobExecution : Azure.Provisioning.Primitives.Provi public Azure.Provisioning.BicepValue StartOn { get { throw null; } } public Azure.Provisioning.BicepValue StepId { get { throw null; } } public Azure.Provisioning.BicepValue StepName { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } - public Azure.Provisioning.BicepValue Target { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + public Azure.Provisioning.Sql.JobExecutionTarget Target { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerJobExecution FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2027,6 +2121,7 @@ public SqlServerJobSchedule() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue ScheduleType { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SqlServerJobScheduleType { @@ -2036,16 +2131,17 @@ public enum SqlServerJobScheduleType public partial class SqlServerJobStep : Azure.Provisioning.Primitives.ProvisionableResource { public SqlServerJobStep(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue Action { get { throw null; } set { } } + public Azure.Provisioning.Sql.JobStepAction Action { get { throw null; } set { } } public Azure.Provisioning.BicepValue Credential { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ExecutionOptions { get { throw null; } set { } } + public Azure.Provisioning.Sql.JobStepExecutionOptions ExecutionOptions { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Output { get { throw null; } set { } } + public Azure.Provisioning.Sql.JobStepOutput Output { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlServerJob? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue StepId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TargetGroup { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerJobStep FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2059,7 +2155,8 @@ public partial class SqlServerJobTargetGroup : Azure.Provisioning.Primitives.Pro public Azure.Provisioning.BicepList Members { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlServerJobAgent? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerJobTargetGroup FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2078,9 +2175,10 @@ public partial class SqlServerKey : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServerKeyType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Subregion { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Thumbprint { get { throw null; } } public Azure.Provisioning.BicepValue Uri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerKey FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2102,7 +2200,8 @@ public partial class SqlServerPrivateEndpointConnection : Azure.Provisioning.Pri { public SqlServerPrivateEndpointConnection() { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } } + public Azure.Provisioning.Sql.ServerPrivateEndpointConnectionProperties Properties { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class SqlServerSecurityAlertPolicy : Azure.Provisioning.Primitives.ProvisionableResource { @@ -2118,7 +2217,8 @@ public partial class SqlServerSecurityAlertPolicy : Azure.Provisioning.Primitive public Azure.Provisioning.BicepValue State { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageEndpoint { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerSecurityAlertPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2132,7 +2232,8 @@ public partial class SqlServerSqlVulnerabilityAssessment : Azure.Provisioning.Pr public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerSqlVulnerabilityAssessment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2149,7 +2250,8 @@ public partial class SqlServerSqlVulnerabilityAssessmentBaseline : Azure.Provisi public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlServerSqlVulnerabilityAssessment? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary>> Results { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerSqlVulnerabilityAssessmentBaseline FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2166,7 +2268,8 @@ public partial class SqlServerSqlVulnerabilityAssessmentBaselineRule : Azure.Pro public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlServerSqlVulnerabilityAssessmentBaseline? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList> Results { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerSqlVulnerabilityAssessmentBaselineRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2181,8 +2284,9 @@ public partial class SqlServerTrustGroup : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.BicepList GroupMembers { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepList TrustScopes { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerTrustGroup FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2197,8 +2301,9 @@ public partial class SqlServerVirtualNetworkRule : Azure.Provisioning.Primitives public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue VirtualNetworkSubnetId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerVirtualNetworkRule FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2220,11 +2325,12 @@ public partial class SqlServerVulnerabilityAssessment : Azure.Provisioning.Primi public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RecurringScans { get { throw null; } set { } } + public Azure.Provisioning.Sql.VulnerabilityAssessmentRecurringScansProperties RecurringScans { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageAccountAccessKey { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageContainerPath { get { throw null; } set { } } public Azure.Provisioning.BicepValue StorageContainerSasKey { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SqlServerVulnerabilityAssessment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2238,6 +2344,7 @@ public SqlServicePrincipal() { } public Azure.Provisioning.BicepValue PrincipalId { get { throw null; } } public Azure.Provisioning.BicepValue PrincipalType { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum SqlServicePrincipalType { @@ -2252,6 +2359,7 @@ public SqlSku() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Size { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SqlVulnerabilityAssessmentBaselineName { @@ -2274,8 +2382,9 @@ public partial class SyncAgent : Azure.Provisioning.Primitives.ProvisionableReso public Azure.Provisioning.Sql.SqlServer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } public Azure.Provisioning.BicepValue SyncDatabaseId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SyncAgent FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2313,12 +2422,13 @@ public partial class SyncGroup : Azure.Provisioning.Primitives.ProvisionableReso public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlDatabase? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointName { get { throw null; } } - public Azure.Provisioning.BicepValue Schema { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.Sql.SyncGroupSchema Schema { get { throw null; } set { } } + public Azure.Provisioning.Sql.SqlSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue SyncDatabaseId { get { throw null; } set { } } public Azure.Provisioning.BicepValue SyncState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue UsePrivateLinkConnection { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SyncGroup FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -2332,12 +2442,14 @@ public partial class SyncGroupSchema : Azure.Provisioning.Primitives.Provisionab public SyncGroupSchema() { } public Azure.Provisioning.BicepValue MasterSyncMemberName { get { throw null; } set { } } public Azure.Provisioning.BicepList Tables { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SyncGroupSchemaTable : Azure.Provisioning.Primitives.ProvisionableConstruct { public SyncGroupSchemaTable() { } public Azure.Provisioning.BicepList Columns { get { throw null; } set { } } public Azure.Provisioning.BicepValue QuotedName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class SyncGroupSchemaTableColumn : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -2345,6 +2457,7 @@ public SyncGroupSchemaTableColumn() { } public Azure.Provisioning.BicepValue DataSize { get { throw null; } set { } } public Azure.Provisioning.BicepValue DataType { get { throw null; } set { } } public Azure.Provisioning.BicepValue QuotedName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum SyncGroupState { @@ -2370,9 +2483,10 @@ public partial class SyncMember : Azure.Provisioning.Primitives.ProvisionableRes public Azure.Provisioning.BicepValue SyncDirection { get { throw null; } set { } } public Azure.Provisioning.BicepValue SyncMemberAzureDatabaseResourceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue SyncState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue UsePrivateLinkConnection { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.SyncMember FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2433,6 +2547,7 @@ public VulnerabilityAssessmentRecurringScansProperties() { } public Azure.Provisioning.BicepList Emails { get { throw null; } set { } } public Azure.Provisioning.BicepValue EmailSubscriptionAdmins { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class WorkloadClassifier : Azure.Provisioning.Primitives.ProvisionableResource { @@ -2446,7 +2561,8 @@ public partial class WorkloadClassifier : Azure.Provisioning.Primitives.Provisio public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.WorkloadGroup? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartTime { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.WorkloadClassifier FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2465,7 +2581,8 @@ public partial class WorkloadGroup : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Sql.SqlDatabase? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue QueryExecutionTimeout { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Sql.WorkloadGroup FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/BackupShortTermRetentionPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/BackupShortTermRetentionPolicy.cs index 856c284a066fc..04497f2cb30d5 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/BackupShortTermRetentionPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/BackupShortTermRetentionPolicy.cs @@ -20,41 +20,62 @@ public partial class BackupShortTermRetentionPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The differential backup interval in hours. This is how many interval /// hours between each differential backup will be supported. This is only /// applicable to live databases but not dropped databases. /// - public BicepValue DiffBackupIntervalInHours { get => _diffBackupIntervalInHours; set => _diffBackupIntervalInHours.Assign(value); } - private readonly BicepValue _diffBackupIntervalInHours; + public BicepValue DiffBackupIntervalInHours + { + get { Initialize(); return _diffBackupIntervalInHours!; } + set { Initialize(); _diffBackupIntervalInHours!.Assign(value); } + } + private BicepValue? _diffBackupIntervalInHours; /// /// The backup retention period in days. This is how many days /// Point-in-Time Restore will be supported. /// - public BicepValue RetentionDays { get => _retentionDays; set => _retentionDays.Assign(value); } - private readonly BicepValue _retentionDays; + public BicepValue RetentionDays + { + get { Initialize(); return _retentionDays!; } + set { Initialize(); _retentionDays!.Assign(value); } + } + private BicepValue? _retentionDays; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new BackupShortTermRetentionPolicy. @@ -69,12 +90,20 @@ public partial class BackupShortTermRetentionPolicy : ProvisionableResource public BackupShortTermRetentionPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _diffBackupIntervalInHours = BicepValue.DefineProperty(this, "DiffBackupIntervalInHours", ["properties", "diffBackupIntervalInHours"]); - _retentionDays = BicepValue.DefineProperty(this, "RetentionDays", ["properties", "retentionDays"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// BackupShortTermRetentionPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _diffBackupIntervalInHours = DefineProperty("DiffBackupIntervalInHours", ["properties", "diffBackupIntervalInHours"]); + _retentionDays = DefineProperty("RetentionDays", ["properties", "retentionDays"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/DataMaskingPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/DataMaskingPolicy.cs index 10dbc7b6748a0..98609c8689371 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/DataMaskingPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/DataMaskingPolicy.cs @@ -20,14 +20,21 @@ public partial class DataMaskingPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The state of the data masking policy. /// - public BicepValue DataMaskingState { get => _dataMaskingState; set => _dataMaskingState.Assign(value); } - private readonly BicepValue _dataMaskingState; + public BicepValue DataMaskingState + { + get { Initialize(); return _dataMaskingState!; } + set { Initialize(); _dataMaskingState!.Assign(value); } + } + private BicepValue? _dataMaskingState; /// /// The list of the exempt principals. Specifies the semicolon-separated @@ -35,51 +42,77 @@ public partial class DataMaskingPolicy : ProvisionableResource /// apply. The specified users receive data results without masking for /// all of the database queries. /// - public BicepValue ExemptPrincipals { get => _exemptPrincipals; set => _exemptPrincipals.Assign(value); } - private readonly BicepValue _exemptPrincipals; + public BicepValue ExemptPrincipals + { + get { Initialize(); return _exemptPrincipals!; } + set { Initialize(); _exemptPrincipals!.Assign(value); } + } + private BicepValue? _exemptPrincipals; /// /// The list of the application principals. This is a legacy parameter and /// is no longer used. /// - public BicepValue ApplicationPrincipals { get => _applicationPrincipals; } - private readonly BicepValue _applicationPrincipals; + public BicepValue ApplicationPrincipals + { + get { Initialize(); return _applicationPrincipals!; } + } + private BicepValue? _applicationPrincipals; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The kind of data masking policy. Metadata, used for Azure portal. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// The location of the data masking policy. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// The masking level. This is a legacy parameter and is no longer used. /// - public BicepValue MaskingLevel { get => _maskingLevel; } - private readonly BicepValue _maskingLevel; + public BicepValue MaskingLevel + { + get { Initialize(); return _maskingLevel!; } + } + private BicepValue? _maskingLevel; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new DataMaskingPolicy. @@ -94,16 +127,23 @@ public partial class DataMaskingPolicy : ProvisionableResource public DataMaskingPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/dataMaskingPolicies", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _dataMaskingState = BicepValue.DefineProperty(this, "DataMaskingState", ["properties", "dataMaskingState"]); - _exemptPrincipals = BicepValue.DefineProperty(this, "ExemptPrincipals", ["properties", "exemptPrincipals"]); - _applicationPrincipals = BicepValue.DefineProperty(this, "ApplicationPrincipals", ["properties", "applicationPrincipals"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _maskingLevel = BicepValue.DefineProperty(this, "MaskingLevel", ["properties", "maskingLevel"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of DataMaskingPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _dataMaskingState = DefineProperty("DataMaskingState", ["properties", "dataMaskingState"]); + _exemptPrincipals = DefineProperty("ExemptPrincipals", ["properties", "exemptPrincipals"]); + _applicationPrincipals = DefineProperty("ApplicationPrincipals", ["properties", "applicationPrincipals"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _maskingLevel = DefineProperty("MaskingLevel", ["properties", "maskingLevel"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/DatabaseAdvancedThreatProtection.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/DatabaseAdvancedThreatProtection.cs index 7d3c6b0e3dc42..c5482a23f2266 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/DatabaseAdvancedThreatProtection.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/DatabaseAdvancedThreatProtection.cs @@ -20,40 +20,60 @@ public partial class DatabaseAdvancedThreatProtection : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies the state of the Advanced Threat Protection, whether it is /// enabled or disabled or a state has not been applied yet on the /// specific database or server. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the UTC creation time of the policy. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new DatabaseAdvancedThreatProtection. @@ -68,12 +88,20 @@ public partial class DatabaseAdvancedThreatProtection : ProvisionableResource public DatabaseAdvancedThreatProtection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/advancedThreatProtectionSettings", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// DatabaseAdvancedThreatProtection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/DistributedAvailabilityGroup.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/DistributedAvailabilityGroup.cs index cbe30eb989d48..50f72b5323cf3 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/DistributedAvailabilityGroup.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/DistributedAvailabilityGroup.cs @@ -20,87 +20,136 @@ public partial class DistributedAvailabilityGroup : ProvisionableResource /// /// The distributed availability group name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The primary availability group name. /// - public BicepValue PrimaryAvailabilityGroupName { get => _primaryAvailabilityGroupName; set => _primaryAvailabilityGroupName.Assign(value); } - private readonly BicepValue _primaryAvailabilityGroupName; + public BicepValue PrimaryAvailabilityGroupName + { + get { Initialize(); return _primaryAvailabilityGroupName!; } + set { Initialize(); _primaryAvailabilityGroupName!.Assign(value); } + } + private BicepValue? _primaryAvailabilityGroupName; /// /// The replication mode of a distributed availability group. Parameter /// will be ignored during link creation. /// - public BicepValue ReplicationMode { get => _replicationMode; set => _replicationMode.Assign(value); } - private readonly BicepValue _replicationMode; + public BicepValue ReplicationMode + { + get { Initialize(); return _replicationMode!; } + set { Initialize(); _replicationMode!.Assign(value); } + } + private BicepValue? _replicationMode; /// /// The secondary availability group name. /// - public BicepValue SecondaryAvailabilityGroupName { get => _secondaryAvailabilityGroupName; set => _secondaryAvailabilityGroupName.Assign(value); } - private readonly BicepValue _secondaryAvailabilityGroupName; + public BicepValue SecondaryAvailabilityGroupName + { + get { Initialize(); return _secondaryAvailabilityGroupName!; } + set { Initialize(); _secondaryAvailabilityGroupName!.Assign(value); } + } + private BicepValue? _secondaryAvailabilityGroupName; /// /// The source endpoint. /// - public BicepValue SourceEndpoint { get => _sourceEndpoint; set => _sourceEndpoint.Assign(value); } - private readonly BicepValue _sourceEndpoint; + public BicepValue SourceEndpoint + { + get { Initialize(); return _sourceEndpoint!; } + set { Initialize(); _sourceEndpoint!.Assign(value); } + } + private BicepValue? _sourceEndpoint; /// /// The name of the target database. /// - public BicepValue TargetDatabase { get => _targetDatabase; set => _targetDatabase.Assign(value); } - private readonly BicepValue _targetDatabase; + public BicepValue TargetDatabase + { + get { Initialize(); return _targetDatabase!; } + set { Initialize(); _targetDatabase!.Assign(value); } + } + private BicepValue? _targetDatabase; /// /// The distributed availability group id. /// - public BicepValue DistributedAvailabilityGroupId { get => _distributedAvailabilityGroupId; } - private readonly BicepValue _distributedAvailabilityGroupId; + public BicepValue DistributedAvailabilityGroupId + { + get { Initialize(); return _distributedAvailabilityGroupId!; } + } + private BicepValue? _distributedAvailabilityGroupId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The last hardened lsn. /// - public BicepValue LastHardenedLsn { get => _lastHardenedLsn; } - private readonly BicepValue _lastHardenedLsn; + public BicepValue LastHardenedLsn + { + get { Initialize(); return _lastHardenedLsn!; } + } + private BicepValue? _lastHardenedLsn; /// /// The link state. /// - public BicepValue LinkState { get => _linkState; } - private readonly BicepValue _linkState; + public BicepValue LinkState + { + get { Initialize(); return _linkState!; } + } + private BicepValue? _linkState; /// /// The source replica id. /// - public BicepValue SourceReplicaId { get => _sourceReplicaId; } - private readonly BicepValue _sourceReplicaId; + public BicepValue SourceReplicaId + { + get { Initialize(); return _sourceReplicaId!; } + } + private BicepValue? _sourceReplicaId; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The target replica id. /// - public BicepValue TargetReplicaId { get => _targetReplicaId; } - private readonly BicepValue _targetReplicaId; + public BicepValue TargetReplicaId + { + get { Initialize(); return _targetReplicaId!; } + } + private BicepValue? _targetReplicaId; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new DistributedAvailabilityGroup. @@ -115,20 +164,27 @@ public partial class DistributedAvailabilityGroup : ProvisionableResource public DistributedAvailabilityGroup(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/distributedAvailabilityGroups", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _primaryAvailabilityGroupName = BicepValue.DefineProperty(this, "PrimaryAvailabilityGroupName", ["properties", "primaryAvailabilityGroupName"]); - _replicationMode = BicepValue.DefineProperty(this, "ReplicationMode", ["properties", "replicationMode"]); - _secondaryAvailabilityGroupName = BicepValue.DefineProperty(this, "SecondaryAvailabilityGroupName", ["properties", "secondaryAvailabilityGroupName"]); - _sourceEndpoint = BicepValue.DefineProperty(this, "SourceEndpoint", ["properties", "sourceEndpoint"]); - _targetDatabase = BicepValue.DefineProperty(this, "TargetDatabase", ["properties", "targetDatabase"]); - _distributedAvailabilityGroupId = BicepValue.DefineProperty(this, "DistributedAvailabilityGroupId", ["properties", "distributedAvailabilityGroupId"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _lastHardenedLsn = BicepValue.DefineProperty(this, "LastHardenedLsn", ["properties", "lastHardenedLsn"], isOutput: true); - _linkState = BicepValue.DefineProperty(this, "LinkState", ["properties", "linkState"], isOutput: true); - _sourceReplicaId = BicepValue.DefineProperty(this, "SourceReplicaId", ["properties", "sourceReplicaId"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _targetReplicaId = BicepValue.DefineProperty(this, "TargetReplicaId", ["properties", "targetReplicaId"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of DistributedAvailabilityGroup. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _primaryAvailabilityGroupName = DefineProperty("PrimaryAvailabilityGroupName", ["properties", "primaryAvailabilityGroupName"]); + _replicationMode = DefineProperty("ReplicationMode", ["properties", "replicationMode"]); + _secondaryAvailabilityGroupName = DefineProperty("SecondaryAvailabilityGroupName", ["properties", "secondaryAvailabilityGroupName"]); + _sourceEndpoint = DefineProperty("SourceEndpoint", ["properties", "sourceEndpoint"]); + _targetDatabase = DefineProperty("TargetDatabase", ["properties", "targetDatabase"]); + _distributedAvailabilityGroupId = DefineProperty("DistributedAvailabilityGroupId", ["properties", "distributedAvailabilityGroupId"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _lastHardenedLsn = DefineProperty("LastHardenedLsn", ["properties", "lastHardenedLsn"], isOutput: true); + _linkState = DefineProperty("LinkState", ["properties", "linkState"], isOutput: true); + _sourceReplicaId = DefineProperty("SourceReplicaId", ["properties", "sourceReplicaId"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _targetReplicaId = DefineProperty("TargetReplicaId", ["properties", "targetReplicaId"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ElasticPool.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ElasticPool.cs index 148e0edf957fd..54f1b5d97e08a 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ElasticPool.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ElasticPool.cs @@ -22,76 +22,120 @@ public partial class ElasticPool : ProvisionableResource /// /// The name of the elastic pool. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Specifies the availability zone the pool's primary replica is /// pinned to. /// - public BicepValue AvailabilityZone { get => _availabilityZone; set => _availabilityZone.Assign(value); } - private readonly BicepValue _availabilityZone; + public BicepValue AvailabilityZone + { + get { Initialize(); return _availabilityZone!; } + set { Initialize(); _availabilityZone!.Assign(value); } + } + private BicepValue? _availabilityZone; /// /// The number of secondary replicas associated with the elastic pool that /// are used to provide high availability. Applicable only to Hyperscale /// elastic pools. /// - public BicepValue HighAvailabilityReplicaCount { get => _highAvailabilityReplicaCount; set => _highAvailabilityReplicaCount.Assign(value); } - private readonly BicepValue _highAvailabilityReplicaCount; + public BicepValue HighAvailabilityReplicaCount + { + get { Initialize(); return _highAvailabilityReplicaCount!; } + set { Initialize(); _highAvailabilityReplicaCount!.Assign(value); } + } + private BicepValue? _highAvailabilityReplicaCount; /// /// Whether or not this elastic pool is zone redundant, which means the /// replicas of this elastic pool will be spread across multiple /// availability zones. /// - public BicepValue IsZoneRedundant { get => _isZoneRedundant; set => _isZoneRedundant.Assign(value); } - private readonly BicepValue _isZoneRedundant; + public BicepValue IsZoneRedundant + { + get { Initialize(); return _isZoneRedundant!; } + set { Initialize(); _isZoneRedundant!.Assign(value); } + } + private BicepValue? _isZoneRedundant; /// /// The license type to apply for this elastic pool. /// - public BicepValue LicenseType { get => _licenseType; set => _licenseType.Assign(value); } - private readonly BicepValue _licenseType; + public BicepValue LicenseType + { + get { Initialize(); return _licenseType!; } + set { Initialize(); _licenseType!.Assign(value); } + } + private BicepValue? _licenseType; /// /// Maintenance configuration id assigned to the elastic pool. This /// configuration defines the period when the maintenance updates will /// will occur. /// - public BicepValue MaintenanceConfigurationId { get => _maintenanceConfigurationId; set => _maintenanceConfigurationId.Assign(value); } - private readonly BicepValue _maintenanceConfigurationId; + public BicepValue MaintenanceConfigurationId + { + get { Initialize(); return _maintenanceConfigurationId!; } + set { Initialize(); _maintenanceConfigurationId!.Assign(value); } + } + private BicepValue? _maintenanceConfigurationId; /// /// The storage limit for the database elastic pool in bytes. /// - public BicepValue MaxSizeBytes { get => _maxSizeBytes; set => _maxSizeBytes.Assign(value); } - private readonly BicepValue _maxSizeBytes; + public BicepValue MaxSizeBytes + { + get { Initialize(); return _maxSizeBytes!; } + set { Initialize(); _maxSizeBytes!.Assign(value); } + } + private BicepValue? _maxSizeBytes; /// /// Minimal capacity that serverless pool will not shrink below, if not /// paused. /// - public BicepValue MinCapacity { get => _minCapacity; set => _minCapacity.Assign(value); } - private readonly BicepValue _minCapacity; + public BicepValue MinCapacity + { + get { Initialize(); return _minCapacity!; } + set { Initialize(); _minCapacity!.Assign(value); } + } + private BicepValue? _minCapacity; /// /// The per database settings for the elastic pool. /// - public BicepValue PerDatabaseSettings { get => _perDatabaseSettings; set => _perDatabaseSettings.Assign(value); } - private readonly BicepValue _perDatabaseSettings; + public ElasticPoolPerDatabaseSettings PerDatabaseSettings + { + get { Initialize(); return _perDatabaseSettings!; } + set { Initialize(); AssignOrReplace(ref _perDatabaseSettings, value); } + } + private ElasticPoolPerDatabaseSettings? _perDatabaseSettings; /// /// Type of enclave requested on the elastic pool. /// - public BicepValue PreferredEnclaveType { get => _preferredEnclaveType; set => _preferredEnclaveType.Assign(value); } - private readonly BicepValue _preferredEnclaveType; + public BicepValue PreferredEnclaveType + { + get { Initialize(); return _preferredEnclaveType!; } + set { Initialize(); _preferredEnclaveType!.Assign(value); } + } + private BicepValue? _preferredEnclaveType; /// /// The elastic pool SKU. The list of SKUs may @@ -102,51 +146,78 @@ public partial class ElasticPool : ProvisionableResource /// ```azurecli az sql elastic-pool /// list-editions -l <location> -o table ```` /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public SqlSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private SqlSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The creation date of the elastic pool (ISO8601 format). /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Kind of elastic pool. This is metadata used for the Azure portal /// experience. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// The state of the elastic pool. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ElasticPool. @@ -161,25 +232,32 @@ public partial class ElasticPool : ProvisionableResource public ElasticPool(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/elasticPools", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _availabilityZone = BicepValue.DefineProperty(this, "AvailabilityZone", ["properties", "availabilityZone"]); - _highAvailabilityReplicaCount = BicepValue.DefineProperty(this, "HighAvailabilityReplicaCount", ["properties", "highAvailabilityReplicaCount"]); - _isZoneRedundant = BicepValue.DefineProperty(this, "IsZoneRedundant", ["properties", "zoneRedundant"]); - _licenseType = BicepValue.DefineProperty(this, "LicenseType", ["properties", "licenseType"]); - _maintenanceConfigurationId = BicepValue.DefineProperty(this, "MaintenanceConfigurationId", ["properties", "maintenanceConfigurationId"]); - _maxSizeBytes = BicepValue.DefineProperty(this, "MaxSizeBytes", ["properties", "maxSizeBytes"]); - _minCapacity = BicepValue.DefineProperty(this, "MinCapacity", ["properties", "minCapacity"]); - _perDatabaseSettings = BicepValue.DefineProperty(this, "PerDatabaseSettings", ["properties", "perDatabaseSettings"]); - _preferredEnclaveType = BicepValue.DefineProperty(this, "PreferredEnclaveType", ["properties", "preferredEnclaveType"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationDate"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ElasticPool. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _availabilityZone = DefineProperty("AvailabilityZone", ["properties", "availabilityZone"]); + _highAvailabilityReplicaCount = DefineProperty("HighAvailabilityReplicaCount", ["properties", "highAvailabilityReplicaCount"]); + _isZoneRedundant = DefineProperty("IsZoneRedundant", ["properties", "zoneRedundant"]); + _licenseType = DefineProperty("LicenseType", ["properties", "licenseType"]); + _maintenanceConfigurationId = DefineProperty("MaintenanceConfigurationId", ["properties", "maintenanceConfigurationId"]); + _maxSizeBytes = DefineProperty("MaxSizeBytes", ["properties", "maxSizeBytes"]); + _minCapacity = DefineProperty("MinCapacity", ["properties", "minCapacity"]); + _perDatabaseSettings = DefineModelProperty("PerDatabaseSettings", ["properties", "perDatabaseSettings"]); + _preferredEnclaveType = DefineProperty("PreferredEnclaveType", ["properties", "preferredEnclaveType"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationDate"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/EncryptionProtector.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/EncryptionProtector.cs index 7abc1f51a5212..1d95c54894ff5 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/EncryptionProtector.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/EncryptionProtector.cs @@ -20,76 +20,116 @@ public partial class EncryptionProtector : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Key auto rotation opt-in flag. Either true or false. /// - public BicepValue IsAutoRotationEnabled { get => _isAutoRotationEnabled; set => _isAutoRotationEnabled.Assign(value); } - private readonly BicepValue _isAutoRotationEnabled; + public BicepValue IsAutoRotationEnabled + { + get { Initialize(); return _isAutoRotationEnabled!; } + set { Initialize(); _isAutoRotationEnabled!.Assign(value); } + } + private BicepValue? _isAutoRotationEnabled; /// /// The name of the server key. /// - public BicepValue ServerKeyName { get => _serverKeyName; set => _serverKeyName.Assign(value); } - private readonly BicepValue _serverKeyName; + public BicepValue ServerKeyName + { + get { Initialize(); return _serverKeyName!; } + set { Initialize(); _serverKeyName!.Assign(value); } + } + private BicepValue? _serverKeyName; /// /// The encryption protector type like 'ServiceManaged', /// 'AzureKeyVault'. /// - public BicepValue ServerKeyType { get => _serverKeyType; set => _serverKeyType.Assign(value); } - private readonly BicepValue _serverKeyType; + public BicepValue ServerKeyType + { + get { Initialize(); return _serverKeyType!; } + set { Initialize(); _serverKeyType!.Assign(value); } + } + private BicepValue? _serverKeyType; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Kind of encryption protector. This is metadata used for the Azure /// portal experience. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// Resource location. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Subregion of the encryption protector. /// - public BicepValue Subregion { get => _subregion; } - private readonly BicepValue _subregion; + public BicepValue Subregion + { + get { Initialize(); return _subregion!; } + } + private BicepValue? _subregion; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Thumbprint of the server key. /// - public BicepValue Thumbprint { get => _thumbprint; } - private readonly BicepValue _thumbprint; + public BicepValue Thumbprint + { + get { Initialize(); return _thumbprint!; } + } + private BicepValue? _thumbprint; /// /// The URI of the server key. /// - public BicepValue Uri { get => _uri; } - private readonly BicepValue _uri; + public BicepValue Uri + { + get { Initialize(); return _uri!; } + } + private BicepValue? _uri; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EncryptionProtector. @@ -104,18 +144,25 @@ public partial class EncryptionProtector : ProvisionableResource public EncryptionProtector(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/encryptionProtector", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _isAutoRotationEnabled = BicepValue.DefineProperty(this, "IsAutoRotationEnabled", ["properties", "autoRotationEnabled"]); - _serverKeyName = BicepValue.DefineProperty(this, "ServerKeyName", ["properties", "serverKeyName"]); - _serverKeyType = BicepValue.DefineProperty(this, "ServerKeyType", ["properties", "serverKeyType"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _subregion = BicepValue.DefineProperty(this, "Subregion", ["properties", "subregion"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _thumbprint = BicepValue.DefineProperty(this, "Thumbprint", ["properties", "thumbprint"], isOutput: true); - _uri = BicepValue.DefineProperty(this, "Uri", ["properties", "uri"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of EncryptionProtector. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _isAutoRotationEnabled = DefineProperty("IsAutoRotationEnabled", ["properties", "autoRotationEnabled"]); + _serverKeyName = DefineProperty("ServerKeyName", ["properties", "serverKeyName"]); + _serverKeyType = DefineProperty("ServerKeyType", ["properties", "serverKeyType"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _subregion = DefineProperty("Subregion", ["properties", "subregion"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _thumbprint = DefineProperty("Thumbprint", ["properties", "thumbprint"], isOutput: true); + _uri = DefineProperty("Uri", ["properties", "uri"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicy.cs index e54b7805f73e1..9844362096ad8 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicy.cs @@ -21,8 +21,11 @@ public partial class ExtendedDatabaseBlobAuditingPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies the Actions-Groups and Actions to audit. @@ -82,8 +85,12 @@ public partial class ExtendedDatabaseBlobAuditingPolicy : ProvisionableResource /// [Database-Level Audit /// Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) /// - public BicepList AuditActionsAndGroups { get => _auditActionsAndGroups; set => _auditActionsAndGroups.Assign(value); } - private readonly BicepList _auditActionsAndGroups; + public BicepList AuditActionsAndGroups + { + get { Initialize(); return _auditActionsAndGroups!; } + set { Initialize(); _auditActionsAndGroups!.Assign(value); } + } + private BicepList? _auditActionsAndGroups; /// /// Specifies whether audit events are sent to Azure Monitor. @@ -103,49 +110,77 @@ public partial class ExtendedDatabaseBlobAuditingPolicy : ProvisionableResource /// or [Diagnostic Settings /// PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// - public BicepValue IsAzureMonitorTargetEnabled { get => _isAzureMonitorTargetEnabled; set => _isAzureMonitorTargetEnabled.Assign(value); } - private readonly BicepValue _isAzureMonitorTargetEnabled; + public BicepValue IsAzureMonitorTargetEnabled + { + get { Initialize(); return _isAzureMonitorTargetEnabled!; } + set { Initialize(); _isAzureMonitorTargetEnabled!.Assign(value); } + } + private BicepValue? _isAzureMonitorTargetEnabled; /// /// Specifies whether Managed Identity is used to access blob storage. /// - public BicepValue IsManagedIdentityInUse { get => _isManagedIdentityInUse; set => _isManagedIdentityInUse.Assign(value); } - private readonly BicepValue _isManagedIdentityInUse; + public BicepValue IsManagedIdentityInUse + { + get { Initialize(); return _isManagedIdentityInUse!; } + set { Initialize(); _isManagedIdentityInUse!.Assign(value); } + } + private BicepValue? _isManagedIdentityInUse; /// /// Specifies whether storageAccountAccessKey value is the storage's /// secondary key. /// - public BicepValue IsStorageSecondaryKeyInUse { get => _isStorageSecondaryKeyInUse; set => _isStorageSecondaryKeyInUse.Assign(value); } - private readonly BicepValue _isStorageSecondaryKeyInUse; + public BicepValue IsStorageSecondaryKeyInUse + { + get { Initialize(); return _isStorageSecondaryKeyInUse!; } + set { Initialize(); _isStorageSecondaryKeyInUse!.Assign(value); } + } + private BicepValue? _isStorageSecondaryKeyInUse; /// /// Specifies condition of where clause when creating an audit. /// - public BicepValue PredicateExpression { get => _predicateExpression; set => _predicateExpression.Assign(value); } - private readonly BicepValue _predicateExpression; + public BicepValue PredicateExpression + { + get { Initialize(); return _predicateExpression!; } + set { Initialize(); _predicateExpression!.Assign(value); } + } + private BicepValue? _predicateExpression; /// /// Specifies the amount of time in milliseconds that can elapse before /// audit actions are forced to be processed. The default /// minimum value is 1000 (1 second). The maximum is 2,147,483,647. /// - public BicepValue QueueDelayMs { get => _queueDelayMs; set => _queueDelayMs.Assign(value); } - private readonly BicepValue _queueDelayMs; + public BicepValue QueueDelayMs + { + get { Initialize(); return _queueDelayMs!; } + set { Initialize(); _queueDelayMs!.Assign(value); } + } + private BicepValue? _queueDelayMs; /// /// Specifies the number of days to keep in the audit logs in the storage /// account. /// - public BicepValue RetentionDays { get => _retentionDays; set => _retentionDays.Assign(value); } - private readonly BicepValue _retentionDays; + public BicepValue RetentionDays + { + get { Initialize(); return _retentionDays!; } + set { Initialize(); _retentionDays!.Assign(value); } + } + private BicepValue? _retentionDays; /// /// Specifies the state of the audit. If state is Enabled, storageEndpoint /// or isAzureMonitorTargetEnabled are required. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the identifier key of the auditing storage account. @@ -160,40 +195,62 @@ public partial class ExtendedDatabaseBlobAuditingPolicy : ProvisionableResource /// more information, see [Auditing to storage using Managed Identity /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// Specifies the blob storage subscription Id. /// - public BicepValue StorageAccountSubscriptionId { get => _storageAccountSubscriptionId; set => _storageAccountSubscriptionId.Assign(value); } - private readonly BicepValue _storageAccountSubscriptionId; + public BicepValue StorageAccountSubscriptionId + { + get { Initialize(); return _storageAccountSubscriptionId!; } + set { Initialize(); _storageAccountSubscriptionId!.Assign(value); } + } + private BicepValue? _storageAccountSubscriptionId; /// /// Specifies the blob storage endpoint (e.g. /// https://MyAccount.blob.core.windows.net). If state is Enabled, /// storageEndpoint or isAzureMonitorTargetEnabled is required. /// - public BicepValue StorageEndpoint { get => _storageEndpoint; set => _storageEndpoint.Assign(value); } - private readonly BicepValue _storageEndpoint; + public BicepValue StorageEndpoint + { + get { Initialize(); return _storageEndpoint!; } + set { Initialize(); _storageEndpoint!.Assign(value); } + } + private BicepValue? _storageEndpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ExtendedDatabaseBlobAuditingPolicy. @@ -208,21 +265,29 @@ public partial class ExtendedDatabaseBlobAuditingPolicy : ProvisionableResource public ExtendedDatabaseBlobAuditingPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/extendedAuditingSettings", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _auditActionsAndGroups = BicepList.DefineProperty(this, "AuditActionsAndGroups", ["properties", "auditActionsAndGroups"]); - _isAzureMonitorTargetEnabled = BicepValue.DefineProperty(this, "IsAzureMonitorTargetEnabled", ["properties", "isAzureMonitorTargetEnabled"]); - _isManagedIdentityInUse = BicepValue.DefineProperty(this, "IsManagedIdentityInUse", ["properties", "isManagedIdentityInUse"]); - _isStorageSecondaryKeyInUse = BicepValue.DefineProperty(this, "IsStorageSecondaryKeyInUse", ["properties", "isStorageSecondaryKeyInUse"]); - _predicateExpression = BicepValue.DefineProperty(this, "PredicateExpression", ["properties", "predicateExpression"]); - _queueDelayMs = BicepValue.DefineProperty(this, "QueueDelayMs", ["properties", "queueDelayMs"]); - _retentionDays = BicepValue.DefineProperty(this, "RetentionDays", ["properties", "retentionDays"]); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageAccountSubscriptionId = BicepValue.DefineProperty(this, "StorageAccountSubscriptionId", ["properties", "storageAccountSubscriptionId"]); - _storageEndpoint = BicepValue.DefineProperty(this, "StorageEndpoint", ["properties", "storageEndpoint"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ExtendedDatabaseBlobAuditingPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _auditActionsAndGroups = DefineListProperty("AuditActionsAndGroups", ["properties", "auditActionsAndGroups"]); + _isAzureMonitorTargetEnabled = DefineProperty("IsAzureMonitorTargetEnabled", ["properties", "isAzureMonitorTargetEnabled"]); + _isManagedIdentityInUse = DefineProperty("IsManagedIdentityInUse", ["properties", "isManagedIdentityInUse"]); + _isStorageSecondaryKeyInUse = DefineProperty("IsStorageSecondaryKeyInUse", ["properties", "isStorageSecondaryKeyInUse"]); + _predicateExpression = DefineProperty("PredicateExpression", ["properties", "predicateExpression"]); + _queueDelayMs = DefineProperty("QueueDelayMs", ["properties", "queueDelayMs"]); + _retentionDays = DefineProperty("RetentionDays", ["properties", "retentionDays"]); + _state = DefineProperty("State", ["properties", "state"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageAccountSubscriptionId = DefineProperty("StorageAccountSubscriptionId", ["properties", "storageAccountSubscriptionId"]); + _storageEndpoint = DefineProperty("StorageEndpoint", ["properties", "storageEndpoint"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ExtendedServerBlobAuditingPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ExtendedServerBlobAuditingPolicy.cs index 9b1ccf18ec3d5..b1208cde3c622 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ExtendedServerBlobAuditingPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ExtendedServerBlobAuditingPolicy.cs @@ -21,8 +21,11 @@ public partial class ExtendedServerBlobAuditingPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies the Actions-Groups and Actions to audit. @@ -82,8 +85,12 @@ public partial class ExtendedServerBlobAuditingPolicy : ProvisionableResource /// [Database-Level Audit /// Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) /// - public BicepList AuditActionsAndGroups { get => _auditActionsAndGroups; set => _auditActionsAndGroups.Assign(value); } - private readonly BicepList _auditActionsAndGroups; + public BicepList AuditActionsAndGroups + { + get { Initialize(); return _auditActionsAndGroups!; } + set { Initialize(); _auditActionsAndGroups!.Assign(value); } + } + private BicepList? _auditActionsAndGroups; /// /// Specifies whether audit events are sent to Azure Monitor. @@ -103,8 +110,12 @@ public partial class ExtendedServerBlobAuditingPolicy : ProvisionableResource /// or [Diagnostic Settings /// PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// - public BicepValue IsAzureMonitorTargetEnabled { get => _isAzureMonitorTargetEnabled; set => _isAzureMonitorTargetEnabled.Assign(value); } - private readonly BicepValue _isAzureMonitorTargetEnabled; + public BicepValue IsAzureMonitorTargetEnabled + { + get { Initialize(); return _isAzureMonitorTargetEnabled!; } + set { Initialize(); _isAzureMonitorTargetEnabled!.Assign(value); } + } + private BicepValue? _isAzureMonitorTargetEnabled; /// /// Specifies the state of devops audit. If state is Enabled, devops logs @@ -123,49 +134,77 @@ public partial class ExtendedServerBlobAuditingPolicy : ProvisionableResource /// or [Diagnostic Settings /// PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// - public BicepValue IsDevopsAuditEnabled { get => _isDevopsAuditEnabled; set => _isDevopsAuditEnabled.Assign(value); } - private readonly BicepValue _isDevopsAuditEnabled; + public BicepValue IsDevopsAuditEnabled + { + get { Initialize(); return _isDevopsAuditEnabled!; } + set { Initialize(); _isDevopsAuditEnabled!.Assign(value); } + } + private BicepValue? _isDevopsAuditEnabled; /// /// Specifies whether Managed Identity is used to access blob storage. /// - public BicepValue IsManagedIdentityInUse { get => _isManagedIdentityInUse; set => _isManagedIdentityInUse.Assign(value); } - private readonly BicepValue _isManagedIdentityInUse; + public BicepValue IsManagedIdentityInUse + { + get { Initialize(); return _isManagedIdentityInUse!; } + set { Initialize(); _isManagedIdentityInUse!.Assign(value); } + } + private BicepValue? _isManagedIdentityInUse; /// /// Specifies whether storageAccountAccessKey value is the storage's /// secondary key. /// - public BicepValue IsStorageSecondaryKeyInUse { get => _isStorageSecondaryKeyInUse; set => _isStorageSecondaryKeyInUse.Assign(value); } - private readonly BicepValue _isStorageSecondaryKeyInUse; + public BicepValue IsStorageSecondaryKeyInUse + { + get { Initialize(); return _isStorageSecondaryKeyInUse!; } + set { Initialize(); _isStorageSecondaryKeyInUse!.Assign(value); } + } + private BicepValue? _isStorageSecondaryKeyInUse; /// /// Specifies condition of where clause when creating an audit. /// - public BicepValue PredicateExpression { get => _predicateExpression; set => _predicateExpression.Assign(value); } - private readonly BicepValue _predicateExpression; + public BicepValue PredicateExpression + { + get { Initialize(); return _predicateExpression!; } + set { Initialize(); _predicateExpression!.Assign(value); } + } + private BicepValue? _predicateExpression; /// /// Specifies the amount of time in milliseconds that can elapse before /// audit actions are forced to be processed. The default /// minimum value is 1000 (1 second). The maximum is 2,147,483,647. /// - public BicepValue QueueDelayMs { get => _queueDelayMs; set => _queueDelayMs.Assign(value); } - private readonly BicepValue _queueDelayMs; + public BicepValue QueueDelayMs + { + get { Initialize(); return _queueDelayMs!; } + set { Initialize(); _queueDelayMs!.Assign(value); } + } + private BicepValue? _queueDelayMs; /// /// Specifies the number of days to keep in the audit logs in the storage /// account. /// - public BicepValue RetentionDays { get => _retentionDays; set => _retentionDays.Assign(value); } - private readonly BicepValue _retentionDays; + public BicepValue RetentionDays + { + get { Initialize(); return _retentionDays!; } + set { Initialize(); _retentionDays!.Assign(value); } + } + private BicepValue? _retentionDays; /// /// Specifies the state of the audit. If state is Enabled, storageEndpoint /// or isAzureMonitorTargetEnabled are required. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the identifier key of the auditing storage account. @@ -180,40 +219,62 @@ public partial class ExtendedServerBlobAuditingPolicy : ProvisionableResource /// more information, see [Auditing to storage using Managed Identity /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// Specifies the blob storage subscription Id. /// - public BicepValue StorageAccountSubscriptionId { get => _storageAccountSubscriptionId; set => _storageAccountSubscriptionId.Assign(value); } - private readonly BicepValue _storageAccountSubscriptionId; + public BicepValue StorageAccountSubscriptionId + { + get { Initialize(); return _storageAccountSubscriptionId!; } + set { Initialize(); _storageAccountSubscriptionId!.Assign(value); } + } + private BicepValue? _storageAccountSubscriptionId; /// /// Specifies the blob storage endpoint (e.g. /// https://MyAccount.blob.core.windows.net). If state is Enabled, /// storageEndpoint or isAzureMonitorTargetEnabled is required. /// - public BicepValue StorageEndpoint { get => _storageEndpoint; set => _storageEndpoint.Assign(value); } - private readonly BicepValue _storageEndpoint; + public BicepValue StorageEndpoint + { + get { Initialize(); return _storageEndpoint!; } + set { Initialize(); _storageEndpoint!.Assign(value); } + } + private BicepValue? _storageEndpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ExtendedServerBlobAuditingPolicy. @@ -228,22 +289,30 @@ public partial class ExtendedServerBlobAuditingPolicy : ProvisionableResource public ExtendedServerBlobAuditingPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/extendedAuditingSettings", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _auditActionsAndGroups = BicepList.DefineProperty(this, "AuditActionsAndGroups", ["properties", "auditActionsAndGroups"]); - _isAzureMonitorTargetEnabled = BicepValue.DefineProperty(this, "IsAzureMonitorTargetEnabled", ["properties", "isAzureMonitorTargetEnabled"]); - _isDevopsAuditEnabled = BicepValue.DefineProperty(this, "IsDevopsAuditEnabled", ["properties", "isDevopsAuditEnabled"]); - _isManagedIdentityInUse = BicepValue.DefineProperty(this, "IsManagedIdentityInUse", ["properties", "isManagedIdentityInUse"]); - _isStorageSecondaryKeyInUse = BicepValue.DefineProperty(this, "IsStorageSecondaryKeyInUse", ["properties", "isStorageSecondaryKeyInUse"]); - _predicateExpression = BicepValue.DefineProperty(this, "PredicateExpression", ["properties", "predicateExpression"]); - _queueDelayMs = BicepValue.DefineProperty(this, "QueueDelayMs", ["properties", "queueDelayMs"]); - _retentionDays = BicepValue.DefineProperty(this, "RetentionDays", ["properties", "retentionDays"]); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageAccountSubscriptionId = BicepValue.DefineProperty(this, "StorageAccountSubscriptionId", ["properties", "storageAccountSubscriptionId"]); - _storageEndpoint = BicepValue.DefineProperty(this, "StorageEndpoint", ["properties", "storageEndpoint"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ExtendedServerBlobAuditingPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _auditActionsAndGroups = DefineListProperty("AuditActionsAndGroups", ["properties", "auditActionsAndGroups"]); + _isAzureMonitorTargetEnabled = DefineProperty("IsAzureMonitorTargetEnabled", ["properties", "isAzureMonitorTargetEnabled"]); + _isDevopsAuditEnabled = DefineProperty("IsDevopsAuditEnabled", ["properties", "isDevopsAuditEnabled"]); + _isManagedIdentityInUse = DefineProperty("IsManagedIdentityInUse", ["properties", "isManagedIdentityInUse"]); + _isStorageSecondaryKeyInUse = DefineProperty("IsStorageSecondaryKeyInUse", ["properties", "isStorageSecondaryKeyInUse"]); + _predicateExpression = DefineProperty("PredicateExpression", ["properties", "predicateExpression"]); + _queueDelayMs = DefineProperty("QueueDelayMs", ["properties", "queueDelayMs"]); + _retentionDays = DefineProperty("RetentionDays", ["properties", "retentionDays"]); + _state = DefineProperty("State", ["properties", "state"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageAccountSubscriptionId = DefineProperty("StorageAccountSubscriptionId", ["properties", "storageAccountSubscriptionId"]); + _storageEndpoint = DefineProperty("StorageEndpoint", ["properties", "storageEndpoint"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/FailoverGroup.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/FailoverGroup.cs index 79e2446bc3a06..2a0fcf4f3366d 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/FailoverGroup.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/FailoverGroup.cs @@ -22,74 +22,117 @@ public partial class FailoverGroup : ProvisionableResource /// /// The name of the failover group. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// List of databases in the failover group. /// - public BicepList FailoverDatabases { get => _failoverDatabases; set => _failoverDatabases.Assign(value); } - private readonly BicepList _failoverDatabases; + public BicepList FailoverDatabases + { + get { Initialize(); return _failoverDatabases!; } + set { Initialize(); _failoverDatabases!.Assign(value); } + } + private BicepList? _failoverDatabases; /// /// List of partner server information for the failover group. /// - public BicepList PartnerServers { get => _partnerServers; set => _partnerServers.Assign(value); } - private readonly BicepList _partnerServers; + public BicepList PartnerServers + { + get { Initialize(); return _partnerServers!; } + set { Initialize(); _partnerServers!.Assign(value); } + } + private BicepList? _partnerServers; /// /// Read-only endpoint of the failover group instance. /// - public BicepValue ReadOnlyEndpoint { get => _readOnlyEndpoint; set => _readOnlyEndpoint.Assign(value); } - private readonly BicepValue _readOnlyEndpoint; + public FailoverGroupReadOnlyEndpoint ReadOnlyEndpoint + { + get { Initialize(); return _readOnlyEndpoint!; } + set { Initialize(); AssignOrReplace(ref _readOnlyEndpoint, value); } + } + private FailoverGroupReadOnlyEndpoint? _readOnlyEndpoint; /// /// Read-write endpoint of the failover group instance. /// - public BicepValue ReadWriteEndpoint { get => _readWriteEndpoint; set => _readWriteEndpoint.Assign(value); } - private readonly BicepValue _readWriteEndpoint; + public FailoverGroupReadWriteEndpoint ReadWriteEndpoint + { + get { Initialize(); return _readWriteEndpoint!; } + set { Initialize(); AssignOrReplace(ref _readWriteEndpoint, value); } + } + private FailoverGroupReadWriteEndpoint? _readWriteEndpoint; /// /// Resource tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Resource location. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Local replication role of the failover group instance. /// - public BicepValue ReplicationRole { get => _replicationRole; } - private readonly BicepValue _replicationRole; + public BicepValue ReplicationRole + { + get { Initialize(); return _replicationRole!; } + } + private BicepValue? _replicationRole; /// /// Replication state of the failover group instance. /// - public BicepValue ReplicationState { get => _replicationState; } - private readonly BicepValue _replicationState; + public BicepValue ReplicationState + { + get { Initialize(); return _replicationState!; } + } + private BicepValue? _replicationState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new FailoverGroup. @@ -104,18 +147,25 @@ public partial class FailoverGroup : ProvisionableResource public FailoverGroup(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/failoverGroups", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _failoverDatabases = BicepList.DefineProperty(this, "FailoverDatabases", ["properties", "databases"]); - _partnerServers = BicepList.DefineProperty(this, "PartnerServers", ["properties", "partnerServers"]); - _readOnlyEndpoint = BicepValue.DefineProperty(this, "ReadOnlyEndpoint", ["properties", "readOnlyEndpoint"]); - _readWriteEndpoint = BicepValue.DefineProperty(this, "ReadWriteEndpoint", ["properties", "readWriteEndpoint"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _replicationRole = BicepValue.DefineProperty(this, "ReplicationRole", ["properties", "replicationRole"], isOutput: true); - _replicationState = BicepValue.DefineProperty(this, "ReplicationState", ["properties", "replicationState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of FailoverGroup. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _failoverDatabases = DefineListProperty("FailoverDatabases", ["properties", "databases"]); + _partnerServers = DefineListProperty("PartnerServers", ["properties", "partnerServers"]); + _readOnlyEndpoint = DefineModelProperty("ReadOnlyEndpoint", ["properties", "readOnlyEndpoint"]); + _readWriteEndpoint = DefineModelProperty("ReadWriteEndpoint", ["properties", "readWriteEndpoint"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _replicationRole = DefineProperty("ReplicationRole", ["properties", "replicationRole"], isOutput: true); + _replicationState = DefineProperty("ReplicationState", ["properties", "replicationState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/GeoBackupPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/GeoBackupPolicy.cs index f21b9a22a30d0..f017baf17afdc 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/GeoBackupPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/GeoBackupPolicy.cs @@ -20,51 +20,77 @@ public partial class GeoBackupPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The state of the geo backup policy. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Kind of geo backup policy. This is metadata used for the Azure portal /// experience. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// Backup policy location. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// The storage type of the geo backup policy. /// - public BicepValue StorageType { get => _storageType; } - private readonly BicepValue _storageType; + public BicepValue StorageType + { + get { Initialize(); return _storageType!; } + } + private BicepValue? _storageType; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new GeoBackupPolicy. @@ -79,14 +105,21 @@ public partial class GeoBackupPolicy : ProvisionableResource public GeoBackupPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/geoBackupPolicies", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isRequired: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _storageType = BicepValue.DefineProperty(this, "StorageType", ["properties", "storageType"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of GeoBackupPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _storageType = DefineProperty("StorageType", ["properties", "storageType"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/IPv6FirewallRule.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/IPv6FirewallRule.cs index 5e60a44813c6e..86927a1949726 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/IPv6FirewallRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/IPv6FirewallRule.cs @@ -19,33 +19,52 @@ public partial class IPv6FirewallRule : ProvisionableResource /// /// The name of the firewall rule. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The end IP address of the firewall rule. Must be IPv6 format. Must be /// greater than or equal to startIpv6Address. /// - public BicepValue EndIPv6Address { get => _endIPv6Address; set => _endIPv6Address.Assign(value); } - private readonly BicepValue _endIPv6Address; + public BicepValue EndIPv6Address + { + get { Initialize(); return _endIPv6Address!; } + set { Initialize(); _endIPv6Address!.Assign(value); } + } + private BicepValue? _endIPv6Address; /// /// The start IP address of the firewall rule. Must be IPv6 format. /// - public BicepValue StartIPv6Address { get => _startIPv6Address; set => _startIPv6Address.Assign(value); } - private readonly BicepValue _startIPv6Address; + public BicepValue StartIPv6Address + { + get { Initialize(); return _startIPv6Address!; } + set { Initialize(); _startIPv6Address!.Assign(value); } + } + private BicepValue? _startIPv6Address; /// /// Resource ID. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new IPv6FirewallRule. @@ -60,11 +79,18 @@ public partial class IPv6FirewallRule : ProvisionableResource public IPv6FirewallRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/ipv6FirewallRules", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _endIPv6Address = BicepValue.DefineProperty(this, "EndIPv6Address", ["properties", "endIPv6Address"]); - _startIPv6Address = BicepValue.DefineProperty(this, "StartIPv6Address", ["properties", "startIPv6Address"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of IPv6FirewallRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _endIPv6Address = DefineProperty("EndIPv6Address", ["properties", "endIPv6Address"]); + _startIPv6Address = DefineProperty("StartIPv6Address", ["properties", "startIPv6Address"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/InstanceFailoverGroup.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/InstanceFailoverGroup.cs index 0c803960062f5..c018fd3dc715f 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/InstanceFailoverGroup.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/InstanceFailoverGroup.cs @@ -21,63 +21,99 @@ public partial class InstanceFailoverGroup : ProvisionableResource /// /// The name of the failover group. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// List of managed instance pairs in the failover group. /// - public BicepList ManagedInstancePairs { get => _managedInstancePairs; set => _managedInstancePairs.Assign(value); } - private readonly BicepList _managedInstancePairs; + public BicepList ManagedInstancePairs + { + get { Initialize(); return _managedInstancePairs!; } + set { Initialize(); _managedInstancePairs!.Assign(value); } + } + private BicepList? _managedInstancePairs; /// /// Partner region information for the failover group. /// - public BicepList PartnerRegions { get => _partnerRegions; set => _partnerRegions.Assign(value); } - private readonly BicepList _partnerRegions; + public BicepList PartnerRegions + { + get { Initialize(); return _partnerRegions!; } + set { Initialize(); _partnerRegions!.Assign(value); } + } + private BicepList? _partnerRegions; /// /// Failover policy of the read-only endpoint for the failover group. /// - public BicepValue ReadOnlyEndpointFailoverPolicy { get => _readOnlyEndpointFailoverPolicy; set => _readOnlyEndpointFailoverPolicy.Assign(value); } - private readonly BicepValue _readOnlyEndpointFailoverPolicy; + public BicepValue ReadOnlyEndpointFailoverPolicy + { + get { Initialize(); return _readOnlyEndpointFailoverPolicy!; } + set { Initialize(); _readOnlyEndpointFailoverPolicy!.Assign(value); } + } + private BicepValue? _readOnlyEndpointFailoverPolicy; /// /// Read-write endpoint of the failover group instance. /// - public BicepValue ReadWriteEndpoint { get => _readWriteEndpoint; set => _readWriteEndpoint.Assign(value); } - private readonly BicepValue _readWriteEndpoint; + public InstanceFailoverGroupReadWriteEndpoint ReadWriteEndpoint + { + get { Initialize(); return _readWriteEndpoint!; } + set { Initialize(); AssignOrReplace(ref _readWriteEndpoint, value); } + } + private InstanceFailoverGroupReadWriteEndpoint? _readWriteEndpoint; /// /// Type of the geo-secondary instance. Set 'Standby' if the /// instance is used as a DR option only. /// - public BicepValue SecondaryType { get => _secondaryType; set => _secondaryType.Assign(value); } - private readonly BicepValue _secondaryType; + public BicepValue SecondaryType + { + get { Initialize(); return _secondaryType!; } + set { Initialize(); _secondaryType!.Assign(value); } + } + private BicepValue? _secondaryType; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Local replication role of the failover group instance. /// - public BicepValue ReplicationRole { get => _replicationRole; } - private readonly BicepValue _replicationRole; + public BicepValue ReplicationRole + { + get { Initialize(); return _replicationRole!; } + } + private BicepValue? _replicationRole; /// /// Replication state of the failover group instance. /// - public BicepValue ReplicationState { get => _replicationState; } - private readonly BicepValue _replicationState; + public BicepValue ReplicationState + { + get { Initialize(); return _replicationState!; } + } + private BicepValue? _replicationState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new InstanceFailoverGroup. @@ -92,16 +128,23 @@ public partial class InstanceFailoverGroup : ProvisionableResource public InstanceFailoverGroup(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/locations/instanceFailoverGroups", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _managedInstancePairs = BicepList.DefineProperty(this, "ManagedInstancePairs", ["properties", "managedInstancePairs"]); - _partnerRegions = BicepList.DefineProperty(this, "PartnerRegions", ["properties", "partnerRegions"]); - _readOnlyEndpointFailoverPolicy = BicepValue.DefineProperty(this, "ReadOnlyEndpointFailoverPolicy", ["properties", "readOnlyEndpoint", "failoverPolicy"]); - _readWriteEndpoint = BicepValue.DefineProperty(this, "ReadWriteEndpoint", ["properties", "readWriteEndpoint"]); - _secondaryType = BicepValue.DefineProperty(this, "SecondaryType", ["properties", "secondaryType"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _replicationRole = BicepValue.DefineProperty(this, "ReplicationRole", ["properties", "replicationRole"], isOutput: true); - _replicationState = BicepValue.DefineProperty(this, "ReplicationState", ["properties", "replicationState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of InstanceFailoverGroup. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _managedInstancePairs = DefineListProperty("ManagedInstancePairs", ["properties", "managedInstancePairs"]); + _partnerRegions = DefineListProperty("PartnerRegions", ["properties", "partnerRegions"]); + _readOnlyEndpointFailoverPolicy = DefineProperty("ReadOnlyEndpointFailoverPolicy", ["properties", "readOnlyEndpoint", "failoverPolicy"]); + _readWriteEndpoint = DefineModelProperty("ReadWriteEndpoint", ["properties", "readWriteEndpoint"]); + _secondaryType = DefineProperty("SecondaryType", ["properties", "secondaryType"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _replicationRole = DefineProperty("ReplicationRole", ["properties", "replicationRole"], isOutput: true); + _replicationState = DefineProperty("ReplicationState", ["properties", "replicationState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/InstancePool.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/InstancePool.cs index 4c64b84ca43dd..82632a82d3331 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/InstancePool.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/InstancePool.cs @@ -21,71 +21,112 @@ public partial class InstancePool : ProvisionableResource /// /// The name of the instance pool to be created or updated. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The license type. Possible values are 'LicenseIncluded' /// (price for SQL license is included) and 'BasePrice' (without /// SQL license price). /// - public BicepValue LicenseType { get => _licenseType; set => _licenseType.Assign(value); } - private readonly BicepValue _licenseType; + public BicepValue LicenseType + { + get { Initialize(); return _licenseType!; } + set { Initialize(); _licenseType!.Assign(value); } + } + private BicepValue? _licenseType; /// /// Specifies maintenance configuration id to apply to this managed /// instance. /// - public BicepValue MaintenanceConfigurationId { get => _maintenanceConfigurationId; set => _maintenanceConfigurationId.Assign(value); } - private readonly BicepValue _maintenanceConfigurationId; + public BicepValue MaintenanceConfigurationId + { + get { Initialize(); return _maintenanceConfigurationId!; } + set { Initialize(); _maintenanceConfigurationId!.Assign(value); } + } + private BicepValue? _maintenanceConfigurationId; /// /// The name and tier of the SKU. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public SqlSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private SqlSku? _sku; /// /// Resource ID of the subnet to place this instance pool in. /// - public BicepValue SubnetId { get => _subnetId; set => _subnetId.Assign(value); } - private readonly BicepValue _subnetId; + public BicepValue SubnetId + { + get { Initialize(); return _subnetId!; } + set { Initialize(); _subnetId!.Assign(value); } + } + private BicepValue? _subnetId; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Count of vCores belonging to this instance pool. /// - public BicepValue VCores { get => _vCores; set => _vCores.Assign(value); } - private readonly BicepValue _vCores; + public BicepValue VCores + { + get { Initialize(); return _vCores!; } + set { Initialize(); _vCores!.Assign(value); } + } + private BicepValue? _vCores; /// /// The Dns Zone that the managed instance pool is in. /// - public BicepValue DnsZone { get => _dnsZone; } - private readonly BicepValue _dnsZone; + public BicepValue DnsZone + { + get { Initialize(); return _dnsZone!; } + } + private BicepValue? _dnsZone; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new InstancePool. @@ -100,17 +141,24 @@ public partial class InstancePool : ProvisionableResource public InstancePool(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/instancePools", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _licenseType = BicepValue.DefineProperty(this, "LicenseType", ["properties", "licenseType"]); - _maintenanceConfigurationId = BicepValue.DefineProperty(this, "MaintenanceConfigurationId", ["properties", "maintenanceConfigurationId"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _subnetId = BicepValue.DefineProperty(this, "SubnetId", ["properties", "subnetId"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _vCores = BicepValue.DefineProperty(this, "VCores", ["properties", "vCores"]); - _dnsZone = BicepValue.DefineProperty(this, "DnsZone", ["properties", "dnsZone"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of InstancePool. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _licenseType = DefineProperty("LicenseType", ["properties", "licenseType"]); + _maintenanceConfigurationId = DefineProperty("MaintenanceConfigurationId", ["properties", "maintenanceConfigurationId"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _subnetId = DefineProperty("SubnetId", ["properties", "subnetId"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _vCores = DefineProperty("VCores", ["properties", "vCores"]); + _dnsZone = DefineProperty("DnsZone", ["properties", "dnsZone"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/LedgerDigestUpload.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/LedgerDigestUpload.cs index bb5d79a6e3f49..440b6eef5d243 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/LedgerDigestUpload.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/LedgerDigestUpload.cs @@ -20,39 +20,59 @@ public partial class LedgerDigestUpload : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The digest storage endpoint, which must be either an Azure blob storage /// endpoint or an URI for Azure Confidential Ledger. /// - public BicepValue DigestStorageEndpoint { get => _digestStorageEndpoint; set => _digestStorageEndpoint.Assign(value); } - private readonly BicepValue _digestStorageEndpoint; + public BicepValue DigestStorageEndpoint + { + get { Initialize(); return _digestStorageEndpoint!; } + set { Initialize(); _digestStorageEndpoint!.Assign(value); } + } + private BicepValue? _digestStorageEndpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Specifies the state of ledger digest upload. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new LedgerDigestUpload. @@ -67,12 +87,19 @@ public partial class LedgerDigestUpload : ProvisionableResource public LedgerDigestUpload(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/ledgerDigestUploads", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _digestStorageEndpoint = BicepValue.DefineProperty(this, "DigestStorageEndpoint", ["properties", "digestStorageEndpoint"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of LedgerDigestUpload. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _digestStorageEndpoint = DefineProperty("DigestStorageEndpoint", ["properties", "digestStorageEndpoint"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/LogicalDatabaseTransparentDataEncryption.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/LogicalDatabaseTransparentDataEncryption.cs index 32dbc9b297223..6ce4f55721130 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/LogicalDatabaseTransparentDataEncryption.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/LogicalDatabaseTransparentDataEncryption.cs @@ -20,32 +20,49 @@ public partial class LogicalDatabaseTransparentDataEncryption : ProvisionableRes /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies the state of the transparent data encryption. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new LogicalDatabaseTransparentDataEncryption. @@ -61,11 +78,19 @@ public partial class LogicalDatabaseTransparentDataEncryption : ProvisionableRes public LogicalDatabaseTransparentDataEncryption(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/transparentDataEncryption", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// LogicalDatabaseTransparentDataEncryption. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/LongTermRetentionPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/LongTermRetentionPolicy.cs index ea762c2bbfca3..4903d5cb9892b 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/LongTermRetentionPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/LongTermRetentionPolicy.cs @@ -20,62 +20,99 @@ public partial class LongTermRetentionPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The BackupStorageAccessTier for the LTR backups. /// - public BicepValue BackupStorageAccessTier { get => _backupStorageAccessTier; set => _backupStorageAccessTier.Assign(value); } - private readonly BicepValue _backupStorageAccessTier; + public BicepValue BackupStorageAccessTier + { + get { Initialize(); return _backupStorageAccessTier!; } + set { Initialize(); _backupStorageAccessTier!.Assign(value); } + } + private BicepValue? _backupStorageAccessTier; /// /// The setting whether to make LTR backups immutable. /// - public BicepValue MakeBackupsImmutable { get => _makeBackupsImmutable; set => _makeBackupsImmutable.Assign(value); } - private readonly BicepValue _makeBackupsImmutable; + public BicepValue MakeBackupsImmutable + { + get { Initialize(); return _makeBackupsImmutable!; } + set { Initialize(); _makeBackupsImmutable!.Assign(value); } + } + private BicepValue? _makeBackupsImmutable; /// /// The monthly retention policy for an LTR backup in an ISO 8601 format. /// - public BicepValue MonthlyRetention { get => _monthlyRetention; set => _monthlyRetention.Assign(value); } - private readonly BicepValue _monthlyRetention; + public BicepValue MonthlyRetention + { + get { Initialize(); return _monthlyRetention!; } + set { Initialize(); _monthlyRetention!.Assign(value); } + } + private BicepValue? _monthlyRetention; /// /// The weekly retention policy for an LTR backup in an ISO 8601 format. /// - public BicepValue WeeklyRetention { get => _weeklyRetention; set => _weeklyRetention.Assign(value); } - private readonly BicepValue _weeklyRetention; + public BicepValue WeeklyRetention + { + get { Initialize(); return _weeklyRetention!; } + set { Initialize(); _weeklyRetention!.Assign(value); } + } + private BicepValue? _weeklyRetention; /// /// The week of year to take the yearly backup in an ISO 8601 format. /// - public BicepValue WeekOfYear { get => _weekOfYear; set => _weekOfYear.Assign(value); } - private readonly BicepValue _weekOfYear; + public BicepValue WeekOfYear + { + get { Initialize(); return _weekOfYear!; } + set { Initialize(); _weekOfYear!.Assign(value); } + } + private BicepValue? _weekOfYear; /// /// The yearly retention policy for an LTR backup in an ISO 8601 format. /// - public BicepValue YearlyRetention { get => _yearlyRetention; set => _yearlyRetention.Assign(value); } - private readonly BicepValue _yearlyRetention; + public BicepValue YearlyRetention + { + get { Initialize(); return _yearlyRetention!; } + set { Initialize(); _yearlyRetention!.Assign(value); } + } + private BicepValue? _yearlyRetention; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new LongTermRetentionPolicy. @@ -90,16 +127,23 @@ public partial class LongTermRetentionPolicy : ProvisionableResource public LongTermRetentionPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _backupStorageAccessTier = BicepValue.DefineProperty(this, "BackupStorageAccessTier", ["properties", "backupStorageAccessTier"]); - _makeBackupsImmutable = BicepValue.DefineProperty(this, "MakeBackupsImmutable", ["properties", "makeBackupsImmutable"]); - _monthlyRetention = BicepValue.DefineProperty(this, "MonthlyRetention", ["properties", "monthlyRetention"]); - _weeklyRetention = BicepValue.DefineProperty(this, "WeeklyRetention", ["properties", "weeklyRetention"]); - _weekOfYear = BicepValue.DefineProperty(this, "WeekOfYear", ["properties", "weekOfYear"]); - _yearlyRetention = BicepValue.DefineProperty(this, "YearlyRetention", ["properties", "yearlyRetention"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of LongTermRetentionPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _backupStorageAccessTier = DefineProperty("BackupStorageAccessTier", ["properties", "backupStorageAccessTier"]); + _makeBackupsImmutable = DefineProperty("MakeBackupsImmutable", ["properties", "makeBackupsImmutable"]); + _monthlyRetention = DefineProperty("MonthlyRetention", ["properties", "monthlyRetention"]); + _weeklyRetention = DefineProperty("WeeklyRetention", ["properties", "weeklyRetention"]); + _weekOfYear = DefineProperty("WeekOfYear", ["properties", "weekOfYear"]); + _yearlyRetention = DefineProperty("YearlyRetention", ["properties", "yearlyRetention"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedBackupShortTermRetentionPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedBackupShortTermRetentionPolicy.cs index e86c9f1a099a1..2f3fcd1c944dc 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedBackupShortTermRetentionPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedBackupShortTermRetentionPolicy.cs @@ -20,33 +20,50 @@ public partial class ManagedBackupShortTermRetentionPolicy : ProvisionableResour /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The backup retention period in days. This is how many days /// Point-in-Time Restore will be supported. /// - public BicepValue RetentionDays { get => _retentionDays; set => _retentionDays.Assign(value); } - private readonly BicepValue _retentionDays; + public BicepValue RetentionDays + { + get { Initialize(); return _retentionDays!; } + set { Initialize(); _retentionDays!.Assign(value); } + } + private BicepValue? _retentionDays; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedDatabase. /// - public ManagedDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedBackupShortTermRetentionPolicy. @@ -61,11 +78,19 @@ public partial class ManagedBackupShortTermRetentionPolicy : ProvisionableResour public ManagedBackupShortTermRetentionPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/databases/backupShortTermRetentionPolicies", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _retentionDays = BicepValue.DefineProperty(this, "RetentionDays", ["properties", "retentionDays"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedBackupShortTermRetentionPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _retentionDays = DefineProperty("RetentionDays", ["properties", "retentionDays"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabase.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabase.cs index 4cb0e5c4d6393..c4fa3e78b6a65 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabase.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabase.cs @@ -21,32 +21,52 @@ public partial class ManagedDatabase : ProvisionableResource /// /// The name of the database. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Whether to auto complete restore of this managed database. /// - public BicepValue AllowAutoCompleteRestore { get => _allowAutoCompleteRestore; set => _allowAutoCompleteRestore.Assign(value); } - private readonly BicepValue _allowAutoCompleteRestore; + public BicepValue AllowAutoCompleteRestore + { + get { Initialize(); return _allowAutoCompleteRestore!; } + set { Initialize(); _allowAutoCompleteRestore!.Assign(value); } + } + private BicepValue? _allowAutoCompleteRestore; /// /// Collation of the metadata catalog. /// - public BicepValue CatalogCollation { get => _catalogCollation; set => _catalogCollation.Assign(value); } - private readonly BicepValue _catalogCollation; + public BicepValue CatalogCollation + { + get { Initialize(); return _catalogCollation!; } + set { Initialize(); _catalogCollation!.Assign(value); } + } + private BicepValue? _catalogCollation; /// /// Collation of the managed database. /// - public BicepValue Collation { get => _collation; set => _collation.Assign(value); } - private readonly BicepValue _collation; + public BicepValue Collation + { + get { Initialize(); return _collation!; } + set { Initialize(); _collation!.Assign(value); } + } + private BicepValue? _collation; /// /// Managed database create mode. PointInTimeRestore: Create a database by @@ -61,78 +81,122 @@ public partial class ManagedDatabase : ProvisionableResource /// long term retention backup (longTermRetentionBackupResourceId /// required). /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// The restorable cross-subscription dropped database resource id to /// restore when creating this database. /// - public BicepValue CrossSubscriptionRestorableDroppedDatabaseId { get => _crossSubscriptionRestorableDroppedDatabaseId; set => _crossSubscriptionRestorableDroppedDatabaseId.Assign(value); } - private readonly BicepValue _crossSubscriptionRestorableDroppedDatabaseId; + public BicepValue CrossSubscriptionRestorableDroppedDatabaseId + { + get { Initialize(); return _crossSubscriptionRestorableDroppedDatabaseId!; } + set { Initialize(); _crossSubscriptionRestorableDroppedDatabaseId!.Assign(value); } + } + private BicepValue? _crossSubscriptionRestorableDroppedDatabaseId; /// /// The resource identifier of the cross-subscription source database /// associated with create operation of this database. /// - public BicepValue CrossSubscriptionSourceDatabaseId { get => _crossSubscriptionSourceDatabaseId; set => _crossSubscriptionSourceDatabaseId.Assign(value); } - private readonly BicepValue _crossSubscriptionSourceDatabaseId; + public BicepValue CrossSubscriptionSourceDatabaseId + { + get { Initialize(); return _crossSubscriptionSourceDatabaseId!; } + set { Initialize(); _crossSubscriptionSourceDatabaseId!.Assign(value); } + } + private BicepValue? _crossSubscriptionSourceDatabaseId; /// /// Target managed instance id used in cross-subscription restore. /// - public BicepValue CrossSubscriptionTargetManagedInstanceId { get => _crossSubscriptionTargetManagedInstanceId; set => _crossSubscriptionTargetManagedInstanceId.Assign(value); } - private readonly BicepValue _crossSubscriptionTargetManagedInstanceId; + public BicepValue CrossSubscriptionTargetManagedInstanceId + { + get { Initialize(); return _crossSubscriptionTargetManagedInstanceId!; } + set { Initialize(); _crossSubscriptionTargetManagedInstanceId!.Assign(value); } + } + private BicepValue? _crossSubscriptionTargetManagedInstanceId; /// /// Whether or not this database is a ledger database, which means all /// tables in the database are ledger tables. Note: the value of this /// property cannot be changed after the database has been created. /// - public BicepValue IsLedgerOn { get => _isLedgerOn; set => _isLedgerOn.Assign(value); } - private readonly BicepValue _isLedgerOn; + public BicepValue IsLedgerOn + { + get { Initialize(); return _isLedgerOn!; } + set { Initialize(); _isLedgerOn!.Assign(value); } + } + private BicepValue? _isLedgerOn; /// /// Last backup file name for restore of this managed database. /// - public BicepValue LastBackupName { get => _lastBackupName; set => _lastBackupName.Assign(value); } - private readonly BicepValue _lastBackupName; + public BicepValue LastBackupName + { + get { Initialize(); return _lastBackupName!; } + set { Initialize(); _lastBackupName!.Assign(value); } + } + private BicepValue? _lastBackupName; /// /// The name of the Long Term Retention backup to be used for restore of /// this managed database. /// - public BicepValue LongTermRetentionBackupResourceId { get => _longTermRetentionBackupResourceId; set => _longTermRetentionBackupResourceId.Assign(value); } - private readonly BicepValue _longTermRetentionBackupResourceId; + public BicepValue LongTermRetentionBackupResourceId + { + get { Initialize(); return _longTermRetentionBackupResourceId!; } + set { Initialize(); _longTermRetentionBackupResourceId!.Assign(value); } + } + private BicepValue? _longTermRetentionBackupResourceId; /// /// The resource identifier of the recoverable database associated with /// create operation of this database. /// - public BicepValue RecoverableDatabaseId { get => _recoverableDatabaseId; set => _recoverableDatabaseId.Assign(value); } - private readonly BicepValue _recoverableDatabaseId; + public BicepValue RecoverableDatabaseId + { + get { Initialize(); return _recoverableDatabaseId!; } + set { Initialize(); _recoverableDatabaseId!.Assign(value); } + } + private BicepValue? _recoverableDatabaseId; /// /// The restorable dropped database resource id to restore when creating /// this database. /// - public BicepValue RestorableDroppedDatabaseId { get => _restorableDroppedDatabaseId; set => _restorableDroppedDatabaseId.Assign(value); } - private readonly BicepValue _restorableDroppedDatabaseId; + public BicepValue RestorableDroppedDatabaseId + { + get { Initialize(); return _restorableDroppedDatabaseId!; } + set { Initialize(); _restorableDroppedDatabaseId!.Assign(value); } + } + private BicepValue? _restorableDroppedDatabaseId; /// /// Conditional. If createMode is PointInTimeRestore, this value is /// required. Specifies the point in time (ISO8601 format) of the source /// database that will be restored to create the new database. /// - public BicepValue RestorePointInTime { get => _restorePointInTime; set => _restorePointInTime.Assign(value); } - private readonly BicepValue _restorePointInTime; + public BicepValue RestorePointInTime + { + get { Initialize(); return _restorePointInTime!; } + set { Initialize(); _restorePointInTime!.Assign(value); } + } + private BicepValue? _restorePointInTime; /// /// The resource identifier of the source database associated with create /// operation of this database. /// - public BicepValue SourceDatabaseId { get => _sourceDatabaseId; set => _sourceDatabaseId.Assign(value); } - private readonly BicepValue _sourceDatabaseId; + public BicepValue SourceDatabaseId + { + get { Initialize(); return _sourceDatabaseId!; } + set { Initialize(); _sourceDatabaseId!.Assign(value); } + } + private BicepValue? _sourceDatabaseId; /// /// Conditional. If createMode is RestoreExternalBackup, this value is @@ -141,79 +205,120 @@ public partial class ManagedDatabase : ProvisionableResource /// 'ManagedIdentity'; if not specified /// 'SharedAccessSignature' is assumed. /// - public BicepValue StorageContainerIdentity { get => _storageContainerIdentity; set => _storageContainerIdentity.Assign(value); } - private readonly BicepValue _storageContainerIdentity; + public BicepValue StorageContainerIdentity + { + get { Initialize(); return _storageContainerIdentity!; } + set { Initialize(); _storageContainerIdentity!.Assign(value); } + } + private BicepValue? _storageContainerIdentity; /// /// Conditional. If createMode is RestoreExternalBackup and /// storageContainerIdentity is not ManagedIdentity, this value is /// required. Specifies the storage container sas token. /// - public BicepValue StorageContainerSasToken { get => _storageContainerSasToken; set => _storageContainerSasToken.Assign(value); } - private readonly BicepValue _storageContainerSasToken; + public BicepValue StorageContainerSasToken + { + get { Initialize(); return _storageContainerSasToken!; } + set { Initialize(); _storageContainerSasToken!.Assign(value); } + } + private BicepValue? _storageContainerSasToken; /// /// Conditional. If createMode is RestoreExternalBackup, this value is /// required. Specifies the uri of the storage container where backups for /// this restore are stored. /// - public BicepValue StorageContainerUri { get => _storageContainerUri; set => _storageContainerUri.Assign(value); } - private readonly BicepValue _storageContainerUri; + public BicepValue StorageContainerUri + { + get { Initialize(); return _storageContainerUri!; } + set { Initialize(); _storageContainerUri!.Assign(value); } + } + private BicepValue? _storageContainerUri; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Creation date of the database. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Geo paired region. /// - public BicepValue DefaultSecondaryLocation { get => _defaultSecondaryLocation; } - private readonly BicepValue _defaultSecondaryLocation; + public BicepValue DefaultSecondaryLocation + { + get { Initialize(); return _defaultSecondaryLocation!; } + } + private BicepValue? _defaultSecondaryLocation; /// /// Earliest restore point in time for point in time restore. /// - public BicepValue EarliestRestorePoint { get => _earliestRestorePoint; } - private readonly BicepValue _earliestRestorePoint; + public BicepValue EarliestRestorePoint + { + get { Initialize(); return _earliestRestorePoint!; } + } + private BicepValue? _earliestRestorePoint; /// /// Instance Failover Group resource identifier that this managed database /// belongs to. /// - public BicepValue FailoverGroupId { get => _failoverGroupId; } - private readonly BicepValue _failoverGroupId; + public BicepValue FailoverGroupId + { + get { Initialize(); return _failoverGroupId!; } + } + private BicepValue? _failoverGroupId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Status of the database. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedDatabase. @@ -228,34 +333,41 @@ public partial class ManagedDatabase : ProvisionableResource public ManagedDatabase(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/databases", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _allowAutoCompleteRestore = BicepValue.DefineProperty(this, "AllowAutoCompleteRestore", ["properties", "autoCompleteRestore"]); - _catalogCollation = BicepValue.DefineProperty(this, "CatalogCollation", ["properties", "catalogCollation"]); - _collation = BicepValue.DefineProperty(this, "Collation", ["properties", "collation"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["properties", "createMode"]); - _crossSubscriptionRestorableDroppedDatabaseId = BicepValue.DefineProperty(this, "CrossSubscriptionRestorableDroppedDatabaseId", ["properties", "crossSubscriptionRestorableDroppedDatabaseId"]); - _crossSubscriptionSourceDatabaseId = BicepValue.DefineProperty(this, "CrossSubscriptionSourceDatabaseId", ["properties", "crossSubscriptionSourceDatabaseId"]); - _crossSubscriptionTargetManagedInstanceId = BicepValue.DefineProperty(this, "CrossSubscriptionTargetManagedInstanceId", ["properties", "crossSubscriptionTargetManagedInstanceId"]); - _isLedgerOn = BicepValue.DefineProperty(this, "IsLedgerOn", ["properties", "isLedgerOn"]); - _lastBackupName = BicepValue.DefineProperty(this, "LastBackupName", ["properties", "lastBackupName"]); - _longTermRetentionBackupResourceId = BicepValue.DefineProperty(this, "LongTermRetentionBackupResourceId", ["properties", "longTermRetentionBackupResourceId"]); - _recoverableDatabaseId = BicepValue.DefineProperty(this, "RecoverableDatabaseId", ["properties", "recoverableDatabaseId"]); - _restorableDroppedDatabaseId = BicepValue.DefineProperty(this, "RestorableDroppedDatabaseId", ["properties", "restorableDroppedDatabaseId"]); - _restorePointInTime = BicepValue.DefineProperty(this, "RestorePointInTime", ["properties", "restorePointInTime"]); - _sourceDatabaseId = BicepValue.DefineProperty(this, "SourceDatabaseId", ["properties", "sourceDatabaseId"]); - _storageContainerIdentity = BicepValue.DefineProperty(this, "StorageContainerIdentity", ["properties", "storageContainerIdentity"]); - _storageContainerSasToken = BicepValue.DefineProperty(this, "StorageContainerSasToken", ["properties", "storageContainerSasToken"]); - _storageContainerUri = BicepValue.DefineProperty(this, "StorageContainerUri", ["properties", "storageContainerUri"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationDate"], isOutput: true); - _defaultSecondaryLocation = BicepValue.DefineProperty(this, "DefaultSecondaryLocation", ["properties", "defaultSecondaryLocation"], isOutput: true); - _earliestRestorePoint = BicepValue.DefineProperty(this, "EarliestRestorePoint", ["properties", "earliestRestorePoint"], isOutput: true); - _failoverGroupId = BicepValue.DefineProperty(this, "FailoverGroupId", ["properties", "failoverGroupId"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ManagedDatabase. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _allowAutoCompleteRestore = DefineProperty("AllowAutoCompleteRestore", ["properties", "autoCompleteRestore"]); + _catalogCollation = DefineProperty("CatalogCollation", ["properties", "catalogCollation"]); + _collation = DefineProperty("Collation", ["properties", "collation"]); + _createMode = DefineProperty("CreateMode", ["properties", "createMode"]); + _crossSubscriptionRestorableDroppedDatabaseId = DefineProperty("CrossSubscriptionRestorableDroppedDatabaseId", ["properties", "crossSubscriptionRestorableDroppedDatabaseId"]); + _crossSubscriptionSourceDatabaseId = DefineProperty("CrossSubscriptionSourceDatabaseId", ["properties", "crossSubscriptionSourceDatabaseId"]); + _crossSubscriptionTargetManagedInstanceId = DefineProperty("CrossSubscriptionTargetManagedInstanceId", ["properties", "crossSubscriptionTargetManagedInstanceId"]); + _isLedgerOn = DefineProperty("IsLedgerOn", ["properties", "isLedgerOn"]); + _lastBackupName = DefineProperty("LastBackupName", ["properties", "lastBackupName"]); + _longTermRetentionBackupResourceId = DefineProperty("LongTermRetentionBackupResourceId", ["properties", "longTermRetentionBackupResourceId"]); + _recoverableDatabaseId = DefineProperty("RecoverableDatabaseId", ["properties", "recoverableDatabaseId"]); + _restorableDroppedDatabaseId = DefineProperty("RestorableDroppedDatabaseId", ["properties", "restorableDroppedDatabaseId"]); + _restorePointInTime = DefineProperty("RestorePointInTime", ["properties", "restorePointInTime"]); + _sourceDatabaseId = DefineProperty("SourceDatabaseId", ["properties", "sourceDatabaseId"]); + _storageContainerIdentity = DefineProperty("StorageContainerIdentity", ["properties", "storageContainerIdentity"]); + _storageContainerSasToken = DefineProperty("StorageContainerSasToken", ["properties", "storageContainerSasToken"]); + _storageContainerUri = DefineProperty("StorageContainerUri", ["properties", "storageContainerUri"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationDate"], isOutput: true); + _defaultSecondaryLocation = DefineProperty("DefaultSecondaryLocation", ["properties", "defaultSecondaryLocation"], isOutput: true); + _earliestRestorePoint = DefineProperty("EarliestRestorePoint", ["properties", "earliestRestorePoint"], isOutput: true); + _failoverGroupId = DefineProperty("FailoverGroupId", ["properties", "failoverGroupId"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtection.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtection.cs index 7a9aa082bf16a..f903377c7be3d 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtection.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtection.cs @@ -20,40 +20,60 @@ public partial class ManagedDatabaseAdvancedThreatProtection : ProvisionableReso /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies the state of the Advanced Threat Protection, whether it is /// enabled or disabled or a state has not been applied yet on the /// specific database or server. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the UTC creation time of the policy. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedDatabase. /// - public ManagedDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedDatabaseAdvancedThreatProtection. @@ -68,12 +88,20 @@ public partial class ManagedDatabaseAdvancedThreatProtection : ProvisionableReso public ManagedDatabaseAdvancedThreatProtection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/databases/advancedThreatProtectionSettings", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedDatabaseAdvancedThreatProtection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicy.cs index cffe0a8c5f8d3..002bc9b8f1f3f 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicy.cs @@ -21,80 +21,124 @@ public partial class ManagedDatabaseSecurityAlertPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies an array of alerts that are disabled. Allowed values are: /// Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, /// Data_Exfiltration, Unsafe_Action, Brute_Force. /// - public BicepList DisabledAlerts { get => _disabledAlerts; set => _disabledAlerts.Assign(value); } - private readonly BicepList _disabledAlerts; + public BicepList DisabledAlerts + { + get { Initialize(); return _disabledAlerts!; } + set { Initialize(); _disabledAlerts!.Assign(value); } + } + private BicepList? _disabledAlerts; /// /// Specifies an array of e-mail addresses to which the alert is sent. /// - public BicepList EmailAddresses { get => _emailAddresses; set => _emailAddresses.Assign(value); } - private readonly BicepList _emailAddresses; + public BicepList EmailAddresses + { + get { Initialize(); return _emailAddresses!; } + set { Initialize(); _emailAddresses!.Assign(value); } + } + private BicepList? _emailAddresses; /// /// Specifies the number of days to keep in the Threat Detection audit logs. /// - public BicepValue RetentionDays { get => _retentionDays; set => _retentionDays.Assign(value); } - private readonly BicepValue _retentionDays; + public BicepValue RetentionDays + { + get { Initialize(); return _retentionDays!; } + set { Initialize(); _retentionDays!.Assign(value); } + } + private BicepValue? _retentionDays; /// /// Specifies that the alert is sent to the account administrators. /// - public BicepValue SendToEmailAccountAdmins { get => _sendToEmailAccountAdmins; set => _sendToEmailAccountAdmins.Assign(value); } - private readonly BicepValue _sendToEmailAccountAdmins; + public BicepValue SendToEmailAccountAdmins + { + get { Initialize(); return _sendToEmailAccountAdmins!; } + set { Initialize(); _sendToEmailAccountAdmins!.Assign(value); } + } + private BicepValue? _sendToEmailAccountAdmins; /// /// Specifies the state of the policy, whether it is enabled or disabled or /// a policy has not been applied yet on the specific database. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the identifier key of the Threat Detection audit storage /// account. /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// Specifies the blob storage endpoint (e.g. /// https://MyAccount.blob.core.windows.net). This blob storage will hold /// all Threat Detection audit logs. /// - public BicepValue StorageEndpoint { get => _storageEndpoint; set => _storageEndpoint.Assign(value); } - private readonly BicepValue _storageEndpoint; + public BicepValue StorageEndpoint + { + get { Initialize(); return _storageEndpoint!; } + set { Initialize(); _storageEndpoint!.Assign(value); } + } + private BicepValue? _storageEndpoint; /// /// Specifies the UTC creation time of the policy. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedDatabase. /// - public ManagedDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedDatabaseSecurityAlertPolicy. @@ -109,18 +153,26 @@ public partial class ManagedDatabaseSecurityAlertPolicy : ProvisionableResource public ManagedDatabaseSecurityAlertPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/databases/securityAlertPolicies", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _disabledAlerts = BicepList.DefineProperty(this, "DisabledAlerts", ["properties", "disabledAlerts"]); - _emailAddresses = BicepList.DefineProperty(this, "EmailAddresses", ["properties", "emailAddresses"]); - _retentionDays = BicepValue.DefineProperty(this, "RetentionDays", ["properties", "retentionDays"]); - _sendToEmailAccountAdmins = BicepValue.DefineProperty(this, "SendToEmailAccountAdmins", ["properties", "emailAccountAdmins"]); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageEndpoint = BicepValue.DefineProperty(this, "StorageEndpoint", ["properties", "storageEndpoint"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedDatabaseSecurityAlertPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _disabledAlerts = DefineListProperty("DisabledAlerts", ["properties", "disabledAlerts"]); + _emailAddresses = DefineListProperty("EmailAddresses", ["properties", "emailAddresses"]); + _retentionDays = DefineProperty("RetentionDays", ["properties", "retentionDays"]); + _sendToEmailAccountAdmins = DefineProperty("SendToEmailAccountAdmins", ["properties", "emailAccountAdmins"]); + _state = DefineProperty("State", ["properties", "state"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageEndpoint = DefineProperty("StorageEndpoint", ["properties", "storageEndpoint"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseSensitivityLabel.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseSensitivityLabel.cs index fd2e0162f36e9..5f094af809a4d 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseSensitivityLabel.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseSensitivityLabel.cs @@ -20,82 +20,126 @@ public partial class ManagedDatabaseSensitivityLabel : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The information type. /// - public BicepValue InformationType { get => _informationType; set => _informationType.Assign(value); } - private readonly BicepValue _informationType; + public BicepValue InformationType + { + get { Initialize(); return _informationType!; } + set { Initialize(); _informationType!.Assign(value); } + } + private BicepValue? _informationType; /// /// The information type ID. /// - public BicepValue InformationTypeId { get => _informationTypeId; set => _informationTypeId.Assign(value); } - private readonly BicepValue _informationTypeId; + public BicepValue InformationTypeId + { + get { Initialize(); return _informationTypeId!; } + set { Initialize(); _informationTypeId!.Assign(value); } + } + private BicepValue? _informationTypeId; /// /// The label ID. /// - public BicepValue LabelId { get => _labelId; set => _labelId.Assign(value); } - private readonly BicepValue _labelId; + public BicepValue LabelId + { + get { Initialize(); return _labelId!; } + set { Initialize(); _labelId!.Assign(value); } + } + private BicepValue? _labelId; /// /// The label name. /// - public BicepValue LabelName { get => _labelName; set => _labelName.Assign(value); } - private readonly BicepValue _labelName; + public BicepValue LabelName + { + get { Initialize(); return _labelName!; } + set { Initialize(); _labelName!.Assign(value); } + } + private BicepValue? _labelName; /// /// Gets or sets the rank. /// - public BicepValue Rank { get => _rank; set => _rank.Assign(value); } - private readonly BicepValue _rank; + public BicepValue Rank + { + get { Initialize(); return _rank!; } + set { Initialize(); _rank!.Assign(value); } + } + private BicepValue? _rank; /// /// The column name. /// - public BicepValue ColumnName { get => _columnName; } - private readonly BicepValue _columnName; + public BicepValue ColumnName + { + get { Initialize(); return _columnName!; } + } + private BicepValue? _columnName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Is sensitivity recommendation disabled. Applicable for recommended /// sensitivity label only. Specifies whether the sensitivity /// recommendation on this column is disabled (dismissed) or not. /// - public BicepValue IsDisabled { get => _isDisabled; } - private readonly BicepValue _isDisabled; + public BicepValue IsDisabled + { + get { Initialize(); return _isDisabled!; } + } + private BicepValue? _isDisabled; /// /// Resource that manages the sensitivity label. /// - public BicepValue ManagedBy { get => _managedBy; } - private readonly BicepValue _managedBy; + public BicepValue ManagedBy + { + get { Initialize(); return _managedBy!; } + } + private BicepValue? _managedBy; /// /// The schema name. /// - public BicepValue SchemaName { get => _schemaName; } - private readonly BicepValue _schemaName; + public BicepValue SchemaName + { + get { Initialize(); return _schemaName!; } + } + private BicepValue? _schemaName; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The table name. /// - public BicepValue TableName { get => _tableName; } - private readonly BicepValue _tableName; + public BicepValue TableName + { + get { Initialize(); return _tableName!; } + } + private BicepValue? _tableName; /// /// Creates a new ManagedDatabaseSensitivityLabel. @@ -110,19 +154,27 @@ public partial class ManagedDatabaseSensitivityLabel : ProvisionableResource public ManagedDatabaseSensitivityLabel(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/databases/schemas/tables/columns/sensitivityLabels", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _informationType = BicepValue.DefineProperty(this, "InformationType", ["properties", "informationType"]); - _informationTypeId = BicepValue.DefineProperty(this, "InformationTypeId", ["properties", "informationTypeId"]); - _labelId = BicepValue.DefineProperty(this, "LabelId", ["properties", "labelId"]); - _labelName = BicepValue.DefineProperty(this, "LabelName", ["properties", "labelName"]); - _rank = BicepValue.DefineProperty(this, "Rank", ["properties", "rank"]); - _columnName = BicepValue.DefineProperty(this, "ColumnName", ["properties", "columnName"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isDisabled = BicepValue.DefineProperty(this, "IsDisabled", ["properties", "isDisabled"], isOutput: true); - _managedBy = BicepValue.DefineProperty(this, "ManagedBy", ["managedBy"], isOutput: true); - _schemaName = BicepValue.DefineProperty(this, "SchemaName", ["properties", "schemaName"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _tableName = BicepValue.DefineProperty(this, "TableName", ["properties", "tableName"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedDatabaseSensitivityLabel. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _informationType = DefineProperty("InformationType", ["properties", "informationType"]); + _informationTypeId = DefineProperty("InformationTypeId", ["properties", "informationTypeId"]); + _labelId = DefineProperty("LabelId", ["properties", "labelId"]); + _labelName = DefineProperty("LabelName", ["properties", "labelName"]); + _rank = DefineProperty("Rank", ["properties", "rank"]); + _columnName = DefineProperty("ColumnName", ["properties", "columnName"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isDisabled = DefineProperty("IsDisabled", ["properties", "isDisabled"], isOutput: true); + _managedBy = DefineProperty("ManagedBy", ["managedBy"], isOutput: true); + _schemaName = DefineProperty("SchemaName", ["properties", "schemaName"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _tableName = DefineProperty("TableName", ["properties", "tableName"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessment.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessment.cs index f001c1b7e6d06..c68770933fca1 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessment.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessment.cs @@ -21,30 +21,45 @@ public partial class ManagedDatabaseVulnerabilityAssessment : ProvisionableResou /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The recurring scans settings. /// - public BicepValue RecurringScans { get => _recurringScans; set => _recurringScans.Assign(value); } - private readonly BicepValue _recurringScans; + public VulnerabilityAssessmentRecurringScansProperties RecurringScans + { + get { Initialize(); return _recurringScans!; } + set { Initialize(); AssignOrReplace(ref _recurringScans, value); } + } + private VulnerabilityAssessmentRecurringScansProperties? _recurringScans; /// /// Specifies the identifier key of the storage account for vulnerability /// assessment scan results. If 'StorageContainerSasKey' /// isn't specified, storageAccountAccessKey is required. /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// A blob storage container path to hold the scan results (e.g. /// https://myStorage.blob.core.windows.net/VaScans/). It is required if /// server level vulnerability assessment policy doesn't set. /// - public BicepValue StorageContainerPath { get => _storageContainerPath; set => _storageContainerPath.Assign(value); } - private readonly BicepValue _storageContainerPath; + public BicepValue StorageContainerPath + { + get { Initialize(); return _storageContainerPath!; } + set { Initialize(); _storageContainerPath!.Assign(value); } + } + private BicepValue? _storageContainerPath; /// /// A shared access signature (SAS Key) that has write access to the blob @@ -52,26 +67,40 @@ public partial class ManagedDatabaseVulnerabilityAssessment : ProvisionableResou /// 'storageAccountAccessKey' isn't specified, /// StorageContainerSasKey is required. /// - public BicepValue StorageContainerSasKey { get => _storageContainerSasKey; set => _storageContainerSasKey.Assign(value); } - private readonly BicepValue _storageContainerSasKey; + public BicepValue StorageContainerSasKey + { + get { Initialize(); return _storageContainerSasKey!; } + set { Initialize(); _storageContainerSasKey!.Assign(value); } + } + private BicepValue? _storageContainerSasKey; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedDatabase. /// - public ManagedDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedDatabaseVulnerabilityAssessment. @@ -86,14 +115,22 @@ public partial class ManagedDatabaseVulnerabilityAssessment : ProvisionableResou public ManagedDatabaseVulnerabilityAssessment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/databases/vulnerabilityAssessments", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _recurringScans = BicepValue.DefineProperty(this, "RecurringScans", ["properties", "recurringScans"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageContainerPath = BicepValue.DefineProperty(this, "StorageContainerPath", ["properties", "storageContainerPath"]); - _storageContainerSasKey = BicepValue.DefineProperty(this, "StorageContainerSasKey", ["properties", "storageContainerSasKey"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedDatabaseVulnerabilityAssessment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _recurringScans = DefineModelProperty("RecurringScans", ["properties", "recurringScans"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageContainerPath = DefineProperty("StorageContainerPath", ["properties", "storageContainerPath"]); + _storageContainerSasKey = DefineProperty("StorageContainerSasKey", ["properties", "storageContainerSasKey"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaseline.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaseline.cs index f1ad0843cd2e5..0445e29264bc7 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaseline.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaseline.cs @@ -21,26 +21,39 @@ public partial class ManagedDatabaseVulnerabilityAssessmentRuleBaseline : Provis /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The rule baseline result. /// - public BicepList BaselineResults { get => _baselineResults; set => _baselineResults.Assign(value); } - private readonly BicepList _baselineResults; + public BicepList BaselineResults + { + get { Initialize(); return _baselineResults!; } + set { Initialize(); _baselineResults!.Assign(value); } + } + private BicepList? _baselineResults; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ManagedDatabaseVulnerabilityAssessmentRuleBaseline. @@ -56,10 +69,18 @@ public partial class ManagedDatabaseVulnerabilityAssessmentRuleBaseline : Provis public ManagedDatabaseVulnerabilityAssessmentRuleBaseline(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/databases/vulnerabilityAssessments/rules/baselines", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _baselineResults = BicepList.DefineProperty(this, "BaselineResults", ["properties", "baselineResults"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedDatabaseVulnerabilityAssessmentRuleBaseline. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _baselineResults = DefineListProperty("BaselineResults", ["properties", "baselineResults"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstance.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstance.cs index 6fc1a37ccaaff..dfae487d18062 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstance.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstance.cs @@ -22,29 +22,45 @@ public partial class ManagedInstance : ProvisionableResource /// /// The name of the managed instance. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Administrator username for the managed instance. Can only be specified /// when the managed instance is being created (and is required for /// creation). /// - public BicepValue AdministratorLogin { get => _administratorLogin; set => _administratorLogin.Assign(value); } - private readonly BicepValue _administratorLogin; + public BicepValue AdministratorLogin + { + get { Initialize(); return _administratorLogin!; } + set { Initialize(); _administratorLogin!.Assign(value); } + } + private BicepValue? _administratorLogin; /// /// The administrator login password (required for managed instance /// creation). /// - public BicepValue AdministratorLoginPassword { get => _administratorLoginPassword; set => _administratorLoginPassword.Assign(value); } - private readonly BicepValue _administratorLoginPassword; + public BicepValue AdministratorLoginPassword + { + get { Initialize(); return _administratorLoginPassword!; } + set { Initialize(); _administratorLoginPassword!.Assign(value); } + } + private BicepValue? _administratorLoginPassword; /// /// The Azure Active Directory administrator of the instance. This can only @@ -52,44 +68,72 @@ public partial class ManagedInstance : ProvisionableResource /// be ignored or it will result in an error. For updates individual APIs /// will need to be used. /// - public BicepValue Administrators { get => _administrators; set => _administrators.Assign(value); } - private readonly BicepValue _administrators; + public ManagedInstanceExternalAdministrator Administrators + { + get { Initialize(); return _administrators!; } + set { Initialize(); AssignOrReplace(ref _administrators, value); } + } + private ManagedInstanceExternalAdministrator? _administrators; /// /// Collation of the managed instance. /// - public BicepValue Collation { get => _collation; set => _collation.Assign(value); } - private readonly BicepValue _collation; + public BicepValue Collation + { + get { Initialize(); return _collation!; } + set { Initialize(); _collation!.Assign(value); } + } + private BicepValue? _collation; /// /// The Azure Active Directory identity of the managed instance. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// The Id of the instance pool this managed server belongs to. /// - public BicepValue InstancePoolId { get => _instancePoolId; set => _instancePoolId.Assign(value); } - private readonly BicepValue _instancePoolId; + public BicepValue InstancePoolId + { + get { Initialize(); return _instancePoolId!; } + set { Initialize(); _instancePoolId!.Assign(value); } + } + private BicepValue? _instancePoolId; /// /// Whether or not the public data endpoint is enabled. /// - public BicepValue IsPublicDataEndpointEnabled { get => _isPublicDataEndpointEnabled; set => _isPublicDataEndpointEnabled.Assign(value); } - private readonly BicepValue _isPublicDataEndpointEnabled; + public BicepValue IsPublicDataEndpointEnabled + { + get { Initialize(); return _isPublicDataEndpointEnabled!; } + set { Initialize(); _isPublicDataEndpointEnabled!.Assign(value); } + } + private BicepValue? _isPublicDataEndpointEnabled; /// /// Whether or not the multi-az is enabled. /// - public BicepValue IsZoneRedundant { get => _isZoneRedundant; set => _isZoneRedundant.Assign(value); } - private readonly BicepValue _isZoneRedundant; + public BicepValue IsZoneRedundant + { + get { Initialize(); return _isZoneRedundant!; } + set { Initialize(); _isZoneRedundant!.Assign(value); } + } + private BicepValue? _isZoneRedundant; /// /// A CMK URI of the key to use for encryption. /// - public BicepValue KeyId { get => _keyId; set => _keyId.Assign(value); } - private readonly BicepValue _keyId; + public BicepValue KeyId + { + get { Initialize(); return _keyId!; } + set { Initialize(); _keyId!.Assign(value); } + } + private BicepValue? _keyId; /// /// The license type. Possible values are 'LicenseIncluded' @@ -97,22 +141,34 @@ public partial class ManagedInstance : ProvisionableResource /// 'BasePrice' (discounted AHB price for bringing your own SQL /// licenses). /// - public BicepValue LicenseType { get => _licenseType; set => _licenseType.Assign(value); } - private readonly BicepValue _licenseType; + public BicepValue LicenseType + { + get { Initialize(); return _licenseType!; } + set { Initialize(); _licenseType!.Assign(value); } + } + private BicepValue? _licenseType; /// /// Specifies maintenance configuration id to apply to this managed /// instance. /// - public BicepValue MaintenanceConfigurationId { get => _maintenanceConfigurationId; set => _maintenanceConfigurationId.Assign(value); } - private readonly BicepValue _maintenanceConfigurationId; + public BicepValue MaintenanceConfigurationId + { + get { Initialize(); return _maintenanceConfigurationId!; } + set { Initialize(); _maintenanceConfigurationId!.Assign(value); } + } + private BicepValue? _maintenanceConfigurationId; /// /// The resource id of another managed instance whose DNS zone this managed /// instance will share after creation. /// - public BicepValue ManagedDnsZonePartner { get => _managedDnsZonePartner; set => _managedDnsZonePartner.Assign(value); } - private readonly BicepValue _managedDnsZonePartner; + public BicepValue ManagedDnsZonePartner + { + get { Initialize(); return _managedDnsZonePartner!; } + set { Initialize(); _managedDnsZonePartner!.Assign(value); } + } + private BicepValue? _managedDnsZonePartner; /// /// Specifies the mode of database creation. @@ -121,27 +177,43 @@ public partial class ManagedInstance : ProvisionableResource /// set of backups to specific point in time. RestorePointInTime and /// SourceManagedInstanceId must be specified. /// - public BicepValue ManagedInstanceCreateMode { get => _managedInstanceCreateMode; set => _managedInstanceCreateMode.Assign(value); } - private readonly BicepValue _managedInstanceCreateMode; + public BicepValue ManagedInstanceCreateMode + { + get { Initialize(); return _managedInstanceCreateMode!; } + set { Initialize(); _managedInstanceCreateMode!.Assign(value); } + } + private BicepValue? _managedInstanceCreateMode; /// /// Minimal TLS version. Allowed values: 'None', '1.0', /// '1.1', '1.2'. /// - public BicepValue MinimalTlsVersion { get => _minimalTlsVersion; set => _minimalTlsVersion.Assign(value); } - private readonly BicepValue _minimalTlsVersion; + public BicepValue MinimalTlsVersion + { + get { Initialize(); return _minimalTlsVersion!; } + set { Initialize(); _minimalTlsVersion!.Assign(value); } + } + private BicepValue? _minimalTlsVersion; /// /// The resource id of a user assigned identity to be used by default. /// - public BicepValue PrimaryUserAssignedIdentityId { get => _primaryUserAssignedIdentityId; set => _primaryUserAssignedIdentityId.Assign(value); } - private readonly BicepValue _primaryUserAssignedIdentityId; + public BicepValue PrimaryUserAssignedIdentityId + { + get { Initialize(); return _primaryUserAssignedIdentityId!; } + set { Initialize(); _primaryUserAssignedIdentityId!.Assign(value); } + } + private BicepValue? _primaryUserAssignedIdentityId; /// /// Connection type used for connecting to the instance. /// - public BicepValue ProxyOverride { get => _proxyOverride; set => _proxyOverride.Assign(value); } - private readonly BicepValue _proxyOverride; + public BicepValue ProxyOverride + { + get { Initialize(); return _proxyOverride!; } + set { Initialize(); _proxyOverride!.Assign(value); } + } + private BicepValue? _proxyOverride; /// /// The storage account type to be used to store backups for this instance. @@ -149,55 +221,87 @@ public partial class ManagedInstance : ProvisionableResource /// (ZoneRedundantStorage), Geo (GeoRedundantStorage) and /// GeoZone(GeoZoneRedundantStorage). /// - public BicepValue RequestedBackupStorageRedundancy { get => _requestedBackupStorageRedundancy; set => _requestedBackupStorageRedundancy.Assign(value); } - private readonly BicepValue _requestedBackupStorageRedundancy; + public BicepValue RequestedBackupStorageRedundancy + { + get { Initialize(); return _requestedBackupStorageRedundancy!; } + set { Initialize(); _requestedBackupStorageRedundancy!.Assign(value); } + } + private BicepValue? _requestedBackupStorageRedundancy; /// /// Specifies the point in time (ISO8601 format) of the source database /// that will be restored to create the new database. /// - public BicepValue RestorePointInTime { get => _restorePointInTime; set => _restorePointInTime.Assign(value); } - private readonly BicepValue _restorePointInTime; + public BicepValue RestorePointInTime + { + get { Initialize(); return _restorePointInTime!; } + set { Initialize(); _restorePointInTime!.Assign(value); } + } + private BicepValue? _restorePointInTime; /// /// The managed instance's service principal. /// - public BicepValue ServicePrincipal { get => _servicePrincipal; set => _servicePrincipal.Assign(value); } - private readonly BicepValue _servicePrincipal; + public SqlServicePrincipal ServicePrincipal + { + get { Initialize(); return _servicePrincipal!; } + set { Initialize(); AssignOrReplace(ref _servicePrincipal, value); } + } + private SqlServicePrincipal? _servicePrincipal; /// /// Managed instance SKU. Allowed values for sku.name: GP_Gen5, GP_G8IM, /// GP_G8IH, BC_Gen5, BC_G8IM, BC_G8IH. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public SqlSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private SqlSku? _sku; /// /// The resource identifier of the source managed instance associated with /// create operation of this instance. /// - public BicepValue SourceManagedInstanceId { get => _sourceManagedInstanceId; set => _sourceManagedInstanceId.Assign(value); } - private readonly BicepValue _sourceManagedInstanceId; + public BicepValue SourceManagedInstanceId + { + get { Initialize(); return _sourceManagedInstanceId!; } + set { Initialize(); _sourceManagedInstanceId!.Assign(value); } + } + private BicepValue? _sourceManagedInstanceId; /// /// Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments /// of 32 GB allowed only. Maximum value depends on the selected hardware /// family and number of vCores. /// - public BicepValue StorageSizeInGB { get => _storageSizeInGB; set => _storageSizeInGB.Assign(value); } - private readonly BicepValue _storageSizeInGB; + public BicepValue StorageSizeInGB + { + get { Initialize(); return _storageSizeInGB!; } + set { Initialize(); _storageSizeInGB!.Assign(value); } + } + private BicepValue? _storageSizeInGB; /// /// Subnet resource ID for the managed instance. /// - public BicepValue SubnetId { get => _subnetId; set => _subnetId.Assign(value); } - private readonly BicepValue _subnetId; + public BicepValue SubnetId + { + get { Initialize(); return _subnetId!; } + set { Initialize(); _subnetId!.Assign(value); } + } + private BicepValue? _subnetId; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Id of the timezone. Allowed values are timezones supported by Windows. @@ -211,14 +315,22 @@ public partial class ManagedInstance : ProvisionableResource /// An example of valid timezone id is "Pacific Standard /// Time" or "W. Europe Standard Time". /// - public BicepValue TimezoneId { get => _timezoneId; set => _timezoneId.Assign(value); } - private readonly BicepValue _timezoneId; + public BicepValue TimezoneId + { + get { Initialize(); return _timezoneId!; } + set { Initialize(); _timezoneId!.Assign(value); } + } + private BicepValue? _timezoneId; /// /// The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. /// - public BicepValue VCores { get => _vCores; set => _vCores.Assign(value); } - private readonly BicepValue _vCores; + public BicepValue VCores + { + get { Initialize(); return _vCores!; } + set { Initialize(); _vCores!.Assign(value); } + } + private BicepValue? _vCores; /// /// The storage account type used to store backups for this instance. The @@ -226,50 +338,74 @@ public partial class ManagedInstance : ProvisionableResource /// (ZoneRedundantStorage), Geo (GeoRedundantStorage) and /// GeoZone(GeoZoneRedundantStorage). /// - public BicepValue CurrentBackupStorageRedundancy { get => _currentBackupStorageRedundancy; } - private readonly BicepValue _currentBackupStorageRedundancy; + public BicepValue CurrentBackupStorageRedundancy + { + get { Initialize(); return _currentBackupStorageRedundancy!; } + } + private BicepValue? _currentBackupStorageRedundancy; /// /// The Dns Zone that the managed instance is in. /// - public BicepValue DnsZone { get => _dnsZone; } - private readonly BicepValue _dnsZone; + public BicepValue DnsZone + { + get { Initialize(); return _dnsZone!; } + } + private BicepValue? _dnsZone; /// /// The fully qualified domain name of the managed instance. /// - public BicepValue FullyQualifiedDomainName { get => _fullyQualifiedDomainName; } - private readonly BicepValue _fullyQualifiedDomainName; + public BicepValue FullyQualifiedDomainName + { + get { Initialize(); return _fullyQualifiedDomainName!; } + } + private BicepValue? _fullyQualifiedDomainName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// List of private endpoint connections on a managed instance. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// Gets the provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The state of the managed instance. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ManagedInstance. @@ -284,42 +420,49 @@ public partial class ManagedInstance : ProvisionableResource public ManagedInstance(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _administratorLogin = BicepValue.DefineProperty(this, "AdministratorLogin", ["properties", "administratorLogin"]); - _administratorLoginPassword = BicepValue.DefineProperty(this, "AdministratorLoginPassword", ["properties", "administratorLoginPassword"]); - _administrators = BicepValue.DefineProperty(this, "Administrators", ["properties", "administrators"]); - _collation = BicepValue.DefineProperty(this, "Collation", ["properties", "collation"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _instancePoolId = BicepValue.DefineProperty(this, "InstancePoolId", ["properties", "instancePoolId"]); - _isPublicDataEndpointEnabled = BicepValue.DefineProperty(this, "IsPublicDataEndpointEnabled", ["properties", "publicDataEndpointEnabled"]); - _isZoneRedundant = BicepValue.DefineProperty(this, "IsZoneRedundant", ["properties", "zoneRedundant"]); - _keyId = BicepValue.DefineProperty(this, "KeyId", ["properties", "keyId"]); - _licenseType = BicepValue.DefineProperty(this, "LicenseType", ["properties", "licenseType"]); - _maintenanceConfigurationId = BicepValue.DefineProperty(this, "MaintenanceConfigurationId", ["properties", "maintenanceConfigurationId"]); - _managedDnsZonePartner = BicepValue.DefineProperty(this, "ManagedDnsZonePartner", ["properties", "dnsZonePartner"]); - _managedInstanceCreateMode = BicepValue.DefineProperty(this, "ManagedInstanceCreateMode", ["properties", "managedInstanceCreateMode"]); - _minimalTlsVersion = BicepValue.DefineProperty(this, "MinimalTlsVersion", ["properties", "minimalTlsVersion"]); - _primaryUserAssignedIdentityId = BicepValue.DefineProperty(this, "PrimaryUserAssignedIdentityId", ["properties", "primaryUserAssignedIdentityId"]); - _proxyOverride = BicepValue.DefineProperty(this, "ProxyOverride", ["properties", "proxyOverride"]); - _requestedBackupStorageRedundancy = BicepValue.DefineProperty(this, "RequestedBackupStorageRedundancy", ["properties", "requestedBackupStorageRedundancy"]); - _restorePointInTime = BicepValue.DefineProperty(this, "RestorePointInTime", ["properties", "restorePointInTime"]); - _servicePrincipal = BicepValue.DefineProperty(this, "ServicePrincipal", ["properties", "servicePrincipal"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _sourceManagedInstanceId = BicepValue.DefineProperty(this, "SourceManagedInstanceId", ["properties", "sourceManagedInstanceId"]); - _storageSizeInGB = BicepValue.DefineProperty(this, "StorageSizeInGB", ["properties", "storageSizeInGB"]); - _subnetId = BicepValue.DefineProperty(this, "SubnetId", ["properties", "subnetId"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _timezoneId = BicepValue.DefineProperty(this, "TimezoneId", ["properties", "timezoneId"]); - _vCores = BicepValue.DefineProperty(this, "VCores", ["properties", "vCores"]); - _currentBackupStorageRedundancy = BicepValue.DefineProperty(this, "CurrentBackupStorageRedundancy", ["properties", "currentBackupStorageRedundancy"], isOutput: true); - _dnsZone = BicepValue.DefineProperty(this, "DnsZone", ["properties", "dnsZone"], isOutput: true); - _fullyQualifiedDomainName = BicepValue.DefineProperty(this, "FullyQualifiedDomainName", ["properties", "fullyQualifiedDomainName"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagedInstance. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _administratorLogin = DefineProperty("AdministratorLogin", ["properties", "administratorLogin"]); + _administratorLoginPassword = DefineProperty("AdministratorLoginPassword", ["properties", "administratorLoginPassword"]); + _administrators = DefineModelProperty("Administrators", ["properties", "administrators"]); + _collation = DefineProperty("Collation", ["properties", "collation"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _instancePoolId = DefineProperty("InstancePoolId", ["properties", "instancePoolId"]); + _isPublicDataEndpointEnabled = DefineProperty("IsPublicDataEndpointEnabled", ["properties", "publicDataEndpointEnabled"]); + _isZoneRedundant = DefineProperty("IsZoneRedundant", ["properties", "zoneRedundant"]); + _keyId = DefineProperty("KeyId", ["properties", "keyId"]); + _licenseType = DefineProperty("LicenseType", ["properties", "licenseType"]); + _maintenanceConfigurationId = DefineProperty("MaintenanceConfigurationId", ["properties", "maintenanceConfigurationId"]); + _managedDnsZonePartner = DefineProperty("ManagedDnsZonePartner", ["properties", "dnsZonePartner"]); + _managedInstanceCreateMode = DefineProperty("ManagedInstanceCreateMode", ["properties", "managedInstanceCreateMode"]); + _minimalTlsVersion = DefineProperty("MinimalTlsVersion", ["properties", "minimalTlsVersion"]); + _primaryUserAssignedIdentityId = DefineProperty("PrimaryUserAssignedIdentityId", ["properties", "primaryUserAssignedIdentityId"]); + _proxyOverride = DefineProperty("ProxyOverride", ["properties", "proxyOverride"]); + _requestedBackupStorageRedundancy = DefineProperty("RequestedBackupStorageRedundancy", ["properties", "requestedBackupStorageRedundancy"]); + _restorePointInTime = DefineProperty("RestorePointInTime", ["properties", "restorePointInTime"]); + _servicePrincipal = DefineModelProperty("ServicePrincipal", ["properties", "servicePrincipal"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _sourceManagedInstanceId = DefineProperty("SourceManagedInstanceId", ["properties", "sourceManagedInstanceId"]); + _storageSizeInGB = DefineProperty("StorageSizeInGB", ["properties", "storageSizeInGB"]); + _subnetId = DefineProperty("SubnetId", ["properties", "subnetId"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _timezoneId = DefineProperty("TimezoneId", ["properties", "timezoneId"]); + _vCores = DefineProperty("VCores", ["properties", "vCores"]); + _currentBackupStorageRedundancy = DefineProperty("CurrentBackupStorageRedundancy", ["properties", "currentBackupStorageRedundancy"], isOutput: true); + _dnsZone = DefineProperty("DnsZone", ["properties", "dnsZone"], isOutput: true); + _fullyQualifiedDomainName = DefineProperty("FullyQualifiedDomainName", ["properties", "fullyQualifiedDomainName"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceAdministrator.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceAdministrator.cs index d4883b6cdb2d2..5d96bda5e06b7 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceAdministrator.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceAdministrator.cs @@ -20,50 +20,79 @@ public partial class ManagedInstanceAdministrator : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Type of the managed instance administrator. /// - public BicepValue AdministratorType { get => _administratorType; set => _administratorType.Assign(value); } - private readonly BicepValue _administratorType; + public BicepValue AdministratorType + { + get { Initialize(); return _administratorType!; } + set { Initialize(); _administratorType!.Assign(value); } + } + private BicepValue? _administratorType; /// /// Login name of the managed instance administrator. /// - public BicepValue Login { get => _login; set => _login.Assign(value); } - private readonly BicepValue _login; + public BicepValue Login + { + get { Initialize(); return _login!; } + set { Initialize(); _login!.Assign(value); } + } + private BicepValue? _login; /// /// SID (object ID) of the managed instance administrator. /// - public BicepValue Sid { get => _sid; set => _sid.Assign(value); } - private readonly BicepValue _sid; + public BicepValue Sid + { + get { Initialize(); return _sid!; } + set { Initialize(); _sid!.Assign(value); } + } + private BicepValue? _sid; /// /// Tenant ID of the managed instance administrator. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedInstanceAdministrator. @@ -78,14 +107,21 @@ public partial class ManagedInstanceAdministrator : ProvisionableResource public ManagedInstanceAdministrator(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/administrators", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _administratorType = BicepValue.DefineProperty(this, "AdministratorType", ["properties", "administratorType"]); - _login = BicepValue.DefineProperty(this, "Login", ["properties", "login"]); - _sid = BicepValue.DefineProperty(this, "Sid", ["properties", "sid"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["properties", "tenantId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ManagedInstanceAdministrator. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _administratorType = DefineProperty("AdministratorType", ["properties", "administratorType"]); + _login = DefineProperty("Login", ["properties", "login"]); + _sid = DefineProperty("Sid", ["properties", "sid"]); + _tenantId = DefineProperty("TenantId", ["properties", "tenantId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceAdvancedThreatProtection.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceAdvancedThreatProtection.cs index 06d1ea1a5167e..c2a839c4bad6f 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceAdvancedThreatProtection.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceAdvancedThreatProtection.cs @@ -20,40 +20,60 @@ public partial class ManagedInstanceAdvancedThreatProtection : ProvisionableReso /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies the state of the Advanced Threat Protection, whether it is /// enabled or disabled or a state has not been applied yet on the /// specific database or server. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the UTC creation time of the policy. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedInstanceAdvancedThreatProtection. @@ -68,12 +88,20 @@ public partial class ManagedInstanceAdvancedThreatProtection : ProvisionableReso public ManagedInstanceAdvancedThreatProtection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/advancedThreatProtectionSettings", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstanceAdvancedThreatProtection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthentication.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthentication.cs index 8634179138493..200ac776c2abe 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthentication.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthentication.cs @@ -20,32 +20,49 @@ public partial class ManagedInstanceAzureADOnlyAuthentication : ProvisionableRes /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Azure Active Directory only Authentication enabled. /// - public BicepValue IsAzureADOnlyAuthenticationEnabled { get => _isAzureADOnlyAuthenticationEnabled; set => _isAzureADOnlyAuthenticationEnabled.Assign(value); } - private readonly BicepValue _isAzureADOnlyAuthenticationEnabled; + public BicepValue IsAzureADOnlyAuthenticationEnabled + { + get { Initialize(); return _isAzureADOnlyAuthenticationEnabled!; } + set { Initialize(); _isAzureADOnlyAuthenticationEnabled!.Assign(value); } + } + private BicepValue? _isAzureADOnlyAuthenticationEnabled; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedInstanceAzureADOnlyAuthentication. @@ -61,11 +78,19 @@ public partial class ManagedInstanceAzureADOnlyAuthentication : ProvisionableRes public ManagedInstanceAzureADOnlyAuthentication(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/azureADOnlyAuthentications", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _isAzureADOnlyAuthenticationEnabled = BicepValue.DefineProperty(this, "IsAzureADOnlyAuthenticationEnabled", ["properties", "azureADOnlyAuthentication"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstanceAzureADOnlyAuthentication. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _isAzureADOnlyAuthenticationEnabled = DefineProperty("IsAzureADOnlyAuthenticationEnabled", ["properties", "azureADOnlyAuthentication"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceDtc.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceDtc.cs index f5466a047c1bb..846cd428e73d7 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceDtc.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceDtc.cs @@ -21,56 +21,87 @@ public partial class ManagedInstanceDtc : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Active status of managed instance DTC. /// - public BicepValue DtcEnabled { get => _dtcEnabled; set => _dtcEnabled.Assign(value); } - private readonly BicepValue _dtcEnabled; + public BicepValue DtcEnabled + { + get { Initialize(); return _dtcEnabled!; } + set { Initialize(); _dtcEnabled!.Assign(value); } + } + private BicepValue? _dtcEnabled; /// /// External dns suffix search list of managed instance DTC. /// - public BicepList ExternalDnsSuffixSearchList { get => _externalDnsSuffixSearchList; set => _externalDnsSuffixSearchList.Assign(value); } - private readonly BicepList _externalDnsSuffixSearchList; + public BicepList ExternalDnsSuffixSearchList + { + get { Initialize(); return _externalDnsSuffixSearchList!; } + set { Initialize(); _externalDnsSuffixSearchList!.Assign(value); } + } + private BicepList? _externalDnsSuffixSearchList; /// /// Security settings of managed instance DTC. /// - public BicepValue SecuritySettings { get => _securitySettings; set => _securitySettings.Assign(value); } - private readonly BicepValue _securitySettings; + public ManagedInstanceDtcSecuritySettings SecuritySettings + { + get { Initialize(); return _securitySettings!; } + set { Initialize(); AssignOrReplace(ref _securitySettings, value); } + } + private ManagedInstanceDtcSecuritySettings? _securitySettings; /// /// Host name dns suffix of managed instance DTC. /// - public BicepValue DtcHostNameDnsSuffix { get => _dtcHostNameDnsSuffix; } - private readonly BicepValue _dtcHostNameDnsSuffix; + public BicepValue DtcHostNameDnsSuffix + { + get { Initialize(); return _dtcHostNameDnsSuffix!; } + } + private BicepValue? _dtcHostNameDnsSuffix; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of managed instance DTC. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedInstanceDtc. @@ -85,15 +116,22 @@ public partial class ManagedInstanceDtc : ProvisionableResource public ManagedInstanceDtc(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/dtc", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _dtcEnabled = BicepValue.DefineProperty(this, "DtcEnabled", ["properties", "dtcEnabled"]); - _externalDnsSuffixSearchList = BicepList.DefineProperty(this, "ExternalDnsSuffixSearchList", ["properties", "externalDnsSuffixSearchList"]); - _securitySettings = BicepValue.DefineProperty(this, "SecuritySettings", ["properties", "securitySettings"]); - _dtcHostNameDnsSuffix = BicepValue.DefineProperty(this, "DtcHostNameDnsSuffix", ["properties", "dtcHostNameDnsSuffix"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ManagedInstanceDtc. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _dtcEnabled = DefineProperty("DtcEnabled", ["properties", "dtcEnabled"]); + _externalDnsSuffixSearchList = DefineListProperty("ExternalDnsSuffixSearchList", ["properties", "externalDnsSuffixSearchList"]); + _securitySettings = DefineModelProperty("SecuritySettings", ["properties", "securitySettings"]); + _dtcHostNameDnsSuffix = DefineProperty("DtcHostNameDnsSuffix", ["properties", "dtcHostNameDnsSuffix"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceEncryptionProtector.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceEncryptionProtector.cs index c7a161562cde3..03bfcba8317c3 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceEncryptionProtector.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceEncryptionProtector.cs @@ -20,64 +20,98 @@ public partial class ManagedInstanceEncryptionProtector : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Key auto rotation opt-in flag. Either true or false. /// - public BicepValue IsAutoRotationEnabled { get => _isAutoRotationEnabled; set => _isAutoRotationEnabled.Assign(value); } - private readonly BicepValue _isAutoRotationEnabled; + public BicepValue IsAutoRotationEnabled + { + get { Initialize(); return _isAutoRotationEnabled!; } + set { Initialize(); _isAutoRotationEnabled!.Assign(value); } + } + private BicepValue? _isAutoRotationEnabled; /// /// The name of the managed instance key. /// - public BicepValue ServerKeyName { get => _serverKeyName; set => _serverKeyName.Assign(value); } - private readonly BicepValue _serverKeyName; + public BicepValue ServerKeyName + { + get { Initialize(); return _serverKeyName!; } + set { Initialize(); _serverKeyName!.Assign(value); } + } + private BicepValue? _serverKeyName; /// /// The encryption protector type like 'ServiceManaged', /// 'AzureKeyVault'. /// - public BicepValue ServerKeyType { get => _serverKeyType; set => _serverKeyType.Assign(value); } - private readonly BicepValue _serverKeyType; + public BicepValue ServerKeyType + { + get { Initialize(); return _serverKeyType!; } + set { Initialize(); _serverKeyType!.Assign(value); } + } + private BicepValue? _serverKeyType; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Kind of encryption protector. This is metadata used for the Azure /// portal experience. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Thumbprint of the server key. /// - public BicepValue Thumbprint { get => _thumbprint; } - private readonly BicepValue _thumbprint; + public BicepValue Thumbprint + { + get { Initialize(); return _thumbprint!; } + } + private BicepValue? _thumbprint; /// /// The URI of the server key. /// - public BicepValue Uri { get => _uri; } - private readonly BicepValue _uri; + public BicepValue Uri + { + get { Initialize(); return _uri!; } + } + private BicepValue? _uri; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedInstanceEncryptionProtector. @@ -92,16 +126,24 @@ public partial class ManagedInstanceEncryptionProtector : ProvisionableResource public ManagedInstanceEncryptionProtector(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/encryptionProtector", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _isAutoRotationEnabled = BicepValue.DefineProperty(this, "IsAutoRotationEnabled", ["properties", "autoRotationEnabled"]); - _serverKeyName = BicepValue.DefineProperty(this, "ServerKeyName", ["properties", "serverKeyName"]); - _serverKeyType = BicepValue.DefineProperty(this, "ServerKeyType", ["properties", "serverKeyType"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _thumbprint = BicepValue.DefineProperty(this, "Thumbprint", ["properties", "thumbprint"], isOutput: true); - _uri = BicepValue.DefineProperty(this, "Uri", ["properties", "uri"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstanceEncryptionProtector. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _isAutoRotationEnabled = DefineProperty("IsAutoRotationEnabled", ["properties", "autoRotationEnabled"]); + _serverKeyName = DefineProperty("ServerKeyName", ["properties", "serverKeyName"]); + _serverKeyType = DefineProperty("ServerKeyType", ["properties", "serverKeyType"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _thumbprint = DefineProperty("Thumbprint", ["properties", "thumbprint"], isOutput: true); + _uri = DefineProperty("Uri", ["properties", "uri"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceKey.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceKey.cs index e0fe266c92eb0..aa7941735b31e 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceKey.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceKey.cs @@ -21,64 +21,98 @@ public partial class ManagedInstanceKey : ProvisionableResource /// The name of the managed instance key to be operated on (updated or /// created). /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The key type like 'ServiceManaged', 'AzureKeyVault'. /// - public BicepValue ServerKeyType { get => _serverKeyType; set => _serverKeyType.Assign(value); } - private readonly BicepValue _serverKeyType; + public BicepValue ServerKeyType + { + get { Initialize(); return _serverKeyType!; } + set { Initialize(); _serverKeyType!.Assign(value); } + } + private BicepValue? _serverKeyType; /// /// The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI /// is required. /// - public BicepValue Uri { get => _uri; set => _uri.Assign(value); } - private readonly BicepValue _uri; + public BicepValue Uri + { + get { Initialize(); return _uri!; } + set { Initialize(); _uri!.Assign(value); } + } + private BicepValue? _uri; /// /// The key creation date. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Key auto rotation opt-in flag. Either true or false. /// - public BicepValue IsAutoRotationEnabled { get => _isAutoRotationEnabled; } - private readonly BicepValue _isAutoRotationEnabled; + public BicepValue IsAutoRotationEnabled + { + get { Initialize(); return _isAutoRotationEnabled!; } + } + private BicepValue? _isAutoRotationEnabled; /// /// Kind of encryption protector. This is metadata used for the Azure /// portal experience. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Thumbprint of the key. /// - public BicepValue Thumbprint { get => _thumbprint; } - private readonly BicepValue _thumbprint; + public BicepValue Thumbprint + { + get { Initialize(); return _thumbprint!; } + } + private BicepValue? _thumbprint; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedInstanceKey. @@ -93,16 +127,23 @@ public partial class ManagedInstanceKey : ProvisionableResource public ManagedInstanceKey(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/keys", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _serverKeyType = BicepValue.DefineProperty(this, "ServerKeyType", ["properties", "serverKeyType"]); - _uri = BicepValue.DefineProperty(this, "Uri", ["properties", "uri"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationDate"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isAutoRotationEnabled = BicepValue.DefineProperty(this, "IsAutoRotationEnabled", ["properties", "autoRotationEnabled"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _thumbprint = BicepValue.DefineProperty(this, "Thumbprint", ["properties", "thumbprint"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ManagedInstanceKey. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _serverKeyType = DefineProperty("ServerKeyType", ["properties", "serverKeyType"]); + _uri = DefineProperty("Uri", ["properties", "uri"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationDate"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isAutoRotationEnabled = DefineProperty("IsAutoRotationEnabled", ["properties", "autoRotationEnabled"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _thumbprint = DefineProperty("Thumbprint", ["properties", "thumbprint"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceLongTermRetentionPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceLongTermRetentionPolicy.cs index a8b88bf6b7ac1..9abcdda1b6c8b 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceLongTermRetentionPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceLongTermRetentionPolicy.cs @@ -20,50 +20,79 @@ public partial class ManagedInstanceLongTermRetentionPolicy : ProvisionableResou /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The monthly retention policy for an LTR backup in an ISO 8601 format. /// - public BicepValue MonthlyRetention { get => _monthlyRetention; set => _monthlyRetention.Assign(value); } - private readonly BicepValue _monthlyRetention; + public BicepValue MonthlyRetention + { + get { Initialize(); return _monthlyRetention!; } + set { Initialize(); _monthlyRetention!.Assign(value); } + } + private BicepValue? _monthlyRetention; /// /// The weekly retention policy for an LTR backup in an ISO 8601 format. /// - public BicepValue WeeklyRetention { get => _weeklyRetention; set => _weeklyRetention.Assign(value); } - private readonly BicepValue _weeklyRetention; + public BicepValue WeeklyRetention + { + get { Initialize(); return _weeklyRetention!; } + set { Initialize(); _weeklyRetention!.Assign(value); } + } + private BicepValue? _weeklyRetention; /// /// The week of year to take the yearly backup in an ISO 8601 format. /// - public BicepValue WeekOfYear { get => _weekOfYear; set => _weekOfYear.Assign(value); } - private readonly BicepValue _weekOfYear; + public BicepValue WeekOfYear + { + get { Initialize(); return _weekOfYear!; } + set { Initialize(); _weekOfYear!.Assign(value); } + } + private BicepValue? _weekOfYear; /// /// The yearly retention policy for an LTR backup in an ISO 8601 format. /// - public BicepValue YearlyRetention { get => _yearlyRetention; set => _yearlyRetention.Assign(value); } - private readonly BicepValue _yearlyRetention; + public BicepValue YearlyRetention + { + get { Initialize(); return _yearlyRetention!; } + set { Initialize(); _yearlyRetention!.Assign(value); } + } + private BicepValue? _yearlyRetention; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedDatabase. /// - public ManagedDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedInstanceLongTermRetentionPolicy. @@ -78,14 +107,22 @@ public partial class ManagedInstanceLongTermRetentionPolicy : ProvisionableResou public ManagedInstanceLongTermRetentionPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/databases/backupLongTermRetentionPolicies", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _monthlyRetention = BicepValue.DefineProperty(this, "MonthlyRetention", ["properties", "monthlyRetention"]); - _weeklyRetention = BicepValue.DefineProperty(this, "WeeklyRetention", ["properties", "weeklyRetention"]); - _weekOfYear = BicepValue.DefineProperty(this, "WeekOfYear", ["properties", "weekOfYear"]); - _yearlyRetention = BicepValue.DefineProperty(this, "YearlyRetention", ["properties", "yearlyRetention"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstanceLongTermRetentionPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _monthlyRetention = DefineProperty("MonthlyRetention", ["properties", "monthlyRetention"]); + _weeklyRetention = DefineProperty("WeeklyRetention", ["properties", "weeklyRetention"]); + _weekOfYear = DefineProperty("WeekOfYear", ["properties", "weekOfYear"]); + _yearlyRetention = DefineProperty("YearlyRetention", ["properties", "yearlyRetention"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstancePrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstancePrivateEndpointConnection.cs index e988583f7fc3b..4cf805d0b381d 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstancePrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstancePrivateEndpointConnection.cs @@ -20,44 +20,69 @@ public partial class ManagedInstancePrivateEndpointConnection : ProvisionableRes /// /// The System.String to use. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Connection State of the Private Endpoint Connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public ManagedInstancePrivateLinkServiceConnectionStateProperty ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private ManagedInstancePrivateLinkServiceConnectionStateProperty? _connectionState; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// State of the Private Endpoint Connection. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedInstancePrivateEndpointConnection. @@ -73,13 +98,21 @@ public partial class ManagedInstancePrivateEndpointConnection : ProvisionableRes public ManagedInstancePrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/privateEndpointConnections", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstancePrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceServerConfigurationOption.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceServerConfigurationOption.cs index 04c1d76f93aa0..2932466baa162 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceServerConfigurationOption.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceServerConfigurationOption.cs @@ -20,38 +20,58 @@ public partial class ManagedInstanceServerConfigurationOption : ProvisionableRes /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Value of the server configuration option. /// - public BicepValue ServerConfigurationOptionValue { get => _serverConfigurationOptionValue; set => _serverConfigurationOptionValue.Assign(value); } - private readonly BicepValue _serverConfigurationOptionValue; + public BicepValue ServerConfigurationOptionValue + { + get { Initialize(); return _serverConfigurationOptionValue!; } + set { Initialize(); _serverConfigurationOptionValue!.Assign(value); } + } + private BicepValue? _serverConfigurationOptionValue; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of server configuration option. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedInstanceServerConfigurationOption. @@ -67,12 +87,20 @@ public partial class ManagedInstanceServerConfigurationOption : ProvisionableRes public ManagedInstanceServerConfigurationOption(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/serverConfigurationOptions", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _serverConfigurationOptionValue = BicepValue.DefineProperty(this, "ServerConfigurationOptionValue", ["properties", "serverConfigurationOptionValue"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstanceServerConfigurationOption. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _serverConfigurationOptionValue = DefineProperty("ServerConfigurationOptionValue", ["properties", "serverConfigurationOptionValue"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceServerTrustCertificate.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceServerTrustCertificate.cs index 1341a3ca8bb7e..56b3ae4400333 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceServerTrustCertificate.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceServerTrustCertificate.cs @@ -20,44 +20,68 @@ public partial class ManagedInstanceServerTrustCertificate : ProvisionableResour /// /// Name of of the certificate to upload. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The certificate public blob. /// - public BicepValue PublicBlob { get => _publicBlob; set => _publicBlob.Assign(value); } - private readonly BicepValue _publicBlob; + public BicepValue PublicBlob + { + get { Initialize(); return _publicBlob!; } + set { Initialize(); _publicBlob!.Assign(value); } + } + private BicepValue? _publicBlob; /// /// The certificate name. /// - public BicepValue CertificateName { get => _certificateName; } - private readonly BicepValue _certificateName; + public BicepValue CertificateName + { + get { Initialize(); return _certificateName!; } + } + private BicepValue? _certificateName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The certificate thumbprint. /// - public BicepValue Thumbprint { get => _thumbprint; } - private readonly BicepValue _thumbprint; + public BicepValue Thumbprint + { + get { Initialize(); return _thumbprint!; } + } + private BicepValue? _thumbprint; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedInstanceServerTrustCertificate. @@ -72,13 +96,21 @@ public partial class ManagedInstanceServerTrustCertificate : ProvisionableResour public ManagedInstanceServerTrustCertificate(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/serverTrustCertificates", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _publicBlob = BicepValue.DefineProperty(this, "PublicBlob", ["properties", "publicBlob"]); - _certificateName = BicepValue.DefineProperty(this, "CertificateName", ["properties", "certificateName"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _thumbprint = BicepValue.DefineProperty(this, "Thumbprint", ["properties", "thumbprint"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstanceServerTrustCertificate. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _publicBlob = DefineProperty("PublicBlob", ["properties", "publicBlob"]); + _certificateName = DefineProperty("CertificateName", ["properties", "certificateName"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _thumbprint = DefineProperty("Thumbprint", ["properties", "thumbprint"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceStartStopSchedule.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceStartStopSchedule.cs index 9bddad6d99021..6a5f66fdd962d 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceStartStopSchedule.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceStartStopSchedule.cs @@ -21,57 +21,88 @@ public partial class ManagedInstanceStartStopSchedule : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The description of the schedule. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Schedule list. /// - public BicepList ScheduleList { get => _scheduleList; set => _scheduleList.Assign(value); } - private readonly BicepList _scheduleList; + public BicepList ScheduleList + { + get { Initialize(); return _scheduleList!; } + set { Initialize(); _scheduleList!.Assign(value); } + } + private BicepList? _scheduleList; /// /// The time zone of the schedule. /// - public BicepValue TimeZoneId { get => _timeZoneId; set => _timeZoneId.Assign(value); } - private readonly BicepValue _timeZoneId; + public BicepValue TimeZoneId + { + get { Initialize(); return _timeZoneId!; } + set { Initialize(); _timeZoneId!.Assign(value); } + } + private BicepValue? _timeZoneId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Timestamp when the next action will be executed in the corresponding /// schedule time zone. /// - public BicepValue NextExecutionTime { get => _nextExecutionTime; } - private readonly BicepValue _nextExecutionTime; + public BicepValue NextExecutionTime + { + get { Initialize(); return _nextExecutionTime!; } + } + private BicepValue? _nextExecutionTime; /// /// Next action to be executed (Start or Stop). /// - public BicepValue NextRunAction { get => _nextRunAction; } - private readonly BicepValue _nextRunAction; + public BicepValue NextRunAction + { + get { Initialize(); return _nextRunAction!; } + } + private BicepValue? _nextRunAction; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedInstanceStartStopSchedule. @@ -86,15 +117,23 @@ public partial class ManagedInstanceStartStopSchedule : ProvisionableResource public ManagedInstanceStartStopSchedule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/startStopSchedules", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _scheduleList = BicepList.DefineProperty(this, "ScheduleList", ["properties", "scheduleList"]); - _timeZoneId = BicepValue.DefineProperty(this, "TimeZoneId", ["properties", "timeZoneId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _nextExecutionTime = BicepValue.DefineProperty(this, "NextExecutionTime", ["properties", "nextExecutionTime"], isOutput: true); - _nextRunAction = BicepValue.DefineProperty(this, "NextRunAction", ["properties", "nextRunAction"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstanceStartStopSchedule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _description = DefineProperty("Description", ["properties", "description"]); + _scheduleList = DefineListProperty("ScheduleList", ["properties", "scheduleList"]); + _timeZoneId = DefineProperty("TimeZoneId", ["properties", "timeZoneId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _nextExecutionTime = DefineProperty("NextExecutionTime", ["properties", "nextExecutionTime"], isOutput: true); + _nextRunAction = DefineProperty("NextRunAction", ["properties", "nextRunAction"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceVulnerabilityAssessment.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceVulnerabilityAssessment.cs index ccfce21ca0c6d..c1572febed7bb 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceVulnerabilityAssessment.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedInstanceVulnerabilityAssessment.cs @@ -21,14 +21,21 @@ public partial class ManagedInstanceVulnerabilityAssessment : ProvisionableResou /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The recurring scans settings. /// - public BicepValue RecurringScans { get => _recurringScans; set => _recurringScans.Assign(value); } - private readonly BicepValue _recurringScans; + public VulnerabilityAssessmentRecurringScansProperties RecurringScans + { + get { Initialize(); return _recurringScans!; } + set { Initialize(); AssignOrReplace(ref _recurringScans, value); } + } + private VulnerabilityAssessmentRecurringScansProperties? _recurringScans; /// /// Specifies the identifier key of the storage account for vulnerability @@ -36,15 +43,23 @@ public partial class ManagedInstanceVulnerabilityAssessment : ProvisionableResou /// isn't specified, storageAccountAccessKey is required. Applies /// only if the storage account is not behind a Vnet or a firewall. /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// A blob storage container path to hold the scan results (e.g. /// https://myStorage.blob.core.windows.net/VaScans/). /// - public BicepValue StorageContainerPath { get => _storageContainerPath; set => _storageContainerPath.Assign(value); } - private readonly BicepValue _storageContainerPath; + public BicepValue StorageContainerPath + { + get { Initialize(); return _storageContainerPath!; } + set { Initialize(); _storageContainerPath!.Assign(value); } + } + private BicepValue? _storageContainerPath; /// /// A shared access signature (SAS Key) that has write access to the blob @@ -53,26 +68,40 @@ public partial class ManagedInstanceVulnerabilityAssessment : ProvisionableResou /// StorageContainerSasKey is required. Applies only if the storage /// account is not behind a Vnet or a firewall. /// - public BicepValue StorageContainerSasKey { get => _storageContainerSasKey; set => _storageContainerSasKey.Assign(value); } - private readonly BicepValue _storageContainerSasKey; + public BicepValue StorageContainerSasKey + { + get { Initialize(); return _storageContainerSasKey!; } + set { Initialize(); _storageContainerSasKey!.Assign(value); } + } + private BicepValue? _storageContainerSasKey; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedInstanceVulnerabilityAssessment. @@ -87,14 +116,22 @@ public partial class ManagedInstanceVulnerabilityAssessment : ProvisionableResou public ManagedInstanceVulnerabilityAssessment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/vulnerabilityAssessments", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _recurringScans = BicepValue.DefineProperty(this, "RecurringScans", ["properties", "recurringScans"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageContainerPath = BicepValue.DefineProperty(this, "StorageContainerPath", ["properties", "storageContainerPath"]); - _storageContainerSasKey = BicepValue.DefineProperty(this, "StorageContainerSasKey", ["properties", "storageContainerSasKey"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstanceVulnerabilityAssessment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _recurringScans = DefineModelProperty("RecurringScans", ["properties", "recurringScans"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageContainerPath = DefineProperty("StorageContainerPath", ["properties", "storageContainerPath"]); + _storageContainerSasKey = DefineProperty("StorageContainerSasKey", ["properties", "storageContainerSasKey"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedLedgerDigestUpload.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedLedgerDigestUpload.cs index 213e3c3c33b30..8ffabcdced692 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedLedgerDigestUpload.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedLedgerDigestUpload.cs @@ -20,39 +20,59 @@ public partial class ManagedLedgerDigestUpload : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The digest storage endpoint, which must be either an Azure blob storage /// endpoint or an URI for Azure Confidential Ledger. /// - public BicepValue DigestStorageEndpoint { get => _digestStorageEndpoint; set => _digestStorageEndpoint.Assign(value); } - private readonly BicepValue _digestStorageEndpoint; + public BicepValue DigestStorageEndpoint + { + get { Initialize(); return _digestStorageEndpoint!; } + set { Initialize(); _digestStorageEndpoint!.Assign(value); } + } + private BicepValue? _digestStorageEndpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Specifies the state of ledger digest upload. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedDatabase. /// - public ManagedDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedLedgerDigestUpload. @@ -67,12 +87,19 @@ public partial class ManagedLedgerDigestUpload : ProvisionableResource public ManagedLedgerDigestUpload(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/databases/ledgerDigestUploads", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _digestStorageEndpoint = BicepValue.DefineProperty(this, "DigestStorageEndpoint", ["properties", "digestStorageEndpoint"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ManagedLedgerDigestUpload. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _digestStorageEndpoint = DefineProperty("DigestStorageEndpoint", ["properties", "digestStorageEndpoint"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedRestorableDroppedDbBackupShortTermRetentionPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedRestorableDroppedDbBackupShortTermRetentionPolicy.cs index 42f470eb73c98..6e9aaa4e8e441 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedRestorableDroppedDbBackupShortTermRetentionPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedRestorableDroppedDbBackupShortTermRetentionPolicy.cs @@ -20,27 +20,40 @@ public partial class ManagedRestorableDroppedDbBackupShortTermRetentionPolicy : /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The backup retention period in days. This is how many days /// Point-in-Time Restore will be supported. /// - public BicepValue RetentionDays { get => _retentionDays; set => _retentionDays.Assign(value); } - private readonly BicepValue _retentionDays; + public BicepValue RetentionDays + { + get { Initialize(); return _retentionDays!; } + set { Initialize(); _retentionDays!.Assign(value); } + } + private BicepValue? _retentionDays; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ManagedRestorableDroppedDbBackupShortTermRetentionPolicy. @@ -56,10 +69,18 @@ public partial class ManagedRestorableDroppedDbBackupShortTermRetentionPolicy : public ManagedRestorableDroppedDbBackupShortTermRetentionPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/restorableDroppedDatabases/backupShortTermRetentionPolicies", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _retentionDays = BicepValue.DefineProperty(this, "RetentionDays", ["properties", "retentionDays"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedRestorableDroppedDbBackupShortTermRetentionPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _retentionDays = DefineProperty("RetentionDays", ["properties", "retentionDays"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedServerDnsAlias.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedServerDnsAlias.cs index 9736fe44e13e6..58f3d85aa5df3 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedServerDnsAlias.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedServerDnsAlias.cs @@ -20,44 +20,68 @@ public partial class ManagedServerDnsAlias : ProvisionableResource /// /// The System.String to use. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Whether or not DNS record should be created for this alias. /// - public BicepValue CreateDnsRecord { get => _createDnsRecord; set => _createDnsRecord.Assign(value); } - private readonly BicepValue _createDnsRecord; + public BicepValue CreateDnsRecord + { + get { Initialize(); return _createDnsRecord!; } + set { Initialize(); _createDnsRecord!.Assign(value); } + } + private BicepValue? _createDnsRecord; /// /// The fully qualified DNS record for managed server alias. /// - public BicepValue AzureDnsRecord { get => _azureDnsRecord; } - private readonly BicepValue _azureDnsRecord; + public BicepValue AzureDnsRecord + { + get { Initialize(); return _azureDnsRecord!; } + } + private BicepValue? _azureDnsRecord; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The fully qualified public DNS record for managed server alias. /// - public BicepValue PublicAzureDnsRecord { get => _publicAzureDnsRecord; } - private readonly BicepValue _publicAzureDnsRecord; + public BicepValue PublicAzureDnsRecord + { + get { Initialize(); return _publicAzureDnsRecord!; } + } + private BicepValue? _publicAzureDnsRecord; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedServerDnsAlias. @@ -72,13 +96,20 @@ public partial class ManagedServerDnsAlias : ProvisionableResource public ManagedServerDnsAlias(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/dnsAliases", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _createDnsRecord = BicepValue.DefineProperty(this, "CreateDnsRecord", ["createDnsRecord"]); - _azureDnsRecord = BicepValue.DefineProperty(this, "AzureDnsRecord", ["properties", "azureDnsRecord"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _publicAzureDnsRecord = BicepValue.DefineProperty(this, "PublicAzureDnsRecord", ["properties", "publicAzureDnsRecord"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ManagedServerDnsAlias. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _createDnsRecord = DefineProperty("CreateDnsRecord", ["createDnsRecord"]); + _azureDnsRecord = DefineProperty("AzureDnsRecord", ["properties", "azureDnsRecord"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _publicAzureDnsRecord = DefineProperty("PublicAzureDnsRecord", ["properties", "publicAzureDnsRecord"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedServerSecurityAlertPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedServerSecurityAlertPolicy.cs index 6f0a3b905585a..1e7af63e40925 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedServerSecurityAlertPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedServerSecurityAlertPolicy.cs @@ -21,80 +21,124 @@ public partial class ManagedServerSecurityAlertPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies an array of alerts that are disabled. Allowed values are: /// Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, /// Data_Exfiltration, Unsafe_Action, Brute_Force. /// - public BicepList DisabledAlerts { get => _disabledAlerts; set => _disabledAlerts.Assign(value); } - private readonly BicepList _disabledAlerts; + public BicepList DisabledAlerts + { + get { Initialize(); return _disabledAlerts!; } + set { Initialize(); _disabledAlerts!.Assign(value); } + } + private BicepList? _disabledAlerts; /// /// Specifies an array of e-mail addresses to which the alert is sent. /// - public BicepList EmailAddresses { get => _emailAddresses; set => _emailAddresses.Assign(value); } - private readonly BicepList _emailAddresses; + public BicepList EmailAddresses + { + get { Initialize(); return _emailAddresses!; } + set { Initialize(); _emailAddresses!.Assign(value); } + } + private BicepList? _emailAddresses; /// /// Specifies the number of days to keep in the Threat Detection audit logs. /// - public BicepValue RetentionDays { get => _retentionDays; set => _retentionDays.Assign(value); } - private readonly BicepValue _retentionDays; + public BicepValue RetentionDays + { + get { Initialize(); return _retentionDays!; } + set { Initialize(); _retentionDays!.Assign(value); } + } + private BicepValue? _retentionDays; /// /// Specifies that the alert is sent to the account administrators. /// - public BicepValue SendToEmailAccountAdmins { get => _sendToEmailAccountAdmins; set => _sendToEmailAccountAdmins.Assign(value); } - private readonly BicepValue _sendToEmailAccountAdmins; + public BicepValue SendToEmailAccountAdmins + { + get { Initialize(); return _sendToEmailAccountAdmins!; } + set { Initialize(); _sendToEmailAccountAdmins!.Assign(value); } + } + private BicepValue? _sendToEmailAccountAdmins; /// /// Specifies the state of the policy, whether it is enabled or disabled or /// a policy has not been applied yet on the specific database. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the identifier key of the Threat Detection audit storage /// account. /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// Specifies the blob storage endpoint (e.g. /// https://MyAccount.blob.core.windows.net). This blob storage will hold /// all Threat Detection audit logs. /// - public BicepValue StorageEndpoint { get => _storageEndpoint; set => _storageEndpoint.Assign(value); } - private readonly BicepValue _storageEndpoint; + public BicepValue StorageEndpoint + { + get { Initialize(); return _storageEndpoint!; } + set { Initialize(); _storageEndpoint!.Assign(value); } + } + private BicepValue? _storageEndpoint; /// /// Specifies the UTC creation time of the policy. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedServerSecurityAlertPolicy. @@ -109,18 +153,26 @@ public partial class ManagedServerSecurityAlertPolicy : ProvisionableResource public ManagedServerSecurityAlertPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/securityAlertPolicies", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _disabledAlerts = BicepList.DefineProperty(this, "DisabledAlerts", ["properties", "disabledAlerts"]); - _emailAddresses = BicepList.DefineProperty(this, "EmailAddresses", ["properties", "emailAddresses"]); - _retentionDays = BicepValue.DefineProperty(this, "RetentionDays", ["properties", "retentionDays"]); - _sendToEmailAccountAdmins = BicepValue.DefineProperty(this, "SendToEmailAccountAdmins", ["properties", "emailAccountAdmins"]); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageEndpoint = BicepValue.DefineProperty(this, "StorageEndpoint", ["properties", "storageEndpoint"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedServerSecurityAlertPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _disabledAlerts = DefineListProperty("DisabledAlerts", ["properties", "disabledAlerts"]); + _emailAddresses = DefineListProperty("EmailAddresses", ["properties", "emailAddresses"]); + _retentionDays = DefineProperty("RetentionDays", ["properties", "retentionDays"]); + _sendToEmailAccountAdmins = DefineProperty("SendToEmailAccountAdmins", ["properties", "emailAccountAdmins"]); + _state = DefineProperty("State", ["properties", "state"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageEndpoint = DefineProperty("StorageEndpoint", ["properties", "storageEndpoint"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedTransparentDataEncryption.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedTransparentDataEncryption.cs index a0199ba764b34..b6a1f0b176245 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedTransparentDataEncryption.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ManagedTransparentDataEncryption.cs @@ -20,32 +20,49 @@ public partial class ManagedTransparentDataEncryption : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies the state of the transparent data encryption. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedDatabase. /// - public ManagedDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagedTransparentDataEncryption. @@ -60,11 +77,19 @@ public partial class ManagedTransparentDataEncryption : ProvisionableResource public ManagedTransparentDataEncryption(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/databases/transparentDataEncryption", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedTransparentDataEncryption. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/CreateDatabaseRestorePointDefinition.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/CreateDatabaseRestorePointDefinition.cs index 442284bf65e27..67acb70c45b8d 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/CreateDatabaseRestorePointDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/CreateDatabaseRestorePointDefinition.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,14 +19,26 @@ public partial class CreateDatabaseRestorePointDefinition : ProvisionableConstru /// /// The restore point label to apply. /// - public BicepValue RestorePointLabel { get => _restorePointLabel; } - private readonly BicepValue _restorePointLabel; + public BicepValue RestorePointLabel + { + get { Initialize(); return _restorePointLabel!; } + } + private BicepValue? _restorePointLabel; /// /// Creates a new CreateDatabaseRestorePointDefinition. /// public CreateDatabaseRestorePointDefinition() { - _restorePointLabel = BicepValue.DefineProperty(this, "RestorePointLabel", ["restorePointLabel"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// CreateDatabaseRestorePointDefinition. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _restorePointLabel = DefineProperty("RestorePointLabel", ["restorePointLabel"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/DatabaseIdentity.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/DatabaseIdentity.cs index bcd539f676a26..690ae1f20e97e 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/DatabaseIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/DatabaseIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -18,28 +20,47 @@ public partial class DatabaseIdentity : ProvisionableConstruct /// /// The identity type. /// - public BicepValue IdentityType { get => _identityType; set => _identityType.Assign(value); } - private readonly BicepValue _identityType; + public BicepValue IdentityType + { + get { Initialize(); return _identityType!; } + set { Initialize(); _identityType!.Assign(value); } + } + private BicepValue? _identityType; /// /// The Azure Active Directory tenant id. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// The resource ids of the user assigned identities to use. /// - public BicepDictionary UserAssignedIdentities { get => _userAssignedIdentities; set => _userAssignedIdentities.Assign(value); } - private readonly BicepDictionary _userAssignedIdentities; + public BicepDictionary UserAssignedIdentities + { + get { Initialize(); return _userAssignedIdentities!; } + set { Initialize(); _userAssignedIdentities!.Assign(value); } + } + private BicepDictionary? _userAssignedIdentities; /// /// Creates a new DatabaseIdentity. /// public DatabaseIdentity() { - _identityType = BicepValue.DefineProperty(this, "IdentityType", ["type"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); - _userAssignedIdentities = BicepDictionary.DefineProperty(this, "UserAssignedIdentities", ["userAssignedIdentities"]); + } + + /// + /// Define all the provisionable properties of DatabaseIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _identityType = DefineProperty("IdentityType", ["type"]); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); + _userAssignedIdentities = DefineDictionaryProperty("UserAssignedIdentities", ["userAssignedIdentities"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs index 5de9c9f2f499e..b93a6ba8ca136 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,14 +20,27 @@ public partial class DatabaseVulnerabilityAssessmentRuleBaselineItem : Provision /// /// The rule baseline result. /// - public BicepList Result { get => _result; set => _result.Assign(value); } - private readonly BicepList _result; + public BicepList Result + { + get { Initialize(); return _result!; } + set { Initialize(); _result!.Assign(value); } + } + private BicepList? _result; /// /// Creates a new DatabaseVulnerabilityAssessmentRuleBaselineItem. /// public DatabaseVulnerabilityAssessmentRuleBaselineItem() { - _result = BicepList.DefineProperty(this, "Result", ["result"]); + } + + /// + /// Define all the provisionable properties of + /// DatabaseVulnerabilityAssessmentRuleBaselineItem. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _result = DefineListProperty("Result", ["result"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ElasticPoolPerDatabaseSettings.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ElasticPoolPerDatabaseSettings.cs index 44328e57118e1..e3bf4ec48b011 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ElasticPoolPerDatabaseSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ElasticPoolPerDatabaseSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class ElasticPoolPerDatabaseSettings : ProvisionableConstruct /// /// The minimum capacity all databases are guaranteed. /// - public BicepValue MinCapacity { get => _minCapacity; set => _minCapacity.Assign(value); } - private readonly BicepValue _minCapacity; + public BicepValue MinCapacity + { + get { Initialize(); return _minCapacity!; } + set { Initialize(); _minCapacity!.Assign(value); } + } + private BicepValue? _minCapacity; /// /// The maximum capacity any one database can consume. /// - public BicepValue MaxCapacity { get => _maxCapacity; set => _maxCapacity.Assign(value); } - private readonly BicepValue _maxCapacity; + public BicepValue MaxCapacity + { + get { Initialize(); return _maxCapacity!; } + set { Initialize(); _maxCapacity!.Assign(value); } + } + private BicepValue? _maxCapacity; /// /// Creates a new ElasticPoolPerDatabaseSettings. /// public ElasticPoolPerDatabaseSettings() { - _minCapacity = BicepValue.DefineProperty(this, "MinCapacity", ["minCapacity"]); - _maxCapacity = BicepValue.DefineProperty(this, "MaxCapacity", ["maxCapacity"]); + } + + /// + /// Define all the provisionable properties of + /// ElasticPoolPerDatabaseSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _minCapacity = DefineProperty("MinCapacity", ["minCapacity"]); + _maxCapacity = DefineProperty("MaxCapacity", ["maxCapacity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs index ed58753a68ad4..c3a584bcd2b51 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -16,21 +18,38 @@ public partial class FailoverGroupReadOnlyEndpoint : ProvisionableConstruct /// /// Failover policy of the read-only endpoint for the failover group. /// - public BicepValue FailoverPolicy { get => _failoverPolicy; set => _failoverPolicy.Assign(value); } - private readonly BicepValue _failoverPolicy; + public BicepValue FailoverPolicy + { + get { Initialize(); return _failoverPolicy!; } + set { Initialize(); _failoverPolicy!.Assign(value); } + } + private BicepValue? _failoverPolicy; /// /// The target partner server where the read-only endpoint points to. /// - public BicepValue TargetServer { get => _targetServer; set => _targetServer.Assign(value); } - private readonly BicepValue _targetServer; + public BicepValue TargetServer + { + get { Initialize(); return _targetServer!; } + set { Initialize(); _targetServer!.Assign(value); } + } + private BicepValue? _targetServer; /// /// Creates a new FailoverGroupReadOnlyEndpoint. /// public FailoverGroupReadOnlyEndpoint() { - _failoverPolicy = BicepValue.DefineProperty(this, "FailoverPolicy", ["failoverPolicy"]); - _targetServer = BicepValue.DefineProperty(this, "TargetServer", ["targetServer"]); + } + + /// + /// Define all the provisionable properties of + /// FailoverGroupReadOnlyEndpoint. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _failoverPolicy = DefineProperty("FailoverPolicy", ["failoverPolicy"]); + _targetServer = DefineProperty("TargetServer", ["targetServer"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs index e6d49cd9e8585..784824fbd0add 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,23 +20,40 @@ public partial class FailoverGroupReadWriteEndpoint : ProvisionableConstruct /// failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. /// - public BicepValue FailoverPolicy { get => _failoverPolicy; set => _failoverPolicy.Assign(value); } - private readonly BicepValue _failoverPolicy; + public BicepValue FailoverPolicy + { + get { Initialize(); return _failoverPolicy!; } + set { Initialize(); _failoverPolicy!.Assign(value); } + } + private BicepValue? _failoverPolicy; /// /// Grace period before failover with data loss is attempted for the /// read-write endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. /// - public BicepValue FailoverWithDataLossGracePeriodMinutes { get => _failoverWithDataLossGracePeriodMinutes; set => _failoverWithDataLossGracePeriodMinutes.Assign(value); } - private readonly BicepValue _failoverWithDataLossGracePeriodMinutes; + public BicepValue FailoverWithDataLossGracePeriodMinutes + { + get { Initialize(); return _failoverWithDataLossGracePeriodMinutes!; } + set { Initialize(); _failoverWithDataLossGracePeriodMinutes!.Assign(value); } + } + private BicepValue? _failoverWithDataLossGracePeriodMinutes; /// /// Creates a new FailoverGroupReadWriteEndpoint. /// public FailoverGroupReadWriteEndpoint() { - _failoverPolicy = BicepValue.DefineProperty(this, "FailoverPolicy", ["failoverPolicy"]); - _failoverWithDataLossGracePeriodMinutes = BicepValue.DefineProperty(this, "FailoverWithDataLossGracePeriodMinutes", ["failoverWithDataLossGracePeriodMinutes"]); + } + + /// + /// Define all the provisionable properties of + /// FailoverGroupReadWriteEndpoint. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _failoverPolicy = DefineProperty("FailoverPolicy", ["failoverPolicy"]); + _failoverWithDataLossGracePeriodMinutes = DefineProperty("FailoverWithDataLossGracePeriodMinutes", ["failoverWithDataLossGracePeriodMinutes"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs index 17ce216c7c071..e3304ab49120c 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,23 +20,40 @@ public partial class InstanceFailoverGroupReadWriteEndpoint : ProvisionableConst /// failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. /// - public BicepValue FailoverPolicy { get => _failoverPolicy; set => _failoverPolicy.Assign(value); } - private readonly BicepValue _failoverPolicy; + public BicepValue FailoverPolicy + { + get { Initialize(); return _failoverPolicy!; } + set { Initialize(); _failoverPolicy!.Assign(value); } + } + private BicepValue? _failoverPolicy; /// /// Grace period before failover with data loss is attempted for the /// read-write endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. /// - public BicepValue FailoverWithDataLossGracePeriodMinutes { get => _failoverWithDataLossGracePeriodMinutes; set => _failoverWithDataLossGracePeriodMinutes.Assign(value); } - private readonly BicepValue _failoverWithDataLossGracePeriodMinutes; + public BicepValue FailoverWithDataLossGracePeriodMinutes + { + get { Initialize(); return _failoverWithDataLossGracePeriodMinutes!; } + set { Initialize(); _failoverWithDataLossGracePeriodMinutes!.Assign(value); } + } + private BicepValue? _failoverWithDataLossGracePeriodMinutes; /// /// Creates a new InstanceFailoverGroupReadWriteEndpoint. /// public InstanceFailoverGroupReadWriteEndpoint() { - _failoverPolicy = BicepValue.DefineProperty(this, "FailoverPolicy", ["failoverPolicy"]); - _failoverWithDataLossGracePeriodMinutes = BicepValue.DefineProperty(this, "FailoverWithDataLossGracePeriodMinutes", ["failoverWithDataLossGracePeriodMinutes"]); + } + + /// + /// Define all the provisionable properties of + /// InstanceFailoverGroupReadWriteEndpoint. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _failoverPolicy = DefineProperty("FailoverPolicy", ["failoverPolicy"]); + _failoverWithDataLossGracePeriodMinutes = DefineProperty("FailoverWithDataLossGracePeriodMinutes", ["failoverWithDataLossGracePeriodMinutes"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobExecutionTarget.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobExecutionTarget.cs index f31feeb9fbb5c..8a72cfac62846 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobExecutionTarget.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobExecutionTarget.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,45 @@ public partial class JobExecutionTarget : ProvisionableConstruct /// /// The type of the target. /// - public BicepValue TargetType { get => _targetType; } - private readonly BicepValue _targetType; + public BicepValue TargetType + { + get { Initialize(); return _targetType!; } + } + private BicepValue? _targetType; /// /// The server name. /// - public BicepValue ServerName { get => _serverName; } - private readonly BicepValue _serverName; + public BicepValue ServerName + { + get { Initialize(); return _serverName!; } + } + private BicepValue? _serverName; /// /// The database name. /// - public BicepValue DatabaseName { get => _databaseName; } - private readonly BicepValue _databaseName; + public BicepValue DatabaseName + { + get { Initialize(); return _databaseName!; } + } + private BicepValue? _databaseName; /// /// Creates a new JobExecutionTarget. /// public JobExecutionTarget() { - _targetType = BicepValue.DefineProperty(this, "TargetType", ["type"], isOutput: true); - _serverName = BicepValue.DefineProperty(this, "ServerName", ["serverName"], isOutput: true); - _databaseName = BicepValue.DefineProperty(this, "DatabaseName", ["databaseName"], isOutput: true); + } + + /// + /// Define all the provisionable properties of JobExecutionTarget. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _targetType = DefineProperty("TargetType", ["type"], isOutput: true); + _serverName = DefineProperty("ServerName", ["serverName"], isOutput: true); + _databaseName = DefineProperty("DatabaseName", ["databaseName"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobStepAction.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobStepAction.cs index 53fcd0704b86d..62b241e29f5d2 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobStepAction.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobStepAction.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class JobStepAction : ProvisionableConstruct /// /// Type of action being executed by the job step. /// - public BicepValue ActionType { get => _actionType; set => _actionType.Assign(value); } - private readonly BicepValue _actionType; + public BicepValue ActionType + { + get { Initialize(); return _actionType!; } + set { Initialize(); _actionType!.Assign(value); } + } + private BicepValue? _actionType; /// /// The source of the action to execute. /// - public BicepValue Source { get => _source; set => _source.Assign(value); } - private readonly BicepValue _source; + public BicepValue Source + { + get { Initialize(); return _source!; } + set { Initialize(); _source!.Assign(value); } + } + private BicepValue? _source; /// /// The action value, for example the text of the T-SQL script to execute. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new JobStepAction. /// public JobStepAction() { - _actionType = BicepValue.DefineProperty(this, "ActionType", ["type"]); - _source = BicepValue.DefineProperty(this, "Source", ["source"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of JobStepAction. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _actionType = DefineProperty("ActionType", ["type"]); + _source = DefineProperty("Source", ["source"]); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobStepExecutionOptions.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobStepExecutionOptions.cs index ddc5ce17a5684..2bcb7770acd43 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobStepExecutionOptions.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobStepExecutionOptions.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,44 +18,72 @@ public partial class JobStepExecutionOptions : ProvisionableConstruct /// /// Execution timeout for the job step. /// - public BicepValue TimeoutSeconds { get => _timeoutSeconds; set => _timeoutSeconds.Assign(value); } - private readonly BicepValue _timeoutSeconds; + public BicepValue TimeoutSeconds + { + get { Initialize(); return _timeoutSeconds!; } + set { Initialize(); _timeoutSeconds!.Assign(value); } + } + private BicepValue? _timeoutSeconds; /// /// Maximum number of times the job step will be reattempted if the first /// attempt fails. /// - public BicepValue RetryAttempts { get => _retryAttempts; set => _retryAttempts.Assign(value); } - private readonly BicepValue _retryAttempts; + public BicepValue RetryAttempts + { + get { Initialize(); return _retryAttempts!; } + set { Initialize(); _retryAttempts!.Assign(value); } + } + private BicepValue? _retryAttempts; /// /// Initial delay between retries for job step execution. /// - public BicepValue InitialRetryIntervalSeconds { get => _initialRetryIntervalSeconds; set => _initialRetryIntervalSeconds.Assign(value); } - private readonly BicepValue _initialRetryIntervalSeconds; + public BicepValue InitialRetryIntervalSeconds + { + get { Initialize(); return _initialRetryIntervalSeconds!; } + set { Initialize(); _initialRetryIntervalSeconds!.Assign(value); } + } + private BicepValue? _initialRetryIntervalSeconds; /// /// The maximum amount of time to wait between retries for job step /// execution. /// - public BicepValue MaximumRetryIntervalSeconds { get => _maximumRetryIntervalSeconds; set => _maximumRetryIntervalSeconds.Assign(value); } - private readonly BicepValue _maximumRetryIntervalSeconds; + public BicepValue MaximumRetryIntervalSeconds + { + get { Initialize(); return _maximumRetryIntervalSeconds!; } + set { Initialize(); _maximumRetryIntervalSeconds!.Assign(value); } + } + private BicepValue? _maximumRetryIntervalSeconds; /// /// The backoff multiplier for the time between retries. /// - public BicepValue RetryIntervalBackoffMultiplier { get => _retryIntervalBackoffMultiplier; set => _retryIntervalBackoffMultiplier.Assign(value); } - private readonly BicepValue _retryIntervalBackoffMultiplier; + public BicepValue RetryIntervalBackoffMultiplier + { + get { Initialize(); return _retryIntervalBackoffMultiplier!; } + set { Initialize(); _retryIntervalBackoffMultiplier!.Assign(value); } + } + private BicepValue? _retryIntervalBackoffMultiplier; /// /// Creates a new JobStepExecutionOptions. /// public JobStepExecutionOptions() { - _timeoutSeconds = BicepValue.DefineProperty(this, "TimeoutSeconds", ["timeoutSeconds"]); - _retryAttempts = BicepValue.DefineProperty(this, "RetryAttempts", ["retryAttempts"]); - _initialRetryIntervalSeconds = BicepValue.DefineProperty(this, "InitialRetryIntervalSeconds", ["initialRetryIntervalSeconds"]); - _maximumRetryIntervalSeconds = BicepValue.DefineProperty(this, "MaximumRetryIntervalSeconds", ["maximumRetryIntervalSeconds"]); - _retryIntervalBackoffMultiplier = BicepValue.DefineProperty(this, "RetryIntervalBackoffMultiplier", ["retryIntervalBackoffMultiplier"]); + } + + /// + /// Define all the provisionable properties of JobStepExecutionOptions. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _timeoutSeconds = DefineProperty("TimeoutSeconds", ["timeoutSeconds"]); + _retryAttempts = DefineProperty("RetryAttempts", ["retryAttempts"]); + _initialRetryIntervalSeconds = DefineProperty("InitialRetryIntervalSeconds", ["initialRetryIntervalSeconds"]); + _maximumRetryIntervalSeconds = DefineProperty("MaximumRetryIntervalSeconds", ["maximumRetryIntervalSeconds"]); + _retryIntervalBackoffMultiplier = DefineProperty("RetryIntervalBackoffMultiplier", ["retryIntervalBackoffMultiplier"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobStepOutput.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobStepOutput.cs index 4ce9586aa92d6..3df31fa7b4220 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobStepOutput.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobStepOutput.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,64 +18,104 @@ public partial class JobStepOutput : ProvisionableConstruct /// /// The output destination type. /// - public BicepValue OutputType { get => _outputType; set => _outputType.Assign(value); } - private readonly BicepValue _outputType; + public BicepValue OutputType + { + get { Initialize(); return _outputType!; } + set { Initialize(); _outputType!.Assign(value); } + } + private BicepValue? _outputType; /// /// The output destination subscription id. /// - public BicepValue SubscriptionId { get => _subscriptionId; set => _subscriptionId.Assign(value); } - private readonly BicepValue _subscriptionId; + public BicepValue SubscriptionId + { + get { Initialize(); return _subscriptionId!; } + set { Initialize(); _subscriptionId!.Assign(value); } + } + private BicepValue? _subscriptionId; /// /// The output destination resource group. /// - public BicepValue ResourceGroupName { get => _resourceGroupName; set => _resourceGroupName.Assign(value); } - private readonly BicepValue _resourceGroupName; + public BicepValue ResourceGroupName + { + get { Initialize(); return _resourceGroupName!; } + set { Initialize(); _resourceGroupName!.Assign(value); } + } + private BicepValue? _resourceGroupName; /// /// The output destination server name. /// - public BicepValue ServerName { get => _serverName; set => _serverName.Assign(value); } - private readonly BicepValue _serverName; + public BicepValue ServerName + { + get { Initialize(); return _serverName!; } + set { Initialize(); _serverName!.Assign(value); } + } + private BicepValue? _serverName; /// /// The output destination database. /// - public BicepValue DatabaseName { get => _databaseName; set => _databaseName.Assign(value); } - private readonly BicepValue _databaseName; + public BicepValue DatabaseName + { + get { Initialize(); return _databaseName!; } + set { Initialize(); _databaseName!.Assign(value); } + } + private BicepValue? _databaseName; /// /// The output destination schema. /// - public BicepValue SchemaName { get => _schemaName; set => _schemaName.Assign(value); } - private readonly BicepValue _schemaName; + public BicepValue SchemaName + { + get { Initialize(); return _schemaName!; } + set { Initialize(); _schemaName!.Assign(value); } + } + private BicepValue? _schemaName; /// /// The output destination table. /// - public BicepValue TableName { get => _tableName; set => _tableName.Assign(value); } - private readonly BicepValue _tableName; + public BicepValue TableName + { + get { Initialize(); return _tableName!; } + set { Initialize(); _tableName!.Assign(value); } + } + private BicepValue? _tableName; /// /// The resource ID of the credential to use to connect to the output /// destination. /// - public BicepValue Credential { get => _credential; set => _credential.Assign(value); } - private readonly BicepValue _credential; + public BicepValue Credential + { + get { Initialize(); return _credential!; } + set { Initialize(); _credential!.Assign(value); } + } + private BicepValue? _credential; /// /// Creates a new JobStepOutput. /// public JobStepOutput() { - _outputType = BicepValue.DefineProperty(this, "OutputType", ["type"]); - _subscriptionId = BicepValue.DefineProperty(this, "SubscriptionId", ["subscriptionId"]); - _resourceGroupName = BicepValue.DefineProperty(this, "ResourceGroupName", ["resourceGroupName"]); - _serverName = BicepValue.DefineProperty(this, "ServerName", ["serverName"]); - _databaseName = BicepValue.DefineProperty(this, "DatabaseName", ["databaseName"]); - _schemaName = BicepValue.DefineProperty(this, "SchemaName", ["schemaName"]); - _tableName = BicepValue.DefineProperty(this, "TableName", ["tableName"]); - _credential = BicepValue.DefineProperty(this, "Credential", ["credential"]); + } + + /// + /// Define all the provisionable properties of JobStepOutput. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _outputType = DefineProperty("OutputType", ["type"]); + _subscriptionId = DefineProperty("SubscriptionId", ["subscriptionId"]); + _resourceGroupName = DefineProperty("ResourceGroupName", ["resourceGroupName"]); + _serverName = DefineProperty("ServerName", ["serverName"]); + _databaseName = DefineProperty("DatabaseName", ["databaseName"]); + _schemaName = DefineProperty("SchemaName", ["schemaName"]); + _tableName = DefineProperty("TableName", ["tableName"]); + _credential = DefineProperty("Credential", ["credential"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobTarget.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobTarget.cs index 91fdf0771b01e..e5cb2fcb75a44 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobTarget.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/JobTarget.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,58 +19,94 @@ public partial class JobTarget : ProvisionableConstruct /// /// Whether the target is included or excluded from the group. /// - public BicepValue MembershipType { get => _membershipType; set => _membershipType.Assign(value); } - private readonly BicepValue _membershipType; + public BicepValue MembershipType + { + get { Initialize(); return _membershipType!; } + set { Initialize(); _membershipType!.Assign(value); } + } + private BicepValue? _membershipType; /// /// The target type. /// - public BicepValue TargetType { get => _targetType; set => _targetType.Assign(value); } - private readonly BicepValue _targetType; + public BicepValue TargetType + { + get { Initialize(); return _targetType!; } + set { Initialize(); _targetType!.Assign(value); } + } + private BicepValue? _targetType; /// /// The target server name. /// - public BicepValue ServerName { get => _serverName; set => _serverName.Assign(value); } - private readonly BicepValue _serverName; + public BicepValue ServerName + { + get { Initialize(); return _serverName!; } + set { Initialize(); _serverName!.Assign(value); } + } + private BicepValue? _serverName; /// /// The target database name. /// - public BicepValue DatabaseName { get => _databaseName; set => _databaseName.Assign(value); } - private readonly BicepValue _databaseName; + public BicepValue DatabaseName + { + get { Initialize(); return _databaseName!; } + set { Initialize(); _databaseName!.Assign(value); } + } + private BicepValue? _databaseName; /// /// The target elastic pool name. /// - public BicepValue ElasticPoolName { get => _elasticPoolName; set => _elasticPoolName.Assign(value); } - private readonly BicepValue _elasticPoolName; + public BicepValue ElasticPoolName + { + get { Initialize(); return _elasticPoolName!; } + set { Initialize(); _elasticPoolName!.Assign(value); } + } + private BicepValue? _elasticPoolName; /// /// The target shard map. /// - public BicepValue ShardMapName { get => _shardMapName; set => _shardMapName.Assign(value); } - private readonly BicepValue _shardMapName; + public BicepValue ShardMapName + { + get { Initialize(); return _shardMapName!; } + set { Initialize(); _shardMapName!.Assign(value); } + } + private BicepValue? _shardMapName; /// /// The resource ID of the credential that is used during job execution to /// connect to the target and determine the list of databases inside the /// target. /// - public BicepValue RefreshCredential { get => _refreshCredential; set => _refreshCredential.Assign(value); } - private readonly BicepValue _refreshCredential; + public BicepValue RefreshCredential + { + get { Initialize(); return _refreshCredential!; } + set { Initialize(); _refreshCredential!.Assign(value); } + } + private BicepValue? _refreshCredential; /// /// Creates a new JobTarget. /// public JobTarget() { - _membershipType = BicepValue.DefineProperty(this, "MembershipType", ["membershipType"]); - _targetType = BicepValue.DefineProperty(this, "TargetType", ["type"]); - _serverName = BicepValue.DefineProperty(this, "ServerName", ["serverName"]); - _databaseName = BicepValue.DefineProperty(this, "DatabaseName", ["databaseName"]); - _elasticPoolName = BicepValue.DefineProperty(this, "ElasticPoolName", ["elasticPoolName"]); - _shardMapName = BicepValue.DefineProperty(this, "ShardMapName", ["shardMapName"]); - _refreshCredential = BicepValue.DefineProperty(this, "RefreshCredential", ["refreshCredential"]); + } + + /// + /// Define all the provisionable properties of JobTarget. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _membershipType = DefineProperty("MembershipType", ["membershipType"]); + _targetType = DefineProperty("TargetType", ["type"]); + _serverName = DefineProperty("ServerName", ["serverName"]); + _databaseName = DefineProperty("DatabaseName", ["databaseName"]); + _elasticPoolName = DefineProperty("ElasticPoolName", ["elasticPoolName"]); + _shardMapName = DefineProperty("ShardMapName", ["shardMapName"]); + _refreshCredential = DefineProperty("RefreshCredential", ["refreshCredential"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstanceDtcSecuritySettings.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstanceDtcSecuritySettings.cs index 028f76846b616..eb379eb94e62a 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstanceDtcSecuritySettings.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstanceDtcSecuritySettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,42 +18,71 @@ public partial class ManagedInstanceDtcSecuritySettings : ProvisionableConstruct /// /// Transaction Manager communication settings of managed instance DTC. /// - public BicepValue TransactionManagerCommunicationSettings { get => _transactionManagerCommunicationSettings; set => _transactionManagerCommunicationSettings.Assign(value); } - private readonly BicepValue _transactionManagerCommunicationSettings; + public ManagedInstanceDtcTransactionManagerCommunicationSettings TransactionManagerCommunicationSettings + { + get { Initialize(); return _transactionManagerCommunicationSettings!; } + set { Initialize(); AssignOrReplace(ref _transactionManagerCommunicationSettings, value); } + } + private ManagedInstanceDtcTransactionManagerCommunicationSettings? _transactionManagerCommunicationSettings; /// /// Allow XA Transactions to managed instance DTC. /// - public BicepValue IsXATransactionsEnabled { get => _isXATransactionsEnabled; set => _isXATransactionsEnabled.Assign(value); } - private readonly BicepValue _isXATransactionsEnabled; + public BicepValue IsXATransactionsEnabled + { + get { Initialize(); return _isXATransactionsEnabled!; } + set { Initialize(); _isXATransactionsEnabled!.Assign(value); } + } + private BicepValue? _isXATransactionsEnabled; /// /// Allow SNA LU 6.2 Transactions to managed instance DTC. /// - public BicepValue SnaLu6Point2TransactionsEnabled { get => _snaLu6Point2TransactionsEnabled; set => _snaLu6Point2TransactionsEnabled.Assign(value); } - private readonly BicepValue _snaLu6Point2TransactionsEnabled; + public BicepValue SnaLu6Point2TransactionsEnabled + { + get { Initialize(); return _snaLu6Point2TransactionsEnabled!; } + set { Initialize(); _snaLu6Point2TransactionsEnabled!.Assign(value); } + } + private BicepValue? _snaLu6Point2TransactionsEnabled; /// /// Default timeout for XA Transactions (in seconds). /// - public BicepValue XATransactionsDefaultTimeoutInSeconds { get => _xATransactionsDefaultTimeoutInSeconds; set => _xATransactionsDefaultTimeoutInSeconds.Assign(value); } - private readonly BicepValue _xATransactionsDefaultTimeoutInSeconds; + public BicepValue XATransactionsDefaultTimeoutInSeconds + { + get { Initialize(); return _xATransactionsDefaultTimeoutInSeconds!; } + set { Initialize(); _xATransactionsDefaultTimeoutInSeconds!.Assign(value); } + } + private BicepValue? _xATransactionsDefaultTimeoutInSeconds; /// /// Maximum timeout for XA Transactions (in seconds). /// - public BicepValue XATransactionsMaximumTimeoutInSeconds { get => _xATransactionsMaximumTimeoutInSeconds; set => _xATransactionsMaximumTimeoutInSeconds.Assign(value); } - private readonly BicepValue _xATransactionsMaximumTimeoutInSeconds; + public BicepValue XATransactionsMaximumTimeoutInSeconds + { + get { Initialize(); return _xATransactionsMaximumTimeoutInSeconds!; } + set { Initialize(); _xATransactionsMaximumTimeoutInSeconds!.Assign(value); } + } + private BicepValue? _xATransactionsMaximumTimeoutInSeconds; /// /// Creates a new ManagedInstanceDtcSecuritySettings. /// public ManagedInstanceDtcSecuritySettings() { - _transactionManagerCommunicationSettings = BicepValue.DefineProperty(this, "TransactionManagerCommunicationSettings", ["transactionManagerCommunicationSettings"]); - _isXATransactionsEnabled = BicepValue.DefineProperty(this, "IsXATransactionsEnabled", ["xaTransactionsEnabled"]); - _snaLu6Point2TransactionsEnabled = BicepValue.DefineProperty(this, "SnaLu6Point2TransactionsEnabled", ["snaLu6point2TransactionsEnabled"]); - _xATransactionsDefaultTimeoutInSeconds = BicepValue.DefineProperty(this, "XATransactionsDefaultTimeoutInSeconds", ["xaTransactionsDefaultTimeout"]); - _xATransactionsMaximumTimeoutInSeconds = BicepValue.DefineProperty(this, "XATransactionsMaximumTimeoutInSeconds", ["xaTransactionsMaximumTimeout"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstanceDtcSecuritySettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _transactionManagerCommunicationSettings = DefineModelProperty("TransactionManagerCommunicationSettings", ["transactionManagerCommunicationSettings"]); + _isXATransactionsEnabled = DefineProperty("IsXATransactionsEnabled", ["xaTransactionsEnabled"]); + _snaLu6Point2TransactionsEnabled = DefineProperty("SnaLu6Point2TransactionsEnabled", ["snaLu6point2TransactionsEnabled"]); + _xATransactionsDefaultTimeoutInSeconds = DefineProperty("XATransactionsDefaultTimeoutInSeconds", ["xaTransactionsDefaultTimeout"]); + _xATransactionsMaximumTimeoutInSeconds = DefineProperty("XATransactionsMaximumTimeoutInSeconds", ["xaTransactionsMaximumTimeout"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstanceDtcTransactionManagerCommunicationSettings.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstanceDtcTransactionManagerCommunicationSettings.cs index 2a25c8010af19..f2a0f5b606992 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstanceDtcTransactionManagerCommunicationSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstanceDtcTransactionManagerCommunicationSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,49 @@ public partial class ManagedInstanceDtcTransactionManagerCommunicationSettings : /// /// Allow Inbound traffic to managed instance DTC. /// - public BicepValue AllowInboundEnabled { get => _allowInboundEnabled; set => _allowInboundEnabled.Assign(value); } - private readonly BicepValue _allowInboundEnabled; + public BicepValue AllowInboundEnabled + { + get { Initialize(); return _allowInboundEnabled!; } + set { Initialize(); _allowInboundEnabled!.Assign(value); } + } + private BicepValue? _allowInboundEnabled; /// /// Allow Outbound traffic of managed instance DTC. /// - public BicepValue AllowOutboundEnabled { get => _allowOutboundEnabled; set => _allowOutboundEnabled.Assign(value); } - private readonly BicepValue _allowOutboundEnabled; + public BicepValue AllowOutboundEnabled + { + get { Initialize(); return _allowOutboundEnabled!; } + set { Initialize(); _allowOutboundEnabled!.Assign(value); } + } + private BicepValue? _allowOutboundEnabled; /// /// Authentication type of managed instance DTC. /// - public BicepValue Authentication { get => _authentication; set => _authentication.Assign(value); } - private readonly BicepValue _authentication; + public BicepValue Authentication + { + get { Initialize(); return _authentication!; } + set { Initialize(); _authentication!.Assign(value); } + } + private BicepValue? _authentication; /// /// Creates a new ManagedInstanceDtcTransactionManagerCommunicationSettings. /// public ManagedInstanceDtcTransactionManagerCommunicationSettings() { - _allowInboundEnabled = BicepValue.DefineProperty(this, "AllowInboundEnabled", ["allowInboundEnabled"]); - _allowOutboundEnabled = BicepValue.DefineProperty(this, "AllowOutboundEnabled", ["allowOutboundEnabled"]); - _authentication = BicepValue.DefineProperty(this, "Authentication", ["authentication"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstanceDtcTransactionManagerCommunicationSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _allowInboundEnabled = DefineProperty("AllowInboundEnabled", ["allowInboundEnabled"]); + _allowOutboundEnabled = DefineProperty("AllowOutboundEnabled", ["allowOutboundEnabled"]); + _authentication = DefineProperty("Authentication", ["authentication"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs index ae985a0980684..51c6e375a0a82 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,49 +18,82 @@ public partial class ManagedInstanceExternalAdministrator : ProvisionableConstru /// /// Type of the sever administrator. /// - public BicepValue AdministratorType { get => _administratorType; set => _administratorType.Assign(value); } - private readonly BicepValue _administratorType; + public BicepValue AdministratorType + { + get { Initialize(); return _administratorType!; } + set { Initialize(); _administratorType!.Assign(value); } + } + private BicepValue? _administratorType; /// /// Principal Type of the sever administrator. /// - public BicepValue PrincipalType { get => _principalType; set => _principalType.Assign(value); } - private readonly BicepValue _principalType; + public BicepValue PrincipalType + { + get { Initialize(); return _principalType!; } + set { Initialize(); _principalType!.Assign(value); } + } + private BicepValue? _principalType; /// /// Login name of the server administrator. /// - public BicepValue Login { get => _login; set => _login.Assign(value); } - private readonly BicepValue _login; + public BicepValue Login + { + get { Initialize(); return _login!; } + set { Initialize(); _login!.Assign(value); } + } + private BicepValue? _login; /// /// SID (object ID) of the server administrator. /// - public BicepValue Sid { get => _sid; set => _sid.Assign(value); } - private readonly BicepValue _sid; + public BicepValue Sid + { + get { Initialize(); return _sid!; } + set { Initialize(); _sid!.Assign(value); } + } + private BicepValue? _sid; /// /// Tenant ID of the administrator. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// Azure Active Directory only Authentication enabled. /// - public BicepValue IsAzureADOnlyAuthenticationEnabled { get => _isAzureADOnlyAuthenticationEnabled; set => _isAzureADOnlyAuthenticationEnabled.Assign(value); } - private readonly BicepValue _isAzureADOnlyAuthenticationEnabled; + public BicepValue IsAzureADOnlyAuthenticationEnabled + { + get { Initialize(); return _isAzureADOnlyAuthenticationEnabled!; } + set { Initialize(); _isAzureADOnlyAuthenticationEnabled!.Assign(value); } + } + private BicepValue? _isAzureADOnlyAuthenticationEnabled; /// /// Creates a new ManagedInstanceExternalAdministrator. /// public ManagedInstanceExternalAdministrator() { - _administratorType = BicepValue.DefineProperty(this, "AdministratorType", ["administratorType"]); - _principalType = BicepValue.DefineProperty(this, "PrincipalType", ["principalType"]); - _login = BicepValue.DefineProperty(this, "Login", ["login"]); - _sid = BicepValue.DefineProperty(this, "Sid", ["sid"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"]); - _isAzureADOnlyAuthenticationEnabled = BicepValue.DefineProperty(this, "IsAzureADOnlyAuthenticationEnabled", ["azureADOnlyAuthentication"]); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstanceExternalAdministrator. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _administratorType = DefineProperty("AdministratorType", ["administratorType"]); + _principalType = DefineProperty("PrincipalType", ["principalType"]); + _login = DefineProperty("Login", ["login"]); + _sid = DefineProperty("Sid", ["sid"]); + _tenantId = DefineProperty("TenantId", ["tenantId"]); + _isAzureADOnlyAuthenticationEnabled = DefineProperty("IsAzureADOnlyAuthenticationEnabled", ["azureADOnlyAuthentication"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePairInfo.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePairInfo.cs index caa10fcfdd294..421a8ab1fa657 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePairInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePairInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -16,21 +18,37 @@ public partial class ManagedInstancePairInfo : ProvisionableConstruct /// /// Id of Primary Managed Instance in pair. /// - public BicepValue PrimaryManagedInstanceId { get => _primaryManagedInstanceId; set => _primaryManagedInstanceId.Assign(value); } - private readonly BicepValue _primaryManagedInstanceId; + public BicepValue PrimaryManagedInstanceId + { + get { Initialize(); return _primaryManagedInstanceId!; } + set { Initialize(); _primaryManagedInstanceId!.Assign(value); } + } + private BicepValue? _primaryManagedInstanceId; /// /// Id of Partner Managed Instance in pair. /// - public BicepValue PartnerManagedInstanceId { get => _partnerManagedInstanceId; set => _partnerManagedInstanceId.Assign(value); } - private readonly BicepValue _partnerManagedInstanceId; + public BicepValue PartnerManagedInstanceId + { + get { Initialize(); return _partnerManagedInstanceId!; } + set { Initialize(); _partnerManagedInstanceId!.Assign(value); } + } + private BicepValue? _partnerManagedInstanceId; /// /// Creates a new ManagedInstancePairInfo. /// public ManagedInstancePairInfo() { - _primaryManagedInstanceId = BicepValue.DefineProperty(this, "PrimaryManagedInstanceId", ["primaryManagedInstanceId"]); - _partnerManagedInstanceId = BicepValue.DefineProperty(this, "PartnerManagedInstanceId", ["partnerManagedInstanceId"]); + } + + /// + /// Define all the provisionable properties of ManagedInstancePairInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _primaryManagedInstanceId = DefineProperty("PrimaryManagedInstanceId", ["primaryManagedInstanceId"]); + _partnerManagedInstanceId = DefineProperty("PartnerManagedInstanceId", ["partnerManagedInstanceId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePecProperty.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePecProperty.cs index 41dcb91528433..f44d61ace0631 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePecProperty.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePecProperty.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,35 @@ public partial class ManagedInstancePecProperty : ProvisionableConstruct /// /// Resource ID. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Private endpoint connection properties. /// - public BicepValue Properties { get => _properties; } - private readonly BicepValue _properties; + public ManagedInstancePrivateEndpointConnectionProperties Properties + { + get { Initialize(); return _properties!; } + } + private ManagedInstancePrivateEndpointConnectionProperties? _properties; /// /// Creates a new ManagedInstancePecProperty. /// public ManagedInstancePecProperty() { - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagedInstancePecProperty. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"], isOutput: true); + _properties = DefineModelProperty("Properties", ["properties"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionProperties.cs index 5c0241506a879..3b5fed16c8ae3 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,46 @@ public partial class ManagedInstancePrivateEndpointConnectionProperties : Provis /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// Connection State of the Private Endpoint Connection. /// - public BicepValue PrivateLinkServiceConnectionState { get => _privateLinkServiceConnectionState; } - private readonly BicepValue _privateLinkServiceConnectionState; + public ManagedInstancePrivateLinkServiceConnectionStateProperty PrivateLinkServiceConnectionState + { + get { Initialize(); return _privateLinkServiceConnectionState!; } + } + private ManagedInstancePrivateLinkServiceConnectionStateProperty? _privateLinkServiceConnectionState; /// /// State of the Private Endpoint Connection. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Creates a new ManagedInstancePrivateEndpointConnectionProperties. /// public ManagedInstancePrivateEndpointConnectionProperties() { - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["privateEndpoint", "id"], isOutput: true); - _privateLinkServiceConnectionState = BicepValue.DefineProperty(this, "PrivateLinkServiceConnectionState", ["privateLinkServiceConnectionState"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstancePrivateEndpointConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["privateEndpoint", "id"], isOutput: true); + _privateLinkServiceConnectionState = DefineModelProperty("PrivateLinkServiceConnectionState", ["privateLinkServiceConnectionState"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs index df5f970546fa5..23fa9f6da33bc 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class ManagedInstancePrivateLinkServiceConnectionStateProperty : /// /// The private link service connection status. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The private link service connection description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The private link service connection description. /// - public BicepValue ActionsRequired { get => _actionsRequired; } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + } + private BicepValue? _actionsRequired; /// /// Creates a new ManagedInstancePrivateLinkServiceConnectionStateProperty. /// public ManagedInstancePrivateLinkServiceConnectionStateProperty() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ManagedInstancePrivateLinkServiceConnectionStateProperty. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/PartnerRegionInfo.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/PartnerRegionInfo.cs index 409ab24ef2fa1..72ed9040e9cb8 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/PartnerRegionInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/PartnerRegionInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -16,21 +18,36 @@ public partial class PartnerRegionInfo : ProvisionableConstruct /// /// Geo location of the partner managed instances. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Replication role of the partner managed instances. /// - public BicepValue ReplicationRole { get => _replicationRole; } - private readonly BicepValue _replicationRole; + public BicepValue ReplicationRole + { + get { Initialize(); return _replicationRole!; } + } + private BicepValue? _replicationRole; /// /// Creates a new PartnerRegionInfo. /// public PartnerRegionInfo() { - _location = BicepValue.DefineProperty(this, "Location", ["location"]); - _replicationRole = BicepValue.DefineProperty(this, "ReplicationRole", ["replicationRole"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PartnerRegionInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _location = DefineProperty("Location", ["location"]); + _replicationRole = DefineProperty("ReplicationRole", ["replicationRole"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/PartnerServerInfo.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/PartnerServerInfo.cs index c7428d1b30a9c..7c6ebd7d3995d 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/PartnerServerInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/PartnerServerInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -16,28 +18,46 @@ public partial class PartnerServerInfo : ProvisionableConstruct /// /// Resource identifier of the partner server. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// Geo location of the partner server. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Replication role of the partner server. /// - public BicepValue ReplicationRole { get => _replicationRole; } - private readonly BicepValue _replicationRole; + public BicepValue ReplicationRole + { + get { Initialize(); return _replicationRole!; } + } + private BicepValue? _replicationRole; /// /// Creates a new PartnerServerInfo. /// public PartnerServerInfo() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _replicationRole = BicepValue.DefineProperty(this, "ReplicationRole", ["replicationRole"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PartnerServerInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _location = DefineProperty("Location", ["location"], isOutput: true); + _replicationRole = DefineProperty("ReplicationRole", ["replicationRole"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ServerExternalAdministrator.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ServerExternalAdministrator.cs index 2099ab56fa857..e66f50bad2c3d 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ServerExternalAdministrator.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ServerExternalAdministrator.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,49 +18,81 @@ public partial class ServerExternalAdministrator : ProvisionableConstruct /// /// Type of the sever administrator. /// - public BicepValue AdministratorType { get => _administratorType; set => _administratorType.Assign(value); } - private readonly BicepValue _administratorType; + public BicepValue AdministratorType + { + get { Initialize(); return _administratorType!; } + set { Initialize(); _administratorType!.Assign(value); } + } + private BicepValue? _administratorType; /// /// Principal Type of the sever administrator. /// - public BicepValue PrincipalType { get => _principalType; set => _principalType.Assign(value); } - private readonly BicepValue _principalType; + public BicepValue PrincipalType + { + get { Initialize(); return _principalType!; } + set { Initialize(); _principalType!.Assign(value); } + } + private BicepValue? _principalType; /// /// Login name of the server administrator. /// - public BicepValue Login { get => _login; set => _login.Assign(value); } - private readonly BicepValue _login; + public BicepValue Login + { + get { Initialize(); return _login!; } + set { Initialize(); _login!.Assign(value); } + } + private BicepValue? _login; /// /// SID (object ID) of the server administrator. /// - public BicepValue Sid { get => _sid; set => _sid.Assign(value); } - private readonly BicepValue _sid; + public BicepValue Sid + { + get { Initialize(); return _sid!; } + set { Initialize(); _sid!.Assign(value); } + } + private BicepValue? _sid; /// /// Tenant ID of the administrator. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// Azure Active Directory only Authentication enabled. /// - public BicepValue IsAzureADOnlyAuthenticationEnabled { get => _isAzureADOnlyAuthenticationEnabled; set => _isAzureADOnlyAuthenticationEnabled.Assign(value); } - private readonly BicepValue _isAzureADOnlyAuthenticationEnabled; + public BicepValue IsAzureADOnlyAuthenticationEnabled + { + get { Initialize(); return _isAzureADOnlyAuthenticationEnabled!; } + set { Initialize(); _isAzureADOnlyAuthenticationEnabled!.Assign(value); } + } + private BicepValue? _isAzureADOnlyAuthenticationEnabled; /// /// Creates a new ServerExternalAdministrator. /// public ServerExternalAdministrator() { - _administratorType = BicepValue.DefineProperty(this, "AdministratorType", ["administratorType"]); - _principalType = BicepValue.DefineProperty(this, "PrincipalType", ["principalType"]); - _login = BicepValue.DefineProperty(this, "Login", ["login"]); - _sid = BicepValue.DefineProperty(this, "Sid", ["sid"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"]); - _isAzureADOnlyAuthenticationEnabled = BicepValue.DefineProperty(this, "IsAzureADOnlyAuthenticationEnabled", ["azureADOnlyAuthentication"]); + } + + /// + /// Define all the provisionable properties of ServerExternalAdministrator. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _administratorType = DefineProperty("AdministratorType", ["administratorType"]); + _principalType = DefineProperty("PrincipalType", ["principalType"]); + _login = DefineProperty("Login", ["login"]); + _sid = DefineProperty("Sid", ["sid"]); + _tenantId = DefineProperty("TenantId", ["tenantId"]); + _isAzureADOnlyAuthenticationEnabled = DefineProperty("IsAzureADOnlyAuthenticationEnabled", ["azureADOnlyAuthentication"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ServerPrivateEndpointConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ServerPrivateEndpointConnectionProperties.cs index 32f3894a37778..de02be491edd9 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ServerPrivateEndpointConnectionProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ServerPrivateEndpointConnectionProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,35 +20,56 @@ public partial class ServerPrivateEndpointConnectionProperties : ProvisionableCo /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// Group IDs. /// - public BicepList GroupIds { get => _groupIds; } - private readonly BicepList _groupIds; + public BicepList GroupIds + { + get { Initialize(); return _groupIds!; } + } + private BicepList? _groupIds; /// /// Connection state of the private endpoint connection. /// - public BicepValue ConnectionState { get => _connectionState; } - private readonly BicepValue _connectionState; + public SqlPrivateLinkServiceConnectionStateProperty ConnectionState + { + get { Initialize(); return _connectionState!; } + } + private SqlPrivateLinkServiceConnectionStateProperty? _connectionState; /// /// State of the private endpoint connection. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Creates a new ServerPrivateEndpointConnectionProperties. /// public ServerPrivateEndpointConnectionProperties() { - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["privateEndpoint", "id"], isOutput: true); - _groupIds = BicepList.DefineProperty(this, "GroupIds", ["groupIds"], isOutput: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["privateLinkServiceConnectionState"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ServerPrivateEndpointConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["privateEndpoint", "id"], isOutput: true); + _groupIds = DefineListProperty("GroupIds", ["groupIds"], isOutput: true); + _connectionState = DefineModelProperty("ConnectionState", ["privateLinkServiceConnectionState"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ServerTrustGroupServerInfo.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ServerTrustGroupServerInfo.cs index cd10cad4141e0..a3f27da110408 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ServerTrustGroupServerInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/ServerTrustGroupServerInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -16,14 +18,26 @@ public partial class ServerTrustGroupServerInfo : ProvisionableConstruct /// /// Server Id. /// - public BicepValue ServerId { get => _serverId; set => _serverId.Assign(value); } - private readonly BicepValue _serverId; + public BicepValue ServerId + { + get { Initialize(); return _serverId!; } + set { Initialize(); _serverId!.Assign(value); } + } + private BicepValue? _serverId; /// /// Creates a new ServerTrustGroupServerInfo. /// public ServerTrustGroupServerInfo() { - _serverId = BicepValue.DefineProperty(this, "ServerId", ["serverId"]); + } + + /// + /// Define all the provisionable properties of ServerTrustGroupServerInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _serverId = DefineProperty("ServerId", ["serverId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlDatabaseKey.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlDatabaseKey.cs index c886fe8d424a5..23188bcf030a4 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlDatabaseKey.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlDatabaseKey.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,55 @@ public partial class SqlDatabaseKey : ProvisionableConstruct /// The database key type. Only supported value is /// 'AzureKeyVault'. /// - public BicepValue KeyType { get => _keyType; } - private readonly BicepValue _keyType; + public BicepValue KeyType + { + get { Initialize(); return _keyType!; } + } + private BicepValue? _keyType; /// /// Thumbprint of the database key. /// - public BicepValue Thumbprint { get => _thumbprint; } - private readonly BicepValue _thumbprint; + public BicepValue Thumbprint + { + get { Initialize(); return _thumbprint!; } + } + private BicepValue? _thumbprint; /// /// The database key creation date. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Subregion of the server key. /// - public BicepValue Subregion { get => _subregion; } - private readonly BicepValue _subregion; + public BicepValue Subregion + { + get { Initialize(); return _subregion!; } + } + private BicepValue? _subregion; /// /// Creates a new SqlDatabaseKey. /// public SqlDatabaseKey() { - _keyType = BicepValue.DefineProperty(this, "KeyType", ["type"], isOutput: true); - _thumbprint = BicepValue.DefineProperty(this, "Thumbprint", ["thumbprint"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["creationDate"], isOutput: true); - _subregion = BicepValue.DefineProperty(this, "Subregion", ["subregion"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SqlDatabaseKey. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyType = DefineProperty("KeyType", ["type"], isOutput: true); + _thumbprint = DefineProperty("Thumbprint", ["thumbprint"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["creationDate"], isOutput: true); + _subregion = DefineProperty("Subregion", ["subregion"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlPrivateLinkServiceConnectionStateProperty.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlPrivateLinkServiceConnectionStateProperty.cs index 3290d4825bef0..4d8d3c79200a0 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlPrivateLinkServiceConnectionStateProperty.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlPrivateLinkServiceConnectionStateProperty.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class SqlPrivateLinkServiceConnectionStateProperty : Provisionabl /// /// The private link service connection status. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The private link service connection description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The actions required for private link service connection. /// - public BicepValue ActionsRequired { get => _actionsRequired; } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + } + private BicepValue? _actionsRequired; /// /// Creates a new SqlPrivateLinkServiceConnectionStateProperty. /// public SqlPrivateLinkServiceConnectionStateProperty() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// SqlPrivateLinkServiceConnectionStateProperty. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlScheduleItem.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlScheduleItem.cs index e695f0aecd5b1..43a8d8a821dca 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlScheduleItem.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlScheduleItem.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class SqlScheduleItem : ProvisionableConstruct /// /// Start day. /// - public BicepValue StartDay { get => _startDay; set => _startDay.Assign(value); } - private readonly BicepValue _startDay; + public BicepValue StartDay + { + get { Initialize(); return _startDay!; } + set { Initialize(); _startDay!.Assign(value); } + } + private BicepValue? _startDay; /// /// Start time. /// - public BicepValue StartTime { get => _startTime; set => _startTime.Assign(value); } - private readonly BicepValue _startTime; + public BicepValue StartTime + { + get { Initialize(); return _startTime!; } + set { Initialize(); _startTime!.Assign(value); } + } + private BicepValue? _startTime; /// /// Stop day. /// - public BicepValue StopDay { get => _stopDay; set => _stopDay.Assign(value); } - private readonly BicepValue _stopDay; + public BicepValue StopDay + { + get { Initialize(); return _stopDay!; } + set { Initialize(); _stopDay!.Assign(value); } + } + private BicepValue? _stopDay; /// /// Stop time. /// - public BicepValue StopTime { get => _stopTime; set => _stopTime.Assign(value); } - private readonly BicepValue _stopTime; + public BicepValue StopTime + { + get { Initialize(); return _stopTime!; } + set { Initialize(); _stopTime!.Assign(value); } + } + private BicepValue? _stopTime; /// /// Creates a new SqlScheduleItem. /// public SqlScheduleItem() { - _startDay = BicepValue.DefineProperty(this, "StartDay", ["startDay"]); - _startTime = BicepValue.DefineProperty(this, "StartTime", ["startTime"]); - _stopDay = BicepValue.DefineProperty(this, "StopDay", ["stopDay"]); - _stopTime = BicepValue.DefineProperty(this, "StopTime", ["stopTime"]); + } + + /// + /// Define all the provisionable properties of SqlScheduleItem. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _startDay = DefineProperty("StartDay", ["startDay"]); + _startTime = DefineProperty("StartTime", ["startTime"]); + _stopDay = DefineProperty("StopDay", ["stopDay"]); + _stopTime = DefineProperty("StopTime", ["stopTime"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlServerJobSchedule.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlServerJobSchedule.cs index 1392b77031d7f..7b553c3ac3e9e 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlServerJobSchedule.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlServerJobSchedule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,43 +18,71 @@ public partial class SqlServerJobSchedule : ProvisionableConstruct /// /// Schedule start time. /// - public BicepValue StartOn { get => _startOn; set => _startOn.Assign(value); } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + set { Initialize(); _startOn!.Assign(value); } + } + private BicepValue? _startOn; /// /// Schedule end time. /// - public BicepValue EndOn { get => _endOn; set => _endOn.Assign(value); } - private readonly BicepValue _endOn; + public BicepValue EndOn + { + get { Initialize(); return _endOn!; } + set { Initialize(); _endOn!.Assign(value); } + } + private BicepValue? _endOn; /// /// Schedule interval type. /// - public BicepValue ScheduleType { get => _scheduleType; set => _scheduleType.Assign(value); } - private readonly BicepValue _scheduleType; + public BicepValue ScheduleType + { + get { Initialize(); return _scheduleType!; } + set { Initialize(); _scheduleType!.Assign(value); } + } + private BicepValue? _scheduleType; /// /// Whether or not the schedule is enabled. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Value of the schedule's recurring interval, if the ScheduleType is /// recurring. ISO8601 duration format. /// - public BicepValue Interval { get => _interval; set => _interval.Assign(value); } - private readonly BicepValue _interval; + public BicepValue Interval + { + get { Initialize(); return _interval!; } + set { Initialize(); _interval!.Assign(value); } + } + private BicepValue? _interval; /// /// Creates a new SqlServerJobSchedule. /// public SqlServerJobSchedule() { - _startOn = BicepValue.DefineProperty(this, "StartOn", ["startTime"]); - _endOn = BicepValue.DefineProperty(this, "EndOn", ["endTime"]); - _scheduleType = BicepValue.DefineProperty(this, "ScheduleType", ["type"]); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _interval = BicepValue.DefineProperty(this, "Interval", ["interval"], format: "P"); + } + + /// + /// Define all the provisionable properties of SqlServerJobSchedule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _startOn = DefineProperty("StartOn", ["startTime"]); + _endOn = DefineProperty("EndOn", ["endTime"]); + _scheduleType = DefineProperty("ScheduleType", ["type"]); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _interval = DefineProperty("Interval", ["interval"], format: "P"); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlServerPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlServerPrivateEndpointConnection.cs index d7d2151c2d3e2..56f22241c8a30 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlServerPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlServerPrivateEndpointConnection.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,21 +20,36 @@ public partial class SqlServerPrivateEndpointConnection : ProvisionableConstruct /// /// Resource ID. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Private endpoint connection properties. /// - public BicepValue Properties { get => _properties; } - private readonly BicepValue _properties; + public ServerPrivateEndpointConnectionProperties Properties + { + get { Initialize(); return _properties!; } + } + private ServerPrivateEndpointConnectionProperties? _properties; /// /// Creates a new SqlServerPrivateEndpointConnection. /// public SqlServerPrivateEndpointConnection() { - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// SqlServerPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"], isOutput: true); + _properties = DefineModelProperty("Properties", ["properties"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlServicePrincipal.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlServicePrincipal.cs index 028b1216cc60b..e9aff0c552860 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlServicePrincipal.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlServicePrincipal.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,56 @@ public partial class SqlServicePrincipal : ProvisionableConstruct /// /// The Azure Active Directory application object id. /// - public BicepValue PrincipalId { get => _principalId; } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + } + private BicepValue? _principalId; /// /// The Azure Active Directory application client id. /// - public BicepValue ClientId { get => _clientId; } - private readonly BicepValue _clientId; + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + } + private BicepValue? _clientId; /// /// The Azure Active Directory tenant id. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// Service principal type. /// - public BicepValue PrincipalType { get => _principalType; set => _principalType.Assign(value); } - private readonly BicepValue _principalType; + public BicepValue PrincipalType + { + get { Initialize(); return _principalType!; } + set { Initialize(); _principalType!.Assign(value); } + } + private BicepValue? _principalType; /// /// Creates a new SqlServicePrincipal. /// public SqlServicePrincipal() { - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["principalId"], isOutput: true); - _clientId = BicepValue.DefineProperty(this, "ClientId", ["clientId"], isOutput: true); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); - _principalType = BicepValue.DefineProperty(this, "PrincipalType", ["type"]); + } + + /// + /// Define all the provisionable properties of SqlServicePrincipal. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _principalId = DefineProperty("PrincipalId", ["principalId"], isOutput: true); + _clientId = DefineProperty("ClientId", ["clientId"], isOutput: true); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); + _principalType = DefineProperty("PrincipalType", ["type"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlSku.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlSku.cs index ad937fbfe8822..87e44d1bcefca 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlSku.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SqlSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,43 +18,71 @@ public partial class SqlSku : ProvisionableConstruct /// /// The name of the SKU, typically, a letter + Number code, e.g. P3. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The tier or edition of the particular SKU, e.g. Basic, Premium. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// Size of the particular SKU. /// - public BicepValue Size { get => _size; set => _size.Assign(value); } - private readonly BicepValue _size; + public BicepValue Size + { + get { Initialize(); return _size!; } + set { Initialize(); _size!.Assign(value); } + } + private BicepValue? _size; /// /// If the service has different generations of hardware, for the same SKU, /// then that can be captured here. /// - public BicepValue Family { get => _family; set => _family.Assign(value); } - private readonly BicepValue _family; + public BicepValue Family + { + get { Initialize(); return _family!; } + set { Initialize(); _family!.Assign(value); } + } + private BicepValue? _family; /// /// Capacity of the particular SKU. /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// Creates a new SqlSku. /// public SqlSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); - _size = BicepValue.DefineProperty(this, "Size", ["size"]); - _family = BicepValue.DefineProperty(this, "Family", ["family"]); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); + } + + /// + /// Define all the provisionable properties of SqlSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"]); + _size = DefineProperty("Size", ["size"]); + _family = DefineProperty("Family", ["family"]); + _capacity = DefineProperty("Capacity", ["capacity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SyncGroupSchema.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SyncGroupSchema.cs index aa5cea6822591..fd1adffcc993d 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SyncGroupSchema.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SyncGroupSchema.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class SyncGroupSchema : ProvisionableConstruct /// /// List of tables in sync group schema. /// - public BicepList Tables { get => _tables; set => _tables.Assign(value); } - private readonly BicepList _tables; + public BicepList Tables + { + get { Initialize(); return _tables!; } + set { Initialize(); _tables!.Assign(value); } + } + private BicepList? _tables; /// /// Name of master sync member where the schema is from. /// - public BicepValue MasterSyncMemberName { get => _masterSyncMemberName; set => _masterSyncMemberName.Assign(value); } - private readonly BicepValue _masterSyncMemberName; + public BicepValue MasterSyncMemberName + { + get { Initialize(); return _masterSyncMemberName!; } + set { Initialize(); _masterSyncMemberName!.Assign(value); } + } + private BicepValue? _masterSyncMemberName; /// /// Creates a new SyncGroupSchema. /// public SyncGroupSchema() { - _tables = BicepList.DefineProperty(this, "Tables", ["tables"]); - _masterSyncMemberName = BicepValue.DefineProperty(this, "MasterSyncMemberName", ["masterSyncMemberName"]); + } + + /// + /// Define all the provisionable properties of SyncGroupSchema. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tables = DefineListProperty("Tables", ["tables"]); + _masterSyncMemberName = DefineProperty("MasterSyncMemberName", ["masterSyncMemberName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SyncGroupSchemaTable.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SyncGroupSchemaTable.cs index 4bfbcb4a4552c..7316be1dfe2ae 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SyncGroupSchemaTable.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SyncGroupSchemaTable.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class SyncGroupSchemaTable : ProvisionableConstruct /// /// List of columns in sync group schema. /// - public BicepList Columns { get => _columns; set => _columns.Assign(value); } - private readonly BicepList _columns; + public BicepList Columns + { + get { Initialize(); return _columns!; } + set { Initialize(); _columns!.Assign(value); } + } + private BicepList? _columns; /// /// Quoted name of sync group schema table. /// - public BicepValue QuotedName { get => _quotedName; set => _quotedName.Assign(value); } - private readonly BicepValue _quotedName; + public BicepValue QuotedName + { + get { Initialize(); return _quotedName!; } + set { Initialize(); _quotedName!.Assign(value); } + } + private BicepValue? _quotedName; /// /// Creates a new SyncGroupSchemaTable. /// public SyncGroupSchemaTable() { - _columns = BicepList.DefineProperty(this, "Columns", ["columns"]); - _quotedName = BicepValue.DefineProperty(this, "QuotedName", ["quotedName"]); + } + + /// + /// Define all the provisionable properties of SyncGroupSchemaTable. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _columns = DefineListProperty("Columns", ["columns"]); + _quotedName = DefineProperty("QuotedName", ["quotedName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SyncGroupSchemaTableColumn.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SyncGroupSchemaTableColumn.cs index 9ed47984add47..4002b27c67a93 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SyncGroupSchemaTableColumn.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/SyncGroupSchemaTableColumn.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class SyncGroupSchemaTableColumn : ProvisionableConstruct /// /// Quoted name of sync group table column. /// - public BicepValue QuotedName { get => _quotedName; set => _quotedName.Assign(value); } - private readonly BicepValue _quotedName; + public BicepValue QuotedName + { + get { Initialize(); return _quotedName!; } + set { Initialize(); _quotedName!.Assign(value); } + } + private BicepValue? _quotedName; /// /// Data size of the column. /// - public BicepValue DataSize { get => _dataSize; set => _dataSize.Assign(value); } - private readonly BicepValue _dataSize; + public BicepValue DataSize + { + get { Initialize(); return _dataSize!; } + set { Initialize(); _dataSize!.Assign(value); } + } + private BicepValue? _dataSize; /// /// Data type of the column. /// - public BicepValue DataType { get => _dataType; set => _dataType.Assign(value); } - private readonly BicepValue _dataType; + public BicepValue DataType + { + get { Initialize(); return _dataType!; } + set { Initialize(); _dataType!.Assign(value); } + } + private BicepValue? _dataType; /// /// Creates a new SyncGroupSchemaTableColumn. /// public SyncGroupSchemaTableColumn() { - _quotedName = BicepValue.DefineProperty(this, "QuotedName", ["quotedName"]); - _dataSize = BicepValue.DefineProperty(this, "DataSize", ["dataSize"]); - _dataType = BicepValue.DefineProperty(this, "DataType", ["dataType"]); + } + + /// + /// Define all the provisionable properties of SyncGroupSchemaTableColumn. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _quotedName = DefineProperty("QuotedName", ["quotedName"]); + _dataSize = DefineProperty("DataSize", ["dataSize"]); + _dataType = DefineProperty("DataType", ["dataType"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs index 7b0b2fbf3f3b3..0372a749761cb 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,51 @@ public partial class VulnerabilityAssessmentRecurringScansProperties : Provision /// /// Recurring scans state. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Specifies that the schedule scan notification will be is sent to the /// subscription administrators. /// - public BicepValue EmailSubscriptionAdmins { get => _emailSubscriptionAdmins; set => _emailSubscriptionAdmins.Assign(value); } - private readonly BicepValue _emailSubscriptionAdmins; + public BicepValue EmailSubscriptionAdmins + { + get { Initialize(); return _emailSubscriptionAdmins!; } + set { Initialize(); _emailSubscriptionAdmins!.Assign(value); } + } + private BicepValue? _emailSubscriptionAdmins; /// /// Specifies an array of e-mail addresses to which the scan notification /// is sent. /// - public BicepList Emails { get => _emails; set => _emails.Assign(value); } - private readonly BicepList _emails; + public BicepList Emails + { + get { Initialize(); return _emails!; } + set { Initialize(); _emails!.Assign(value); } + } + private BicepList? _emails; /// /// Creates a new VulnerabilityAssessmentRecurringScansProperties. /// public VulnerabilityAssessmentRecurringScansProperties() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["isEnabled"]); - _emailSubscriptionAdmins = BicepValue.DefineProperty(this, "EmailSubscriptionAdmins", ["emailSubscriptionAdmins"]); - _emails = BicepList.DefineProperty(this, "Emails", ["emails"]); + } + + /// + /// Define all the provisionable properties of + /// VulnerabilityAssessmentRecurringScansProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["isEnabled"]); + _emailSubscriptionAdmins = DefineProperty("EmailSubscriptionAdmins", ["emailSubscriptionAdmins"]); + _emails = DefineListProperty("Emails", ["emails"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/OutboundFirewallRule.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/OutboundFirewallRule.cs index 1099e77c22c1a..2e31fe778ae6b 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/OutboundFirewallRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/OutboundFirewallRule.cs @@ -20,32 +20,48 @@ public partial class OutboundFirewallRule : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The state of the outbound rule. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new OutboundFirewallRule. @@ -60,11 +76,18 @@ public partial class OutboundFirewallRule : ProvisionableResource public OutboundFirewallRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/outboundFirewallRules", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of OutboundFirewallRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ServerAdvancedThreatProtection.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ServerAdvancedThreatProtection.cs index 0910625205a34..49c2ae7e1d6b8 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ServerAdvancedThreatProtection.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/ServerAdvancedThreatProtection.cs @@ -20,40 +20,60 @@ public partial class ServerAdvancedThreatProtection : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies the state of the Advanced Threat Protection, whether it is /// enabled or disabled or a state has not been applied yet on the /// specific database or server. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the UTC creation time of the policy. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ServerAdvancedThreatProtection. @@ -68,12 +88,20 @@ public partial class ServerAdvancedThreatProtection : ProvisionableResource public ServerAdvancedThreatProtection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/advancedThreatProtectionSettings", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// ServerAdvancedThreatProtection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlAgentConfiguration.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlAgentConfiguration.cs index 4b8c41de4aa65..915f63b4a03e4 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlAgentConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlAgentConfiguration.cs @@ -20,32 +20,49 @@ public partial class SqlAgentConfiguration : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The state of Sql Agent. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent ManagedInstance. /// - public ManagedInstance? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagedInstance? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlAgentConfiguration. @@ -60,11 +77,18 @@ public partial class SqlAgentConfiguration : ProvisionableResource public SqlAgentConfiguration(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/managedInstances/sqlAgent", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlAgentConfiguration. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabase.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabase.cs index 9fc078bc64ee1..89781ee7cee4e 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabase.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabase.cs @@ -22,39 +22,63 @@ public partial class SqlDatabase : ProvisionableResource /// /// The name of the database. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Time in minutes after which database is automatically paused. A value /// of -1 means that automatic pause is disabled. /// - public BicepValue AutoPauseDelay { get => _autoPauseDelay; set => _autoPauseDelay.Assign(value); } - private readonly BicepValue _autoPauseDelay; + public BicepValue AutoPauseDelay + { + get { Initialize(); return _autoPauseDelay!; } + set { Initialize(); _autoPauseDelay!.Assign(value); } + } + private BicepValue? _autoPauseDelay; /// /// Specifies the availability zone the database is pinned to. /// - public BicepValue AvailabilityZone { get => _availabilityZone; set => _availabilityZone.Assign(value); } - private readonly BicepValue _availabilityZone; + public BicepValue AvailabilityZone + { + get { Initialize(); return _availabilityZone!; } + set { Initialize(); _availabilityZone!.Assign(value); } + } + private BicepValue? _availabilityZone; /// /// Collation of the metadata catalog. /// - public BicepValue CatalogCollation { get => _catalogCollation; set => _catalogCollation.Assign(value); } - private readonly BicepValue _catalogCollation; + public BicepValue CatalogCollation + { + get { Initialize(); return _catalogCollation!; } + set { Initialize(); _catalogCollation!.Assign(value); } + } + private BicepValue? _catalogCollation; /// /// The collation of the database. /// - public BicepValue Collation { get => _collation; set => _collation.Assign(value); } - private readonly BicepValue _collation; + public BicepValue Collation + { + get { Initialize(); return _collation!; } + set { Initialize(); _collation!.Assign(value); } + } + private BicepValue? _collation; /// /// Specifies the mode of database creation. @@ -85,34 +109,54 @@ public partial class SqlDatabase : ProvisionableResource /// and RestoreLongTermRetentionBackup are not supported for DataWarehouse /// edition. /// - public BicepValue CreateMode { get => _createMode; set => _createMode.Assign(value); } - private readonly BicepValue _createMode; + public BicepValue CreateMode + { + get { Initialize(); return _createMode!; } + set { Initialize(); _createMode!.Assign(value); } + } + private BicepValue? _createMode; /// /// The resource identifier of the elastic pool containing this database. /// - public BicepValue ElasticPoolId { get => _elasticPoolId; set => _elasticPoolId.Assign(value); } - private readonly BicepValue _elasticPoolId; + public BicepValue ElasticPoolId + { + get { Initialize(); return _elasticPoolId!; } + set { Initialize(); _elasticPoolId!.Assign(value); } + } + private BicepValue? _elasticPoolId; /// /// The azure key vault URI of the database if it's configured with /// per Database Customer Managed Keys. /// - public BicepValue EncryptionProtector { get => _encryptionProtector; set => _encryptionProtector.Assign(value); } - private readonly BicepValue _encryptionProtector; + public BicepValue EncryptionProtector + { + get { Initialize(); return _encryptionProtector!; } + set { Initialize(); _encryptionProtector!.Assign(value); } + } + private BicepValue? _encryptionProtector; /// /// The flag to enable or disable auto rotation of database encryption /// protector AKV key. /// - public BicepValue EncryptionProtectorAutoRotation { get => _encryptionProtectorAutoRotation; set => _encryptionProtectorAutoRotation.Assign(value); } - private readonly BicepValue _encryptionProtectorAutoRotation; + public BicepValue EncryptionProtectorAutoRotation + { + get { Initialize(); return _encryptionProtectorAutoRotation!; } + set { Initialize(); _encryptionProtectorAutoRotation!.Assign(value); } + } + private BicepValue? _encryptionProtectorAutoRotation; /// /// The Client id used for cross tenant per database CMK scenario. /// - public BicepValue FederatedClientId { get => _federatedClientId; set => _federatedClientId.Assign(value); } - private readonly BicepValue _federatedClientId; + public BicepValue FederatedClientId + { + get { Initialize(); return _federatedClientId!; } + set { Initialize(); _federatedClientId!.Assign(value); } + } + private BicepValue? _federatedClientId; /// /// Specifies the behavior when monthly free limits are exhausted for the @@ -122,67 +166,103 @@ public partial class SqlDatabase : ProvisionableResource /// continue to be online upon exhaustion of free limits and any overage /// will be billed. /// - public BicepValue FreeLimitExhaustionBehavior { get => _freeLimitExhaustionBehavior; set => _freeLimitExhaustionBehavior.Assign(value); } - private readonly BicepValue _freeLimitExhaustionBehavior; + public BicepValue FreeLimitExhaustionBehavior + { + get { Initialize(); return _freeLimitExhaustionBehavior!; } + set { Initialize(); _freeLimitExhaustionBehavior!.Assign(value); } + } + private BicepValue? _freeLimitExhaustionBehavior; /// /// The number of secondary replicas associated with the database that are /// used to provide high availability. Not applicable to a Hyperscale /// database within an elastic pool. /// - public BicepValue HighAvailabilityReplicaCount { get => _highAvailabilityReplicaCount; set => _highAvailabilityReplicaCount.Assign(value); } - private readonly BicepValue _highAvailabilityReplicaCount; + public BicepValue HighAvailabilityReplicaCount + { + get { Initialize(); return _highAvailabilityReplicaCount!; } + set { Initialize(); _highAvailabilityReplicaCount!.Assign(value); } + } + private BicepValue? _highAvailabilityReplicaCount; /// /// The Azure Active Directory identity of the database. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public DatabaseIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private DatabaseIdentity? _identity; /// /// Whether or not this database is a ledger database, which means all /// tables in the database are ledger tables. Note: the value of this /// property cannot be changed after the database has been created. /// - public BicepValue IsLedgerOn { get => _isLedgerOn; set => _isLedgerOn.Assign(value); } - private readonly BicepValue _isLedgerOn; + public BicepValue IsLedgerOn + { + get { Initialize(); return _isLedgerOn!; } + set { Initialize(); _isLedgerOn!.Assign(value); } + } + private BicepValue? _isLedgerOn; /// /// Whether or not this database is zone redundant, which means the /// replicas of this database will be spread across multiple availability /// zones. /// - public BicepValue IsZoneRedundant { get => _isZoneRedundant; set => _isZoneRedundant.Assign(value); } - private readonly BicepValue _isZoneRedundant; + public BicepValue IsZoneRedundant + { + get { Initialize(); return _isZoneRedundant!; } + set { Initialize(); _isZoneRedundant!.Assign(value); } + } + private BicepValue? _isZoneRedundant; /// /// The resource ids of the user assigned identities to use. /// - public BicepDictionary Keys { get => _keys; set => _keys.Assign(value); } - private readonly BicepDictionary _keys; + public BicepDictionary Keys + { + get { Initialize(); return _keys!; } + set { Initialize(); _keys!.Assign(value); } + } + private BicepDictionary? _keys; /// /// The license type to apply for this database. `LicenseIncluded` if you /// need a license, or `BasePrice` if you have a license and are eligible /// for the Azure Hybrid Benefit. /// - public BicepValue LicenseType { get => _licenseType; set => _licenseType.Assign(value); } - private readonly BicepValue _licenseType; + public BicepValue LicenseType + { + get { Initialize(); return _licenseType!; } + set { Initialize(); _licenseType!.Assign(value); } + } + private BicepValue? _licenseType; /// /// The resource identifier of the long term retention backup associated /// with create operation of this database. /// - public BicepValue LongTermRetentionBackupResourceId { get => _longTermRetentionBackupResourceId; set => _longTermRetentionBackupResourceId.Assign(value); } - private readonly BicepValue _longTermRetentionBackupResourceId; + public BicepValue LongTermRetentionBackupResourceId + { + get { Initialize(); return _longTermRetentionBackupResourceId!; } + set { Initialize(); _longTermRetentionBackupResourceId!.Assign(value); } + } + private BicepValue? _longTermRetentionBackupResourceId; /// /// Maintenance configuration id assigned to the database. This /// configuration defines the period when the maintenance updates will /// occur. /// - public BicepValue MaintenanceConfigurationId { get => _maintenanceConfigurationId; set => _maintenanceConfigurationId.Assign(value); } - private readonly BicepValue _maintenanceConfigurationId; + public BicepValue MaintenanceConfigurationId + { + get { Initialize(); return _maintenanceConfigurationId!; } + set { Initialize(); _maintenanceConfigurationId!.Assign(value); } + } + private BicepValue? _maintenanceConfigurationId; /// /// Whether or not customer controlled manual cutover needs to be done @@ -196,21 +276,33 @@ public partial class SqlDatabase : ProvisionableResource /// 'performCutover' parameter when the Scaling operation is in /// Waiting state. /// - public BicepValue ManualCutover { get => _manualCutover; set => _manualCutover.Assign(value); } - private readonly BicepValue _manualCutover; + public BicepValue ManualCutover + { + get { Initialize(); return _manualCutover!; } + set { Initialize(); _manualCutover!.Assign(value); } + } + private BicepValue? _manualCutover; /// /// The max size of the database expressed in bytes. /// - public BicepValue MaxSizeBytes { get => _maxSizeBytes; set => _maxSizeBytes.Assign(value); } - private readonly BicepValue _maxSizeBytes; + public BicepValue MaxSizeBytes + { + get { Initialize(); return _maxSizeBytes!; } + set { Initialize(); _maxSizeBytes!.Assign(value); } + } + private BicepValue? _maxSizeBytes; /// /// Minimal capacity that database will always have allocated, if not /// paused. /// - public BicepValue MinCapacity { get => _minCapacity; set => _minCapacity.Assign(value); } - private readonly BicepValue _minCapacity; + public BicepValue MinCapacity + { + get { Initialize(); return _minCapacity!; } + set { Initialize(); _minCapacity!.Assign(value); } + } + private BicepValue? _minCapacity; /// /// To trigger customer controlled manual cutover during the wait state @@ -224,14 +316,22 @@ public partial class SqlDatabase : ProvisionableResource /// the scaling operation will trigger cutover and perform role-change to /// Hyperscale database. /// - public BicepValue PerformCutover { get => _performCutover; set => _performCutover.Assign(value); } - private readonly BicepValue _performCutover; + public BicepValue PerformCutover + { + get { Initialize(); return _performCutover!; } + set { Initialize(); _performCutover!.Assign(value); } + } + private BicepValue? _performCutover; /// /// Type of enclave requested on the database i.e. Default or VBS enclaves. /// - public BicepValue PreferredEnclaveType { get => _preferredEnclaveType; set => _preferredEnclaveType.Assign(value); } - private readonly BicepValue _preferredEnclaveType; + public BicepValue PreferredEnclaveType + { + get { Initialize(); return _preferredEnclaveType!; } + set { Initialize(); _preferredEnclaveType!.Assign(value); } + } + private BicepValue? _preferredEnclaveType; /// /// The state of read-only routing. If enabled, connections that have @@ -239,55 +339,87 @@ public partial class SqlDatabase : ProvisionableResource /// routed to a readonly secondary replica in the same region. Not /// applicable to a Hyperscale database within an elastic pool. /// - public BicepValue ReadScale { get => _readScale; set => _readScale.Assign(value); } - private readonly BicepValue _readScale; + public BicepValue ReadScale + { + get { Initialize(); return _readScale!; } + set { Initialize(); _readScale!.Assign(value); } + } + private BicepValue? _readScale; /// /// The resource identifier of the recoverable database associated with /// create operation of this database. /// - public BicepValue RecoverableDatabaseId { get => _recoverableDatabaseId; set => _recoverableDatabaseId.Assign(value); } - private readonly BicepValue _recoverableDatabaseId; + public BicepValue RecoverableDatabaseId + { + get { Initialize(); return _recoverableDatabaseId!; } + set { Initialize(); _recoverableDatabaseId!.Assign(value); } + } + private BicepValue? _recoverableDatabaseId; /// /// The resource identifier of the recovery point associated with create /// operation of this database. /// - public BicepValue RecoveryServicesRecoveryPointId { get => _recoveryServicesRecoveryPointId; set => _recoveryServicesRecoveryPointId.Assign(value); } - private readonly BicepValue _recoveryServicesRecoveryPointId; + public BicepValue RecoveryServicesRecoveryPointId + { + get { Initialize(); return _recoveryServicesRecoveryPointId!; } + set { Initialize(); _recoveryServicesRecoveryPointId!.Assign(value); } + } + private BicepValue? _recoveryServicesRecoveryPointId; /// /// The storage account type to be used to store backups for this database. /// - public BicepValue RequestedBackupStorageRedundancy { get => _requestedBackupStorageRedundancy; set => _requestedBackupStorageRedundancy.Assign(value); } - private readonly BicepValue _requestedBackupStorageRedundancy; + public BicepValue RequestedBackupStorageRedundancy + { + get { Initialize(); return _requestedBackupStorageRedundancy!; } + set { Initialize(); _requestedBackupStorageRedundancy!.Assign(value); } + } + private BicepValue? _requestedBackupStorageRedundancy; /// /// The resource identifier of the restorable dropped database associated /// with create operation of this database. /// - public BicepValue RestorableDroppedDatabaseId { get => _restorableDroppedDatabaseId; set => _restorableDroppedDatabaseId.Assign(value); } - private readonly BicepValue _restorableDroppedDatabaseId; + public BicepValue RestorableDroppedDatabaseId + { + get { Initialize(); return _restorableDroppedDatabaseId!; } + set { Initialize(); _restorableDroppedDatabaseId!.Assign(value); } + } + private BicepValue? _restorableDroppedDatabaseId; /// /// Specifies the point in time (ISO8601 format) of the source database /// that will be restored to create the new database. /// - public BicepValue RestorePointInTime { get => _restorePointInTime; set => _restorePointInTime.Assign(value); } - private readonly BicepValue _restorePointInTime; + public BicepValue RestorePointInTime + { + get { Initialize(); return _restorePointInTime!; } + set { Initialize(); _restorePointInTime!.Assign(value); } + } + private BicepValue? _restorePointInTime; /// /// The name of the sample schema to apply when creating this database. /// - public BicepValue SampleName { get => _sampleName; set => _sampleName.Assign(value); } - private readonly BicepValue _sampleName; + public BicepValue SampleName + { + get { Initialize(); return _sampleName!; } + set { Initialize(); _sampleName!.Assign(value); } + } + private BicepValue? _sampleName; /// /// The secondary type of the database if it is a secondary. Valid values /// are Geo, Named and Standby. /// - public BicepValue SecondaryType { get => _secondaryType; set => _secondaryType.Assign(value); } - private readonly BicepValue _secondaryType; + public BicepValue SecondaryType + { + get { Initialize(); return _secondaryType!; } + set { Initialize(); _secondaryType!.Assign(value); } + } + private BicepValue? _secondaryType; /// /// The database SKU. The list of SKUs may vary @@ -301,21 +433,33 @@ public partial class SqlDatabase : ProvisionableResource /// Get-AzSqlServerServiceObjective -Location /// <location> ```` /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public SqlSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private SqlSku? _sku; /// /// Specifies the time that the database was deleted. /// - public BicepValue SourceDatabaseDeletedOn { get => _sourceDatabaseDeletedOn; set => _sourceDatabaseDeletedOn.Assign(value); } - private readonly BicepValue _sourceDatabaseDeletedOn; + public BicepValue SourceDatabaseDeletedOn + { + get { Initialize(); return _sourceDatabaseDeletedOn!; } + set { Initialize(); _sourceDatabaseDeletedOn!.Assign(value); } + } + private BicepValue? _sourceDatabaseDeletedOn; /// /// The resource identifier of the source database associated with create /// operation of this database. /// - public BicepValue SourceDatabaseId { get => _sourceDatabaseId; set => _sourceDatabaseId.Assign(value); } - private readonly BicepValue _sourceDatabaseId; + public BicepValue SourceDatabaseId + { + get { Initialize(); return _sourceDatabaseId!; } + set { Initialize(); _sourceDatabaseId!.Assign(value); } + } + private BicepValue? _sourceDatabaseId; /// /// The resource identifier of the source associated with the create @@ -340,138 +484,208 @@ public partial class SqlDatabase : ProvisionableResource /// “x-ms-authorization-auxiliary” header see /// https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/authenticate-multi-tenant /// - public BicepValue SourceResourceId { get => _sourceResourceId; set => _sourceResourceId.Assign(value); } - private readonly BicepValue _sourceResourceId; + public BicepValue SourceResourceId + { + get { Initialize(); return _sourceResourceId!; } + set { Initialize(); _sourceResourceId!.Assign(value); } + } + private BicepValue? _sourceResourceId; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Whether or not the database uses free monthly limits. Allowed on one /// database in a subscription. /// - public BicepValue UseFreeLimit { get => _useFreeLimit; set => _useFreeLimit.Assign(value); } - private readonly BicepValue _useFreeLimit; + public BicepValue UseFreeLimit + { + get { Initialize(); return _useFreeLimit!; } + set { Initialize(); _useFreeLimit!.Assign(value); } + } + private BicepValue? _useFreeLimit; /// /// The creation date of the database (ISO8601 format). /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// The storage account type used to store backups for this database. /// - public BicepValue CurrentBackupStorageRedundancy { get => _currentBackupStorageRedundancy; } - private readonly BicepValue _currentBackupStorageRedundancy; + public BicepValue CurrentBackupStorageRedundancy + { + get { Initialize(); return _currentBackupStorageRedundancy!; } + } + private BicepValue? _currentBackupStorageRedundancy; /// /// The current service level objective name of the database. /// - public BicepValue CurrentServiceObjectiveName { get => _currentServiceObjectiveName; } - private readonly BicepValue _currentServiceObjectiveName; + public BicepValue CurrentServiceObjectiveName + { + get { Initialize(); return _currentServiceObjectiveName!; } + } + private BicepValue? _currentServiceObjectiveName; /// /// The name and tier of the SKU. /// - public BicepValue CurrentSku { get => _currentSku; } - private readonly BicepValue _currentSku; + public SqlSku CurrentSku + { + get { Initialize(); return _currentSku!; } + } + private SqlSku? _currentSku; /// /// The ID of the database. /// - public BicepValue DatabaseId { get => _databaseId; } - private readonly BicepValue _databaseId; + public BicepValue DatabaseId + { + get { Initialize(); return _databaseId!; } + } + private BicepValue? _databaseId; /// /// The default secondary region for this database. /// - public BicepValue DefaultSecondaryLocation { get => _defaultSecondaryLocation; } - private readonly BicepValue _defaultSecondaryLocation; + public BicepValue DefaultSecondaryLocation + { + get { Initialize(); return _defaultSecondaryLocation!; } + } + private BicepValue? _defaultSecondaryLocation; /// /// This records the earliest start date and time that restore is available /// for this database (ISO8601 format). /// - public BicepValue EarliestRestoreOn { get => _earliestRestoreOn; } - private readonly BicepValue _earliestRestoreOn; + public BicepValue EarliestRestoreOn + { + get { Initialize(); return _earliestRestoreOn!; } + } + private BicepValue? _earliestRestoreOn; /// /// Failover Group resource identifier that this database belongs to. /// - public BicepValue FailoverGroupId { get => _failoverGroupId; } - private readonly BicepValue _failoverGroupId; + public BicepValue FailoverGroupId + { + get { Initialize(); return _failoverGroupId!; } + } + private BicepValue? _failoverGroupId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Infra encryption is enabled for this database. /// - public BicepValue IsInfraEncryptionEnabled { get => _isInfraEncryptionEnabled; } - private readonly BicepValue _isInfraEncryptionEnabled; + public BicepValue IsInfraEncryptionEnabled + { + get { Initialize(); return _isInfraEncryptionEnabled!; } + } + private BicepValue? _isInfraEncryptionEnabled; /// /// Kind of database. This is metadata used for the Azure portal experience. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// Resource that manages the database. /// - public BicepValue ManagedBy { get => _managedBy; } - private readonly BicepValue _managedBy; + public BicepValue ManagedBy + { + get { Initialize(); return _managedBy!; } + } + private BicepValue? _managedBy; /// /// The max log size for this database. /// - public BicepValue MaxLogSizeBytes { get => _maxLogSizeBytes; } - private readonly BicepValue _maxLogSizeBytes; + public BicepValue MaxLogSizeBytes + { + get { Initialize(); return _maxLogSizeBytes!; } + } + private BicepValue? _maxLogSizeBytes; /// /// The date when database was paused by user configuration or /// action(ISO8601 format). Null if the database is ready. /// - public BicepValue PausedOn { get => _pausedOn; } - private readonly BicepValue _pausedOn; + public BicepValue PausedOn + { + get { Initialize(); return _pausedOn!; } + } + private BicepValue? _pausedOn; /// /// The requested service level objective name of the database. /// - public BicepValue RequestedServiceObjectiveName { get => _requestedServiceObjectiveName; } - private readonly BicepValue _requestedServiceObjectiveName; + public BicepValue RequestedServiceObjectiveName + { + get { Initialize(); return _requestedServiceObjectiveName!; } + } + private BicepValue? _requestedServiceObjectiveName; /// /// The date when database was resumed by user action or database login /// (ISO8601 format). Null if the database is paused. /// - public BicepValue ResumedOn { get => _resumedOn; } - private readonly BicepValue _resumedOn; + public BicepValue ResumedOn + { + get { Initialize(); return _resumedOn!; } + } + private BicepValue? _resumedOn; /// /// The status of the database. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlDatabase. @@ -486,64 +700,71 @@ public partial class SqlDatabase : ProvisionableResource public SqlDatabase(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _autoPauseDelay = BicepValue.DefineProperty(this, "AutoPauseDelay", ["properties", "autoPauseDelay"]); - _availabilityZone = BicepValue.DefineProperty(this, "AvailabilityZone", ["properties", "availabilityZone"]); - _catalogCollation = BicepValue.DefineProperty(this, "CatalogCollation", ["properties", "catalogCollation"]); - _collation = BicepValue.DefineProperty(this, "Collation", ["properties", "collation"]); - _createMode = BicepValue.DefineProperty(this, "CreateMode", ["properties", "createMode"]); - _elasticPoolId = BicepValue.DefineProperty(this, "ElasticPoolId", ["properties", "elasticPoolId"]); - _encryptionProtector = BicepValue.DefineProperty(this, "EncryptionProtector", ["properties", "encryptionProtector"]); - _encryptionProtectorAutoRotation = BicepValue.DefineProperty(this, "EncryptionProtectorAutoRotation", ["properties", "encryptionProtectorAutoRotation"]); - _federatedClientId = BicepValue.DefineProperty(this, "FederatedClientId", ["properties", "federatedClientId"]); - _freeLimitExhaustionBehavior = BicepValue.DefineProperty(this, "FreeLimitExhaustionBehavior", ["properties", "freeLimitExhaustionBehavior"]); - _highAvailabilityReplicaCount = BicepValue.DefineProperty(this, "HighAvailabilityReplicaCount", ["properties", "highAvailabilityReplicaCount"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _isLedgerOn = BicepValue.DefineProperty(this, "IsLedgerOn", ["properties", "isLedgerOn"]); - _isZoneRedundant = BicepValue.DefineProperty(this, "IsZoneRedundant", ["properties", "zoneRedundant"]); - _keys = BicepDictionary.DefineProperty(this, "Keys", ["properties", "keys"]); - _licenseType = BicepValue.DefineProperty(this, "LicenseType", ["properties", "licenseType"]); - _longTermRetentionBackupResourceId = BicepValue.DefineProperty(this, "LongTermRetentionBackupResourceId", ["properties", "longTermRetentionBackupResourceId"]); - _maintenanceConfigurationId = BicepValue.DefineProperty(this, "MaintenanceConfigurationId", ["properties", "maintenanceConfigurationId"]); - _manualCutover = BicepValue.DefineProperty(this, "ManualCutover", ["properties", "manualCutover"]); - _maxSizeBytes = BicepValue.DefineProperty(this, "MaxSizeBytes", ["properties", "maxSizeBytes"]); - _minCapacity = BicepValue.DefineProperty(this, "MinCapacity", ["properties", "minCapacity"]); - _performCutover = BicepValue.DefineProperty(this, "PerformCutover", ["properties", "performCutover"]); - _preferredEnclaveType = BicepValue.DefineProperty(this, "PreferredEnclaveType", ["properties", "preferredEnclaveType"]); - _readScale = BicepValue.DefineProperty(this, "ReadScale", ["properties", "readScale"]); - _recoverableDatabaseId = BicepValue.DefineProperty(this, "RecoverableDatabaseId", ["properties", "recoverableDatabaseId"]); - _recoveryServicesRecoveryPointId = BicepValue.DefineProperty(this, "RecoveryServicesRecoveryPointId", ["properties", "recoveryServicesRecoveryPointId"]); - _requestedBackupStorageRedundancy = BicepValue.DefineProperty(this, "RequestedBackupStorageRedundancy", ["properties", "requestedBackupStorageRedundancy"]); - _restorableDroppedDatabaseId = BicepValue.DefineProperty(this, "RestorableDroppedDatabaseId", ["properties", "restorableDroppedDatabaseId"]); - _restorePointInTime = BicepValue.DefineProperty(this, "RestorePointInTime", ["properties", "restorePointInTime"]); - _sampleName = BicepValue.DefineProperty(this, "SampleName", ["properties", "sampleName"]); - _secondaryType = BicepValue.DefineProperty(this, "SecondaryType", ["properties", "secondaryType"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _sourceDatabaseDeletedOn = BicepValue.DefineProperty(this, "SourceDatabaseDeletedOn", ["properties", "sourceDatabaseDeletionDate"]); - _sourceDatabaseId = BicepValue.DefineProperty(this, "SourceDatabaseId", ["properties", "sourceDatabaseId"]); - _sourceResourceId = BicepValue.DefineProperty(this, "SourceResourceId", ["properties", "sourceResourceId"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _useFreeLimit = BicepValue.DefineProperty(this, "UseFreeLimit", ["properties", "useFreeLimit"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationDate"], isOutput: true); - _currentBackupStorageRedundancy = BicepValue.DefineProperty(this, "CurrentBackupStorageRedundancy", ["properties", "currentBackupStorageRedundancy"], isOutput: true); - _currentServiceObjectiveName = BicepValue.DefineProperty(this, "CurrentServiceObjectiveName", ["properties", "currentServiceObjectiveName"], isOutput: true); - _currentSku = BicepValue.DefineProperty(this, "CurrentSku", ["properties", "currentSku"], isOutput: true); - _databaseId = BicepValue.DefineProperty(this, "DatabaseId", ["properties", "databaseId"], isOutput: true); - _defaultSecondaryLocation = BicepValue.DefineProperty(this, "DefaultSecondaryLocation", ["properties", "defaultSecondaryLocation"], isOutput: true); - _earliestRestoreOn = BicepValue.DefineProperty(this, "EarliestRestoreOn", ["properties", "earliestRestoreDate"], isOutput: true); - _failoverGroupId = BicepValue.DefineProperty(this, "FailoverGroupId", ["properties", "failoverGroupId"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isInfraEncryptionEnabled = BicepValue.DefineProperty(this, "IsInfraEncryptionEnabled", ["properties", "isInfraEncryptionEnabled"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _managedBy = BicepValue.DefineProperty(this, "ManagedBy", ["managedBy"], isOutput: true); - _maxLogSizeBytes = BicepValue.DefineProperty(this, "MaxLogSizeBytes", ["properties", "maxLogSizeBytes"], isOutput: true); - _pausedOn = BicepValue.DefineProperty(this, "PausedOn", ["properties", "pausedDate"], isOutput: true); - _requestedServiceObjectiveName = BicepValue.DefineProperty(this, "RequestedServiceObjectiveName", ["properties", "requestedServiceObjectiveName"], isOutput: true); - _resumedOn = BicepValue.DefineProperty(this, "ResumedOn", ["properties", "resumedDate"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlDatabase. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _autoPauseDelay = DefineProperty("AutoPauseDelay", ["properties", "autoPauseDelay"]); + _availabilityZone = DefineProperty("AvailabilityZone", ["properties", "availabilityZone"]); + _catalogCollation = DefineProperty("CatalogCollation", ["properties", "catalogCollation"]); + _collation = DefineProperty("Collation", ["properties", "collation"]); + _createMode = DefineProperty("CreateMode", ["properties", "createMode"]); + _elasticPoolId = DefineProperty("ElasticPoolId", ["properties", "elasticPoolId"]); + _encryptionProtector = DefineProperty("EncryptionProtector", ["properties", "encryptionProtector"]); + _encryptionProtectorAutoRotation = DefineProperty("EncryptionProtectorAutoRotation", ["properties", "encryptionProtectorAutoRotation"]); + _federatedClientId = DefineProperty("FederatedClientId", ["properties", "federatedClientId"]); + _freeLimitExhaustionBehavior = DefineProperty("FreeLimitExhaustionBehavior", ["properties", "freeLimitExhaustionBehavior"]); + _highAvailabilityReplicaCount = DefineProperty("HighAvailabilityReplicaCount", ["properties", "highAvailabilityReplicaCount"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _isLedgerOn = DefineProperty("IsLedgerOn", ["properties", "isLedgerOn"]); + _isZoneRedundant = DefineProperty("IsZoneRedundant", ["properties", "zoneRedundant"]); + _keys = DefineDictionaryProperty("Keys", ["properties", "keys"]); + _licenseType = DefineProperty("LicenseType", ["properties", "licenseType"]); + _longTermRetentionBackupResourceId = DefineProperty("LongTermRetentionBackupResourceId", ["properties", "longTermRetentionBackupResourceId"]); + _maintenanceConfigurationId = DefineProperty("MaintenanceConfigurationId", ["properties", "maintenanceConfigurationId"]); + _manualCutover = DefineProperty("ManualCutover", ["properties", "manualCutover"]); + _maxSizeBytes = DefineProperty("MaxSizeBytes", ["properties", "maxSizeBytes"]); + _minCapacity = DefineProperty("MinCapacity", ["properties", "minCapacity"]); + _performCutover = DefineProperty("PerformCutover", ["properties", "performCutover"]); + _preferredEnclaveType = DefineProperty("PreferredEnclaveType", ["properties", "preferredEnclaveType"]); + _readScale = DefineProperty("ReadScale", ["properties", "readScale"]); + _recoverableDatabaseId = DefineProperty("RecoverableDatabaseId", ["properties", "recoverableDatabaseId"]); + _recoveryServicesRecoveryPointId = DefineProperty("RecoveryServicesRecoveryPointId", ["properties", "recoveryServicesRecoveryPointId"]); + _requestedBackupStorageRedundancy = DefineProperty("RequestedBackupStorageRedundancy", ["properties", "requestedBackupStorageRedundancy"]); + _restorableDroppedDatabaseId = DefineProperty("RestorableDroppedDatabaseId", ["properties", "restorableDroppedDatabaseId"]); + _restorePointInTime = DefineProperty("RestorePointInTime", ["properties", "restorePointInTime"]); + _sampleName = DefineProperty("SampleName", ["properties", "sampleName"]); + _secondaryType = DefineProperty("SecondaryType", ["properties", "secondaryType"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _sourceDatabaseDeletedOn = DefineProperty("SourceDatabaseDeletedOn", ["properties", "sourceDatabaseDeletionDate"]); + _sourceDatabaseId = DefineProperty("SourceDatabaseId", ["properties", "sourceDatabaseId"]); + _sourceResourceId = DefineProperty("SourceResourceId", ["properties", "sourceResourceId"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _useFreeLimit = DefineProperty("UseFreeLimit", ["properties", "useFreeLimit"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationDate"], isOutput: true); + _currentBackupStorageRedundancy = DefineProperty("CurrentBackupStorageRedundancy", ["properties", "currentBackupStorageRedundancy"], isOutput: true); + _currentServiceObjectiveName = DefineProperty("CurrentServiceObjectiveName", ["properties", "currentServiceObjectiveName"], isOutput: true); + _currentSku = DefineModelProperty("CurrentSku", ["properties", "currentSku"], isOutput: true); + _databaseId = DefineProperty("DatabaseId", ["properties", "databaseId"], isOutput: true); + _defaultSecondaryLocation = DefineProperty("DefaultSecondaryLocation", ["properties", "defaultSecondaryLocation"], isOutput: true); + _earliestRestoreOn = DefineProperty("EarliestRestoreOn", ["properties", "earliestRestoreDate"], isOutput: true); + _failoverGroupId = DefineProperty("FailoverGroupId", ["properties", "failoverGroupId"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isInfraEncryptionEnabled = DefineProperty("IsInfraEncryptionEnabled", ["properties", "isInfraEncryptionEnabled"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _managedBy = DefineProperty("ManagedBy", ["managedBy"], isOutput: true); + _maxLogSizeBytes = DefineProperty("MaxLogSizeBytes", ["properties", "maxLogSizeBytes"], isOutput: true); + _pausedOn = DefineProperty("PausedOn", ["properties", "pausedDate"], isOutput: true); + _requestedServiceObjectiveName = DefineProperty("RequestedServiceObjectiveName", ["properties", "requestedServiceObjectiveName"], isOutput: true); + _resumedOn = DefineProperty("ResumedOn", ["properties", "resumedDate"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseBlobAuditingPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseBlobAuditingPolicy.cs index 507be7b682777..f9a0dd625371a 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseBlobAuditingPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseBlobAuditingPolicy.cs @@ -21,8 +21,11 @@ public partial class SqlDatabaseBlobAuditingPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies the Actions-Groups and Actions to audit. @@ -82,8 +85,12 @@ public partial class SqlDatabaseBlobAuditingPolicy : ProvisionableResource /// [Database-Level Audit /// Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) /// - public BicepList AuditActionsAndGroups { get => _auditActionsAndGroups; set => _auditActionsAndGroups.Assign(value); } - private readonly BicepList _auditActionsAndGroups; + public BicepList AuditActionsAndGroups + { + get { Initialize(); return _auditActionsAndGroups!; } + set { Initialize(); _auditActionsAndGroups!.Assign(value); } + } + private BicepList? _auditActionsAndGroups; /// /// Specifies whether audit events are sent to Azure Monitor. @@ -103,43 +110,67 @@ public partial class SqlDatabaseBlobAuditingPolicy : ProvisionableResource /// or [Diagnostic Settings /// PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// - public BicepValue IsAzureMonitorTargetEnabled { get => _isAzureMonitorTargetEnabled; set => _isAzureMonitorTargetEnabled.Assign(value); } - private readonly BicepValue _isAzureMonitorTargetEnabled; + public BicepValue IsAzureMonitorTargetEnabled + { + get { Initialize(); return _isAzureMonitorTargetEnabled!; } + set { Initialize(); _isAzureMonitorTargetEnabled!.Assign(value); } + } + private BicepValue? _isAzureMonitorTargetEnabled; /// /// Specifies whether Managed Identity is used to access blob storage. /// - public BicepValue IsManagedIdentityInUse { get => _isManagedIdentityInUse; set => _isManagedIdentityInUse.Assign(value); } - private readonly BicepValue _isManagedIdentityInUse; + public BicepValue IsManagedIdentityInUse + { + get { Initialize(); return _isManagedIdentityInUse!; } + set { Initialize(); _isManagedIdentityInUse!.Assign(value); } + } + private BicepValue? _isManagedIdentityInUse; /// /// Specifies whether storageAccountAccessKey value is the storage's /// secondary key. /// - public BicepValue IsStorageSecondaryKeyInUse { get => _isStorageSecondaryKeyInUse; set => _isStorageSecondaryKeyInUse.Assign(value); } - private readonly BicepValue _isStorageSecondaryKeyInUse; + public BicepValue IsStorageSecondaryKeyInUse + { + get { Initialize(); return _isStorageSecondaryKeyInUse!; } + set { Initialize(); _isStorageSecondaryKeyInUse!.Assign(value); } + } + private BicepValue? _isStorageSecondaryKeyInUse; /// /// Specifies the amount of time in milliseconds that can elapse before /// audit actions are forced to be processed. The default /// minimum value is 1000 (1 second). The maximum is 2,147,483,647. /// - public BicepValue QueueDelayMs { get => _queueDelayMs; set => _queueDelayMs.Assign(value); } - private readonly BicepValue _queueDelayMs; + public BicepValue QueueDelayMs + { + get { Initialize(); return _queueDelayMs!; } + set { Initialize(); _queueDelayMs!.Assign(value); } + } + private BicepValue? _queueDelayMs; /// /// Specifies the number of days to keep in the audit logs in the storage /// account. /// - public BicepValue RetentionDays { get => _retentionDays; set => _retentionDays.Assign(value); } - private readonly BicepValue _retentionDays; + public BicepValue RetentionDays + { + get { Initialize(); return _retentionDays!; } + set { Initialize(); _retentionDays!.Assign(value); } + } + private BicepValue? _retentionDays; /// /// Specifies the state of the audit. If state is Enabled, storageEndpoint /// or isAzureMonitorTargetEnabled are required. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the identifier key of the auditing storage account. @@ -154,46 +185,71 @@ public partial class SqlDatabaseBlobAuditingPolicy : ProvisionableResource /// more information, see [Auditing to storage using Managed Identity /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// Specifies the blob storage subscription Id. /// - public BicepValue StorageAccountSubscriptionId { get => _storageAccountSubscriptionId; set => _storageAccountSubscriptionId.Assign(value); } - private readonly BicepValue _storageAccountSubscriptionId; + public BicepValue StorageAccountSubscriptionId + { + get { Initialize(); return _storageAccountSubscriptionId!; } + set { Initialize(); _storageAccountSubscriptionId!.Assign(value); } + } + private BicepValue? _storageAccountSubscriptionId; /// /// Specifies the blob storage endpoint (e.g. /// https://MyAccount.blob.core.windows.net). If state is Enabled, /// storageEndpoint or isAzureMonitorTargetEnabled is required. /// - public BicepValue StorageEndpoint { get => _storageEndpoint; set => _storageEndpoint.Assign(value); } - private readonly BicepValue _storageEndpoint; + public BicepValue StorageEndpoint + { + get { Initialize(); return _storageEndpoint!; } + set { Initialize(); _storageEndpoint!.Assign(value); } + } + private BicepValue? _storageEndpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Resource kind. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlDatabaseBlobAuditingPolicy. @@ -208,21 +264,29 @@ public partial class SqlDatabaseBlobAuditingPolicy : ProvisionableResource public SqlDatabaseBlobAuditingPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/auditingSettings", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _auditActionsAndGroups = BicepList.DefineProperty(this, "AuditActionsAndGroups", ["properties", "auditActionsAndGroups"]); - _isAzureMonitorTargetEnabled = BicepValue.DefineProperty(this, "IsAzureMonitorTargetEnabled", ["properties", "isAzureMonitorTargetEnabled"]); - _isManagedIdentityInUse = BicepValue.DefineProperty(this, "IsManagedIdentityInUse", ["properties", "isManagedIdentityInUse"]); - _isStorageSecondaryKeyInUse = BicepValue.DefineProperty(this, "IsStorageSecondaryKeyInUse", ["properties", "isStorageSecondaryKeyInUse"]); - _queueDelayMs = BicepValue.DefineProperty(this, "QueueDelayMs", ["properties", "queueDelayMs"]); - _retentionDays = BicepValue.DefineProperty(this, "RetentionDays", ["properties", "retentionDays"]); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageAccountSubscriptionId = BicepValue.DefineProperty(this, "StorageAccountSubscriptionId", ["properties", "storageAccountSubscriptionId"]); - _storageEndpoint = BicepValue.DefineProperty(this, "StorageEndpoint", ["properties", "storageEndpoint"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SqlDatabaseBlobAuditingPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _auditActionsAndGroups = DefineListProperty("AuditActionsAndGroups", ["properties", "auditActionsAndGroups"]); + _isAzureMonitorTargetEnabled = DefineProperty("IsAzureMonitorTargetEnabled", ["properties", "isAzureMonitorTargetEnabled"]); + _isManagedIdentityInUse = DefineProperty("IsManagedIdentityInUse", ["properties", "isManagedIdentityInUse"]); + _isStorageSecondaryKeyInUse = DefineProperty("IsStorageSecondaryKeyInUse", ["properties", "isStorageSecondaryKeyInUse"]); + _queueDelayMs = DefineProperty("QueueDelayMs", ["properties", "queueDelayMs"]); + _retentionDays = DefineProperty("RetentionDays", ["properties", "retentionDays"]); + _state = DefineProperty("State", ["properties", "state"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageAccountSubscriptionId = DefineProperty("StorageAccountSubscriptionId", ["properties", "storageAccountSubscriptionId"]); + _storageEndpoint = DefineProperty("StorageEndpoint", ["properties", "storageEndpoint"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSecurityAlertPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSecurityAlertPolicy.cs index 5feb06bdb03fb..37ac705f3a28c 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSecurityAlertPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSecurityAlertPolicy.cs @@ -21,80 +21,124 @@ public partial class SqlDatabaseSecurityAlertPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies an array of alerts that are disabled. Allowed values are: /// Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, /// Data_Exfiltration, Unsafe_Action, Brute_Force. /// - public BicepList DisabledAlerts { get => _disabledAlerts; set => _disabledAlerts.Assign(value); } - private readonly BicepList _disabledAlerts; + public BicepList DisabledAlerts + { + get { Initialize(); return _disabledAlerts!; } + set { Initialize(); _disabledAlerts!.Assign(value); } + } + private BicepList? _disabledAlerts; /// /// Specifies an array of e-mail addresses to which the alert is sent. /// - public BicepList EmailAddresses { get => _emailAddresses; set => _emailAddresses.Assign(value); } - private readonly BicepList _emailAddresses; + public BicepList EmailAddresses + { + get { Initialize(); return _emailAddresses!; } + set { Initialize(); _emailAddresses!.Assign(value); } + } + private BicepList? _emailAddresses; /// /// Specifies the number of days to keep in the Threat Detection audit logs. /// - public BicepValue RetentionDays { get => _retentionDays; set => _retentionDays.Assign(value); } - private readonly BicepValue _retentionDays; + public BicepValue RetentionDays + { + get { Initialize(); return _retentionDays!; } + set { Initialize(); _retentionDays!.Assign(value); } + } + private BicepValue? _retentionDays; /// /// Specifies that the alert is sent to the account administrators. /// - public BicepValue SendToEmailAccountAdmins { get => _sendToEmailAccountAdmins; set => _sendToEmailAccountAdmins.Assign(value); } - private readonly BicepValue _sendToEmailAccountAdmins; + public BicepValue SendToEmailAccountAdmins + { + get { Initialize(); return _sendToEmailAccountAdmins!; } + set { Initialize(); _sendToEmailAccountAdmins!.Assign(value); } + } + private BicepValue? _sendToEmailAccountAdmins; /// /// Specifies the state of the policy, whether it is enabled or disabled or /// a policy has not been applied yet on the specific database. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the identifier key of the Threat Detection audit storage /// account. /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// Specifies the blob storage endpoint (e.g. /// https://MyAccount.blob.core.windows.net). This blob storage will hold /// all Threat Detection audit logs. /// - public BicepValue StorageEndpoint { get => _storageEndpoint; set => _storageEndpoint.Assign(value); } - private readonly BicepValue _storageEndpoint; + public BicepValue StorageEndpoint + { + get { Initialize(); return _storageEndpoint!; } + set { Initialize(); _storageEndpoint!.Assign(value); } + } + private BicepValue? _storageEndpoint; /// /// Specifies the UTC creation time of the policy. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlDatabaseSecurityAlertPolicy. @@ -109,18 +153,26 @@ public partial class SqlDatabaseSecurityAlertPolicy : ProvisionableResource public SqlDatabaseSecurityAlertPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/securityAlertPolicies", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _disabledAlerts = BicepList.DefineProperty(this, "DisabledAlerts", ["properties", "disabledAlerts"]); - _emailAddresses = BicepList.DefineProperty(this, "EmailAddresses", ["properties", "emailAddresses"]); - _retentionDays = BicepValue.DefineProperty(this, "RetentionDays", ["properties", "retentionDays"]); - _sendToEmailAccountAdmins = BicepValue.DefineProperty(this, "SendToEmailAccountAdmins", ["properties", "emailAccountAdmins"]); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageEndpoint = BicepValue.DefineProperty(this, "StorageEndpoint", ["properties", "storageEndpoint"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SqlDatabaseSecurityAlertPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _disabledAlerts = DefineListProperty("DisabledAlerts", ["properties", "disabledAlerts"]); + _emailAddresses = DefineListProperty("EmailAddresses", ["properties", "emailAddresses"]); + _retentionDays = DefineProperty("RetentionDays", ["properties", "retentionDays"]); + _sendToEmailAccountAdmins = DefineProperty("SendToEmailAccountAdmins", ["properties", "emailAccountAdmins"]); + _state = DefineProperty("State", ["properties", "state"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageEndpoint = DefineProperty("StorageEndpoint", ["properties", "storageEndpoint"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSensitivityLabel.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSensitivityLabel.cs index 16e5c5f8b9081..7a0b61a8c6474 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSensitivityLabel.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSensitivityLabel.cs @@ -20,82 +20,126 @@ public partial class SqlDatabaseSensitivityLabel : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The information type. /// - public BicepValue InformationType { get => _informationType; set => _informationType.Assign(value); } - private readonly BicepValue _informationType; + public BicepValue InformationType + { + get { Initialize(); return _informationType!; } + set { Initialize(); _informationType!.Assign(value); } + } + private BicepValue? _informationType; /// /// The information type ID. /// - public BicepValue InformationTypeId { get => _informationTypeId; set => _informationTypeId.Assign(value); } - private readonly BicepValue _informationTypeId; + public BicepValue InformationTypeId + { + get { Initialize(); return _informationTypeId!; } + set { Initialize(); _informationTypeId!.Assign(value); } + } + private BicepValue? _informationTypeId; /// /// The label ID. /// - public BicepValue LabelId { get => _labelId; set => _labelId.Assign(value); } - private readonly BicepValue _labelId; + public BicepValue LabelId + { + get { Initialize(); return _labelId!; } + set { Initialize(); _labelId!.Assign(value); } + } + private BicepValue? _labelId; /// /// The label name. /// - public BicepValue LabelName { get => _labelName; set => _labelName.Assign(value); } - private readonly BicepValue _labelName; + public BicepValue LabelName + { + get { Initialize(); return _labelName!; } + set { Initialize(); _labelName!.Assign(value); } + } + private BicepValue? _labelName; /// /// Gets or sets the rank. /// - public BicepValue Rank { get => _rank; set => _rank.Assign(value); } - private readonly BicepValue _rank; + public BicepValue Rank + { + get { Initialize(); return _rank!; } + set { Initialize(); _rank!.Assign(value); } + } + private BicepValue? _rank; /// /// The column name. /// - public BicepValue ColumnName { get => _columnName; } - private readonly BicepValue _columnName; + public BicepValue ColumnName + { + get { Initialize(); return _columnName!; } + } + private BicepValue? _columnName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Is sensitivity recommendation disabled. Applicable for recommended /// sensitivity label only. Specifies whether the sensitivity /// recommendation on this column is disabled (dismissed) or not. /// - public BicepValue IsDisabled { get => _isDisabled; } - private readonly BicepValue _isDisabled; + public BicepValue IsDisabled + { + get { Initialize(); return _isDisabled!; } + } + private BicepValue? _isDisabled; /// /// Resource that manages the sensitivity label. /// - public BicepValue ManagedBy { get => _managedBy; } - private readonly BicepValue _managedBy; + public BicepValue ManagedBy + { + get { Initialize(); return _managedBy!; } + } + private BicepValue? _managedBy; /// /// The schema name. /// - public BicepValue SchemaName { get => _schemaName; } - private readonly BicepValue _schemaName; + public BicepValue SchemaName + { + get { Initialize(); return _schemaName!; } + } + private BicepValue? _schemaName; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The table name. /// - public BicepValue TableName { get => _tableName; } - private readonly BicepValue _tableName; + public BicepValue TableName + { + get { Initialize(); return _tableName!; } + } + private BicepValue? _tableName; /// /// Creates a new SqlDatabaseSensitivityLabel. @@ -110,19 +154,26 @@ public partial class SqlDatabaseSensitivityLabel : ProvisionableResource public SqlDatabaseSensitivityLabel(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _informationType = BicepValue.DefineProperty(this, "InformationType", ["properties", "informationType"]); - _informationTypeId = BicepValue.DefineProperty(this, "InformationTypeId", ["properties", "informationTypeId"]); - _labelId = BicepValue.DefineProperty(this, "LabelId", ["properties", "labelId"]); - _labelName = BicepValue.DefineProperty(this, "LabelName", ["properties", "labelName"]); - _rank = BicepValue.DefineProperty(this, "Rank", ["properties", "rank"]); - _columnName = BicepValue.DefineProperty(this, "ColumnName", ["properties", "columnName"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isDisabled = BicepValue.DefineProperty(this, "IsDisabled", ["properties", "isDisabled"], isOutput: true); - _managedBy = BicepValue.DefineProperty(this, "ManagedBy", ["managedBy"], isOutput: true); - _schemaName = BicepValue.DefineProperty(this, "SchemaName", ["properties", "schemaName"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _tableName = BicepValue.DefineProperty(this, "TableName", ["properties", "tableName"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SqlDatabaseSensitivityLabel. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _informationType = DefineProperty("InformationType", ["properties", "informationType"]); + _informationTypeId = DefineProperty("InformationTypeId", ["properties", "informationTypeId"]); + _labelId = DefineProperty("LabelId", ["properties", "labelId"]); + _labelName = DefineProperty("LabelName", ["properties", "labelName"]); + _rank = DefineProperty("Rank", ["properties", "rank"]); + _columnName = DefineProperty("ColumnName", ["properties", "columnName"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isDisabled = DefineProperty("IsDisabled", ["properties", "isDisabled"], isOutput: true); + _managedBy = DefineProperty("ManagedBy", ["managedBy"], isOutput: true); + _schemaName = DefineProperty("SchemaName", ["properties", "schemaName"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _tableName = DefineProperty("TableName", ["properties", "tableName"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaseline.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaseline.cs index 3c969a57dbb2f..2ff4df1e525ae 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaseline.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaseline.cs @@ -21,32 +21,49 @@ public partial class SqlDatabaseSqlVulnerabilityAssessmentBaseline : Provisionab /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The latest scan flag. /// - public BicepValue IsLatestScan { get => _isLatestScan; set => _isLatestScan.Assign(value); } - private readonly BicepValue _isLatestScan; + public BicepValue IsLatestScan + { + get { Initialize(); return _isLatestScan!; } + set { Initialize(); _isLatestScan!.Assign(value); } + } + private BicepValue? _isLatestScan; /// /// The rule baseline result list. /// - public BicepDictionary>> Results { get => _results; set => _results.Assign(value); } - private readonly BicepDictionary>> _results; + public BicepDictionary>> Results + { + get { Initialize(); return _results!; } + set { Initialize(); _results!.Assign(value); } + } + private BicepDictionary>>? _results; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SqlDatabaseSqlVulnerabilityAssessmentBaseline. @@ -62,11 +79,19 @@ public partial class SqlDatabaseSqlVulnerabilityAssessmentBaseline : Provisionab public SqlDatabaseSqlVulnerabilityAssessmentBaseline(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/sqlVulnerabilityAssessments/baselines", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _isLatestScan = BicepValue.DefineProperty(this, "IsLatestScan", ["properties", "latestScan"]); - _results = BicepDictionary>>.DefineProperty(this, "Results", ["properties", "results"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// SqlDatabaseSqlVulnerabilityAssessmentBaseline. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _isLatestScan = DefineProperty("IsLatestScan", ["properties", "latestScan"]); + _results = DefineDictionaryProperty>>("Results", ["properties", "results"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineRule.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineRule.cs index a61263639d919..80d8df2cdfdfb 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineRule.cs @@ -21,38 +21,59 @@ public partial class SqlDatabaseSqlVulnerabilityAssessmentBaselineRule : Provisi /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The latest scan flag. /// - public BicepValue IsLatestScan { get => _isLatestScan; set => _isLatestScan.Assign(value); } - private readonly BicepValue _isLatestScan; + public BicepValue IsLatestScan + { + get { Initialize(); return _isLatestScan!; } + set { Initialize(); _isLatestScan!.Assign(value); } + } + private BicepValue? _isLatestScan; /// /// The rule baseline result. /// - public BicepList> Results { get => _results; set => _results.Assign(value); } - private readonly BicepList> _results; + public BicepList> Results + { + get { Initialize(); return _results!; } + set { Initialize(); _results!.Assign(value); } + } + private BicepList>? _results; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabaseSqlVulnerabilityAssessmentBaseline. /// - public SqlDatabaseSqlVulnerabilityAssessmentBaseline? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabaseSqlVulnerabilityAssessmentBaseline? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlDatabaseSqlVulnerabilityAssessmentBaselineRule. @@ -68,12 +89,20 @@ public partial class SqlDatabaseSqlVulnerabilityAssessmentBaselineRule : Provisi public SqlDatabaseSqlVulnerabilityAssessmentBaselineRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/sqlVulnerabilityAssessments/baselines/rules", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _isLatestScan = BicepValue.DefineProperty(this, "IsLatestScan", ["properties", "latestScan"]); - _results = BicepList>.DefineProperty(this, "Results", ["properties", "results"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SqlDatabaseSqlVulnerabilityAssessmentBaselineRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _isLatestScan = DefineProperty("IsLatestScan", ["properties", "latestScan"]); + _results = DefineListProperty>("Results", ["properties", "results"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseVulnerabilityAssessment.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseVulnerabilityAssessment.cs index 0f12237d98ef8..363d25de46854 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseVulnerabilityAssessment.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseVulnerabilityAssessment.cs @@ -21,30 +21,45 @@ public partial class SqlDatabaseVulnerabilityAssessment : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The recurring scans settings. /// - public BicepValue RecurringScans { get => _recurringScans; set => _recurringScans.Assign(value); } - private readonly BicepValue _recurringScans; + public VulnerabilityAssessmentRecurringScansProperties RecurringScans + { + get { Initialize(); return _recurringScans!; } + set { Initialize(); AssignOrReplace(ref _recurringScans, value); } + } + private VulnerabilityAssessmentRecurringScansProperties? _recurringScans; /// /// Specifies the identifier key of the storage account for vulnerability /// assessment scan results. If 'StorageContainerSasKey' /// isn't specified, storageAccountAccessKey is required. /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// A blob storage container path to hold the scan results (e.g. /// https://myStorage.blob.core.windows.net/VaScans/). It is required if /// server level vulnerability assessment policy doesn't set. /// - public BicepValue StorageContainerPath { get => _storageContainerPath; set => _storageContainerPath.Assign(value); } - private readonly BicepValue _storageContainerPath; + public BicepValue StorageContainerPath + { + get { Initialize(); return _storageContainerPath!; } + set { Initialize(); _storageContainerPath!.Assign(value); } + } + private BicepValue? _storageContainerPath; /// /// A shared access signature (SAS Key) that has write access to the blob @@ -52,26 +67,40 @@ public partial class SqlDatabaseVulnerabilityAssessment : ProvisionableResource /// 'storageAccountAccessKey' isn't specified, /// StorageContainerSasKey is required. /// - public BicepValue StorageContainerSasKey { get => _storageContainerSasKey; set => _storageContainerSasKey.Assign(value); } - private readonly BicepValue _storageContainerSasKey; + public BicepValue StorageContainerSasKey + { + get { Initialize(); return _storageContainerSasKey!; } + set { Initialize(); _storageContainerSasKey!.Assign(value); } + } + private BicepValue? _storageContainerSasKey; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlDatabaseVulnerabilityAssessment. @@ -86,14 +115,22 @@ public partial class SqlDatabaseVulnerabilityAssessment : ProvisionableResource public SqlDatabaseVulnerabilityAssessment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/vulnerabilityAssessments", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _recurringScans = BicepValue.DefineProperty(this, "RecurringScans", ["properties", "recurringScans"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageContainerPath = BicepValue.DefineProperty(this, "StorageContainerPath", ["properties", "storageContainerPath"]); - _storageContainerSasKey = BicepValue.DefineProperty(this, "StorageContainerSasKey", ["properties", "storageContainerSasKey"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SqlDatabaseVulnerabilityAssessment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _recurringScans = DefineModelProperty("RecurringScans", ["properties", "recurringScans"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageContainerPath = DefineProperty("StorageContainerPath", ["properties", "storageContainerPath"]); + _storageContainerSasKey = DefineProperty("StorageContainerSasKey", ["properties", "storageContainerSasKey"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentRuleBaseline.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentRuleBaseline.cs index 4ee5d0e28e47c..c4838f47ad2ee 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentRuleBaseline.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentRuleBaseline.cs @@ -21,26 +21,39 @@ public partial class SqlDatabaseVulnerabilityAssessmentRuleBaseline : Provisiona /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The rule baseline result. /// - public BicepList BaselineResults { get => _baselineResults; set => _baselineResults.Assign(value); } - private readonly BicepList _baselineResults; + public BicepList BaselineResults + { + get { Initialize(); return _baselineResults!; } + set { Initialize(); _baselineResults!.Assign(value); } + } + private BicepList? _baselineResults; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SqlDatabaseVulnerabilityAssessmentRuleBaseline. @@ -56,10 +69,18 @@ public partial class SqlDatabaseVulnerabilityAssessmentRuleBaseline : Provisiona public SqlDatabaseVulnerabilityAssessmentRuleBaseline(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _baselineResults = BicepList.DefineProperty(this, "BaselineResults", ["properties", "baselineResults"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// SqlDatabaseVulnerabilityAssessmentRuleBaseline. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _baselineResults = DefineListProperty("BaselineResults", ["properties", "baselineResults"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlFirewallRule.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlFirewallRule.cs index c92a3d74eb007..928c5f5b7a503 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlFirewallRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlFirewallRule.cs @@ -20,35 +20,54 @@ public partial class SqlFirewallRule : ProvisionableResource /// /// The name of the firewall rule. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The end IP address of the firewall rule. Must be IPv4 format. Must be /// greater than or equal to startIpAddress. Use value '0.0.0.0' /// for all Azure-internal IP addresses. /// - public BicepValue EndIPAddress { get => _endIPAddress; set => _endIPAddress.Assign(value); } - private readonly BicepValue _endIPAddress; + public BicepValue EndIPAddress + { + get { Initialize(); return _endIPAddress!; } + set { Initialize(); _endIPAddress!.Assign(value); } + } + private BicepValue? _endIPAddress; /// /// The start IP address of the firewall rule. Must be IPv4 format. Use /// value '0.0.0.0' for all Azure-internal IP addresses. /// - public BicepValue StartIPAddress { get => _startIPAddress; set => _startIPAddress.Assign(value); } - private readonly BicepValue _startIPAddress; + public BicepValue StartIPAddress + { + get { Initialize(); return _startIPAddress!; } + set { Initialize(); _startIPAddress!.Assign(value); } + } + private BicepValue? _startIPAddress; /// /// Resource ID. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlFirewallRule. @@ -63,11 +82,18 @@ public partial class SqlFirewallRule : ProvisionableResource public SqlFirewallRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/firewallRules", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _endIPAddress = BicepValue.DefineProperty(this, "EndIPAddress", ["properties", "endIpAddress"]); - _startIPAddress = BicepValue.DefineProperty(this, "StartIPAddress", ["properties", "startIpAddress"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlFirewallRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _endIPAddress = DefineProperty("EndIPAddress", ["properties", "endIpAddress"]); + _startIPAddress = DefineProperty("StartIPAddress", ["properties", "startIpAddress"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlPrivateEndpointConnection.cs index e06265ad96d79..2f8f40dea0a97 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlPrivateEndpointConnection.cs @@ -21,50 +21,78 @@ public partial class SqlPrivateEndpointConnection : ProvisionableResource /// /// The System.String to use. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Connection state of the private endpoint connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public SqlPrivateLinkServiceConnectionStateProperty ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private SqlPrivateLinkServiceConnectionStateProperty? _connectionState; /// /// Gets or sets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Group IDs. /// - public BicepList GroupIds { get => _groupIds; } - private readonly BicepList _groupIds; + public BicepList GroupIds + { + get { Initialize(); return _groupIds!; } + } + private BicepList? _groupIds; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// State of the private endpoint connection. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlPrivateEndpointConnection. @@ -79,14 +107,21 @@ public partial class SqlPrivateEndpointConnection : ProvisionableResource public SqlPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/privateEndpointConnections", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _groupIds = BicepList.DefineProperty(this, "GroupIds", ["properties", "groupIds"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _groupIds = DefineListProperty("GroupIds", ["properties", "groupIds"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServer.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServer.cs index 0d6e74b44692c..c6844c4433317 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServer.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServer.cs @@ -25,27 +25,43 @@ public partial class SqlServer : ProvisionableResource /// /// The name of the server. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Administrator username for the server. Once created it cannot be /// changed. /// - public BicepValue AdministratorLogin { get => _administratorLogin; set => _administratorLogin.Assign(value); } - private readonly BicepValue _administratorLogin; + public BicepValue AdministratorLogin + { + get { Initialize(); return _administratorLogin!; } + set { Initialize(); _administratorLogin!.Assign(value); } + } + private BicepValue? _administratorLogin; /// /// The administrator login password (required for server creation). /// - public BicepValue AdministratorLoginPassword { get => _administratorLoginPassword; set => _administratorLoginPassword.Assign(value); } - private readonly BicepValue _administratorLoginPassword; + public BicepValue AdministratorLoginPassword + { + get { Initialize(); return _administratorLoginPassword!; } + set { Initialize(); _administratorLoginPassword!.Assign(value); } + } + private BicepValue? _administratorLoginPassword; /// /// The Azure Active Directory administrator of the server. This can only @@ -53,125 +69,193 @@ public partial class SqlServer : ProvisionableResource /// ignored or it will result in an error. For updates individual APIs /// will need to be used. /// - public BicepValue Administrators { get => _administrators; set => _administrators.Assign(value); } - private readonly BicepValue _administrators; + public ServerExternalAdministrator Administrators + { + get { Initialize(); return _administrators!; } + set { Initialize(); AssignOrReplace(ref _administrators, value); } + } + private ServerExternalAdministrator? _administrators; /// /// The Client id used for cross tenant CMK scenario. /// - public BicepValue FederatedClientId { get => _federatedClientId; set => _federatedClientId.Assign(value); } - private readonly BicepValue _federatedClientId; + public BicepValue FederatedClientId + { + get { Initialize(); return _federatedClientId!; } + set { Initialize(); _federatedClientId!.Assign(value); } + } + private BicepValue? _federatedClientId; /// /// The Azure Active Directory identity of the server. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// Whether or not to enable IPv6 support for this server. Value is /// optional but if passed in, must be 'Enabled' or /// 'Disabled'. /// - public BicepValue IsIPv6Enabled { get => _isIPv6Enabled; set => _isIPv6Enabled.Assign(value); } - private readonly BicepValue _isIPv6Enabled; + public BicepValue IsIPv6Enabled + { + get { Initialize(); return _isIPv6Enabled!; } + set { Initialize(); _isIPv6Enabled!.Assign(value); } + } + private BicepValue? _isIPv6Enabled; /// /// A CMK URI of the key to use for encryption. /// - public BicepValue KeyId { get => _keyId; set => _keyId.Assign(value); } - private readonly BicepValue _keyId; + public BicepValue KeyId + { + get { Initialize(); return _keyId!; } + set { Initialize(); _keyId!.Assign(value); } + } + private BicepValue? _keyId; /// /// Minimal TLS version. Allowed values: 'None', 1.0', /// '1.1', '1.2', '1.3'. /// - public BicepValue MinTlsVersion { get => _minTlsVersion; set => _minTlsVersion.Assign(value); } - private readonly BicepValue _minTlsVersion; + public BicepValue MinTlsVersion + { + get { Initialize(); return _minTlsVersion!; } + set { Initialize(); _minTlsVersion!.Assign(value); } + } + private BicepValue? _minTlsVersion; /// /// The resource id of a user assigned identity to be used by default. /// - public BicepValue PrimaryUserAssignedIdentityId { get => _primaryUserAssignedIdentityId; set => _primaryUserAssignedIdentityId.Assign(value); } - private readonly BicepValue _primaryUserAssignedIdentityId; + public BicepValue PrimaryUserAssignedIdentityId + { + get { Initialize(); return _primaryUserAssignedIdentityId!; } + set { Initialize(); _primaryUserAssignedIdentityId!.Assign(value); } + } + private BicepValue? _primaryUserAssignedIdentityId; /// /// Whether or not public endpoint access is allowed for this server. /// Value is optional but if passed in, must be 'Enabled' or /// 'Disabled' or 'SecuredByPerimeter'. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Whether or not to restrict outbound network access for this server. /// Value is optional but if passed in, must be 'Enabled' or /// 'Disabled'. /// - public BicepValue RestrictOutboundNetworkAccess { get => _restrictOutboundNetworkAccess; set => _restrictOutboundNetworkAccess.Assign(value); } - private readonly BicepValue _restrictOutboundNetworkAccess; + public BicepValue RestrictOutboundNetworkAccess + { + get { Initialize(); return _restrictOutboundNetworkAccess!; } + set { Initialize(); _restrictOutboundNetworkAccess!.Assign(value); } + } + private BicepValue? _restrictOutboundNetworkAccess; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The version of the server. /// - public BicepValue Version { get => _version; set => _version.Assign(value); } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + set { Initialize(); _version!.Assign(value); } + } + private BicepValue? _version; /// /// Status of external governance. /// - public BicepValue ExternalGovernanceStatus { get => _externalGovernanceStatus; } - private readonly BicepValue _externalGovernanceStatus; + public BicepValue ExternalGovernanceStatus + { + get { Initialize(); return _externalGovernanceStatus!; } + } + private BicepValue? _externalGovernanceStatus; /// /// The fully qualified domain name of the server. /// - public BicepValue FullyQualifiedDomainName { get => _fullyQualifiedDomainName; } - private readonly BicepValue _fullyQualifiedDomainName; + public BicepValue FullyQualifiedDomainName + { + get { Initialize(); return _fullyQualifiedDomainName!; } + } + private BicepValue? _fullyQualifiedDomainName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Kind of sql server. This is metadata used for the Azure portal /// experience. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// List of private endpoint connections on a server. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// The state of the server. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Whether or not existing server has a workspace created and if it allows /// connection from workspace. /// - public BicepValue WorkspaceFeature { get => _workspaceFeature; } - private readonly BicepValue _workspaceFeature; + public BicepValue WorkspaceFeature + { + get { Initialize(); return _workspaceFeature!; } + } + private BicepValue? _workspaceFeature; /// /// Creates a new SqlServer. @@ -186,29 +270,36 @@ public partial class SqlServer : ProvisionableResource public SqlServer(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _administratorLogin = BicepValue.DefineProperty(this, "AdministratorLogin", ["properties", "administratorLogin"]); - _administratorLoginPassword = BicepValue.DefineProperty(this, "AdministratorLoginPassword", ["properties", "administratorLoginPassword"]); - _administrators = BicepValue.DefineProperty(this, "Administrators", ["properties", "administrators"]); - _federatedClientId = BicepValue.DefineProperty(this, "FederatedClientId", ["properties", "federatedClientId"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _isIPv6Enabled = BicepValue.DefineProperty(this, "IsIPv6Enabled", ["properties", "isIPv6Enabled"]); - _keyId = BicepValue.DefineProperty(this, "KeyId", ["properties", "keyId"]); - _minTlsVersion = BicepValue.DefineProperty(this, "MinTlsVersion", ["properties", "minimalTlsVersion"]); - _primaryUserAssignedIdentityId = BicepValue.DefineProperty(this, "PrimaryUserAssignedIdentityId", ["properties", "primaryUserAssignedIdentityId"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _restrictOutboundNetworkAccess = BicepValue.DefineProperty(this, "RestrictOutboundNetworkAccess", ["properties", "restrictOutboundNetworkAccess"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"]); - _externalGovernanceStatus = BicepValue.DefineProperty(this, "ExternalGovernanceStatus", ["properties", "externalGovernanceStatus"], isOutput: true); - _fullyQualifiedDomainName = BicepValue.DefineProperty(this, "FullyQualifiedDomainName", ["properties", "fullyQualifiedDomainName"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _workspaceFeature = BicepValue.DefineProperty(this, "WorkspaceFeature", ["properties", "workspaceFeature"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SqlServer. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _administratorLogin = DefineProperty("AdministratorLogin", ["properties", "administratorLogin"]); + _administratorLoginPassword = DefineProperty("AdministratorLoginPassword", ["properties", "administratorLoginPassword"]); + _administrators = DefineModelProperty("Administrators", ["properties", "administrators"]); + _federatedClientId = DefineProperty("FederatedClientId", ["properties", "federatedClientId"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _isIPv6Enabled = DefineProperty("IsIPv6Enabled", ["properties", "isIPv6Enabled"]); + _keyId = DefineProperty("KeyId", ["properties", "keyId"]); + _minTlsVersion = DefineProperty("MinTlsVersion", ["properties", "minimalTlsVersion"]); + _primaryUserAssignedIdentityId = DefineProperty("PrimaryUserAssignedIdentityId", ["properties", "primaryUserAssignedIdentityId"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _restrictOutboundNetworkAccess = DefineProperty("RestrictOutboundNetworkAccess", ["properties", "restrictOutboundNetworkAccess"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _version = DefineProperty("Version", ["properties", "version"]); + _externalGovernanceStatus = DefineProperty("ExternalGovernanceStatus", ["properties", "externalGovernanceStatus"], isOutput: true); + _fullyQualifiedDomainName = DefineProperty("FullyQualifiedDomainName", ["properties", "fullyQualifiedDomainName"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _workspaceFeature = DefineProperty("WorkspaceFeature", ["properties", "workspaceFeature"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerAzureADAdministrator.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerAzureADAdministrator.cs index d96ae3a64ad70..b1fb8ea79f35a 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerAzureADAdministrator.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerAzureADAdministrator.cs @@ -17,55 +17,84 @@ namespace Azure.Provisioning.Sql; /// public partial class SqlServerAzureADAdministrator : ProvisionableResource { - private readonly BicepValue _name; + private BicepValue? _name; /// /// Type of the sever administrator. /// - public BicepValue AdministratorType { get => _administratorType; set => _administratorType.Assign(value); } - private readonly BicepValue _administratorType; + public BicepValue AdministratorType + { + get { Initialize(); return _administratorType!; } + set { Initialize(); _administratorType!.Assign(value); } + } + private BicepValue? _administratorType; /// /// Login name of the server administrator. /// - public BicepValue Login { get => _login; set => _login.Assign(value); } - private readonly BicepValue _login; + public BicepValue Login + { + get { Initialize(); return _login!; } + set { Initialize(); _login!.Assign(value); } + } + private BicepValue? _login; /// /// SID (object ID) of the server administrator. /// - public BicepValue Sid { get => _sid; set => _sid.Assign(value); } - private readonly BicepValue _sid; + public BicepValue Sid + { + get { Initialize(); return _sid!; } + set { Initialize(); _sid!.Assign(value); } + } + private BicepValue? _sid; /// /// Tenant ID of the administrator. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Azure Active Directory only Authentication enabled. /// - public BicepValue IsAzureADOnlyAuthenticationEnabled { get => _isAzureADOnlyAuthenticationEnabled; } - private readonly BicepValue _isAzureADOnlyAuthenticationEnabled; + public BicepValue IsAzureADOnlyAuthenticationEnabled + { + get { Initialize(); return _isAzureADOnlyAuthenticationEnabled!; } + } + private BicepValue? _isAzureADOnlyAuthenticationEnabled; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Get the default value for the Name property. @@ -85,15 +114,23 @@ public partial class SqlServerAzureADAdministrator : ProvisionableResource public SqlServerAzureADAdministrator(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/administrators", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true, defaultValue: GetNameDefaultValue()); - _administratorType = BicepValue.DefineProperty(this, "AdministratorType", ["properties", "administratorType"]); - _login = BicepValue.DefineProperty(this, "Login", ["properties", "login"]); - _sid = BicepValue.DefineProperty(this, "Sid", ["properties", "sid"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["properties", "tenantId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isAzureADOnlyAuthenticationEnabled = BicepValue.DefineProperty(this, "IsAzureADOnlyAuthenticationEnabled", ["properties", "azureADOnlyAuthentication"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SqlServerAzureADAdministrator. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true, defaultValue: GetNameDefaultValue()); + _administratorType = DefineProperty("AdministratorType", ["properties", "administratorType"]); + _login = DefineProperty("Login", ["properties", "login"]); + _sid = DefineProperty("Sid", ["properties", "sid"]); + _tenantId = DefineProperty("TenantId", ["properties", "tenantId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isAzureADOnlyAuthenticationEnabled = DefineProperty("IsAzureADOnlyAuthenticationEnabled", ["properties", "azureADOnlyAuthentication"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerAzureADOnlyAuthentication.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerAzureADOnlyAuthentication.cs index a53849bdf2a52..43c9e8378e149 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerAzureADOnlyAuthentication.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerAzureADOnlyAuthentication.cs @@ -20,32 +20,49 @@ public partial class SqlServerAzureADOnlyAuthentication : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Azure Active Directory only Authentication enabled. /// - public BicepValue IsAzureADOnlyAuthenticationEnabled { get => _isAzureADOnlyAuthenticationEnabled; set => _isAzureADOnlyAuthenticationEnabled.Assign(value); } - private readonly BicepValue _isAzureADOnlyAuthenticationEnabled; + public BicepValue IsAzureADOnlyAuthenticationEnabled + { + get { Initialize(); return _isAzureADOnlyAuthenticationEnabled!; } + set { Initialize(); _isAzureADOnlyAuthenticationEnabled!.Assign(value); } + } + private BicepValue? _isAzureADOnlyAuthenticationEnabled; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerAzureADOnlyAuthentication. @@ -60,11 +77,19 @@ public partial class SqlServerAzureADOnlyAuthentication : ProvisionableResource public SqlServerAzureADOnlyAuthentication(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/azureADOnlyAuthentications", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _isAzureADOnlyAuthenticationEnabled = BicepValue.DefineProperty(this, "IsAzureADOnlyAuthenticationEnabled", ["properties", "azureADOnlyAuthentication"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SqlServerAzureADOnlyAuthentication. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _isAzureADOnlyAuthenticationEnabled = DefineProperty("IsAzureADOnlyAuthenticationEnabled", ["properties", "azureADOnlyAuthentication"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerBlobAuditingPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerBlobAuditingPolicy.cs index b1822d0d0ce45..942233c6ae5b4 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerBlobAuditingPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerBlobAuditingPolicy.cs @@ -21,8 +21,11 @@ public partial class SqlServerBlobAuditingPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies the Actions-Groups and Actions to audit. @@ -82,8 +85,12 @@ public partial class SqlServerBlobAuditingPolicy : ProvisionableResource /// [Database-Level Audit /// Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) /// - public BicepList AuditActionsAndGroups { get => _auditActionsAndGroups; set => _auditActionsAndGroups.Assign(value); } - private readonly BicepList _auditActionsAndGroups; + public BicepList AuditActionsAndGroups + { + get { Initialize(); return _auditActionsAndGroups!; } + set { Initialize(); _auditActionsAndGroups!.Assign(value); } + } + private BicepList? _auditActionsAndGroups; /// /// Specifies whether audit events are sent to Azure Monitor. @@ -103,8 +110,12 @@ public partial class SqlServerBlobAuditingPolicy : ProvisionableResource /// or [Diagnostic Settings /// PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// - public BicepValue IsAzureMonitorTargetEnabled { get => _isAzureMonitorTargetEnabled; set => _isAzureMonitorTargetEnabled.Assign(value); } - private readonly BicepValue _isAzureMonitorTargetEnabled; + public BicepValue IsAzureMonitorTargetEnabled + { + get { Initialize(); return _isAzureMonitorTargetEnabled!; } + set { Initialize(); _isAzureMonitorTargetEnabled!.Assign(value); } + } + private BicepValue? _isAzureMonitorTargetEnabled; /// /// Specifies the state of devops audit. If state is Enabled, devops logs @@ -123,43 +134,67 @@ public partial class SqlServerBlobAuditingPolicy : ProvisionableResource /// or [Diagnostic Settings /// PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// - public BicepValue IsDevopsAuditEnabled { get => _isDevopsAuditEnabled; set => _isDevopsAuditEnabled.Assign(value); } - private readonly BicepValue _isDevopsAuditEnabled; + public BicepValue IsDevopsAuditEnabled + { + get { Initialize(); return _isDevopsAuditEnabled!; } + set { Initialize(); _isDevopsAuditEnabled!.Assign(value); } + } + private BicepValue? _isDevopsAuditEnabled; /// /// Specifies whether Managed Identity is used to access blob storage. /// - public BicepValue IsManagedIdentityInUse { get => _isManagedIdentityInUse; set => _isManagedIdentityInUse.Assign(value); } - private readonly BicepValue _isManagedIdentityInUse; + public BicepValue IsManagedIdentityInUse + { + get { Initialize(); return _isManagedIdentityInUse!; } + set { Initialize(); _isManagedIdentityInUse!.Assign(value); } + } + private BicepValue? _isManagedIdentityInUse; /// /// Specifies whether storageAccountAccessKey value is the storage's /// secondary key. /// - public BicepValue IsStorageSecondaryKeyInUse { get => _isStorageSecondaryKeyInUse; set => _isStorageSecondaryKeyInUse.Assign(value); } - private readonly BicepValue _isStorageSecondaryKeyInUse; + public BicepValue IsStorageSecondaryKeyInUse + { + get { Initialize(); return _isStorageSecondaryKeyInUse!; } + set { Initialize(); _isStorageSecondaryKeyInUse!.Assign(value); } + } + private BicepValue? _isStorageSecondaryKeyInUse; /// /// Specifies the amount of time in milliseconds that can elapse before /// audit actions are forced to be processed. The default /// minimum value is 1000 (1 second). The maximum is 2,147,483,647. /// - public BicepValue QueueDelayMs { get => _queueDelayMs; set => _queueDelayMs.Assign(value); } - private readonly BicepValue _queueDelayMs; + public BicepValue QueueDelayMs + { + get { Initialize(); return _queueDelayMs!; } + set { Initialize(); _queueDelayMs!.Assign(value); } + } + private BicepValue? _queueDelayMs; /// /// Specifies the number of days to keep in the audit logs in the storage /// account. /// - public BicepValue RetentionDays { get => _retentionDays; set => _retentionDays.Assign(value); } - private readonly BicepValue _retentionDays; + public BicepValue RetentionDays + { + get { Initialize(); return _retentionDays!; } + set { Initialize(); _retentionDays!.Assign(value); } + } + private BicepValue? _retentionDays; /// /// Specifies the state of the audit. If state is Enabled, storageEndpoint /// or isAzureMonitorTargetEnabled are required. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the identifier key of the auditing storage account. @@ -174,40 +209,62 @@ public partial class SqlServerBlobAuditingPolicy : ProvisionableResource /// more information, see [Auditing to storage using Managed Identity /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// Specifies the blob storage subscription Id. /// - public BicepValue StorageAccountSubscriptionId { get => _storageAccountSubscriptionId; set => _storageAccountSubscriptionId.Assign(value); } - private readonly BicepValue _storageAccountSubscriptionId; + public BicepValue StorageAccountSubscriptionId + { + get { Initialize(); return _storageAccountSubscriptionId!; } + set { Initialize(); _storageAccountSubscriptionId!.Assign(value); } + } + private BicepValue? _storageAccountSubscriptionId; /// /// Specifies the blob storage endpoint (e.g. /// https://MyAccount.blob.core.windows.net). If state is Enabled, /// storageEndpoint or isAzureMonitorTargetEnabled is required. /// - public BicepValue StorageEndpoint { get => _storageEndpoint; set => _storageEndpoint.Assign(value); } - private readonly BicepValue _storageEndpoint; + public BicepValue StorageEndpoint + { + get { Initialize(); return _storageEndpoint!; } + set { Initialize(); _storageEndpoint!.Assign(value); } + } + private BicepValue? _storageEndpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerBlobAuditingPolicy. @@ -222,21 +279,28 @@ public partial class SqlServerBlobAuditingPolicy : ProvisionableResource public SqlServerBlobAuditingPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/auditingSettings", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _auditActionsAndGroups = BicepList.DefineProperty(this, "AuditActionsAndGroups", ["properties", "auditActionsAndGroups"]); - _isAzureMonitorTargetEnabled = BicepValue.DefineProperty(this, "IsAzureMonitorTargetEnabled", ["properties", "isAzureMonitorTargetEnabled"]); - _isDevopsAuditEnabled = BicepValue.DefineProperty(this, "IsDevopsAuditEnabled", ["properties", "isDevopsAuditEnabled"]); - _isManagedIdentityInUse = BicepValue.DefineProperty(this, "IsManagedIdentityInUse", ["properties", "isManagedIdentityInUse"]); - _isStorageSecondaryKeyInUse = BicepValue.DefineProperty(this, "IsStorageSecondaryKeyInUse", ["properties", "isStorageSecondaryKeyInUse"]); - _queueDelayMs = BicepValue.DefineProperty(this, "QueueDelayMs", ["properties", "queueDelayMs"]); - _retentionDays = BicepValue.DefineProperty(this, "RetentionDays", ["properties", "retentionDays"]); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageAccountSubscriptionId = BicepValue.DefineProperty(this, "StorageAccountSubscriptionId", ["properties", "storageAccountSubscriptionId"]); - _storageEndpoint = BicepValue.DefineProperty(this, "StorageEndpoint", ["properties", "storageEndpoint"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlServerBlobAuditingPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _auditActionsAndGroups = DefineListProperty("AuditActionsAndGroups", ["properties", "auditActionsAndGroups"]); + _isAzureMonitorTargetEnabled = DefineProperty("IsAzureMonitorTargetEnabled", ["properties", "isAzureMonitorTargetEnabled"]); + _isDevopsAuditEnabled = DefineProperty("IsDevopsAuditEnabled", ["properties", "isDevopsAuditEnabled"]); + _isManagedIdentityInUse = DefineProperty("IsManagedIdentityInUse", ["properties", "isManagedIdentityInUse"]); + _isStorageSecondaryKeyInUse = DefineProperty("IsStorageSecondaryKeyInUse", ["properties", "isStorageSecondaryKeyInUse"]); + _queueDelayMs = DefineProperty("QueueDelayMs", ["properties", "queueDelayMs"]); + _retentionDays = DefineProperty("RetentionDays", ["properties", "retentionDays"]); + _state = DefineProperty("State", ["properties", "state"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageAccountSubscriptionId = DefineProperty("StorageAccountSubscriptionId", ["properties", "storageAccountSubscriptionId"]); + _storageEndpoint = DefineProperty("StorageEndpoint", ["properties", "storageEndpoint"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerCommunicationLink.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerCommunicationLink.cs index 281f4bdebf714..bf37dec584005 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerCommunicationLink.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerCommunicationLink.cs @@ -20,51 +20,78 @@ public partial class SqlServerCommunicationLink : ProvisionableResource /// /// The name of the server communication link. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The name of the partner server. /// - public BicepValue PartnerServer { get => _partnerServer; set => _partnerServer.Assign(value); } - private readonly BicepValue _partnerServer; + public BicepValue PartnerServer + { + get { Initialize(); return _partnerServer!; } + set { Initialize(); _partnerServer!.Assign(value); } + } + private BicepValue? _partnerServer; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Communication link kind. This property is used for Azure Portal /// metadata. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// Communication link location. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// The state. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerCommunicationLink. @@ -79,14 +106,21 @@ public partial class SqlServerCommunicationLink : ProvisionableResource public SqlServerCommunicationLink(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/communicationLinks", resourceVersion ?? "2014-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _partnerServer = BicepValue.DefineProperty(this, "PartnerServer", ["properties", "partnerServer"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlServerCommunicationLink. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _partnerServer = DefineProperty("PartnerServer", ["properties", "partnerServer"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerConnectionPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerConnectionPolicy.cs index b03bca22bf682..09d484ee01e54 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerConnectionPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerConnectionPolicy.cs @@ -20,44 +20,67 @@ public partial class SqlServerConnectionPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The server connection type. /// - public BicepValue ConnectionType { get => _connectionType; set => _connectionType.Assign(value); } - private readonly BicepValue _connectionType; + public BicepValue ConnectionType + { + get { Initialize(); return _connectionType!; } + set { Initialize(); _connectionType!.Assign(value); } + } + private BicepValue? _connectionType; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Metadata used for the Azure portal experience. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// Resource location. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerConnectionPolicy. @@ -72,13 +95,20 @@ public partial class SqlServerConnectionPolicy : ProvisionableResource public SqlServerConnectionPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/connectionPolicies", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _connectionType = BicepValue.DefineProperty(this, "ConnectionType", ["properties", "connectionType"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlServerConnectionPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _connectionType = DefineProperty("ConnectionType", ["properties", "connectionType"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerDatabaseRestorePoint.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerDatabaseRestorePoint.cs index d2134c8df1cd3..9fab2c7e62440 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerDatabaseRestorePoint.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerDatabaseRestorePoint.cs @@ -20,56 +20,84 @@ public partial class SqlServerDatabaseRestorePoint : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The earliest time to which this database can be restored. /// - public BicepValue EarliestRestoreOn { get => _earliestRestoreOn; } - private readonly BicepValue _earliestRestoreOn; + public BicepValue EarliestRestoreOn + { + get { Initialize(); return _earliestRestoreOn!; } + } + private BicepValue? _earliestRestoreOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Resource location. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// The time the backup was taken. /// - public BicepValue RestorePointCreatedOn { get => _restorePointCreatedOn; } - private readonly BicepValue _restorePointCreatedOn; + public BicepValue RestorePointCreatedOn + { + get { Initialize(); return _restorePointCreatedOn!; } + } + private BicepValue? _restorePointCreatedOn; /// /// The label of restore point for backup request by user. /// - public BicepValue RestorePointLabel { get => _restorePointLabel; } - private readonly BicepValue _restorePointLabel; + public BicepValue RestorePointLabel + { + get { Initialize(); return _restorePointLabel!; } + } + private BicepValue? _restorePointLabel; /// /// The type of restore point. /// - public BicepValue RestorePointType { get => _restorePointType; } - private readonly BicepValue _restorePointType; + public BicepValue RestorePointType + { + get { Initialize(); return _restorePointType!; } + } + private BicepValue? _restorePointType; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerDatabaseRestorePoint. @@ -84,15 +112,23 @@ public partial class SqlServerDatabaseRestorePoint : ProvisionableResource public SqlServerDatabaseRestorePoint(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/restorePoints", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _earliestRestoreOn = BicepValue.DefineProperty(this, "EarliestRestoreOn", ["properties", "earliestRestoreDate"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _restorePointCreatedOn = BicepValue.DefineProperty(this, "RestorePointCreatedOn", ["properties", "restorePointCreationDate"], isOutput: true); - _restorePointLabel = BicepValue.DefineProperty(this, "RestorePointLabel", ["properties", "restorePointLabel"], isOutput: true); - _restorePointType = BicepValue.DefineProperty(this, "RestorePointType", ["properties", "restorePointType"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SqlServerDatabaseRestorePoint. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _earliestRestoreOn = DefineProperty("EarliestRestoreOn", ["properties", "earliestRestoreDate"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _restorePointCreatedOn = DefineProperty("RestorePointCreatedOn", ["properties", "restorePointCreationDate"], isOutput: true); + _restorePointLabel = DefineProperty("RestorePointLabel", ["properties", "restorePointLabel"], isOutput: true); + _restorePointType = DefineProperty("RestorePointType", ["properties", "restorePointType"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerDevOpsAuditingSetting.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerDevOpsAuditingSetting.cs index 59c1e728a940b..319216f25ebe6 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerDevOpsAuditingSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerDevOpsAuditingSetting.cs @@ -20,8 +20,12 @@ public partial class SqlServerDevOpsAuditingSetting : ProvisionableResource /// /// The name of the devops audit settings. This should always be Default. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Specifies whether DevOps audit events are sent to Azure Monitor. @@ -39,21 +43,33 @@ public partial class SqlServerDevOpsAuditingSetting : ProvisionableResource /// or [Diagnostic Settings /// PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// - public BicepValue IsAzureMonitorTargetEnabled { get => _isAzureMonitorTargetEnabled; set => _isAzureMonitorTargetEnabled.Assign(value); } - private readonly BicepValue _isAzureMonitorTargetEnabled; + public BicepValue IsAzureMonitorTargetEnabled + { + get { Initialize(); return _isAzureMonitorTargetEnabled!; } + set { Initialize(); _isAzureMonitorTargetEnabled!.Assign(value); } + } + private BicepValue? _isAzureMonitorTargetEnabled; /// /// Specifies whether Managed Identity is used to access blob storage. /// - public BicepValue IsManagedIdentityInUse { get => _isManagedIdentityInUse; set => _isManagedIdentityInUse.Assign(value); } - private readonly BicepValue _isManagedIdentityInUse; + public BicepValue IsManagedIdentityInUse + { + get { Initialize(); return _isManagedIdentityInUse!; } + set { Initialize(); _isManagedIdentityInUse!.Assign(value); } + } + private BicepValue? _isManagedIdentityInUse; /// /// Specifies the state of the audit. If state is Enabled, storageEndpoint /// or isAzureMonitorTargetEnabled are required. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the identifier key of the auditing storage account. @@ -68,40 +84,62 @@ public partial class SqlServerDevOpsAuditingSetting : ProvisionableResource /// more information, see [Auditing to storage using Managed Identity /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// Specifies the blob storage subscription Id. /// - public BicepValue StorageAccountSubscriptionId { get => _storageAccountSubscriptionId; set => _storageAccountSubscriptionId.Assign(value); } - private readonly BicepValue _storageAccountSubscriptionId; + public BicepValue StorageAccountSubscriptionId + { + get { Initialize(); return _storageAccountSubscriptionId!; } + set { Initialize(); _storageAccountSubscriptionId!.Assign(value); } + } + private BicepValue? _storageAccountSubscriptionId; /// /// Specifies the blob storage endpoint (e.g. /// https://MyAccount.blob.core.windows.net). If state is Enabled, /// storageEndpoint or isAzureMonitorTargetEnabled is required. /// - public BicepValue StorageEndpoint { get => _storageEndpoint; set => _storageEndpoint.Assign(value); } - private readonly BicepValue _storageEndpoint; + public BicepValue StorageEndpoint + { + get { Initialize(); return _storageEndpoint!; } + set { Initialize(); _storageEndpoint!.Assign(value); } + } + private BicepValue? _storageEndpoint; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerDevOpsAuditingSetting. @@ -116,16 +154,24 @@ public partial class SqlServerDevOpsAuditingSetting : ProvisionableResource public SqlServerDevOpsAuditingSetting(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/devOpsAuditingSettings", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _isAzureMonitorTargetEnabled = BicepValue.DefineProperty(this, "IsAzureMonitorTargetEnabled", ["properties", "isAzureMonitorTargetEnabled"]); - _isManagedIdentityInUse = BicepValue.DefineProperty(this, "IsManagedIdentityInUse", ["properties", "isManagedIdentityInUse"]); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageAccountSubscriptionId = BicepValue.DefineProperty(this, "StorageAccountSubscriptionId", ["properties", "storageAccountSubscriptionId"]); - _storageEndpoint = BicepValue.DefineProperty(this, "StorageEndpoint", ["properties", "storageEndpoint"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SqlServerDevOpsAuditingSetting. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _isAzureMonitorTargetEnabled = DefineProperty("IsAzureMonitorTargetEnabled", ["properties", "isAzureMonitorTargetEnabled"]); + _isManagedIdentityInUse = DefineProperty("IsManagedIdentityInUse", ["properties", "isManagedIdentityInUse"]); + _state = DefineProperty("State", ["properties", "state"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageAccountSubscriptionId = DefineProperty("StorageAccountSubscriptionId", ["properties", "storageAccountSubscriptionId"]); + _storageEndpoint = DefineProperty("StorageEndpoint", ["properties", "storageEndpoint"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerDnsAlias.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerDnsAlias.cs index 58605e037fb93..46b3786222371 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerDnsAlias.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerDnsAlias.cs @@ -20,32 +20,49 @@ public partial class SqlServerDnsAlias : ProvisionableResource /// /// The name of the server dns alias. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The fully qualified DNS record for alias. /// - public BicepValue AzureDnsRecord { get => _azureDnsRecord; } - private readonly BicepValue _azureDnsRecord; + public BicepValue AzureDnsRecord + { + get { Initialize(); return _azureDnsRecord!; } + } + private BicepValue? _azureDnsRecord; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerDnsAlias. @@ -60,11 +77,18 @@ public partial class SqlServerDnsAlias : ProvisionableResource public SqlServerDnsAlias(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/dnsAliases", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _azureDnsRecord = BicepValue.DefineProperty(this, "AzureDnsRecord", ["properties", "azureDnsRecord"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlServerDnsAlias. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _azureDnsRecord = DefineProperty("AzureDnsRecord", ["properties", "azureDnsRecord"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJob.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJob.cs index a9a7f7e68afbc..dfe19823ad3e8 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJob.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJob.cs @@ -20,44 +20,69 @@ public partial class SqlServerJob : ProvisionableResource /// /// The name of the job to get. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// User-defined description of the job. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Schedule properties of the job. /// - public BicepValue Schedule { get => _schedule; set => _schedule.Assign(value); } - private readonly BicepValue _schedule; + public SqlServerJobSchedule Schedule + { + get { Initialize(); return _schedule!; } + set { Initialize(); AssignOrReplace(ref _schedule, value); } + } + private SqlServerJobSchedule? _schedule; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The job version number. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// Gets or sets a reference to the parent SqlServerJobAgent. /// - public SqlServerJobAgent? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServerJobAgent? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerJob. @@ -72,13 +97,20 @@ public partial class SqlServerJob : ProvisionableResource public SqlServerJob(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/jobAgents/jobs", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _schedule = BicepValue.DefineProperty(this, "Schedule", ["properties", "schedule"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlServerJob. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _description = DefineProperty("Description", ["properties", "description"]); + _schedule = DefineModelProperty("Schedule", ["properties", "schedule"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _version = DefineProperty("Version", ["properties", "version"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobAgent.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobAgent.cs index 9e21753fc1660..a0e61e3e2c6e3 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobAgent.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobAgent.cs @@ -21,56 +21,89 @@ public partial class SqlServerJobAgent : ProvisionableResource /// /// The name of the job agent to be created or updated. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Resource ID of the database to store job metadata in. /// - public BicepValue DatabaseId { get => _databaseId; set => _databaseId.Assign(value); } - private readonly BicepValue _databaseId; + public BicepValue DatabaseId + { + get { Initialize(); return _databaseId!; } + set { Initialize(); _databaseId!.Assign(value); } + } + private BicepValue? _databaseId; /// /// The name and tier of the SKU. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public SqlSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private SqlSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The state of the job agent. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerJobAgent. @@ -85,15 +118,22 @@ public partial class SqlServerJobAgent : ProvisionableResource public SqlServerJobAgent(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/jobAgents", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _databaseId = BicepValue.DefineProperty(this, "DatabaseId", ["properties", "databaseId"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlServerJobAgent. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _databaseId = DefineProperty("DatabaseId", ["properties", "databaseId"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobCredential.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobCredential.cs index 329a802679f21..8d5cb594ea2d8 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobCredential.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobCredential.cs @@ -20,38 +20,60 @@ public partial class SqlServerJobCredential : ProvisionableResource /// /// The name of the credential. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The credential password. /// - public BicepValue Password { get => _password; set => _password.Assign(value); } - private readonly BicepValue _password; + public BicepValue Password + { + get { Initialize(); return _password!; } + set { Initialize(); _password!.Assign(value); } + } + private BicepValue? _password; /// /// The credential user name. /// - public BicepValue Username { get => _username; set => _username.Assign(value); } - private readonly BicepValue _username; + public BicepValue Username + { + get { Initialize(); return _username!; } + set { Initialize(); _username!.Assign(value); } + } + private BicepValue? _username; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServerJobAgent. /// - public SqlServerJobAgent? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServerJobAgent? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerJobCredential. @@ -66,12 +88,19 @@ public partial class SqlServerJobCredential : ProvisionableResource public SqlServerJobCredential(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/jobAgents/credentials", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _password = BicepValue.DefineProperty(this, "Password", ["properties", "password"]); - _username = BicepValue.DefineProperty(this, "Username", ["properties", "username"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlServerJobCredential. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _password = DefineProperty("Password", ["properties", "password"]); + _username = DefineProperty("Username", ["properties", "username"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobExecution.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobExecution.cs index d85cdb690960f..47e8311a7a532 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobExecution.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobExecution.cs @@ -20,104 +20,156 @@ public partial class SqlServerJobExecution : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The time that the job execution was created. /// - public BicepValue CreateOn { get => _createOn; } - private readonly BicepValue _createOn; + public BicepValue CreateOn + { + get { Initialize(); return _createOn!; } + } + private BicepValue? _createOn; /// /// Number of times the job execution has been attempted. /// - public BicepValue CurrentAttempts { get => _currentAttempts; } - private readonly BicepValue _currentAttempts; + public BicepValue CurrentAttempts + { + get { Initialize(); return _currentAttempts!; } + } + private BicepValue? _currentAttempts; /// /// Start time of the current attempt. /// - public BicepValue CurrentAttemptStartOn { get => _currentAttemptStartOn; } - private readonly BicepValue _currentAttemptStartOn; + public BicepValue CurrentAttemptStartOn + { + get { Initialize(); return _currentAttemptStartOn!; } + } + private BicepValue? _currentAttemptStartOn; /// /// The time that the job execution completed. /// - public BicepValue EndOn { get => _endOn; } - private readonly BicepValue _endOn; + public BicepValue EndOn + { + get { Initialize(); return _endOn!; } + } + private BicepValue? _endOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The unique identifier of the job execution. /// - public BicepValue JobExecutionId { get => _jobExecutionId; } - private readonly BicepValue _jobExecutionId; + public BicepValue JobExecutionId + { + get { Initialize(); return _jobExecutionId!; } + } + private BicepValue? _jobExecutionId; /// /// The job version number. /// - public BicepValue JobVersion { get => _jobVersion; } - private readonly BicepValue _jobVersion; + public BicepValue JobVersion + { + get { Initialize(); return _jobVersion!; } + } + private BicepValue? _jobVersion; /// /// The last status or error message. /// - public BicepValue LastMessage { get => _lastMessage; } - private readonly BicepValue _lastMessage; + public BicepValue LastMessage + { + get { Initialize(); return _lastMessage!; } + } + private BicepValue? _lastMessage; /// /// The detailed state of the job execution. /// - public BicepValue Lifecycle { get => _lifecycle; } - private readonly BicepValue _lifecycle; + public BicepValue Lifecycle + { + get { Initialize(); return _lifecycle!; } + } + private BicepValue? _lifecycle; /// /// The ARM provisioning state of the job execution. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The time that the job execution started. /// - public BicepValue StartOn { get => _startOn; } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + } + private BicepValue? _startOn; /// /// The job step id. /// - public BicepValue StepId { get => _stepId; } - private readonly BicepValue _stepId; + public BicepValue StepId + { + get { Initialize(); return _stepId!; } + } + private BicepValue? _stepId; /// /// The job step name. /// - public BicepValue StepName { get => _stepName; } - private readonly BicepValue _stepName; + public BicepValue StepName + { + get { Initialize(); return _stepName!; } + } + private BicepValue? _stepName; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The target that this execution is executed on. /// - public BicepValue Target { get => _target; } - private readonly BicepValue _target; + public JobExecutionTarget Target + { + get { Initialize(); return _target!; } + } + private JobExecutionTarget? _target; /// /// Gets or sets a reference to the parent SqlServerJob. /// - public SqlServerJob? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServerJob? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerJobExecution. @@ -132,23 +184,30 @@ public partial class SqlServerJobExecution : ProvisionableResource public SqlServerJobExecution(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/jobAgents/jobs/executions", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _createOn = BicepValue.DefineProperty(this, "CreateOn", ["properties", "createTime"], isOutput: true); - _currentAttempts = BicepValue.DefineProperty(this, "CurrentAttempts", ["properties", "currentAttempts"], isOutput: true); - _currentAttemptStartOn = BicepValue.DefineProperty(this, "CurrentAttemptStartOn", ["properties", "currentAttemptStartTime"], isOutput: true); - _endOn = BicepValue.DefineProperty(this, "EndOn", ["properties", "endTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _jobExecutionId = BicepValue.DefineProperty(this, "JobExecutionId", ["properties", "jobExecutionId"], isOutput: true); - _jobVersion = BicepValue.DefineProperty(this, "JobVersion", ["properties", "jobVersion"], isOutput: true); - _lastMessage = BicepValue.DefineProperty(this, "LastMessage", ["properties", "lastMessage"], isOutput: true); - _lifecycle = BicepValue.DefineProperty(this, "Lifecycle", ["properties", "lifecycle"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["properties", "startTime"], isOutput: true); - _stepId = BicepValue.DefineProperty(this, "StepId", ["properties", "stepId"], isOutput: true); - _stepName = BicepValue.DefineProperty(this, "StepName", ["properties", "stepName"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _target = BicepValue.DefineProperty(this, "Target", ["properties", "target"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlServerJobExecution. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _createOn = DefineProperty("CreateOn", ["properties", "createTime"], isOutput: true); + _currentAttempts = DefineProperty("CurrentAttempts", ["properties", "currentAttempts"], isOutput: true); + _currentAttemptStartOn = DefineProperty("CurrentAttemptStartOn", ["properties", "currentAttemptStartTime"], isOutput: true); + _endOn = DefineProperty("EndOn", ["properties", "endTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _jobExecutionId = DefineProperty("JobExecutionId", ["properties", "jobExecutionId"], isOutput: true); + _jobVersion = DefineProperty("JobVersion", ["properties", "jobVersion"], isOutput: true); + _lastMessage = DefineProperty("LastMessage", ["properties", "lastMessage"], isOutput: true); + _lifecycle = DefineProperty("Lifecycle", ["properties", "lifecycle"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _startOn = DefineProperty("StartOn", ["properties", "startTime"], isOutput: true); + _stepId = DefineProperty("StepId", ["properties", "stepId"], isOutput: true); + _stepName = DefineProperty("StepName", ["properties", "stepName"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _target = DefineModelProperty("Target", ["properties", "target"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobStep.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobStep.cs index 22e2035cd3584..57309159d6a33 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobStep.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobStep.cs @@ -20,66 +20,104 @@ public partial class SqlServerJobStep : ProvisionableResource /// /// The name of the job step. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The action payload of the job step. /// - public BicepValue Action { get => _action; set => _action.Assign(value); } - private readonly BicepValue _action; + public JobStepAction Action + { + get { Initialize(); return _action!; } + set { Initialize(); AssignOrReplace(ref _action, value); } + } + private JobStepAction? _action; /// /// The resource ID of the job credential that will be used to connect to /// the targets. /// - public BicepValue Credential { get => _credential; set => _credential.Assign(value); } - private readonly BicepValue _credential; + public BicepValue Credential + { + get { Initialize(); return _credential!; } + set { Initialize(); _credential!.Assign(value); } + } + private BicepValue? _credential; /// /// Execution options for the job step. /// - public BicepValue ExecutionOptions { get => _executionOptions; set => _executionOptions.Assign(value); } - private readonly BicepValue _executionOptions; + public JobStepExecutionOptions ExecutionOptions + { + get { Initialize(); return _executionOptions!; } + set { Initialize(); AssignOrReplace(ref _executionOptions, value); } + } + private JobStepExecutionOptions? _executionOptions; /// /// Output destination properties of the job step. /// - public BicepValue Output { get => _output; set => _output.Assign(value); } - private readonly BicepValue _output; + public JobStepOutput Output + { + get { Initialize(); return _output!; } + set { Initialize(); AssignOrReplace(ref _output, value); } + } + private JobStepOutput? _output; /// /// The job step's index within the job. If not specified when /// creating the job step, it will be created as the last step. If not /// specified when updating the job step, the step id is not modified. /// - public BicepValue StepId { get => _stepId; set => _stepId.Assign(value); } - private readonly BicepValue _stepId; + public BicepValue StepId + { + get { Initialize(); return _stepId!; } + set { Initialize(); _stepId!.Assign(value); } + } + private BicepValue? _stepId; /// /// The resource ID of the target group that the job step will be executed /// on. /// - public BicepValue TargetGroup { get => _targetGroup; set => _targetGroup.Assign(value); } - private readonly BicepValue _targetGroup; + public BicepValue TargetGroup + { + get { Initialize(); return _targetGroup!; } + set { Initialize(); _targetGroup!.Assign(value); } + } + private BicepValue? _targetGroup; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServerJob. /// - public SqlServerJob? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServerJob? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerJobStep. @@ -94,16 +132,23 @@ public partial class SqlServerJobStep : ProvisionableResource public SqlServerJobStep(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/jobAgents/jobs/steps", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _action = BicepValue.DefineProperty(this, "Action", ["properties", "action"]); - _credential = BicepValue.DefineProperty(this, "Credential", ["properties", "credential"]); - _executionOptions = BicepValue.DefineProperty(this, "ExecutionOptions", ["properties", "executionOptions"]); - _output = BicepValue.DefineProperty(this, "Output", ["properties", "output"]); - _stepId = BicepValue.DefineProperty(this, "StepId", ["properties", "stepId"]); - _targetGroup = BicepValue.DefineProperty(this, "TargetGroup", ["properties", "targetGroup"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlServerJobStep. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _action = DefineModelProperty("Action", ["properties", "action"]); + _credential = DefineProperty("Credential", ["properties", "credential"]); + _executionOptions = DefineModelProperty("ExecutionOptions", ["properties", "executionOptions"]); + _output = DefineModelProperty("Output", ["properties", "output"]); + _stepId = DefineProperty("StepId", ["properties", "stepId"]); + _targetGroup = DefineProperty("TargetGroup", ["properties", "targetGroup"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobTargetGroup.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobTargetGroup.cs index 7e7e3413e9720..33ec6d7579ec3 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobTargetGroup.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerJobTargetGroup.cs @@ -21,32 +21,50 @@ public partial class SqlServerJobTargetGroup : ProvisionableResource /// /// The name of the target group. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Members of the target group. /// - public BicepList Members { get => _members; set => _members.Assign(value); } - private readonly BicepList _members; + public BicepList Members + { + get { Initialize(); return _members!; } + set { Initialize(); _members!.Assign(value); } + } + private BicepList? _members; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServerJobAgent. /// - public SqlServerJobAgent? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServerJobAgent? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerJobTargetGroup. @@ -61,11 +79,18 @@ public partial class SqlServerJobTargetGroup : ProvisionableResource public SqlServerJobTargetGroup(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/jobAgents/targetGroups", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _members = BicepList.DefineProperty(this, "Members", ["properties", "members"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlServerJobTargetGroup. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _members = DefineListProperty("Members", ["properties", "members"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerKey.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerKey.cs index 92e907c36e455..e49f7ffc4ce51 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerKey.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerKey.cs @@ -25,77 +25,117 @@ public partial class SqlServerKey : ProvisionableResource /// then the server key name should be formatted as: /// YourVaultName_YourKeyName_YourKeyVersion. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The server key type like 'ServiceManaged', /// 'AzureKeyVault'. /// - public BicepValue ServerKeyType { get => _serverKeyType; set => _serverKeyType.Assign(value); } - private readonly BicepValue _serverKeyType; + public BicepValue ServerKeyType + { + get { Initialize(); return _serverKeyType!; } + set { Initialize(); _serverKeyType!.Assign(value); } + } + private BicepValue? _serverKeyType; /// /// The URI of the server key. If the ServerKeyType is AzureKeyVault, then /// the URI is required. /// - public BicepValue Uri { get => _uri; set => _uri.Assign(value); } - private readonly BicepValue _uri; + public BicepValue Uri + { + get { Initialize(); return _uri!; } + set { Initialize(); _uri!.Assign(value); } + } + private BicepValue? _uri; /// /// The server key creation date. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Key auto rotation opt-in flag. Either true or false. /// - public BicepValue IsAutoRotationEnabled { get => _isAutoRotationEnabled; } - private readonly BicepValue _isAutoRotationEnabled; + public BicepValue IsAutoRotationEnabled + { + get { Initialize(); return _isAutoRotationEnabled!; } + } + private BicepValue? _isAutoRotationEnabled; /// /// Kind of encryption protector. This is metadata used for the Azure /// portal experience. /// - public BicepValue Kind { get => _kind; } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + } + private BicepValue? _kind; /// /// Resource location. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Subregion of the server key. /// - public BicepValue Subregion { get => _subregion; } - private readonly BicepValue _subregion; + public BicepValue Subregion + { + get { Initialize(); return _subregion!; } + } + private BicepValue? _subregion; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Thumbprint of the server key. /// - public BicepValue Thumbprint { get => _thumbprint; } - private readonly BicepValue _thumbprint; + public BicepValue Thumbprint + { + get { Initialize(); return _thumbprint!; } + } + private BicepValue? _thumbprint; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerKey. @@ -110,18 +150,25 @@ public partial class SqlServerKey : ProvisionableResource public SqlServerKey(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/keys", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _serverKeyType = BicepValue.DefineProperty(this, "ServerKeyType", ["properties", "serverKeyType"]); - _uri = BicepValue.DefineProperty(this, "Uri", ["properties", "uri"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationDate"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isAutoRotationEnabled = BicepValue.DefineProperty(this, "IsAutoRotationEnabled", ["properties", "autoRotationEnabled"], isOutput: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _subregion = BicepValue.DefineProperty(this, "Subregion", ["properties", "subregion"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _thumbprint = BicepValue.DefineProperty(this, "Thumbprint", ["properties", "thumbprint"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlServerKey. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _serverKeyType = DefineProperty("ServerKeyType", ["properties", "serverKeyType"]); + _uri = DefineProperty("Uri", ["properties", "uri"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationDate"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isAutoRotationEnabled = DefineProperty("IsAutoRotationEnabled", ["properties", "autoRotationEnabled"], isOutput: true); + _kind = DefineProperty("Kind", ["kind"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _subregion = DefineProperty("Subregion", ["properties", "subregion"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _thumbprint = DefineProperty("Thumbprint", ["properties", "thumbprint"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSecurityAlertPolicy.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSecurityAlertPolicy.cs index 990ce63a64f9d..42ff5bdc35a22 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSecurityAlertPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSecurityAlertPolicy.cs @@ -21,80 +21,124 @@ public partial class SqlServerSecurityAlertPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies an array of alerts that are disabled. Allowed values are: /// Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, /// Data_Exfiltration, Unsafe_Action, Brute_Force. /// - public BicepList DisabledAlerts { get => _disabledAlerts; set => _disabledAlerts.Assign(value); } - private readonly BicepList _disabledAlerts; + public BicepList DisabledAlerts + { + get { Initialize(); return _disabledAlerts!; } + set { Initialize(); _disabledAlerts!.Assign(value); } + } + private BicepList? _disabledAlerts; /// /// Specifies an array of e-mail addresses to which the alert is sent. /// - public BicepList EmailAddresses { get => _emailAddresses; set => _emailAddresses.Assign(value); } - private readonly BicepList _emailAddresses; + public BicepList EmailAddresses + { + get { Initialize(); return _emailAddresses!; } + set { Initialize(); _emailAddresses!.Assign(value); } + } + private BicepList? _emailAddresses; /// /// Specifies the number of days to keep in the Threat Detection audit logs. /// - public BicepValue RetentionDays { get => _retentionDays; set => _retentionDays.Assign(value); } - private readonly BicepValue _retentionDays; + public BicepValue RetentionDays + { + get { Initialize(); return _retentionDays!; } + set { Initialize(); _retentionDays!.Assign(value); } + } + private BicepValue? _retentionDays; /// /// Specifies that the alert is sent to the account administrators. /// - public BicepValue SendToEmailAccountAdmins { get => _sendToEmailAccountAdmins; set => _sendToEmailAccountAdmins.Assign(value); } - private readonly BicepValue _sendToEmailAccountAdmins; + public BicepValue SendToEmailAccountAdmins + { + get { Initialize(); return _sendToEmailAccountAdmins!; } + set { Initialize(); _sendToEmailAccountAdmins!.Assign(value); } + } + private BicepValue? _sendToEmailAccountAdmins; /// /// Specifies the state of the policy, whether it is enabled or disabled or /// a policy has not been applied yet on the specific database. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Specifies the identifier key of the Threat Detection audit storage /// account. /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// Specifies the blob storage endpoint (e.g. /// https://MyAccount.blob.core.windows.net). This blob storage will hold /// all Threat Detection audit logs. /// - public BicepValue StorageEndpoint { get => _storageEndpoint; set => _storageEndpoint.Assign(value); } - private readonly BicepValue _storageEndpoint; + public BicepValue StorageEndpoint + { + get { Initialize(); return _storageEndpoint!; } + set { Initialize(); _storageEndpoint!.Assign(value); } + } + private BicepValue? _storageEndpoint; /// /// Specifies the UTC creation time of the policy. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerSecurityAlertPolicy. @@ -109,18 +153,25 @@ public partial class SqlServerSecurityAlertPolicy : ProvisionableResource public SqlServerSecurityAlertPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/securityAlertPolicies", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _disabledAlerts = BicepList.DefineProperty(this, "DisabledAlerts", ["properties", "disabledAlerts"]); - _emailAddresses = BicepList.DefineProperty(this, "EmailAddresses", ["properties", "emailAddresses"]); - _retentionDays = BicepValue.DefineProperty(this, "RetentionDays", ["properties", "retentionDays"]); - _sendToEmailAccountAdmins = BicepValue.DefineProperty(this, "SendToEmailAccountAdmins", ["properties", "emailAccountAdmins"]); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageEndpoint = BicepValue.DefineProperty(this, "StorageEndpoint", ["properties", "storageEndpoint"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlServerSecurityAlertPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _disabledAlerts = DefineListProperty("DisabledAlerts", ["properties", "disabledAlerts"]); + _emailAddresses = DefineListProperty("EmailAddresses", ["properties", "emailAddresses"]); + _retentionDays = DefineProperty("RetentionDays", ["properties", "retentionDays"]); + _sendToEmailAccountAdmins = DefineProperty("SendToEmailAccountAdmins", ["properties", "emailAccountAdmins"]); + _state = DefineProperty("State", ["properties", "state"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageEndpoint = DefineProperty("StorageEndpoint", ["properties", "storageEndpoint"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSqlVulnerabilityAssessment.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSqlVulnerabilityAssessment.cs index a47fe94391c13..b8afe0a1366c7 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSqlVulnerabilityAssessment.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSqlVulnerabilityAssessment.cs @@ -20,34 +20,51 @@ public partial class SqlServerSqlVulnerabilityAssessment : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Specifies the state of the SQL Vulnerability Assessment, whether it is /// enabled or disabled or a state has not been applied yet on the /// specific database or server. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerSqlVulnerabilityAssessment. @@ -62,11 +79,19 @@ public partial class SqlServerSqlVulnerabilityAssessment : ProvisionableResource public SqlServerSqlVulnerabilityAssessment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/sqlVulnerabilityAssessments", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SqlServerSqlVulnerabilityAssessment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaseline.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaseline.cs index 928310d8fcebb..1219cbddf4f91 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaseline.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaseline.cs @@ -21,38 +21,59 @@ public partial class SqlServerSqlVulnerabilityAssessmentBaseline : Provisionable /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The latest scan flag. /// - public BicepValue IsLatestScan { get => _isLatestScan; set => _isLatestScan.Assign(value); } - private readonly BicepValue _isLatestScan; + public BicepValue IsLatestScan + { + get { Initialize(); return _isLatestScan!; } + set { Initialize(); _isLatestScan!.Assign(value); } + } + private BicepValue? _isLatestScan; /// /// The rule baseline result list. /// - public BicepDictionary>> Results { get => _results; set => _results.Assign(value); } - private readonly BicepDictionary>> _results; + public BicepDictionary>> Results + { + get { Initialize(); return _results!; } + set { Initialize(); _results!.Assign(value); } + } + private BicepDictionary>>? _results; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServerSqlVulnerabilityAssessment. /// - public SqlServerSqlVulnerabilityAssessment? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServerSqlVulnerabilityAssessment? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerSqlVulnerabilityAssessmentBaseline. @@ -68,12 +89,20 @@ public partial class SqlServerSqlVulnerabilityAssessmentBaseline : Provisionable public SqlServerSqlVulnerabilityAssessmentBaseline(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/sqlVulnerabilityAssessments/baselines", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _isLatestScan = BicepValue.DefineProperty(this, "IsLatestScan", ["properties", "latestScan"]); - _results = BicepDictionary>>.DefineProperty(this, "Results", ["properties", "results"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SqlServerSqlVulnerabilityAssessmentBaseline. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _isLatestScan = DefineProperty("IsLatestScan", ["properties", "latestScan"]); + _results = DefineDictionaryProperty>>("Results", ["properties", "results"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineRule.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineRule.cs index 43b89fe3ac626..aa7937dc712e2 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineRule.cs @@ -21,38 +21,59 @@ public partial class SqlServerSqlVulnerabilityAssessmentBaselineRule : Provision /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The latest scan flag. /// - public BicepValue IsLatestScan { get => _isLatestScan; set => _isLatestScan.Assign(value); } - private readonly BicepValue _isLatestScan; + public BicepValue IsLatestScan + { + get { Initialize(); return _isLatestScan!; } + set { Initialize(); _isLatestScan!.Assign(value); } + } + private BicepValue? _isLatestScan; /// /// The rule baseline result. /// - public BicepList> Results { get => _results; set => _results.Assign(value); } - private readonly BicepList> _results; + public BicepList> Results + { + get { Initialize(); return _results!; } + set { Initialize(); _results!.Assign(value); } + } + private BicepList>? _results; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServerSqlVulnerabilityAssessmentBaseline. /// - public SqlServerSqlVulnerabilityAssessmentBaseline? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServerSqlVulnerabilityAssessmentBaseline? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerSqlVulnerabilityAssessmentBaselineRule. @@ -68,12 +89,20 @@ public partial class SqlServerSqlVulnerabilityAssessmentBaselineRule : Provision public SqlServerSqlVulnerabilityAssessmentBaselineRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/sqlVulnerabilityAssessments/baselines/rules", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _isLatestScan = BicepValue.DefineProperty(this, "IsLatestScan", ["properties", "latestScan"]); - _results = BicepList>.DefineProperty(this, "Results", ["properties", "results"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SqlServerSqlVulnerabilityAssessmentBaselineRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _isLatestScan = DefineProperty("IsLatestScan", ["properties", "latestScan"]); + _results = DefineListProperty>("Results", ["properties", "results"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerTrustGroup.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerTrustGroup.cs index 3b157dc22fb44..90d702bb03001 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerTrustGroup.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerTrustGroup.cs @@ -21,32 +21,50 @@ public partial class SqlServerTrustGroup : ProvisionableResource /// /// The name of the server trust group. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Group members information for the server trust group. /// - public BicepList GroupMembers { get => _groupMembers; set => _groupMembers.Assign(value); } - private readonly BicepList _groupMembers; + public BicepList GroupMembers + { + get { Initialize(); return _groupMembers!; } + set { Initialize(); _groupMembers!.Assign(value); } + } + private BicepList? _groupMembers; /// /// Trust scope of the server trust group. /// - public BicepList TrustScopes { get => _trustScopes; set => _trustScopes.Assign(value); } - private readonly BicepList _trustScopes; + public BicepList TrustScopes + { + get { Initialize(); return _trustScopes!; } + set { Initialize(); _trustScopes!.Assign(value); } + } + private BicepList? _trustScopes; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SqlServerTrustGroup. @@ -61,11 +79,18 @@ public partial class SqlServerTrustGroup : ProvisionableResource public SqlServerTrustGroup(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/locations/serverTrustGroups", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _groupMembers = BicepList.DefineProperty(this, "GroupMembers", ["properties", "groupMembers"]); - _trustScopes = BicepList.DefineProperty(this, "TrustScopes", ["properties", "trustScopes"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SqlServerTrustGroup. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _groupMembers = DefineListProperty("GroupMembers", ["properties", "groupMembers"]); + _trustScopes = DefineListProperty("TrustScopes", ["properties", "trustScopes"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerVirtualNetworkRule.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerVirtualNetworkRule.cs index aae9b6173cdf8..5878dfc8d8645 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerVirtualNetworkRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerVirtualNetworkRule.cs @@ -20,45 +20,70 @@ public partial class SqlServerVirtualNetworkRule : ProvisionableResource /// /// The name of the virtual network rule. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Create firewall rule before the virtual network has vnet service /// endpoint enabled. /// - public BicepValue IgnoreMissingVnetServiceEndpoint { get => _ignoreMissingVnetServiceEndpoint; set => _ignoreMissingVnetServiceEndpoint.Assign(value); } - private readonly BicepValue _ignoreMissingVnetServiceEndpoint; + public BicepValue IgnoreMissingVnetServiceEndpoint + { + get { Initialize(); return _ignoreMissingVnetServiceEndpoint!; } + set { Initialize(); _ignoreMissingVnetServiceEndpoint!.Assign(value); } + } + private BicepValue? _ignoreMissingVnetServiceEndpoint; /// /// The ARM resource id of the virtual network subnet. /// - public BicepValue VirtualNetworkSubnetId { get => _virtualNetworkSubnetId; set => _virtualNetworkSubnetId.Assign(value); } - private readonly BicepValue _virtualNetworkSubnetId; + public BicepValue VirtualNetworkSubnetId + { + get { Initialize(); return _virtualNetworkSubnetId!; } + set { Initialize(); _virtualNetworkSubnetId!.Assign(value); } + } + private BicepValue? _virtualNetworkSubnetId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Virtual Network Rule State. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerVirtualNetworkRule. @@ -73,13 +98,20 @@ public partial class SqlServerVirtualNetworkRule : ProvisionableResource public SqlServerVirtualNetworkRule(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/virtualNetworkRules", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _ignoreMissingVnetServiceEndpoint = BicepValue.DefineProperty(this, "IgnoreMissingVnetServiceEndpoint", ["properties", "ignoreMissingVnetServiceEndpoint"]); - _virtualNetworkSubnetId = BicepValue.DefineProperty(this, "VirtualNetworkSubnetId", ["properties", "virtualNetworkSubnetId"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SqlServerVirtualNetworkRule. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _ignoreMissingVnetServiceEndpoint = DefineProperty("IgnoreMissingVnetServiceEndpoint", ["properties", "ignoreMissingVnetServiceEndpoint"]); + _virtualNetworkSubnetId = DefineProperty("VirtualNetworkSubnetId", ["properties", "virtualNetworkSubnetId"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerVulnerabilityAssessment.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerVulnerabilityAssessment.cs index 3dec87cdda2b5..1efc69f9cab21 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerVulnerabilityAssessment.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SqlServerVulnerabilityAssessment.cs @@ -21,14 +21,21 @@ public partial class SqlServerVulnerabilityAssessment : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The recurring scans settings. /// - public BicepValue RecurringScans { get => _recurringScans; set => _recurringScans.Assign(value); } - private readonly BicepValue _recurringScans; + public VulnerabilityAssessmentRecurringScansProperties RecurringScans + { + get { Initialize(); return _recurringScans!; } + set { Initialize(); AssignOrReplace(ref _recurringScans, value); } + } + private VulnerabilityAssessmentRecurringScansProperties? _recurringScans; /// /// Specifies the identifier key of the storage account for vulnerability @@ -36,15 +43,23 @@ public partial class SqlServerVulnerabilityAssessment : ProvisionableResource /// isn't specified, storageAccountAccessKey is required. Applies /// only if the storage account is not behind a Vnet or a firewall. /// - public BicepValue StorageAccountAccessKey { get => _storageAccountAccessKey; set => _storageAccountAccessKey.Assign(value); } - private readonly BicepValue _storageAccountAccessKey; + public BicepValue StorageAccountAccessKey + { + get { Initialize(); return _storageAccountAccessKey!; } + set { Initialize(); _storageAccountAccessKey!.Assign(value); } + } + private BicepValue? _storageAccountAccessKey; /// /// A blob storage container path to hold the scan results (e.g. /// https://myStorage.blob.core.windows.net/VaScans/). /// - public BicepValue StorageContainerPath { get => _storageContainerPath; set => _storageContainerPath.Assign(value); } - private readonly BicepValue _storageContainerPath; + public BicepValue StorageContainerPath + { + get { Initialize(); return _storageContainerPath!; } + set { Initialize(); _storageContainerPath!.Assign(value); } + } + private BicepValue? _storageContainerPath; /// /// A shared access signature (SAS Key) that has write access to the blob @@ -53,26 +68,40 @@ public partial class SqlServerVulnerabilityAssessment : ProvisionableResource /// StorageContainerSasKey is required. Applies only if the storage /// account is not behind a Vnet or a firewall. /// - public BicepValue StorageContainerSasKey { get => _storageContainerSasKey; set => _storageContainerSasKey.Assign(value); } - private readonly BicepValue _storageContainerSasKey; + public BicepValue StorageContainerSasKey + { + get { Initialize(); return _storageContainerSasKey!; } + set { Initialize(); _storageContainerSasKey!.Assign(value); } + } + private BicepValue? _storageContainerSasKey; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SqlServerVulnerabilityAssessment. @@ -87,14 +116,22 @@ public partial class SqlServerVulnerabilityAssessment : ProvisionableResource public SqlServerVulnerabilityAssessment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/vulnerabilityAssessments", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _recurringScans = BicepValue.DefineProperty(this, "RecurringScans", ["properties", "recurringScans"]); - _storageAccountAccessKey = BicepValue.DefineProperty(this, "StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); - _storageContainerPath = BicepValue.DefineProperty(this, "StorageContainerPath", ["properties", "storageContainerPath"]); - _storageContainerSasKey = BicepValue.DefineProperty(this, "StorageContainerSasKey", ["properties", "storageContainerSasKey"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// SqlServerVulnerabilityAssessment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _recurringScans = DefineModelProperty("RecurringScans", ["properties", "recurringScans"]); + _storageAccountAccessKey = DefineProperty("StorageAccountAccessKey", ["properties", "storageAccountAccessKey"]); + _storageContainerPath = DefineProperty("StorageContainerPath", ["properties", "storageContainerPath"]); + _storageContainerSasKey = DefineProperty("StorageContainerSasKey", ["properties", "storageContainerSasKey"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SyncAgent.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SyncAgent.cs index 1eb5764114a90..e0e9daed6c50d 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SyncAgent.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SyncAgent.cs @@ -20,62 +20,95 @@ public partial class SyncAgent : ProvisionableResource /// /// The name of the sync agent. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// ARM resource id of the sync database in the sync agent. /// - public BicepValue SyncDatabaseId { get => _syncDatabaseId; set => _syncDatabaseId.Assign(value); } - private readonly BicepValue _syncDatabaseId; + public BicepValue SyncDatabaseId + { + get { Initialize(); return _syncDatabaseId!; } + set { Initialize(); _syncDatabaseId!.Assign(value); } + } + private BicepValue? _syncDatabaseId; /// /// Expiration time of the sync agent version. /// - public BicepValue ExpireOn { get => _expireOn; } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + } + private BicepValue? _expireOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// If the sync agent version is up to date. /// - public BicepValue IsUpToDate { get => _isUpToDate; } - private readonly BicepValue _isUpToDate; + public BicepValue IsUpToDate + { + get { Initialize(); return _isUpToDate!; } + } + private BicepValue? _isUpToDate; /// /// Last alive time of the sync agent. /// - public BicepValue LastAliveOn { get => _lastAliveOn; } - private readonly BicepValue _lastAliveOn; + public BicepValue LastAliveOn + { + get { Initialize(); return _lastAliveOn!; } + } + private BicepValue? _lastAliveOn; /// /// State of the sync agent. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Version of the sync agent. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// Gets or sets a reference to the parent SqlServer. /// - public SqlServer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlServer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SyncAgent. @@ -90,16 +123,23 @@ public partial class SyncAgent : ProvisionableResource public SyncAgent(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/syncAgents", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _syncDatabaseId = BicepValue.DefineProperty(this, "SyncDatabaseId", ["properties", "syncDatabaseId"]); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["properties", "expiryTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isUpToDate = BicepValue.DefineProperty(this, "IsUpToDate", ["properties", "isUpToDate"], isOutput: true); - _lastAliveOn = BicepValue.DefineProperty(this, "LastAliveOn", ["properties", "lastAliveTime"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SyncAgent. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _syncDatabaseId = DefineProperty("SyncDatabaseId", ["properties", "syncDatabaseId"]); + _expireOn = DefineProperty("ExpireOn", ["properties", "expiryTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isUpToDate = DefineProperty("IsUpToDate", ["properties", "isUpToDate"], isOutput: true); + _lastAliveOn = DefineProperty("LastAliveOn", ["properties", "lastAliveTime"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _version = DefineProperty("Version", ["properties", "version"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SyncGroup.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SyncGroup.cs index 26b42ec7b42a4..37a8ba31e7c31 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SyncGroup.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SyncGroup.cs @@ -22,105 +22,168 @@ public partial class SyncGroup : ProvisionableResource /// /// The name of the sync group. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Conflict logging retention period. /// - public BicepValue ConflictLoggingRetentionInDays { get => _conflictLoggingRetentionInDays; set => _conflictLoggingRetentionInDays.Assign(value); } - private readonly BicepValue _conflictLoggingRetentionInDays; + public BicepValue ConflictLoggingRetentionInDays + { + get { Initialize(); return _conflictLoggingRetentionInDays!; } + set { Initialize(); _conflictLoggingRetentionInDays!.Assign(value); } + } + private BicepValue? _conflictLoggingRetentionInDays; /// /// Conflict resolution policy of the sync group. /// - public BicepValue ConflictResolutionPolicy { get => _conflictResolutionPolicy; set => _conflictResolutionPolicy.Assign(value); } - private readonly BicepValue _conflictResolutionPolicy; + public BicepValue ConflictResolutionPolicy + { + get { Initialize(); return _conflictResolutionPolicy!; } + set { Initialize(); _conflictResolutionPolicy!.Assign(value); } + } + private BicepValue? _conflictResolutionPolicy; /// /// Password for the sync group hub database credential. /// - public BicepValue HubDatabasePassword { get => _hubDatabasePassword; set => _hubDatabasePassword.Assign(value); } - private readonly BicepValue _hubDatabasePassword; + public BicepValue HubDatabasePassword + { + get { Initialize(); return _hubDatabasePassword!; } + set { Initialize(); _hubDatabasePassword!.Assign(value); } + } + private BicepValue? _hubDatabasePassword; /// /// User name for the sync group hub database credential. /// - public BicepValue HubDatabaseUserName { get => _hubDatabaseUserName; set => _hubDatabaseUserName.Assign(value); } - private readonly BicepValue _hubDatabaseUserName; + public BicepValue HubDatabaseUserName + { + get { Initialize(); return _hubDatabaseUserName!; } + set { Initialize(); _hubDatabaseUserName!.Assign(value); } + } + private BicepValue? _hubDatabaseUserName; /// /// Sync interval of the sync group. /// - public BicepValue Interval { get => _interval; set => _interval.Assign(value); } - private readonly BicepValue _interval; + public BicepValue Interval + { + get { Initialize(); return _interval!; } + set { Initialize(); _interval!.Assign(value); } + } + private BicepValue? _interval; /// /// If conflict logging is enabled. /// - public BicepValue IsConflictLoggingEnabled { get => _isConflictLoggingEnabled; set => _isConflictLoggingEnabled.Assign(value); } - private readonly BicepValue _isConflictLoggingEnabled; + public BicepValue IsConflictLoggingEnabled + { + get { Initialize(); return _isConflictLoggingEnabled!; } + set { Initialize(); _isConflictLoggingEnabled!.Assign(value); } + } + private BicepValue? _isConflictLoggingEnabled; /// /// Sync schema of the sync group. /// - public BicepValue Schema { get => _schema; set => _schema.Assign(value); } - private readonly BicepValue _schema; + public SyncGroupSchema Schema + { + get { Initialize(); return _schema!; } + set { Initialize(); AssignOrReplace(ref _schema, value); } + } + private SyncGroupSchema? _schema; /// /// The name and capacity of the SKU. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public SqlSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private SqlSku? _sku; /// /// ARM resource id of the sync database in the sync group. /// - public BicepValue SyncDatabaseId { get => _syncDatabaseId; set => _syncDatabaseId.Assign(value); } - private readonly BicepValue _syncDatabaseId; + public BicepValue SyncDatabaseId + { + get { Initialize(); return _syncDatabaseId!; } + set { Initialize(); _syncDatabaseId!.Assign(value); } + } + private BicepValue? _syncDatabaseId; /// /// If use private link connection is enabled. /// - public BicepValue UsePrivateLinkConnection { get => _usePrivateLinkConnection; set => _usePrivateLinkConnection.Assign(value); } - private readonly BicepValue _usePrivateLinkConnection; + public BicepValue UsePrivateLinkConnection + { + get { Initialize(); return _usePrivateLinkConnection!; } + set { Initialize(); _usePrivateLinkConnection!.Assign(value); } + } + private BicepValue? _usePrivateLinkConnection; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Last sync time of the sync group. /// - public BicepValue LastSyncOn { get => _lastSyncOn; } - private readonly BicepValue _lastSyncOn; + public BicepValue LastSyncOn + { + get { Initialize(); return _lastSyncOn!; } + } + private BicepValue? _lastSyncOn; /// /// Private endpoint name of the sync group if use private link connection /// is enabled. /// - public BicepValue PrivateEndpointName { get => _privateEndpointName; } - private readonly BicepValue _privateEndpointName; + public BicepValue PrivateEndpointName + { + get { Initialize(); return _privateEndpointName!; } + } + private BicepValue? _privateEndpointName; /// /// Sync state of the sync group. /// - public BicepValue SyncState { get => _syncState; } - private readonly BicepValue _syncState; + public BicepValue SyncState + { + get { Initialize(); return _syncState!; } + } + private BicepValue? _syncState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SyncGroup. @@ -135,23 +198,30 @@ public partial class SyncGroup : ProvisionableResource public SyncGroup(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/syncGroups", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _conflictLoggingRetentionInDays = BicepValue.DefineProperty(this, "ConflictLoggingRetentionInDays", ["properties", "conflictLoggingRetentionInDays"]); - _conflictResolutionPolicy = BicepValue.DefineProperty(this, "ConflictResolutionPolicy", ["properties", "conflictResolutionPolicy"]); - _hubDatabasePassword = BicepValue.DefineProperty(this, "HubDatabasePassword", ["properties", "hubDatabasePassword"]); - _hubDatabaseUserName = BicepValue.DefineProperty(this, "HubDatabaseUserName", ["properties", "hubDatabaseUserName"]); - _interval = BicepValue.DefineProperty(this, "Interval", ["properties", "interval"]); - _isConflictLoggingEnabled = BicepValue.DefineProperty(this, "IsConflictLoggingEnabled", ["properties", "enableConflictLogging"]); - _schema = BicepValue.DefineProperty(this, "Schema", ["properties", "schema"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _syncDatabaseId = BicepValue.DefineProperty(this, "SyncDatabaseId", ["properties", "syncDatabaseId"]); - _usePrivateLinkConnection = BicepValue.DefineProperty(this, "UsePrivateLinkConnection", ["properties", "usePrivateLinkConnection"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _lastSyncOn = BicepValue.DefineProperty(this, "LastSyncOn", ["properties", "lastSyncTime"], isOutput: true); - _privateEndpointName = BicepValue.DefineProperty(this, "PrivateEndpointName", ["properties", "privateEndpointName"], isOutput: true); - _syncState = BicepValue.DefineProperty(this, "SyncState", ["properties", "syncState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SyncGroup. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _conflictLoggingRetentionInDays = DefineProperty("ConflictLoggingRetentionInDays", ["properties", "conflictLoggingRetentionInDays"]); + _conflictResolutionPolicy = DefineProperty("ConflictResolutionPolicy", ["properties", "conflictResolutionPolicy"]); + _hubDatabasePassword = DefineProperty("HubDatabasePassword", ["properties", "hubDatabasePassword"]); + _hubDatabaseUserName = DefineProperty("HubDatabaseUserName", ["properties", "hubDatabaseUserName"]); + _interval = DefineProperty("Interval", ["properties", "interval"]); + _isConflictLoggingEnabled = DefineProperty("IsConflictLoggingEnabled", ["properties", "enableConflictLogging"]); + _schema = DefineModelProperty("Schema", ["properties", "schema"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _syncDatabaseId = DefineProperty("SyncDatabaseId", ["properties", "syncDatabaseId"]); + _usePrivateLinkConnection = DefineProperty("UsePrivateLinkConnection", ["properties", "usePrivateLinkConnection"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _lastSyncOn = DefineProperty("LastSyncOn", ["properties", "lastSyncTime"], isOutput: true); + _privateEndpointName = DefineProperty("PrivateEndpointName", ["properties", "privateEndpointName"], isOutput: true); + _syncState = DefineProperty("SyncState", ["properties", "syncState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SyncMember.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SyncMember.cs index 8f28c06096c4f..0e634b65999d5 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SyncMember.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/SyncMember.cs @@ -20,100 +20,160 @@ public partial class SyncMember : ProvisionableResource /// /// The name of the sync member. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Database name of the member database in the sync member. /// - public BicepValue DatabaseName { get => _databaseName; set => _databaseName.Assign(value); } - private readonly BicepValue _databaseName; + public BicepValue DatabaseName + { + get { Initialize(); return _databaseName!; } + set { Initialize(); _databaseName!.Assign(value); } + } + private BicepValue? _databaseName; /// /// Database type of the sync member. /// - public BicepValue DatabaseType { get => _databaseType; set => _databaseType.Assign(value); } - private readonly BicepValue _databaseType; + public BicepValue DatabaseType + { + get { Initialize(); return _databaseType!; } + set { Initialize(); _databaseType!.Assign(value); } + } + private BicepValue? _databaseType; /// /// Password of the member database in the sync member. /// - public BicepValue Password { get => _password; set => _password.Assign(value); } - private readonly BicepValue _password; + public BicepValue Password + { + get { Initialize(); return _password!; } + set { Initialize(); _password!.Assign(value); } + } + private BicepValue? _password; /// /// Server name of the member database in the sync member. /// - public BicepValue ServerName { get => _serverName; set => _serverName.Assign(value); } - private readonly BicepValue _serverName; + public BicepValue ServerName + { + get { Initialize(); return _serverName!; } + set { Initialize(); _serverName!.Assign(value); } + } + private BicepValue? _serverName; /// /// SQL Server database id of the sync member. /// - public BicepValue SqlServerDatabaseId { get => _sqlServerDatabaseId; set => _sqlServerDatabaseId.Assign(value); } - private readonly BicepValue _sqlServerDatabaseId; + public BicepValue SqlServerDatabaseId + { + get { Initialize(); return _sqlServerDatabaseId!; } + set { Initialize(); _sqlServerDatabaseId!.Assign(value); } + } + private BicepValue? _sqlServerDatabaseId; /// /// ARM resource id of the sync agent in the sync member. /// - public BicepValue SyncAgentId { get => _syncAgentId; set => _syncAgentId.Assign(value); } - private readonly BicepValue _syncAgentId; + public BicepValue SyncAgentId + { + get { Initialize(); return _syncAgentId!; } + set { Initialize(); _syncAgentId!.Assign(value); } + } + private BicepValue? _syncAgentId; /// /// Sync direction of the sync member. /// - public BicepValue SyncDirection { get => _syncDirection; set => _syncDirection.Assign(value); } - private readonly BicepValue _syncDirection; + public BicepValue SyncDirection + { + get { Initialize(); return _syncDirection!; } + set { Initialize(); _syncDirection!.Assign(value); } + } + private BicepValue? _syncDirection; /// /// ARM resource id of the sync member logical database, for sync members /// in Azure. /// - public BicepValue SyncMemberAzureDatabaseResourceId { get => _syncMemberAzureDatabaseResourceId; set => _syncMemberAzureDatabaseResourceId.Assign(value); } - private readonly BicepValue _syncMemberAzureDatabaseResourceId; + public BicepValue SyncMemberAzureDatabaseResourceId + { + get { Initialize(); return _syncMemberAzureDatabaseResourceId!; } + set { Initialize(); _syncMemberAzureDatabaseResourceId!.Assign(value); } + } + private BicepValue? _syncMemberAzureDatabaseResourceId; /// /// Whether to use private link connection. /// - public BicepValue UsePrivateLinkConnection { get => _usePrivateLinkConnection; set => _usePrivateLinkConnection.Assign(value); } - private readonly BicepValue _usePrivateLinkConnection; + public BicepValue UsePrivateLinkConnection + { + get { Initialize(); return _usePrivateLinkConnection!; } + set { Initialize(); _usePrivateLinkConnection!.Assign(value); } + } + private BicepValue? _usePrivateLinkConnection; /// /// User name of the member database in the sync member. /// - public BicepValue UserName { get => _userName; set => _userName.Assign(value); } - private readonly BicepValue _userName; + public BicepValue UserName + { + get { Initialize(); return _userName!; } + set { Initialize(); _userName!.Assign(value); } + } + private BicepValue? _userName; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Private endpoint name of the sync member if use private link connection /// is enabled, for sync members in Azure. /// - public BicepValue PrivateEndpointName { get => _privateEndpointName; } - private readonly BicepValue _privateEndpointName; + public BicepValue PrivateEndpointName + { + get { Initialize(); return _privateEndpointName!; } + } + private BicepValue? _privateEndpointName; /// /// Sync state of the sync member. /// - public BicepValue SyncState { get => _syncState; } - private readonly BicepValue _syncState; + public BicepValue SyncState + { + get { Initialize(); return _syncState!; } + } + private BicepValue? _syncState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SyncGroup. /// - public SyncGroup? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SyncGroup? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new SyncMember. @@ -128,22 +188,29 @@ public partial class SyncMember : ProvisionableResource public SyncMember(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/syncGroups/syncMembers", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _databaseName = BicepValue.DefineProperty(this, "DatabaseName", ["properties", "databaseName"]); - _databaseType = BicepValue.DefineProperty(this, "DatabaseType", ["properties", "databaseType"]); - _password = BicepValue.DefineProperty(this, "Password", ["properties", "password"]); - _serverName = BicepValue.DefineProperty(this, "ServerName", ["properties", "serverName"]); - _sqlServerDatabaseId = BicepValue.DefineProperty(this, "SqlServerDatabaseId", ["properties", "sqlServerDatabaseId"]); - _syncAgentId = BicepValue.DefineProperty(this, "SyncAgentId", ["properties", "syncAgentId"]); - _syncDirection = BicepValue.DefineProperty(this, "SyncDirection", ["properties", "syncDirection"]); - _syncMemberAzureDatabaseResourceId = BicepValue.DefineProperty(this, "SyncMemberAzureDatabaseResourceId", ["properties", "syncMemberAzureDatabaseResourceId"]); - _usePrivateLinkConnection = BicepValue.DefineProperty(this, "UsePrivateLinkConnection", ["properties", "usePrivateLinkConnection"]); - _userName = BicepValue.DefineProperty(this, "UserName", ["properties", "userName"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointName = BicepValue.DefineProperty(this, "PrivateEndpointName", ["properties", "privateEndpointName"], isOutput: true); - _syncState = BicepValue.DefineProperty(this, "SyncState", ["properties", "syncState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of SyncMember. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _databaseName = DefineProperty("DatabaseName", ["properties", "databaseName"]); + _databaseType = DefineProperty("DatabaseType", ["properties", "databaseType"]); + _password = DefineProperty("Password", ["properties", "password"]); + _serverName = DefineProperty("ServerName", ["properties", "serverName"]); + _sqlServerDatabaseId = DefineProperty("SqlServerDatabaseId", ["properties", "sqlServerDatabaseId"]); + _syncAgentId = DefineProperty("SyncAgentId", ["properties", "syncAgentId"]); + _syncDirection = DefineProperty("SyncDirection", ["properties", "syncDirection"]); + _syncMemberAzureDatabaseResourceId = DefineProperty("SyncMemberAzureDatabaseResourceId", ["properties", "syncMemberAzureDatabaseResourceId"]); + _usePrivateLinkConnection = DefineProperty("UsePrivateLinkConnection", ["properties", "usePrivateLinkConnection"]); + _userName = DefineProperty("UserName", ["properties", "userName"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointName = DefineProperty("PrivateEndpointName", ["properties", "privateEndpointName"], isOutput: true); + _syncState = DefineProperty("SyncState", ["properties", "syncState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/WorkloadClassifier.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/WorkloadClassifier.cs index 6320bb7c73fe1..bb10d75702ea5 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/WorkloadClassifier.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/WorkloadClassifier.cs @@ -20,62 +20,100 @@ public partial class WorkloadClassifier : ProvisionableResource /// /// The name of the workload classifier to create/update. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The workload classifier context. /// - public BicepValue Context { get => _context; set => _context.Assign(value); } - private readonly BicepValue _context; + public BicepValue Context + { + get { Initialize(); return _context!; } + set { Initialize(); _context!.Assign(value); } + } + private BicepValue? _context; /// /// The workload classifier end time for classification. /// - public BicepValue EndTime { get => _endTime; set => _endTime.Assign(value); } - private readonly BicepValue _endTime; + public BicepValue EndTime + { + get { Initialize(); return _endTime!; } + set { Initialize(); _endTime!.Assign(value); } + } + private BicepValue? _endTime; /// /// The workload classifier importance. /// - public BicepValue Importance { get => _importance; set => _importance.Assign(value); } - private readonly BicepValue _importance; + public BicepValue Importance + { + get { Initialize(); return _importance!; } + set { Initialize(); _importance!.Assign(value); } + } + private BicepValue? _importance; /// /// The workload classifier label. /// - public BicepValue Label { get => _label; set => _label.Assign(value); } - private readonly BicepValue _label; + public BicepValue Label + { + get { Initialize(); return _label!; } + set { Initialize(); _label!.Assign(value); } + } + private BicepValue? _label; /// /// The workload classifier member name. /// - public BicepValue MemberName { get => _memberName; set => _memberName.Assign(value); } - private readonly BicepValue _memberName; + public BicepValue MemberName + { + get { Initialize(); return _memberName!; } + set { Initialize(); _memberName!.Assign(value); } + } + private BicepValue? _memberName; /// /// The workload classifier start time for classification. /// - public BicepValue StartTime { get => _startTime; set => _startTime.Assign(value); } - private readonly BicepValue _startTime; + public BicepValue StartTime + { + get { Initialize(); return _startTime!; } + set { Initialize(); _startTime!.Assign(value); } + } + private BicepValue? _startTime; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WorkloadGroup. /// - public WorkloadGroup? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WorkloadGroup? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WorkloadClassifier. @@ -90,16 +128,23 @@ public partial class WorkloadClassifier : ProvisionableResource public WorkloadClassifier(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/workloadGroups/workloadClassifiers", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _context = BicepValue.DefineProperty(this, "Context", ["properties", "context"]); - _endTime = BicepValue.DefineProperty(this, "EndTime", ["properties", "endTime"]); - _importance = BicepValue.DefineProperty(this, "Importance", ["properties", "importance"]); - _label = BicepValue.DefineProperty(this, "Label", ["properties", "label"]); - _memberName = BicepValue.DefineProperty(this, "MemberName", ["properties", "memberName"]); - _startTime = BicepValue.DefineProperty(this, "StartTime", ["properties", "startTime"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WorkloadClassifier. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _context = DefineProperty("Context", ["properties", "context"]); + _endTime = DefineProperty("EndTime", ["properties", "endTime"]); + _importance = DefineProperty("Importance", ["properties", "importance"]); + _label = DefineProperty("Label", ["properties", "label"]); + _memberName = DefineProperty("MemberName", ["properties", "memberName"]); + _startTime = DefineProperty("StartTime", ["properties", "startTime"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/WorkloadGroup.cs b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/WorkloadGroup.cs index 172117ddd4e36..090b1a076248c 100644 --- a/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/WorkloadGroup.cs +++ b/sdk/provisioning/Azure.Provisioning.Sql/src/Generated/WorkloadGroup.cs @@ -20,62 +20,100 @@ public partial class WorkloadGroup : ProvisionableResource /// /// The name of the workload group. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The workload group importance level. /// - public BicepValue Importance { get => _importance; set => _importance.Assign(value); } - private readonly BicepValue _importance; + public BicepValue Importance + { + get { Initialize(); return _importance!; } + set { Initialize(); _importance!.Assign(value); } + } + private BicepValue? _importance; /// /// The workload group cap percentage resource. /// - public BicepValue MaxResourcePercent { get => _maxResourcePercent; set => _maxResourcePercent.Assign(value); } - private readonly BicepValue _maxResourcePercent; + public BicepValue MaxResourcePercent + { + get { Initialize(); return _maxResourcePercent!; } + set { Initialize(); _maxResourcePercent!.Assign(value); } + } + private BicepValue? _maxResourcePercent; /// /// The workload group request maximum grant percentage. /// - public BicepValue MaxResourcePercentPerRequest { get => _maxResourcePercentPerRequest; set => _maxResourcePercentPerRequest.Assign(value); } - private readonly BicepValue _maxResourcePercentPerRequest; + public BicepValue MaxResourcePercentPerRequest + { + get { Initialize(); return _maxResourcePercentPerRequest!; } + set { Initialize(); _maxResourcePercentPerRequest!.Assign(value); } + } + private BicepValue? _maxResourcePercentPerRequest; /// /// The workload group minimum percentage resource. /// - public BicepValue MinResourcePercent { get => _minResourcePercent; set => _minResourcePercent.Assign(value); } - private readonly BicepValue _minResourcePercent; + public BicepValue MinResourcePercent + { + get { Initialize(); return _minResourcePercent!; } + set { Initialize(); _minResourcePercent!.Assign(value); } + } + private BicepValue? _minResourcePercent; /// /// The workload group request minimum grant percentage. /// - public BicepValue MinResourcePercentPerRequest { get => _minResourcePercentPerRequest; set => _minResourcePercentPerRequest.Assign(value); } - private readonly BicepValue _minResourcePercentPerRequest; + public BicepValue MinResourcePercentPerRequest + { + get { Initialize(); return _minResourcePercentPerRequest!; } + set { Initialize(); _minResourcePercentPerRequest!.Assign(value); } + } + private BicepValue? _minResourcePercentPerRequest; /// /// The workload group query execution timeout. /// - public BicepValue QueryExecutionTimeout { get => _queryExecutionTimeout; set => _queryExecutionTimeout.Assign(value); } - private readonly BicepValue _queryExecutionTimeout; + public BicepValue QueryExecutionTimeout + { + get { Initialize(); return _queryExecutionTimeout!; } + set { Initialize(); _queryExecutionTimeout!.Assign(value); } + } + private BicepValue? _queryExecutionTimeout; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent SqlDatabase. /// - public SqlDatabase? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public SqlDatabase? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WorkloadGroup. @@ -90,16 +128,23 @@ public partial class WorkloadGroup : ProvisionableResource public WorkloadGroup(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Sql/servers/databases/workloadGroups", resourceVersion ?? "2021-11-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _importance = BicepValue.DefineProperty(this, "Importance", ["properties", "importance"]); - _maxResourcePercent = BicepValue.DefineProperty(this, "MaxResourcePercent", ["properties", "maxResourcePercent"]); - _maxResourcePercentPerRequest = BicepValue.DefineProperty(this, "MaxResourcePercentPerRequest", ["properties", "maxResourcePercentPerRequest"]); - _minResourcePercent = BicepValue.DefineProperty(this, "MinResourcePercent", ["properties", "minResourcePercent"]); - _minResourcePercentPerRequest = BicepValue.DefineProperty(this, "MinResourcePercentPerRequest", ["properties", "minResourcePercentPerRequest"]); - _queryExecutionTimeout = BicepValue.DefineProperty(this, "QueryExecutionTimeout", ["properties", "queryExecutionTimeout"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WorkloadGroup. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _importance = DefineProperty("Importance", ["properties", "importance"]); + _maxResourcePercent = DefineProperty("MaxResourcePercent", ["properties", "maxResourcePercent"]); + _maxResourcePercentPerRequest = DefineProperty("MaxResourcePercentPerRequest", ["properties", "maxResourcePercentPerRequest"]); + _minResourcePercent = DefineProperty("MinResourcePercent", ["properties", "minResourcePercent"]); + _minResourcePercentPerRequest = DefineProperty("MinResourcePercentPerRequest", ["properties", "minResourcePercentPerRequest"]); + _queryExecutionTimeout = DefineProperty("QueryExecutionTimeout", ["properties", "queryExecutionTimeout"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/api/Azure.Provisioning.Storage.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.Storage/api/Azure.Provisioning.Storage.netstandard2.0.cs index 891b495dfb65f..050de2f683d23 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/api/Azure.Provisioning.Storage.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/api/Azure.Provisioning.Storage.netstandard2.0.cs @@ -6,6 +6,7 @@ public AccountImmutabilityPolicy() { } public Azure.Provisioning.BicepValue AllowProtectedAppendWrites { get { throw null; } set { } } public Azure.Provisioning.BicepValue ImmutabilityPeriodSinceCreationInDays { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum AccountImmutabilityPolicyState { @@ -35,22 +36,23 @@ public partial class BlobContainer : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepValue HasImmutabilityPolicy { get { throw null; } } public Azure.Provisioning.BicepValue HasLegalHold { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue ImmutabilityPolicy { get { throw null; } } - public Azure.Provisioning.BicepValue ImmutableStorageWithVersioning { get { throw null; } set { } } + public Azure.Provisioning.Storage.BlobContainerImmutabilityPolicy ImmutabilityPolicy { get { throw null; } } + public Azure.Provisioning.Storage.ImmutableStorageWithVersioning ImmutableStorageWithVersioning { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsDeleted { get { throw null; } } public Azure.Provisioning.BicepValue LastModifiedOn { get { throw null; } } public Azure.Provisioning.BicepValue LeaseDuration { get { throw null; } } public Azure.Provisioning.BicepValue LeaseState { get { throw null; } } public Azure.Provisioning.BicepValue LeaseStatus { get { throw null; } } - public Azure.Provisioning.BicepValue LegalHold { get { throw null; } } + public Azure.Provisioning.Storage.LegalHoldProperties LegalHold { get { throw null; } } public Azure.Provisioning.BicepDictionary Metadata { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Storage.BlobService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PreventEncryptionScopeOverride { get { throw null; } set { } } public Azure.Provisioning.BicepValue PublicAccess { get { throw null; } set { } } public Azure.Provisioning.BicepValue RemainingRetentionDays { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.BlobContainer FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -89,6 +91,7 @@ public BlobContainerImmutabilityPolicy() { } public Azure.Provisioning.BicepValue ImmutabilityPeriodSinceCreationInDays { get { throw null; } } public Azure.Provisioning.BicepValue State { get { throw null; } } public Azure.Provisioning.BicepList UpdateHistory { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class BlobInventoryPolicy : Azure.Provisioning.Primitives.ProvisionableResource { @@ -97,8 +100,9 @@ public partial class BlobInventoryPolicy : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.BicepValue LastModifiedOn { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Storage.StorageAccount? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue PolicySchema { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Storage.BlobInventoryPolicySchema PolicySchema { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.BlobInventoryPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -131,11 +135,12 @@ public static partial class ResourceVersions public partial class BlobInventoryPolicyDefinition : Azure.Provisioning.Primitives.ProvisionableConstruct { public BlobInventoryPolicyDefinition() { } - public Azure.Provisioning.BicepValue Filters { get { throw null; } set { } } + public Azure.Provisioning.Storage.BlobInventoryPolicyFilter Filters { get { throw null; } set { } } public Azure.Provisioning.BicepValue Format { get { throw null; } set { } } public Azure.Provisioning.BicepValue ObjectType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Schedule { get { throw null; } set { } } public Azure.Provisioning.BicepList SchemaFields { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class BlobInventoryPolicyFilter : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -146,6 +151,7 @@ public BlobInventoryPolicyFilter() { } public Azure.Provisioning.BicepValue IncludeDeleted { get { throw null; } set { } } public Azure.Provisioning.BicepList IncludePrefix { get { throw null; } set { } } public Azure.Provisioning.BicepValue IncludeSnapshots { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum BlobInventoryPolicyFormat { @@ -160,10 +166,11 @@ public enum BlobInventoryPolicyObjectType public partial class BlobInventoryPolicyRule : Azure.Provisioning.Primitives.ProvisionableConstruct { public BlobInventoryPolicyRule() { } - public Azure.Provisioning.BicepValue Definition { get { throw null; } set { } } + public Azure.Provisioning.Storage.BlobInventoryPolicyDefinition Definition { get { throw null; } set { } } public Azure.Provisioning.BicepValue Destination { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum BlobInventoryPolicySchedule { @@ -177,6 +184,7 @@ public BlobInventoryPolicySchema() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepList Rules { get { throw null; } set { } } public Azure.Provisioning.BicepValue RuleType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum BlobInventoryRuleType { @@ -187,6 +195,7 @@ public partial class BlobRestoreContent : Azure.Provisioning.Primitives.Provisio public BlobRestoreContent() { } public Azure.Provisioning.BicepList BlobRanges { get { throw null; } set { } } public Azure.Provisioning.BicepValue TimeToRestore { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum BlobRestoreProgressStatus { @@ -199,31 +208,34 @@ public partial class BlobRestoreRange : Azure.Provisioning.Primitives.Provisiona public BlobRestoreRange() { } public Azure.Provisioning.BicepValue EndRange { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartRange { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class BlobRestoreStatus : Azure.Provisioning.Primitives.ProvisionableConstruct { public BlobRestoreStatus() { } public Azure.Provisioning.BicepValue FailureReason { get { throw null; } } - public Azure.Provisioning.BicepValue Parameters { get { throw null; } } + public Azure.Provisioning.Storage.BlobRestoreContent Parameters { get { throw null; } } public Azure.Provisioning.BicepValue RestoreId { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class BlobService : Azure.Provisioning.Primitives.ProvisionableResource { public BlobService(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ChangeFeed { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ContainerDeleteRetentionPolicy { get { throw null; } set { } } + public Azure.Provisioning.Storage.BlobServiceChangeFeed ChangeFeed { get { throw null; } set { } } + public Azure.Provisioning.Storage.DeleteRetentionPolicy ContainerDeleteRetentionPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepList CorsRules { get { throw null; } set { } } public Azure.Provisioning.BicepValue DefaultServiceVersion { get { throw null; } set { } } - public Azure.Provisioning.BicepValue DeleteRetentionPolicy { get { throw null; } set { } } + public Azure.Provisioning.Storage.DeleteRetentionPolicy DeleteRetentionPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue IsAutomaticSnapshotPolicyEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsVersioningEnabled { get { throw null; } set { } } - public Azure.Provisioning.BicepValue LastAccessTimeTrackingPolicy { get { throw null; } set { } } + public Azure.Provisioning.Storage.LastAccessTimeTrackingPolicy LastAccessTimeTrackingPolicy { get { throw null; } set { } } public Azure.Provisioning.Storage.StorageAccount? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RestorePolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Storage.RestorePolicy RestorePolicy { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageSku Sku { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.BlobService FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -256,6 +268,7 @@ public partial class BlobServiceChangeFeed : Azure.Provisioning.Primitives.Provi public BlobServiceChangeFeed() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue RetentionInDays { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum CorsRuleAllowedMethod { @@ -281,6 +294,7 @@ public partial class DateAfterCreation : Azure.Provisioning.Primitives.Provision public DateAfterCreation() { } public Azure.Provisioning.BicepValue DaysAfterCreationGreaterThan { get { throw null; } set { } } public Azure.Provisioning.BicepValue DaysAfterLastTierChangeGreaterThan { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class DateAfterModification : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -289,6 +303,7 @@ public DateAfterModification() { } public Azure.Provisioning.BicepValue DaysAfterLastAccessTimeGreaterThan { get { throw null; } set { } } public Azure.Provisioning.BicepValue DaysAfterLastTierChangeGreaterThan { get { throw null; } set { } } public Azure.Provisioning.BicepValue DaysAfterModificationGreaterThan { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum DefaultSharePermission { @@ -306,6 +321,7 @@ public DeleteRetentionPolicy() { } public Azure.Provisioning.BicepValue AllowPermanentDelete { get { throw null; } set { } } public Azure.Provisioning.BicepValue Days { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum DirectoryServiceOption { @@ -321,14 +337,15 @@ public partial class EncryptionScope : Azure.Provisioning.Primitives.Provisionab public EncryptionScope(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue KeyVaultProperties { get { throw null; } set { } } + public Azure.Provisioning.Storage.EncryptionScopeKeyVaultProperties KeyVaultProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue LastModifiedOn { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Storage.StorageAccount? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequireInfrastructureEncryption { get { throw null; } set { } } public Azure.Provisioning.BicepValue Source { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.EncryptionScope FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -354,6 +371,7 @@ public EncryptionScopeKeyVaultProperties() { } public Azure.Provisioning.BicepValue CurrentVersionedKeyIdentifier { get { throw null; } } public Azure.Provisioning.BicepValue KeyUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue LastKeyRotationTimestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum EncryptionScopeSource { @@ -377,10 +395,11 @@ public partial class FileService : Azure.Provisioning.Primitives.ProvisionableRe public Azure.Provisioning.BicepList CorsRules { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.Storage.StorageAccount? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ProtocolSmbSetting { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ShareDeleteRetentionPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Storage.SmbSetting ProtocolSmbSetting { get { throw null; } set { } } + public Azure.Provisioning.Storage.DeleteRetentionPolicy ShareDeleteRetentionPolicy { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageSku Sku { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.FileService FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -432,8 +451,9 @@ public partial class FileShare : Azure.Provisioning.Primitives.ProvisionableReso public Azure.Provisioning.BicepValue ShareUsageBytes { get { throw null; } } public Azure.Provisioning.BicepList SignedIdentifiers { get { throw null; } set { } } public Azure.Provisioning.BicepValue SnapshotOn { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.FileShare FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -480,9 +500,10 @@ public enum FileShareEnabledProtocol public partial class FilesIdentityBasedAuthentication : Azure.Provisioning.Primitives.ProvisionableConstruct { public FilesIdentityBasedAuthentication() { } - public Azure.Provisioning.BicepValue ActiveDirectoryProperties { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageActiveDirectoryProperties ActiveDirectoryProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue DefaultSharePermission { get { throw null; } set { } } public Azure.Provisioning.BicepValue DirectoryServiceOptions { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class GeoReplicationStatistics : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -490,6 +511,7 @@ public GeoReplicationStatistics() { } public Azure.Provisioning.BicepValue CanFailover { get { throw null; } } public Azure.Provisioning.BicepValue LastSyncOn { get { throw null; } } public Azure.Provisioning.BicepValue Status { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum GeoReplicationStatus { @@ -508,7 +530,8 @@ public partial class ImmutabilityPolicy : Azure.Provisioning.Primitives.Provisio public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Storage.BlobContainer? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.ImmutabilityPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -553,8 +576,9 @@ public enum ImmutabilityPolicyUpdateType public partial class ImmutableStorageAccount : Azure.Provisioning.Primitives.ProvisionableConstruct { public ImmutableStorageAccount() { } - public Azure.Provisioning.BicepValue ImmutabilityPolicy { get { throw null; } set { } } + public Azure.Provisioning.Storage.AccountImmutabilityPolicy ImmutabilityPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ImmutableStorageWithVersioning : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -562,6 +586,7 @@ public ImmutableStorageWithVersioning() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue MigrationState { get { throw null; } } public Azure.Provisioning.BicepValue TimeStamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ImmutableStorageWithVersioningMigrationState { @@ -580,6 +605,7 @@ public LastAccessTimeTrackingPolicy() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue TrackingGranularityInDays { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum LastAccessTimeTrackingPolicyName { @@ -589,8 +615,9 @@ public partial class LegalHoldProperties : Azure.Provisioning.Primitives.Provisi { public LegalHoldProperties() { } public Azure.Provisioning.BicepValue HasLegalHold { get { throw null; } } - public Azure.Provisioning.BicepValue ProtectedAppendWritesHistory { get { throw null; } } + public Azure.Provisioning.Storage.ProtectedAppendWritesHistory ProtectedAppendWritesHistory { get { throw null; } } public Azure.Provisioning.BicepList Tags { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class LegalHoldTag : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -600,37 +627,40 @@ public LegalHoldTag() { } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } public Azure.Provisioning.BicepValue Upn { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class LocalUserKeys : Azure.Provisioning.Primitives.ProvisionableConstruct { public LocalUserKeys() { } public Azure.Provisioning.BicepValue SharedKey { get { throw null; } } public Azure.Provisioning.BicepList SshAuthorizedKeys { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.Storage.LocalUserKeys FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } } public partial class ManagementPolicyAction : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagementPolicyAction() { } - public Azure.Provisioning.BicepValue BaseBlob { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Snapshot { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Version { get { throw null; } set { } } + public Azure.Provisioning.Storage.ManagementPolicyBaseBlob BaseBlob { get { throw null; } set { } } + public Azure.Provisioning.Storage.ManagementPolicySnapShot Snapshot { get { throw null; } set { } } + public Azure.Provisioning.Storage.ManagementPolicyVersion Version { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagementPolicyBaseBlob : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagementPolicyBaseBlob() { } - public Azure.Provisioning.BicepValue Delete { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterModification Delete { get { throw null; } set { } } public Azure.Provisioning.BicepValue EnableAutoTierToHotFromCool { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TierToArchive { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TierToCold { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TierToCool { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TierToHot { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterModification TierToArchive { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterModification TierToCold { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterModification TierToCool { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterModification TierToHot { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagementPolicyDefinition : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagementPolicyDefinition() { } - public Azure.Provisioning.BicepValue Actions { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Filters { get { throw null; } set { } } + public Azure.Provisioning.Storage.ManagementPolicyAction Actions { get { throw null; } set { } } + public Azure.Provisioning.Storage.ManagementPolicyFilter Filters { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagementPolicyFilter : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -638,14 +668,16 @@ public ManagementPolicyFilter() { } public Azure.Provisioning.BicepList BlobIndexMatch { get { throw null; } set { } } public Azure.Provisioning.BicepList BlobTypes { get { throw null; } set { } } public Azure.Provisioning.BicepList PrefixMatch { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagementPolicyRule : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagementPolicyRule() { } - public Azure.Provisioning.BicepValue Definition { get { throw null; } set { } } + public Azure.Provisioning.Storage.ManagementPolicyDefinition Definition { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue RuleType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ManagementPolicyRuleType { @@ -654,11 +686,12 @@ public enum ManagementPolicyRuleType public partial class ManagementPolicySnapShot : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagementPolicySnapShot() { } - public Azure.Provisioning.BicepValue Delete { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TierToArchive { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TierToCold { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TierToCool { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TierToHot { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterCreation Delete { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterCreation TierToArchive { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterCreation TierToCold { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterCreation TierToCool { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterCreation TierToHot { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagementPolicyTagFilter : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -666,15 +699,17 @@ public ManagementPolicyTagFilter() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Operator { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagementPolicyVersion : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagementPolicyVersion() { } - public Azure.Provisioning.BicepValue Delete { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TierToArchive { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TierToCold { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TierToCool { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TierToHot { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterCreation Delete { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterCreation TierToArchive { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterCreation TierToCold { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterCreation TierToCool { get { throw null; } set { } } + public Azure.Provisioning.Storage.DateAfterCreation TierToHot { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ObjectReplicationPolicy : Azure.Provisioning.Primitives.ProvisionableResource { @@ -687,7 +722,8 @@ public partial class ObjectReplicationPolicy : Azure.Provisioning.Primitives.Pro public Azure.Provisioning.BicepValue PolicyId { get { throw null; } } public Azure.Provisioning.BicepList Rules { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceAccount { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.ObjectReplicationPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -722,20 +758,23 @@ public partial class ObjectReplicationPolicyFilter : Azure.Provisioning.Primitiv public ObjectReplicationPolicyFilter() { } public Azure.Provisioning.BicepValue MinCreationTime { get { throw null; } set { } } public Azure.Provisioning.BicepList PrefixMatch { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ObjectReplicationPolicyRule : Azure.Provisioning.Primitives.ProvisionableConstruct { public ObjectReplicationPolicyRule() { } public Azure.Provisioning.BicepValue DestinationContainer { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Filters { get { throw null; } set { } } + public Azure.Provisioning.Storage.ObjectReplicationPolicyFilter Filters { get { throw null; } set { } } public Azure.Provisioning.BicepValue RuleId { get { throw null; } set { } } public Azure.Provisioning.BicepValue SourceContainer { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ProtectedAppendWritesHistory : Azure.Provisioning.Primitives.ProvisionableConstruct { public ProtectedAppendWritesHistory() { } public Azure.Provisioning.BicepValue AllowProtectedAppendWritesAll { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class QueueService : Azure.Provisioning.Primitives.ProvisionableResource { @@ -744,7 +783,8 @@ public partial class QueueService : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Storage.StorageAccount? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.QueueService FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -779,6 +819,7 @@ public RestorePolicy() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue LastEnabledOn { get { throw null; } } public Azure.Provisioning.BicepValue MinRestoreOn { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum RootSquashType { @@ -794,6 +835,7 @@ public SmbSetting() { } public Azure.Provisioning.BicepValue IsMultiChannelEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue KerberosTicketEncryption { get { throw null; } set { } } public Azure.Provisioning.BicepValue Versions { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageAccount : Azure.Provisioning.Primitives.ProvisionableResource { @@ -803,25 +845,25 @@ public partial class StorageAccount : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue AllowCrossTenantReplication { get { throw null; } set { } } public Azure.Provisioning.BicepValue AllowedCopyScope { get { throw null; } set { } } public Azure.Provisioning.BicepValue AllowSharedKeyAccess { get { throw null; } set { } } - public Azure.Provisioning.BicepValue AzureFilesIdentityBasedAuthentication { get { throw null; } set { } } - public Azure.Provisioning.BicepValue BlobRestoreStatus { get { throw null; } } + public Azure.Provisioning.Storage.FilesIdentityBasedAuthentication AzureFilesIdentityBasedAuthentication { get { throw null; } set { } } + public Azure.Provisioning.Storage.BlobRestoreStatus BlobRestoreStatus { get { throw null; } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } - public Azure.Provisioning.BicepValue CustomDomain { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageCustomDomain CustomDomain { get { throw null; } set { } } public Azure.Provisioning.BicepValue DnsEndpointType { get { throw null; } set { } } public Azure.Provisioning.BicepValue EnableHttpsTrafficOnly { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Encryption { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ExtendedLocation { get { throw null; } set { } } - public Azure.Provisioning.BicepValue GeoReplicationStats { get { throw null; } } + public Azure.Provisioning.Storage.StorageAccountEncryption Encryption { get { throw null; } set { } } + public Azure.Provisioning.Resources.ExtendedAzureLocation ExtendedLocation { get { throw null; } set { } } + public Azure.Provisioning.Storage.GeoReplicationStatistics GeoReplicationStats { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ImmutableStorageWithVersioning { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } + public Azure.Provisioning.Storage.ImmutableStorageAccount ImmutableStorageWithVersioning { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsDefaultToOAuthAuthentication { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsFailoverInProgress { get { throw null; } } public Azure.Provisioning.BicepValue IsHnsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsLocalUserEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsNfsV3Enabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsSftpEnabled { get { throw null; } set { } } - public Azure.Provisioning.BicepValue KeyCreationTime { get { throw null; } } + public Azure.Provisioning.Storage.StorageAccountKeyCreationTime KeyCreationTime { get { throw null; } } public Azure.Provisioning.BicepValue KeyExpirationPeriodInDays { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue LargeFileSharesState { get { throw null; } set { } } @@ -829,24 +871,25 @@ public partial class StorageAccount : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue MinimumTlsVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue NetworkRuleSet { get { throw null; } set { } } - public Azure.Provisioning.BicepValue PrimaryEndpoints { get { throw null; } } + public Azure.Provisioning.Storage.StorageAccountNetworkRuleSet NetworkRuleSet { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageAccountEndpoints PrimaryEndpoints { get { throw null; } } public Azure.Provisioning.BicepValue PrimaryLocation { get { throw null; } } public Azure.Provisioning.BicepList PrivateEndpointConnections { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } - public Azure.Provisioning.BicepValue RoutingPreference { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SasPolicy { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SecondaryEndpoints { get { throw null; } } + public Azure.Provisioning.Storage.StorageRoutingPreference RoutingPreference { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageAccountSasPolicy SasPolicy { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageAccountEndpoints SecondaryEndpoints { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryLocation { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageSku Sku { get { throw null; } set { } } public Azure.Provisioning.BicepValue StatusOfPrimary { get { throw null; } } public Azure.Provisioning.BicepValue StatusOfSecondary { get { throw null; } } - public Azure.Provisioning.BicepValue StorageAccountSkuConversionStatus { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Storage.StorageAccountSkuConversionStatus StorageAccountSkuConversionStatus { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.Storage.StorageBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.Storage.StorageBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.StorageAccount FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.BicepList GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -888,25 +931,28 @@ public enum StorageAccountAccessTier public partial class StorageAccountEncryption : Azure.Provisioning.Primitives.ProvisionableConstruct { public StorageAccountEncryption() { } - public Azure.Provisioning.BicepValue EncryptionIdentity { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageAccountEncryptionIdentity EncryptionIdentity { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeySource { get { throw null; } set { } } - public Azure.Provisioning.BicepValue KeyVaultProperties { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageAccountKeyVaultProperties KeyVaultProperties { get { throw null; } set { } } public Azure.Provisioning.BicepValue RequireInfrastructureEncryption { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Services { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageAccountEncryptionServices Services { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageAccountEncryptionIdentity : Azure.Provisioning.Primitives.ProvisionableConstruct { public StorageAccountEncryptionIdentity() { } public Azure.Provisioning.BicepValue EncryptionFederatedIdentityClientId { get { throw null; } set { } } public Azure.Provisioning.BicepValue EncryptionUserAssignedIdentity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageAccountEncryptionServices : Azure.Provisioning.Primitives.ProvisionableConstruct { public StorageAccountEncryptionServices() { } - public Azure.Provisioning.BicepValue Blob { get { throw null; } set { } } - public Azure.Provisioning.BicepValue File { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Queue { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Table { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageEncryptionService Blob { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageEncryptionService File { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageEncryptionService Queue { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageEncryptionService Table { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageAccountEndpoints : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -914,11 +960,12 @@ public StorageAccountEndpoints() { } public Azure.Provisioning.BicepValue BlobUri { get { throw null; } } public Azure.Provisioning.BicepValue DfsUri { get { throw null; } } public Azure.Provisioning.BicepValue FileUri { get { throw null; } } - public Azure.Provisioning.BicepValue InternetEndpoints { get { throw null; } } - public Azure.Provisioning.BicepValue MicrosoftEndpoints { get { throw null; } } + public Azure.Provisioning.Storage.StorageAccountInternetEndpoints InternetEndpoints { get { throw null; } } + public Azure.Provisioning.Storage.StorageAccountMicrosoftEndpoints MicrosoftEndpoints { get { throw null; } } public Azure.Provisioning.BicepValue QueueUri { get { throw null; } } public Azure.Provisioning.BicepValue TableUri { get { throw null; } } public Azure.Provisioning.BicepValue WebUri { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class StorageAccountInternetEndpoints : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -927,12 +974,14 @@ public StorageAccountInternetEndpoints() { } public Azure.Provisioning.BicepValue DfsUri { get { throw null; } } public Azure.Provisioning.BicepValue FileUri { get { throw null; } } public Azure.Provisioning.BicepValue WebUri { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class StorageAccountIPRule : Azure.Provisioning.Primitives.ProvisionableConstruct { public StorageAccountIPRule() { } public Azure.Provisioning.BicepValue Action { get { throw null; } set { } } public Azure.Provisioning.BicepValue IPAddressOrRange { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageAccountKey : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -941,14 +990,14 @@ public StorageAccountKey() { } public Azure.Provisioning.BicepValue KeyName { get { throw null; } } public Azure.Provisioning.BicepValue Permissions { get { throw null; } } public Azure.Provisioning.BicepValue Value { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.Storage.StorageAccountKey FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } } public partial class StorageAccountKeyCreationTime : Azure.Provisioning.Primitives.ProvisionableConstruct { public StorageAccountKeyCreationTime() { } public Azure.Provisioning.BicepValue Key1 { get { throw null; } } public Azure.Provisioning.BicepValue Key2 { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum StorageAccountKeyPermission { @@ -971,6 +1020,7 @@ public StorageAccountKeyVaultProperties() { } public Azure.Provisioning.BicepValue KeyVaultUri { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue LastKeyRotationTimestamp { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class StorageAccountLocalUser : Azure.Provisioning.Primitives.ProvisionableResource { @@ -985,7 +1035,8 @@ public partial class StorageAccountLocalUser : Azure.Provisioning.Primitives.Pro public Azure.Provisioning.BicepList PermissionScopes { get { throw null; } set { } } public Azure.Provisioning.BicepValue Sid { get { throw null; } } public Azure.Provisioning.BicepList SshAuthorizedKeys { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.StorageAccountLocalUser FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.Storage.LocalUserKeys GetKeys() { throw null; } public static partial class ResourceVersions @@ -1023,7 +1074,8 @@ public partial class StorageAccountManagementPolicy : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue LastModifiedOn { get { throw null; } } public Azure.Provisioning.Storage.StorageAccount? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList Rules { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.StorageAccountManagementPolicy FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1062,6 +1114,7 @@ public StorageAccountMicrosoftEndpoints() { } public Azure.Provisioning.BicepValue QueueUri { get { throw null; } } public Azure.Provisioning.BicepValue TableUri { get { throw null; } } public Azure.Provisioning.BicepValue WebUri { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum StorageAccountNetworkRuleAction { @@ -1075,6 +1128,7 @@ public StorageAccountNetworkRuleSet() { } public Azure.Provisioning.BicepList IPRules { get { throw null; } set { } } public Azure.Provisioning.BicepList ResourceAccessRules { get { throw null; } set { } } public Azure.Provisioning.BicepList VirtualNetworkRules { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum StorageAccountNetworkRuleState { @@ -1089,12 +1143,14 @@ public partial class StorageAccountResourceAccessRule : Azure.Provisioning.Primi public StorageAccountResourceAccessRule() { } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageAccountSasPolicy : Azure.Provisioning.Primitives.ProvisionableConstruct { public StorageAccountSasPolicy() { } public Azure.Provisioning.BicepValue ExpirationAction { get { throw null; } set { } } public Azure.Provisioning.BicepValue SasExpirationPeriod { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum StorageAccountSkuConversionState { @@ -1109,6 +1165,7 @@ public StorageAccountSkuConversionStatus() { } public Azure.Provisioning.BicepValue SkuConversionStatus { get { throw null; } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } } public Azure.Provisioning.BicepValue TargetSkuName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum StorageAccountStatus { @@ -1123,6 +1180,7 @@ public StorageAccountVirtualNetworkRule() { } public Azure.Provisioning.BicepValue Action { get { throw null; } set { } } public Azure.Provisioning.BicepValue State { get { throw null; } set { } } public Azure.Provisioning.BicepValue VirtualNetworkResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageActiveDirectoryProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1135,6 +1193,7 @@ public StorageActiveDirectoryProperties() { } public Azure.Provisioning.BicepValue ForestName { get { throw null; } set { } } public Azure.Provisioning.BicepValue NetBiosDomainName { get { throw null; } set { } } public Azure.Provisioning.BicepValue SamAccountName { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct StorageBuiltInRole : System.IEquatable @@ -1182,12 +1241,14 @@ public StorageCorsRule() { } public Azure.Provisioning.BicepList AllowedOrigins { get { throw null; } set { } } public Azure.Provisioning.BicepList ExposedHeaders { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaxAgeInSeconds { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageCustomDomain : Azure.Provisioning.Primitives.ProvisionableConstruct { public StorageCustomDomain() { } public Azure.Provisioning.BicepValue IsUseSubDomainNameEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum StorageDnsEndpointType { @@ -1205,6 +1266,7 @@ public StorageEncryptionService() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue KeyType { get { throw null; } set { } } public Azure.Provisioning.BicepValue LastEnabledOn { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum StorageKind { @@ -1259,17 +1321,19 @@ public StoragePermissionScope() { } public Azure.Provisioning.BicepValue Permissions { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceName { get { throw null; } set { } } public Azure.Provisioning.BicepValue Service { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StoragePrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public StoragePrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.Storage.StoragePrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Storage.StorageAccount? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.StoragePrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1302,12 +1366,13 @@ public static partial class ResourceVersions public partial class StoragePrivateEndpointConnectionData : Azure.Provisioning.Primitives.ProvisionableConstruct { public StoragePrivateEndpointConnectionData() { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.Storage.StoragePrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum StoragePrivateEndpointConnectionProvisioningState { @@ -1328,6 +1393,7 @@ public StoragePrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue ActionRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum StorageProvisioningState { @@ -1355,7 +1421,8 @@ public partial class StorageQueue : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepDictionary Metadata { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Storage.QueueService? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.StorageQueue FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -1396,6 +1463,7 @@ public StorageRoutingPreference() { } public Azure.Provisioning.BicepValue IsInternetEndpointsPublished { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsMicrosoftEndpointsPublished { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoutingChoice { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageServiceAccessPolicy : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1403,18 +1471,21 @@ public StorageServiceAccessPolicy() { } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue Permission { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageSignedIdentifier : Azure.Provisioning.Primitives.ProvisionableConstruct { public StorageSignedIdentifier() { } - public Azure.Provisioning.BicepValue AccessPolicy { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageServiceAccessPolicy AccessPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageSku : Azure.Provisioning.Primitives.ProvisionableConstruct { public StorageSku() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum StorageSkuName { @@ -1445,6 +1516,7 @@ public partial class StorageSshPublicKey : Azure.Provisioning.Primitives.Provisi public StorageSshPublicKey() { } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Key { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageTable : Azure.Provisioning.Primitives.ProvisionableResource { @@ -1453,8 +1525,9 @@ public partial class StorageTable : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Storage.TableService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepList SignedIdentifiers { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TableName { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.StorageTable FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -1490,12 +1563,14 @@ public StorageTableAccessPolicy() { } public Azure.Provisioning.BicepValue ExpireOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue Permission { get { throw null; } set { } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class StorageTableSignedIdentifier : Azure.Provisioning.Primitives.ProvisionableConstruct { public StorageTableSignedIdentifier() { } - public Azure.Provisioning.BicepValue AccessPolicy { get { throw null; } set { } } + public Azure.Provisioning.Storage.StorageTableAccessPolicy AccessPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class TableService : Azure.Provisioning.Primitives.ProvisionableResource { @@ -1504,7 +1579,8 @@ public partial class TableService : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Storage.StorageAccount? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Storage.TableService FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1543,5 +1619,6 @@ public UpdateHistoryEntry() { } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } public Azure.Provisioning.BicepValue UpdateType { get { throw null; } } public Azure.Provisioning.BicepValue Upn { get { throw null; } } + protected override void DefineProvisionableProperties() { } } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/BlobContainer.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/BlobContainer.cs index b203ea9a7716a..d529e1872d688 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/BlobContainer.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/BlobContainer.cs @@ -27,65 +27,103 @@ public partial class BlobContainer : ProvisionableResource /// character must be immediately preceded and followed by a letter or /// number. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Default the container to use specified encryption scope for all writes. /// - public BicepValue DefaultEncryptionScope { get => _defaultEncryptionScope; set => _defaultEncryptionScope.Assign(value); } - private readonly BicepValue _defaultEncryptionScope; + public BicepValue DefaultEncryptionScope + { + get { Initialize(); return _defaultEncryptionScope!; } + set { Initialize(); _defaultEncryptionScope!.Assign(value); } + } + private BicepValue? _defaultEncryptionScope; /// /// Enable NFSv3 all squash on blob container. /// - public BicepValue EnableNfsV3AllSquash { get => _enableNfsV3AllSquash; set => _enableNfsV3AllSquash.Assign(value); } - private readonly BicepValue _enableNfsV3AllSquash; + public BicepValue EnableNfsV3AllSquash + { + get { Initialize(); return _enableNfsV3AllSquash!; } + set { Initialize(); _enableNfsV3AllSquash!.Assign(value); } + } + private BicepValue? _enableNfsV3AllSquash; /// /// Enable NFSv3 root squash on blob container. /// - public BicepValue EnableNfsV3RootSquash { get => _enableNfsV3RootSquash; set => _enableNfsV3RootSquash.Assign(value); } - private readonly BicepValue _enableNfsV3RootSquash; + public BicepValue EnableNfsV3RootSquash + { + get { Initialize(); return _enableNfsV3RootSquash!; } + set { Initialize(); _enableNfsV3RootSquash!.Assign(value); } + } + private BicepValue? _enableNfsV3RootSquash; /// /// The object level immutability property of the container. The property /// is immutable and can only be set to true at the container creation /// time. Existing containers must undergo a migration process. /// - public BicepValue ImmutableStorageWithVersioning { get => _immutableStorageWithVersioning; set => _immutableStorageWithVersioning.Assign(value); } - private readonly BicepValue _immutableStorageWithVersioning; + public ImmutableStorageWithVersioning ImmutableStorageWithVersioning + { + get { Initialize(); return _immutableStorageWithVersioning!; } + set { Initialize(); AssignOrReplace(ref _immutableStorageWithVersioning, value); } + } + private ImmutableStorageWithVersioning? _immutableStorageWithVersioning; /// /// A name-value pair to associate with the container as metadata. /// - public BicepDictionary Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepDictionary _metadata; + public BicepDictionary Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepDictionary? _metadata; /// /// Block override of encryption scope from the container default. /// - public BicepValue PreventEncryptionScopeOverride { get => _preventEncryptionScopeOverride; set => _preventEncryptionScopeOverride.Assign(value); } - private readonly BicepValue _preventEncryptionScopeOverride; + public BicepValue PreventEncryptionScopeOverride + { + get { Initialize(); return _preventEncryptionScopeOverride!; } + set { Initialize(); _preventEncryptionScopeOverride!.Assign(value); } + } + private BicepValue? _preventEncryptionScopeOverride; /// /// Specifies whether data in the container may be accessed publicly and /// the level of access. /// - public BicepValue PublicAccess { get => _publicAccess; set => _publicAccess.Assign(value); } - private readonly BicepValue _publicAccess; + public BicepValue PublicAccess + { + get { Initialize(); return _publicAccess!; } + set { Initialize(); _publicAccess!.Assign(value); } + } + private BicepValue? _publicAccess; /// /// Blob container deletion time. /// - public BicepValue DeletedOn { get => _deletedOn; } - private readonly BicepValue _deletedOn; + public BicepValue DeletedOn + { + get { Initialize(); return _deletedOn!; } + } + private BicepValue? _deletedOn; /// /// Resource Etag. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// The hasImmutabilityPolicy public property is set to true by SRP if @@ -93,8 +131,11 @@ public partial class BlobContainer : ProvisionableResource /// hasImmutabilityPolicy public property is set to false by SRP if /// ImmutabilityPolicy has not been created for this container. /// - public BicepValue HasImmutabilityPolicy { get => _hasImmutabilityPolicy; } - private readonly BicepValue _hasImmutabilityPolicy; + public BicepValue HasImmutabilityPolicy + { + get { Initialize(); return _hasImmutabilityPolicy!; } + } + private BicepValue? _hasImmutabilityPolicy; /// /// The hasLegalHold public property is set to true by SRP if there are at @@ -103,81 +144,121 @@ public partial class BlobContainer : ProvisionableResource /// can be a maximum of 1000 blob containers with hasLegalHold=true for a /// given account. /// - public BicepValue HasLegalHold { get => _hasLegalHold; } - private readonly BicepValue _hasLegalHold; + public BicepValue HasLegalHold + { + get { Initialize(); return _hasLegalHold!; } + } + private BicepValue? _hasLegalHold; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The ImmutabilityPolicy property of the container. /// - public BicepValue ImmutabilityPolicy { get => _immutabilityPolicy; } - private readonly BicepValue _immutabilityPolicy; + public BlobContainerImmutabilityPolicy ImmutabilityPolicy + { + get { Initialize(); return _immutabilityPolicy!; } + } + private BlobContainerImmutabilityPolicy? _immutabilityPolicy; /// /// Indicates whether the blob container was deleted. /// - public BicepValue IsDeleted { get => _isDeleted; } - private readonly BicepValue _isDeleted; + public BicepValue IsDeleted + { + get { Initialize(); return _isDeleted!; } + } + private BicepValue? _isDeleted; /// /// Returns the date and time the container was last modified. /// - public BicepValue LastModifiedOn { get => _lastModifiedOn; } - private readonly BicepValue _lastModifiedOn; + public BicepValue LastModifiedOn + { + get { Initialize(); return _lastModifiedOn!; } + } + private BicepValue? _lastModifiedOn; /// /// Specifies whether the lease on a container is of infinite or fixed /// duration, only when the container is leased. /// - public BicepValue LeaseDuration { get => _leaseDuration; } - private readonly BicepValue _leaseDuration; + public BicepValue LeaseDuration + { + get { Initialize(); return _leaseDuration!; } + } + private BicepValue? _leaseDuration; /// /// Lease state of the container. /// - public BicepValue LeaseState { get => _leaseState; } - private readonly BicepValue _leaseState; + public BicepValue LeaseState + { + get { Initialize(); return _leaseState!; } + } + private BicepValue? _leaseState; /// /// The lease status of the container. /// - public BicepValue LeaseStatus { get => _leaseStatus; } - private readonly BicepValue _leaseStatus; + public BicepValue LeaseStatus + { + get { Initialize(); return _leaseStatus!; } + } + private BicepValue? _leaseStatus; /// /// The LegalHold property of the container. /// - public BicepValue LegalHold { get => _legalHold; } - private readonly BicepValue _legalHold; + public LegalHoldProperties LegalHold + { + get { Initialize(); return _legalHold!; } + } + private LegalHoldProperties? _legalHold; /// /// Remaining retention days for soft deleted blob container. /// - public BicepValue RemainingRetentionDays { get => _remainingRetentionDays; } - private readonly BicepValue _remainingRetentionDays; + public BicepValue RemainingRetentionDays + { + get { Initialize(); return _remainingRetentionDays!; } + } + private BicepValue? _remainingRetentionDays; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The version of the deleted blob container. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// Gets or sets a reference to the parent BlobService. /// - public BlobService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public BlobService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new BlobContainer. @@ -192,30 +273,37 @@ public partial class BlobContainer : ProvisionableResource public BlobContainer(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/blobServices/containers", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _defaultEncryptionScope = BicepValue.DefineProperty(this, "DefaultEncryptionScope", ["properties", "defaultEncryptionScope"]); - _enableNfsV3AllSquash = BicepValue.DefineProperty(this, "EnableNfsV3AllSquash", ["properties", "enableNfsV3AllSquash"]); - _enableNfsV3RootSquash = BicepValue.DefineProperty(this, "EnableNfsV3RootSquash", ["properties", "enableNfsV3RootSquash"]); - _immutableStorageWithVersioning = BicepValue.DefineProperty(this, "ImmutableStorageWithVersioning", ["properties", "immutableStorageWithVersioning"]); - _metadata = BicepDictionary.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _preventEncryptionScopeOverride = BicepValue.DefineProperty(this, "PreventEncryptionScopeOverride", ["properties", "denyEncryptionScopeOverride"]); - _publicAccess = BicepValue.DefineProperty(this, "PublicAccess", ["properties", "publicAccess"]); - _deletedOn = BicepValue.DefineProperty(this, "DeletedOn", ["properties", "deletedTime"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"], isOutput: true); - _hasImmutabilityPolicy = BicepValue.DefineProperty(this, "HasImmutabilityPolicy", ["properties", "hasImmutabilityPolicy"], isOutput: true); - _hasLegalHold = BicepValue.DefineProperty(this, "HasLegalHold", ["properties", "hasLegalHold"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _immutabilityPolicy = BicepValue.DefineProperty(this, "ImmutabilityPolicy", ["properties", "immutabilityPolicy"], isOutput: true); - _isDeleted = BicepValue.DefineProperty(this, "IsDeleted", ["properties", "deleted"], isOutput: true); - _lastModifiedOn = BicepValue.DefineProperty(this, "LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); - _leaseDuration = BicepValue.DefineProperty(this, "LeaseDuration", ["properties", "leaseDuration"], isOutput: true); - _leaseState = BicepValue.DefineProperty(this, "LeaseState", ["properties", "leaseState"], isOutput: true); - _leaseStatus = BicepValue.DefineProperty(this, "LeaseStatus", ["properties", "leaseStatus"], isOutput: true); - _legalHold = BicepValue.DefineProperty(this, "LegalHold", ["properties", "legalHold"], isOutput: true); - _remainingRetentionDays = BicepValue.DefineProperty(this, "RemainingRetentionDays", ["properties", "remainingRetentionDays"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of BlobContainer. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _defaultEncryptionScope = DefineProperty("DefaultEncryptionScope", ["properties", "defaultEncryptionScope"]); + _enableNfsV3AllSquash = DefineProperty("EnableNfsV3AllSquash", ["properties", "enableNfsV3AllSquash"]); + _enableNfsV3RootSquash = DefineProperty("EnableNfsV3RootSquash", ["properties", "enableNfsV3RootSquash"]); + _immutableStorageWithVersioning = DefineModelProperty("ImmutableStorageWithVersioning", ["properties", "immutableStorageWithVersioning"]); + _metadata = DefineDictionaryProperty("Metadata", ["properties", "metadata"]); + _preventEncryptionScopeOverride = DefineProperty("PreventEncryptionScopeOverride", ["properties", "denyEncryptionScopeOverride"]); + _publicAccess = DefineProperty("PublicAccess", ["properties", "publicAccess"]); + _deletedOn = DefineProperty("DeletedOn", ["properties", "deletedTime"], isOutput: true); + _eTag = DefineProperty("ETag", ["etag"], isOutput: true); + _hasImmutabilityPolicy = DefineProperty("HasImmutabilityPolicy", ["properties", "hasImmutabilityPolicy"], isOutput: true); + _hasLegalHold = DefineProperty("HasLegalHold", ["properties", "hasLegalHold"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _immutabilityPolicy = DefineModelProperty("ImmutabilityPolicy", ["properties", "immutabilityPolicy"], isOutput: true); + _isDeleted = DefineProperty("IsDeleted", ["properties", "deleted"], isOutput: true); + _lastModifiedOn = DefineProperty("LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); + _leaseDuration = DefineProperty("LeaseDuration", ["properties", "leaseDuration"], isOutput: true); + _leaseState = DefineProperty("LeaseState", ["properties", "leaseState"], isOutput: true); + _leaseStatus = DefineProperty("LeaseStatus", ["properties", "leaseStatus"], isOutput: true); + _legalHold = DefineModelProperty("LegalHold", ["properties", "legalHold"], isOutput: true); + _remainingRetentionDays = DefineProperty("RemainingRetentionDays", ["properties", "remainingRetentionDays"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _version = DefineProperty("Version", ["properties", "version"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/BlobInventoryPolicy.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/BlobInventoryPolicy.cs index 341ff666eac45..7deafe6f3ae22 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/BlobInventoryPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/BlobInventoryPolicy.cs @@ -21,39 +21,59 @@ public partial class BlobInventoryPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The storage account blob inventory policy object. It is composed of /// policy rules. /// - public BicepValue PolicySchema { get => _policySchema; set => _policySchema.Assign(value); } - private readonly BicepValue _policySchema; + public BlobInventoryPolicySchema PolicySchema + { + get { Initialize(); return _policySchema!; } + set { Initialize(); AssignOrReplace(ref _policySchema, value); } + } + private BlobInventoryPolicySchema? _policySchema; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Returns the last modified date and time of the blob inventory policy. /// - public BicepValue LastModifiedOn { get => _lastModifiedOn; } - private readonly BicepValue _lastModifiedOn; + public BicepValue LastModifiedOn + { + get { Initialize(); return _lastModifiedOn!; } + } + private BicepValue? _lastModifiedOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StorageAccount. /// - public StorageAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StorageAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new BlobInventoryPolicy. @@ -68,12 +88,19 @@ public partial class BlobInventoryPolicy : ProvisionableResource public BlobInventoryPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/inventoryPolicies", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _policySchema = BicepValue.DefineProperty(this, "PolicySchema", ["properties", "policy"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _lastModifiedOn = BicepValue.DefineProperty(this, "LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of BlobInventoryPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _policySchema = DefineModelProperty("PolicySchema", ["properties", "policy"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _lastModifiedOn = DefineProperty("LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/BlobService.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/BlobService.cs index 4d9992916b8a0..8997a242ce736 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/BlobService.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/BlobService.cs @@ -18,26 +18,38 @@ namespace Azure.Provisioning.Storage; /// public partial class BlobService : ProvisionableResource { - private readonly BicepValue _name; + private BicepValue? _name; /// /// The blob service properties for change feed events. /// - public BicepValue ChangeFeed { get => _changeFeed; set => _changeFeed.Assign(value); } - private readonly BicepValue _changeFeed; + public BlobServiceChangeFeed ChangeFeed + { + get { Initialize(); return _changeFeed!; } + set { Initialize(); AssignOrReplace(ref _changeFeed, value); } + } + private BlobServiceChangeFeed? _changeFeed; /// /// The blob service properties for container soft delete. /// - public BicepValue ContainerDeleteRetentionPolicy { get => _containerDeleteRetentionPolicy; set => _containerDeleteRetentionPolicy.Assign(value); } - private readonly BicepValue _containerDeleteRetentionPolicy; + public DeleteRetentionPolicy ContainerDeleteRetentionPolicy + { + get { Initialize(); return _containerDeleteRetentionPolicy!; } + set { Initialize(); AssignOrReplace(ref _containerDeleteRetentionPolicy, value); } + } + private DeleteRetentionPolicy? _containerDeleteRetentionPolicy; /// /// The List of CORS rules. You can include up to five CorsRule elements in /// the request. /// - public BicepList CorsRules { get => _corsRules; set => _corsRules.Assign(value); } - private readonly BicepList _corsRules; + public BicepList CorsRules + { + get { Initialize(); return _corsRules!; } + set { Initialize(); _corsRules!.Assign(value); } + } + private BicepList? _corsRules; /// /// DefaultServiceVersion indicates the default version to use for requests @@ -45,63 +57,100 @@ public partial class BlobService : ProvisionableResource /// Possible values include version 2008-10-27 and all more recent /// versions. /// - public BicepValue DefaultServiceVersion { get => _defaultServiceVersion; set => _defaultServiceVersion.Assign(value); } - private readonly BicepValue _defaultServiceVersion; + public BicepValue DefaultServiceVersion + { + get { Initialize(); return _defaultServiceVersion!; } + set { Initialize(); _defaultServiceVersion!.Assign(value); } + } + private BicepValue? _defaultServiceVersion; /// /// The blob service properties for blob soft delete. /// - public BicepValue DeleteRetentionPolicy { get => _deleteRetentionPolicy; set => _deleteRetentionPolicy.Assign(value); } - private readonly BicepValue _deleteRetentionPolicy; + public DeleteRetentionPolicy DeleteRetentionPolicy + { + get { Initialize(); return _deleteRetentionPolicy!; } + set { Initialize(); AssignOrReplace(ref _deleteRetentionPolicy, value); } + } + private DeleteRetentionPolicy? _deleteRetentionPolicy; /// /// Deprecated in favor of isVersioningEnabled property. /// - public BicepValue IsAutomaticSnapshotPolicyEnabled { get => _isAutomaticSnapshotPolicyEnabled; set => _isAutomaticSnapshotPolicyEnabled.Assign(value); } - private readonly BicepValue _isAutomaticSnapshotPolicyEnabled; + public BicepValue IsAutomaticSnapshotPolicyEnabled + { + get { Initialize(); return _isAutomaticSnapshotPolicyEnabled!; } + set { Initialize(); _isAutomaticSnapshotPolicyEnabled!.Assign(value); } + } + private BicepValue? _isAutomaticSnapshotPolicyEnabled; /// /// Versioning is enabled if set to true. /// - public BicepValue IsVersioningEnabled { get => _isVersioningEnabled; set => _isVersioningEnabled.Assign(value); } - private readonly BicepValue _isVersioningEnabled; + public BicepValue IsVersioningEnabled + { + get { Initialize(); return _isVersioningEnabled!; } + set { Initialize(); _isVersioningEnabled!.Assign(value); } + } + private BicepValue? _isVersioningEnabled; /// /// The blob service property to configure last access time based tracking /// policy. /// - public BicepValue LastAccessTimeTrackingPolicy { get => _lastAccessTimeTrackingPolicy; set => _lastAccessTimeTrackingPolicy.Assign(value); } - private readonly BicepValue _lastAccessTimeTrackingPolicy; + public LastAccessTimeTrackingPolicy LastAccessTimeTrackingPolicy + { + get { Initialize(); return _lastAccessTimeTrackingPolicy!; } + set { Initialize(); AssignOrReplace(ref _lastAccessTimeTrackingPolicy, value); } + } + private LastAccessTimeTrackingPolicy? _lastAccessTimeTrackingPolicy; /// /// The blob service properties for blob restore policy. /// - public BicepValue RestorePolicy { get => _restorePolicy; set => _restorePolicy.Assign(value); } - private readonly BicepValue _restorePolicy; + public RestorePolicy RestorePolicy + { + get { Initialize(); return _restorePolicy!; } + set { Initialize(); AssignOrReplace(ref _restorePolicy, value); } + } + private RestorePolicy? _restorePolicy; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Sku name and tier. /// - public BicepValue Sku { get => _sku; } - private readonly BicepValue _sku; + public StorageSku Sku + { + get { Initialize(); return _sku!; } + } + private StorageSku? _sku; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StorageAccount. /// - public StorageAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StorageAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Get the default value for the Name property. @@ -121,20 +170,27 @@ public partial class BlobService : ProvisionableResource public BlobService(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/blobServices", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], defaultValue: GetNameDefaultValue()); - _changeFeed = BicepValue.DefineProperty(this, "ChangeFeed", ["properties", "changeFeed"]); - _containerDeleteRetentionPolicy = BicepValue.DefineProperty(this, "ContainerDeleteRetentionPolicy", ["properties", "containerDeleteRetentionPolicy"]); - _corsRules = BicepList.DefineProperty(this, "CorsRules", ["properties", "cors", "corsRules"]); - _defaultServiceVersion = BicepValue.DefineProperty(this, "DefaultServiceVersion", ["properties", "defaultServiceVersion"]); - _deleteRetentionPolicy = BicepValue.DefineProperty(this, "DeleteRetentionPolicy", ["properties", "deleteRetentionPolicy"]); - _isAutomaticSnapshotPolicyEnabled = BicepValue.DefineProperty(this, "IsAutomaticSnapshotPolicyEnabled", ["properties", "automaticSnapshotPolicyEnabled"]); - _isVersioningEnabled = BicepValue.DefineProperty(this, "IsVersioningEnabled", ["properties", "isVersioningEnabled"]); - _lastAccessTimeTrackingPolicy = BicepValue.DefineProperty(this, "LastAccessTimeTrackingPolicy", ["properties", "lastAccessTimeTrackingPolicy"]); - _restorePolicy = BicepValue.DefineProperty(this, "RestorePolicy", ["properties", "restorePolicy"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of BlobService. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], defaultValue: GetNameDefaultValue()); + _changeFeed = DefineModelProperty("ChangeFeed", ["properties", "changeFeed"]); + _containerDeleteRetentionPolicy = DefineModelProperty("ContainerDeleteRetentionPolicy", ["properties", "containerDeleteRetentionPolicy"]); + _corsRules = DefineListProperty("CorsRules", ["properties", "cors", "corsRules"]); + _defaultServiceVersion = DefineProperty("DefaultServiceVersion", ["properties", "defaultServiceVersion"]); + _deleteRetentionPolicy = DefineModelProperty("DeleteRetentionPolicy", ["properties", "deleteRetentionPolicy"]); + _isAutomaticSnapshotPolicyEnabled = DefineProperty("IsAutomaticSnapshotPolicyEnabled", ["properties", "automaticSnapshotPolicyEnabled"]); + _isVersioningEnabled = DefineProperty("IsVersioningEnabled", ["properties", "isVersioningEnabled"]); + _lastAccessTimeTrackingPolicy = DefineModelProperty("LastAccessTimeTrackingPolicy", ["properties", "lastAccessTimeTrackingPolicy"]); + _restorePolicy = DefineModelProperty("RestorePolicy", ["properties", "restorePolicy"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _sku = DefineModelProperty("Sku", ["sku"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/EncryptionScope.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/EncryptionScope.cs index b9c2535e4accd..a75af105c980c 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/EncryptionScope.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/EncryptionScope.cs @@ -24,67 +24,103 @@ public partial class EncryptionScope : ProvisionableResource /// character must be immediately preceded and followed by a letter or /// number. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The key vault properties for the encryption scope. This is a required /// field if encryption scope 'source' attribute is set to /// 'Microsoft.KeyVault'. /// - public BicepValue KeyVaultProperties { get => _keyVaultProperties; set => _keyVaultProperties.Assign(value); } - private readonly BicepValue _keyVaultProperties; + public EncryptionScopeKeyVaultProperties KeyVaultProperties + { + get { Initialize(); return _keyVaultProperties!; } + set { Initialize(); AssignOrReplace(ref _keyVaultProperties, value); } + } + private EncryptionScopeKeyVaultProperties? _keyVaultProperties; /// /// A boolean indicating whether or not the service applies a secondary /// layer of encryption with platform managed keys for data at rest. /// - public BicepValue RequireInfrastructureEncryption { get => _requireInfrastructureEncryption; set => _requireInfrastructureEncryption.Assign(value); } - private readonly BicepValue _requireInfrastructureEncryption; + public BicepValue RequireInfrastructureEncryption + { + get { Initialize(); return _requireInfrastructureEncryption!; } + set { Initialize(); _requireInfrastructureEncryption!.Assign(value); } + } + private BicepValue? _requireInfrastructureEncryption; /// /// The provider for the encryption scope. Possible values /// (case-insensitive): Microsoft.Storage, Microsoft.KeyVault. /// - public BicepValue Source { get => _source; set => _source.Assign(value); } - private readonly BicepValue _source; + public BicepValue Source + { + get { Initialize(); return _source!; } + set { Initialize(); _source!.Assign(value); } + } + private BicepValue? _source; /// /// The state of the encryption scope. Possible values (case-insensitive): /// Enabled, Disabled. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Gets the creation date and time of the encryption scope in UTC. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the last modification date and time of the encryption scope in UTC. /// - public BicepValue LastModifiedOn { get => _lastModifiedOn; } - private readonly BicepValue _lastModifiedOn; + public BicepValue LastModifiedOn + { + get { Initialize(); return _lastModifiedOn!; } + } + private BicepValue? _lastModifiedOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StorageAccount. /// - public StorageAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StorageAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new EncryptionScope. @@ -99,16 +135,23 @@ public partial class EncryptionScope : ProvisionableResource public EncryptionScope(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/encryptionScopes", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _keyVaultProperties = BicepValue.DefineProperty(this, "KeyVaultProperties", ["properties", "keyVaultProperties"]); - _requireInfrastructureEncryption = BicepValue.DefineProperty(this, "RequireInfrastructureEncryption", ["properties", "requireInfrastructureEncryption"]); - _source = BicepValue.DefineProperty(this, "Source", ["properties", "source"]); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"]); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _lastModifiedOn = BicepValue.DefineProperty(this, "LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of EncryptionScope. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _keyVaultProperties = DefineModelProperty("KeyVaultProperties", ["properties", "keyVaultProperties"]); + _requireInfrastructureEncryption = DefineProperty("RequireInfrastructureEncryption", ["properties", "requireInfrastructureEncryption"]); + _source = DefineProperty("Source", ["properties", "source"]); + _state = DefineProperty("State", ["properties", "state"]); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _lastModifiedOn = DefineProperty("LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/FileService.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/FileService.cs index e7f2563c7ff96..11ddf66adb32f 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/FileService.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/FileService.cs @@ -18,50 +18,75 @@ namespace Azure.Provisioning.Storage; /// public partial class FileService : ProvisionableResource { - private readonly BicepValue _name; + private BicepValue? _name; /// /// The List of CORS rules. You can include up to five CorsRule elements in /// the request. /// - public BicepList CorsRules { get => _corsRules; set => _corsRules.Assign(value); } - private readonly BicepList _corsRules; + public BicepList CorsRules + { + get { Initialize(); return _corsRules!; } + set { Initialize(); _corsRules!.Assign(value); } + } + private BicepList? _corsRules; /// /// Setting for SMB protocol. /// - public BicepValue ProtocolSmbSetting { get => _protocolSmbSetting; set => _protocolSmbSetting.Assign(value); } - private readonly BicepValue _protocolSmbSetting; + public SmbSetting ProtocolSmbSetting + { + get { Initialize(); return _protocolSmbSetting!; } + set { Initialize(); AssignOrReplace(ref _protocolSmbSetting, value); } + } + private SmbSetting? _protocolSmbSetting; /// /// The file service properties for share soft delete. /// - public BicepValue ShareDeleteRetentionPolicy { get => _shareDeleteRetentionPolicy; set => _shareDeleteRetentionPolicy.Assign(value); } - private readonly BicepValue _shareDeleteRetentionPolicy; + public DeleteRetentionPolicy ShareDeleteRetentionPolicy + { + get { Initialize(); return _shareDeleteRetentionPolicy!; } + set { Initialize(); AssignOrReplace(ref _shareDeleteRetentionPolicy, value); } + } + private DeleteRetentionPolicy? _shareDeleteRetentionPolicy; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Sku name and tier. /// - public BicepValue Sku { get => _sku; } - private readonly BicepValue _sku; + public StorageSku Sku + { + get { Initialize(); return _sku!; } + } + private StorageSku? _sku; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StorageAccount. /// - public StorageAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StorageAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Get the default value for the Name property. @@ -81,14 +106,21 @@ public partial class FileService : ProvisionableResource public FileService(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/fileServices", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], defaultValue: GetNameDefaultValue()); - _corsRules = BicepList.DefineProperty(this, "CorsRules", ["properties", "cors", "corsRules"]); - _protocolSmbSetting = BicepValue.DefineProperty(this, "ProtocolSmbSetting", ["properties", "protocolSettings", "smb"]); - _shareDeleteRetentionPolicy = BicepValue.DefineProperty(this, "ShareDeleteRetentionPolicy", ["properties", "shareDeleteRetentionPolicy"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of FileService. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], defaultValue: GetNameDefaultValue()); + _corsRules = DefineListProperty("CorsRules", ["properties", "cors", "corsRules"]); + _protocolSmbSetting = DefineModelProperty("ProtocolSmbSetting", ["properties", "protocolSettings", "smb"]); + _shareDeleteRetentionPolicy = DefineModelProperty("ShareDeleteRetentionPolicy", ["properties", "shareDeleteRetentionPolicy"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _sku = DefineModelProperty("Sku", ["sku"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/FileShare.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/FileShare.cs index c2854c466ad8b..a17ecb099a1aa 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/FileShare.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/FileShare.cs @@ -27,148 +27,225 @@ public partial class FileShare : ProvisionableResource /// character must be immediately preceded and followed by a letter or /// number. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Access tier for specific share. GpV2 account can choose between /// TransactionOptimized (default), Hot, and Cool. FileStorage account can /// choose Premium. /// - public BicepValue AccessTier { get => _accessTier; set => _accessTier.Assign(value); } - private readonly BicepValue _accessTier; + public BicepValue AccessTier + { + get { Initialize(); return _accessTier!; } + set { Initialize(); _accessTier!.Assign(value); } + } + private BicepValue? _accessTier; /// /// The authentication protocol that is used for the file share. Can only /// be specified when creating a share. /// - public BicepValue EnabledProtocol { get => _enabledProtocol; set => _enabledProtocol.Assign(value); } - private readonly BicepValue _enabledProtocol; + public BicepValue EnabledProtocol + { + get { Initialize(); return _enabledProtocol!; } + set { Initialize(); _enabledProtocol!.Assign(value); } + } + private BicepValue? _enabledProtocol; /// /// A name-value pair to associate with the share as metadata. /// - public BicepDictionary Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepDictionary _metadata; + public BicepDictionary Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepDictionary? _metadata; /// /// The property is for NFS share only. The default is NoRootSquash. /// - public BicepValue RootSquash { get => _rootSquash; set => _rootSquash.Assign(value); } - private readonly BicepValue _rootSquash; + public BicepValue RootSquash + { + get { Initialize(); return _rootSquash!; } + set { Initialize(); _rootSquash!.Assign(value); } + } + private BicepValue? _rootSquash; /// /// The maximum size of the share, in gigabytes. Must be greater than 0, /// and less than or equal to 5TB (5120). For Large File Shares, the /// maximum size is 102400. /// - public BicepValue ShareQuota { get => _shareQuota; set => _shareQuota.Assign(value); } - private readonly BicepValue _shareQuota; + public BicepValue ShareQuota + { + get { Initialize(); return _shareQuota!; } + set { Initialize(); _shareQuota!.Assign(value); } + } + private BicepValue? _shareQuota; /// /// List of stored access policies specified on the share. /// - public BicepList SignedIdentifiers { get => _signedIdentifiers; set => _signedIdentifiers.Assign(value); } - private readonly BicepList _signedIdentifiers; + public BicepList SignedIdentifiers + { + get { Initialize(); return _signedIdentifiers!; } + set { Initialize(); _signedIdentifiers!.Assign(value); } + } + private BicepList? _signedIdentifiers; /// /// Indicates the last modification time for share access tier. /// - public BicepValue AccessTierChangeOn { get => _accessTierChangeOn; } - private readonly BicepValue _accessTierChangeOn; + public BicepValue AccessTierChangeOn + { + get { Initialize(); return _accessTierChangeOn!; } + } + private BicepValue? _accessTierChangeOn; /// /// Indicates if there is a pending transition for access tier. /// - public BicepValue AccessTierStatus { get => _accessTierStatus; } - private readonly BicepValue _accessTierStatus; + public BicepValue AccessTierStatus + { + get { Initialize(); return _accessTierStatus!; } + } + private BicepValue? _accessTierStatus; /// /// The deleted time if the share was deleted. /// - public BicepValue DeletedOn { get => _deletedOn; } - private readonly BicepValue _deletedOn; + public BicepValue DeletedOn + { + get { Initialize(); return _deletedOn!; } + } + private BicepValue? _deletedOn; /// /// Resource Etag. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Indicates whether the share was deleted. /// - public BicepValue IsDeleted { get => _isDeleted; } - private readonly BicepValue _isDeleted; + public BicepValue IsDeleted + { + get { Initialize(); return _isDeleted!; } + } + private BicepValue? _isDeleted; /// /// Returns the date and time the share was last modified. /// - public BicepValue LastModifiedOn { get => _lastModifiedOn; } - private readonly BicepValue _lastModifiedOn; + public BicepValue LastModifiedOn + { + get { Initialize(); return _lastModifiedOn!; } + } + private BicepValue? _lastModifiedOn; /// /// Specifies whether the lease on a share is of infinite or fixed /// duration, only when the share is leased. /// - public BicepValue LeaseDuration { get => _leaseDuration; } - private readonly BicepValue _leaseDuration; + public BicepValue LeaseDuration + { + get { Initialize(); return _leaseDuration!; } + } + private BicepValue? _leaseDuration; /// /// Lease state of the share. /// - public BicepValue LeaseState { get => _leaseState; } - private readonly BicepValue _leaseState; + public BicepValue LeaseState + { + get { Initialize(); return _leaseState!; } + } + private BicepValue? _leaseState; /// /// The lease status of the share. /// - public BicepValue LeaseStatus { get => _leaseStatus; } - private readonly BicepValue _leaseStatus; + public BicepValue LeaseStatus + { + get { Initialize(); return _leaseStatus!; } + } + private BicepValue? _leaseStatus; /// /// Remaining retention days for share that was soft deleted. /// - public BicepValue RemainingRetentionDays { get => _remainingRetentionDays; } - private readonly BicepValue _remainingRetentionDays; + public BicepValue RemainingRetentionDays + { + get { Initialize(); return _remainingRetentionDays!; } + } + private BicepValue? _remainingRetentionDays; /// /// The approximate size of the data stored on the share. Note that this /// value may not include all recently created or recently resized files. /// - public BicepValue ShareUsageBytes { get => _shareUsageBytes; } - private readonly BicepValue _shareUsageBytes; + public BicepValue ShareUsageBytes + { + get { Initialize(); return _shareUsageBytes!; } + } + private BicepValue? _shareUsageBytes; /// /// Creation time of share snapshot returned in the response of list shares /// with expand param "snapshots". /// - public BicepValue SnapshotOn { get => _snapshotOn; } - private readonly BicepValue _snapshotOn; + public BicepValue SnapshotOn + { + get { Initialize(); return _snapshotOn!; } + } + private BicepValue? _snapshotOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The version of the share. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// Gets or sets a reference to the parent FileService. /// - public FileService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public FileService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new FileShare. @@ -183,29 +260,36 @@ public partial class FileShare : ProvisionableResource public FileShare(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/fileServices/shares", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _accessTier = BicepValue.DefineProperty(this, "AccessTier", ["properties", "accessTier"]); - _enabledProtocol = BicepValue.DefineProperty(this, "EnabledProtocol", ["properties", "enabledProtocols"]); - _metadata = BicepDictionary.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _rootSquash = BicepValue.DefineProperty(this, "RootSquash", ["properties", "rootSquash"]); - _shareQuota = BicepValue.DefineProperty(this, "ShareQuota", ["properties", "shareQuota"]); - _signedIdentifiers = BicepList.DefineProperty(this, "SignedIdentifiers", ["properties", "signedIdentifiers"]); - _accessTierChangeOn = BicepValue.DefineProperty(this, "AccessTierChangeOn", ["properties", "accessTierChangeTime"], isOutput: true); - _accessTierStatus = BicepValue.DefineProperty(this, "AccessTierStatus", ["properties", "accessTierStatus"], isOutput: true); - _deletedOn = BicepValue.DefineProperty(this, "DeletedOn", ["properties", "deletedTime"], isOutput: true); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isDeleted = BicepValue.DefineProperty(this, "IsDeleted", ["properties", "deleted"], isOutput: true); - _lastModifiedOn = BicepValue.DefineProperty(this, "LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); - _leaseDuration = BicepValue.DefineProperty(this, "LeaseDuration", ["properties", "leaseDuration"], isOutput: true); - _leaseState = BicepValue.DefineProperty(this, "LeaseState", ["properties", "leaseState"], isOutput: true); - _leaseStatus = BicepValue.DefineProperty(this, "LeaseStatus", ["properties", "leaseStatus"], isOutput: true); - _remainingRetentionDays = BicepValue.DefineProperty(this, "RemainingRetentionDays", ["properties", "remainingRetentionDays"], isOutput: true); - _shareUsageBytes = BicepValue.DefineProperty(this, "ShareUsageBytes", ["properties", "shareUsageBytes"], isOutput: true); - _snapshotOn = BicepValue.DefineProperty(this, "SnapshotOn", ["properties", "snapshotTime"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of FileShare. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _accessTier = DefineProperty("AccessTier", ["properties", "accessTier"]); + _enabledProtocol = DefineProperty("EnabledProtocol", ["properties", "enabledProtocols"]); + _metadata = DefineDictionaryProperty("Metadata", ["properties", "metadata"]); + _rootSquash = DefineProperty("RootSquash", ["properties", "rootSquash"]); + _shareQuota = DefineProperty("ShareQuota", ["properties", "shareQuota"]); + _signedIdentifiers = DefineListProperty("SignedIdentifiers", ["properties", "signedIdentifiers"]); + _accessTierChangeOn = DefineProperty("AccessTierChangeOn", ["properties", "accessTierChangeTime"], isOutput: true); + _accessTierStatus = DefineProperty("AccessTierStatus", ["properties", "accessTierStatus"], isOutput: true); + _deletedOn = DefineProperty("DeletedOn", ["properties", "deletedTime"], isOutput: true); + _eTag = DefineProperty("ETag", ["etag"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isDeleted = DefineProperty("IsDeleted", ["properties", "deleted"], isOutput: true); + _lastModifiedOn = DefineProperty("LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); + _leaseDuration = DefineProperty("LeaseDuration", ["properties", "leaseDuration"], isOutput: true); + _leaseState = DefineProperty("LeaseState", ["properties", "leaseState"], isOutput: true); + _leaseStatus = DefineProperty("LeaseStatus", ["properties", "leaseStatus"], isOutput: true); + _remainingRetentionDays = DefineProperty("RemainingRetentionDays", ["properties", "remainingRetentionDays"], isOutput: true); + _shareUsageBytes = DefineProperty("ShareUsageBytes", ["properties", "shareUsageBytes"], isOutput: true); + _snapshotOn = DefineProperty("SnapshotOn", ["properties", "snapshotTime"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _version = DefineProperty("Version", ["properties", "version"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/ImmutabilityPolicy.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/ImmutabilityPolicy.cs index 647087dc18e2b..ff69144cbcf86 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/ImmutabilityPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/ImmutabilityPolicy.cs @@ -21,8 +21,11 @@ public partial class ImmutabilityPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// This property can only be changed for unlocked time-based retention @@ -32,8 +35,12 @@ public partial class ImmutabilityPolicy : ProvisionableResource /// deleted. This property cannot be changed with ExtendImmutabilityPolicy /// API. /// - public BicepValue AllowProtectedAppendWrites { get => _allowProtectedAppendWrites; set => _allowProtectedAppendWrites.Assign(value); } - private readonly BicepValue _allowProtectedAppendWrites; + public BicepValue AllowProtectedAppendWrites + { + get { Initialize(); return _allowProtectedAppendWrites!; } + set { Initialize(); _allowProtectedAppendWrites!.Assign(value); } + } + private BicepValue? _allowProtectedAppendWrites; /// /// This property can only be changed for unlocked time-based retention @@ -46,46 +53,70 @@ public partial class ImmutabilityPolicy : ProvisionableResource /// 'allowProtectedAppendWritesAll' properties are mutually /// exclusive. /// - public BicepValue AllowProtectedAppendWritesAll { get => _allowProtectedAppendWritesAll; set => _allowProtectedAppendWritesAll.Assign(value); } - private readonly BicepValue _allowProtectedAppendWritesAll; + public BicepValue AllowProtectedAppendWritesAll + { + get { Initialize(); return _allowProtectedAppendWritesAll!; } + set { Initialize(); _allowProtectedAppendWritesAll!.Assign(value); } + } + private BicepValue? _allowProtectedAppendWritesAll; /// /// The immutability period for the blobs in the container since the policy /// creation, in days. /// - public BicepValue ImmutabilityPeriodSinceCreationInDays { get => _immutabilityPeriodSinceCreationInDays; set => _immutabilityPeriodSinceCreationInDays.Assign(value); } - private readonly BicepValue _immutabilityPeriodSinceCreationInDays; + public BicepValue ImmutabilityPeriodSinceCreationInDays + { + get { Initialize(); return _immutabilityPeriodSinceCreationInDays!; } + set { Initialize(); _immutabilityPeriodSinceCreationInDays!.Assign(value); } + } + private BicepValue? _immutabilityPeriodSinceCreationInDays; /// /// Resource Etag. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The ImmutabilityPolicy state of a blob container, possible values /// include: Locked and Unlocked. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent BlobContainer. /// - public BlobContainer? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public BlobContainer? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ImmutabilityPolicy. @@ -100,15 +131,22 @@ public partial class ImmutabilityPolicy : ProvisionableResource public ImmutabilityPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _allowProtectedAppendWrites = BicepValue.DefineProperty(this, "AllowProtectedAppendWrites", ["properties", "allowProtectedAppendWrites"]); - _allowProtectedAppendWritesAll = BicepValue.DefineProperty(this, "AllowProtectedAppendWritesAll", ["properties", "allowProtectedAppendWritesAll"]); - _immutabilityPeriodSinceCreationInDays = BicepValue.DefineProperty(this, "ImmutabilityPeriodSinceCreationInDays", ["properties", "immutabilityPeriodSinceCreationInDays"]); - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ImmutabilityPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _allowProtectedAppendWrites = DefineProperty("AllowProtectedAppendWrites", ["properties", "allowProtectedAppendWrites"]); + _allowProtectedAppendWritesAll = DefineProperty("AllowProtectedAppendWritesAll", ["properties", "allowProtectedAppendWritesAll"]); + _immutabilityPeriodSinceCreationInDays = DefineProperty("ImmutabilityPeriodSinceCreationInDays", ["properties", "immutabilityPeriodSinceCreationInDays"]); + _eTag = DefineProperty("ETag", ["etag"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/AccountImmutabilityPolicy.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/AccountImmutabilityPolicy.cs index 927c1660368fc..403a6d32fedb9 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/AccountImmutabilityPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/AccountImmutabilityPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,8 +19,12 @@ public partial class AccountImmutabilityPolicy : ProvisionableConstruct /// The immutability period for the blobs in the container since the policy /// creation, in days. /// - public BicepValue ImmutabilityPeriodSinceCreationInDays { get => _immutabilityPeriodSinceCreationInDays; set => _immutabilityPeriodSinceCreationInDays.Assign(value); } - private readonly BicepValue _immutabilityPeriodSinceCreationInDays; + public BicepValue ImmutabilityPeriodSinceCreationInDays + { + get { Initialize(); return _immutabilityPeriodSinceCreationInDays!; } + set { Initialize(); _immutabilityPeriodSinceCreationInDays!.Assign(value); } + } + private BicepValue? _immutabilityPeriodSinceCreationInDays; /// /// The ImmutabilityPolicy state defines the mode of the policy. Disabled @@ -30,8 +36,12 @@ public partial class AccountImmutabilityPolicy : ProvisionableConstruct /// two states. Only a policy in an Unlocked state can transition to a /// Locked state which cannot be reverted. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// This property can only be changed for disabled and unlocked time-based @@ -40,16 +50,28 @@ public partial class AccountImmutabilityPolicy : ProvisionableConstruct /// Only new blocks can be added and any existing blocks cannot be /// modified or deleted. /// - public BicepValue AllowProtectedAppendWrites { get => _allowProtectedAppendWrites; set => _allowProtectedAppendWrites.Assign(value); } - private readonly BicepValue _allowProtectedAppendWrites; + public BicepValue AllowProtectedAppendWrites + { + get { Initialize(); return _allowProtectedAppendWrites!; } + set { Initialize(); _allowProtectedAppendWrites!.Assign(value); } + } + private BicepValue? _allowProtectedAppendWrites; /// /// Creates a new AccountImmutabilityPolicy. /// public AccountImmutabilityPolicy() { - _immutabilityPeriodSinceCreationInDays = BicepValue.DefineProperty(this, "ImmutabilityPeriodSinceCreationInDays", ["immutabilityPeriodSinceCreationInDays"]); - _state = BicepValue.DefineProperty(this, "State", ["state"]); - _allowProtectedAppendWrites = BicepValue.DefineProperty(this, "AllowProtectedAppendWrites", ["allowProtectedAppendWrites"]); + } + + /// + /// Define all the provisionable properties of AccountImmutabilityPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _immutabilityPeriodSinceCreationInDays = DefineProperty("ImmutabilityPeriodSinceCreationInDays", ["immutabilityPeriodSinceCreationInDays"]); + _state = DefineProperty("State", ["state"]); + _allowProtectedAppendWrites = DefineProperty("AllowProtectedAppendWrites", ["allowProtectedAppendWrites"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobContainerImmutabilityPolicy.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobContainerImmutabilityPolicy.cs index e55da356e5c05..79f4aad38268a 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobContainerImmutabilityPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobContainerImmutabilityPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,28 +20,40 @@ public partial class BlobContainerImmutabilityPolicy : ProvisionableConstruct /// /// ImmutabilityPolicy Etag. /// - public BicepValue ETag { get => _eTag; } - private readonly BicepValue _eTag; + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; /// /// The ImmutabilityPolicy update history of the blob container. /// - public BicepList UpdateHistory { get => _updateHistory; } - private readonly BicepList _updateHistory; + public BicepList UpdateHistory + { + get { Initialize(); return _updateHistory!; } + } + private BicepList? _updateHistory; /// /// The immutability period for the blobs in the container since the policy /// creation, in days. /// - public BicepValue ImmutabilityPeriodSinceCreationInDays { get => _immutabilityPeriodSinceCreationInDays; } - private readonly BicepValue _immutabilityPeriodSinceCreationInDays; + public BicepValue ImmutabilityPeriodSinceCreationInDays + { + get { Initialize(); return _immutabilityPeriodSinceCreationInDays!; } + } + private BicepValue? _immutabilityPeriodSinceCreationInDays; /// /// The ImmutabilityPolicy state of a blob container, possible values /// include: Locked and Unlocked. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// This property can only be changed for unlocked time-based retention @@ -49,8 +63,11 @@ public partial class BlobContainerImmutabilityPolicy : ProvisionableConstruct /// deleted. This property cannot be changed with ExtendImmutabilityPolicy /// API. /// - public BicepValue AllowProtectedAppendWrites { get => _allowProtectedAppendWrites; } - private readonly BicepValue _allowProtectedAppendWrites; + public BicepValue AllowProtectedAppendWrites + { + get { Initialize(); return _allowProtectedAppendWrites!; } + } + private BicepValue? _allowProtectedAppendWrites; /// /// This property can only be changed for unlocked time-based retention @@ -63,19 +80,31 @@ public partial class BlobContainerImmutabilityPolicy : ProvisionableConstruct /// 'allowProtectedAppendWritesAll' properties are mutually /// exclusive. /// - public BicepValue AllowProtectedAppendWritesAll { get => _allowProtectedAppendWritesAll; } - private readonly BicepValue _allowProtectedAppendWritesAll; + public BicepValue AllowProtectedAppendWritesAll + { + get { Initialize(); return _allowProtectedAppendWritesAll!; } + } + private BicepValue? _allowProtectedAppendWritesAll; /// /// Creates a new BlobContainerImmutabilityPolicy. /// public BlobContainerImmutabilityPolicy() { - _eTag = BicepValue.DefineProperty(this, "ETag", ["etag"], isOutput: true); - _updateHistory = BicepList.DefineProperty(this, "UpdateHistory", ["updateHistory"], isOutput: true); - _immutabilityPeriodSinceCreationInDays = BicepValue.DefineProperty(this, "ImmutabilityPeriodSinceCreationInDays", ["properties", "immutabilityPeriodSinceCreationInDays"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _allowProtectedAppendWrites = BicepValue.DefineProperty(this, "AllowProtectedAppendWrites", ["properties", "allowProtectedAppendWrites"], isOutput: true); - _allowProtectedAppendWritesAll = BicepValue.DefineProperty(this, "AllowProtectedAppendWritesAll", ["properties", "allowProtectedAppendWritesAll"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// BlobContainerImmutabilityPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _eTag = DefineProperty("ETag", ["etag"], isOutput: true); + _updateHistory = DefineListProperty("UpdateHistory", ["updateHistory"], isOutput: true); + _immutabilityPeriodSinceCreationInDays = DefineProperty("ImmutabilityPeriodSinceCreationInDays", ["properties", "immutabilityPeriodSinceCreationInDays"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _allowProtectedAppendWrites = DefineProperty("AllowProtectedAppendWrites", ["properties", "allowProtectedAppendWrites"], isOutput: true); + _allowProtectedAppendWritesAll = DefineProperty("AllowProtectedAppendWritesAll", ["properties", "allowProtectedAppendWritesAll"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicyDefinition.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicyDefinition.cs index c96799e73a3e5..f2bac1583d26a 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicyDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicyDefinition.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,45 @@ public partial class BlobInventoryPolicyDefinition : ProvisionableConstruct /// /// An object that defines the filter set. /// - public BicepValue Filters { get => _filters; set => _filters.Assign(value); } - private readonly BicepValue _filters; + public BlobInventoryPolicyFilter Filters + { + get { Initialize(); return _filters!; } + set { Initialize(); AssignOrReplace(ref _filters, value); } + } + private BlobInventoryPolicyFilter? _filters; /// /// This is a required field, it specifies the format for the inventory /// files. /// - public BicepValue Format { get => _format; set => _format.Assign(value); } - private readonly BicepValue _format; + public BicepValue Format + { + get { Initialize(); return _format!; } + set { Initialize(); _format!.Assign(value); } + } + private BicepValue? _format; /// /// This is a required field. This field is used to schedule an inventory /// formation. /// - public BicepValue Schedule { get => _schedule; set => _schedule.Assign(value); } - private readonly BicepValue _schedule; + public BicepValue Schedule + { + get { Initialize(); return _schedule!; } + set { Initialize(); _schedule!.Assign(value); } + } + private BicepValue? _schedule; /// /// This is a required field. This field specifies the scope of the /// inventory created either at the blob or container level. /// - public BicepValue ObjectType { get => _objectType; set => _objectType.Assign(value); } - private readonly BicepValue _objectType; + public BicepValue ObjectType + { + get { Initialize(); return _objectType!; } + set { Initialize(); _objectType!.Assign(value); } + } + private BicepValue? _objectType; /// /// This is a required field. This field specifies the fields and @@ -70,18 +88,31 @@ public partial class BlobInventoryPolicyDefinition : ProvisionableConstruct /// valid only for Hns enabled accounts.Schema field values 'Tags, /// TagCount' are only valid for Non-Hns accounts. /// - public BicepList SchemaFields { get => _schemaFields; set => _schemaFields.Assign(value); } - private readonly BicepList _schemaFields; + public BicepList SchemaFields + { + get { Initialize(); return _schemaFields!; } + set { Initialize(); _schemaFields!.Assign(value); } + } + private BicepList? _schemaFields; /// /// Creates a new BlobInventoryPolicyDefinition. /// public BlobInventoryPolicyDefinition() { - _filters = BicepValue.DefineProperty(this, "Filters", ["filters"]); - _format = BicepValue.DefineProperty(this, "Format", ["format"]); - _schedule = BicepValue.DefineProperty(this, "Schedule", ["schedule"]); - _objectType = BicepValue.DefineProperty(this, "ObjectType", ["objectType"]); - _schemaFields = BicepList.DefineProperty(this, "SchemaFields", ["schemaFields"]); + } + + /// + /// Define all the provisionable properties of + /// BlobInventoryPolicyDefinition. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _filters = DefineModelProperty("Filters", ["filters"]); + _format = DefineProperty("Format", ["format"]); + _schedule = DefineProperty("Schedule", ["schedule"]); + _objectType = DefineProperty("ObjectType", ["objectType"]); + _schemaFields = DefineListProperty("SchemaFields", ["schemaFields"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicyFilter.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicyFilter.cs index 59bdf59031188..612a735977f3e 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicyFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicyFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -22,15 +24,23 @@ public partial class BlobInventoryPolicyFilter : ProvisionableConstruct /// An array of strings with maximum 10 blob prefixes to be included in the /// inventory. /// - public BicepList IncludePrefix { get => _includePrefix; set => _includePrefix.Assign(value); } - private readonly BicepList _includePrefix; + public BicepList IncludePrefix + { + get { Initialize(); return _includePrefix!; } + set { Initialize(); _includePrefix!.Assign(value); } + } + private BicepList? _includePrefix; /// /// An array of strings with maximum 10 blob prefixes to be excluded from /// the inventory. /// - public BicepList ExcludePrefix { get => _excludePrefix; set => _excludePrefix.Assign(value); } - private readonly BicepList _excludePrefix; + public BicepList ExcludePrefix + { + get { Initialize(); return _excludePrefix!; } + set { Initialize(); _excludePrefix!.Assign(value); } + } + private BicepList? _excludePrefix; /// /// An array of predefined enum values. Valid values include blockBlob, @@ -38,8 +48,12 @@ public partial class BlobInventoryPolicyFilter : ProvisionableConstruct /// field is required when definition.objectType property is set to /// 'Blob'. /// - public BicepList BlobTypes { get => _blobTypes; set => _blobTypes.Assign(value); } - private readonly BicepList _blobTypes; + public BicepList BlobTypes + { + get { Initialize(); return _blobTypes!; } + set { Initialize(); _blobTypes!.Assign(value); } + } + private BicepList? _blobTypes; /// /// Includes blob versions in blob inventory when value is set to true. The @@ -47,16 +61,24 @@ public partial class BlobInventoryPolicyFilter : ProvisionableConstruct /// IsCurrentVersion' are required if this property is set to true, /// else they must be excluded. /// - public BicepValue IncludeBlobVersions { get => _includeBlobVersions; set => _includeBlobVersions.Assign(value); } - private readonly BicepValue _includeBlobVersions; + public BicepValue IncludeBlobVersions + { + get { Initialize(); return _includeBlobVersions!; } + set { Initialize(); _includeBlobVersions!.Assign(value); } + } + private BicepValue? _includeBlobVersions; /// /// Includes blob snapshots in blob inventory when value is set to true. /// The definition.schemaFields value 'Snapshot' is required if /// this property is set to true, else it must be excluded. /// - public BicepValue IncludeSnapshots { get => _includeSnapshots; set => _includeSnapshots.Assign(value); } - private readonly BicepValue _includeSnapshots; + public BicepValue IncludeSnapshots + { + get { Initialize(); return _includeSnapshots!; } + set { Initialize(); _includeSnapshots!.Assign(value); } + } + private BicepValue? _includeSnapshots; /// /// For 'Container' definition.objectType the @@ -68,19 +90,31 @@ public partial class BlobInventoryPolicyFilter : ProvisionableConstruct /// accounts the definition.schemaFields must include 'Deleted and /// RemainingRetentionDays', else it must be excluded. /// - public BicepValue IncludeDeleted { get => _includeDeleted; set => _includeDeleted.Assign(value); } - private readonly BicepValue _includeDeleted; + public BicepValue IncludeDeleted + { + get { Initialize(); return _includeDeleted!; } + set { Initialize(); _includeDeleted!.Assign(value); } + } + private BicepValue? _includeDeleted; /// /// Creates a new BlobInventoryPolicyFilter. /// public BlobInventoryPolicyFilter() { - _includePrefix = BicepList.DefineProperty(this, "IncludePrefix", ["prefixMatch"]); - _excludePrefix = BicepList.DefineProperty(this, "ExcludePrefix", ["excludePrefix"]); - _blobTypes = BicepList.DefineProperty(this, "BlobTypes", ["blobTypes"]); - _includeBlobVersions = BicepValue.DefineProperty(this, "IncludeBlobVersions", ["includeBlobVersions"]); - _includeSnapshots = BicepValue.DefineProperty(this, "IncludeSnapshots", ["includeSnapshots"]); - _includeDeleted = BicepValue.DefineProperty(this, "IncludeDeleted", ["includeDeleted"]); + } + + /// + /// Define all the provisionable properties of BlobInventoryPolicyFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _includePrefix = DefineListProperty("IncludePrefix", ["prefixMatch"]); + _excludePrefix = DefineListProperty("ExcludePrefix", ["excludePrefix"]); + _blobTypes = DefineListProperty("BlobTypes", ["blobTypes"]); + _includeBlobVersions = DefineProperty("IncludeBlobVersions", ["includeBlobVersions"]); + _includeSnapshots = DefineProperty("IncludeSnapshots", ["includeSnapshots"]); + _includeDeleted = DefineProperty("IncludeDeleted", ["includeDeleted"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicyRule.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicyRule.cs index 401df7515fe2d..a030a7e4bc1d8 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicyRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicyRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,37 +20,61 @@ public partial class BlobInventoryPolicyRule : ProvisionableConstruct /// /// Rule is enabled when set to true. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// A rule name can contain any combination of alpha numeric characters. /// Rule name is case-sensitive. It must be unique within a policy. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Container name where blob inventory files are stored. Must be /// pre-created. /// - public BicepValue Destination { get => _destination; set => _destination.Assign(value); } - private readonly BicepValue _destination; + public BicepValue Destination + { + get { Initialize(); return _destination!; } + set { Initialize(); _destination!.Assign(value); } + } + private BicepValue? _destination; /// /// An object that defines the blob inventory policy rule. /// - public BicepValue Definition { get => _definition; set => _definition.Assign(value); } - private readonly BicepValue _definition; + public BlobInventoryPolicyDefinition Definition + { + get { Initialize(); return _definition!; } + set { Initialize(); AssignOrReplace(ref _definition, value); } + } + private BlobInventoryPolicyDefinition? _definition; /// /// Creates a new BlobInventoryPolicyRule. /// public BlobInventoryPolicyRule() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _destination = BicepValue.DefineProperty(this, "Destination", ["destination"]); - _definition = BicepValue.DefineProperty(this, "Definition", ["definition"]); + } + + /// + /// Define all the provisionable properties of BlobInventoryPolicyRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _name = DefineProperty("Name", ["name"]); + _destination = DefineProperty("Destination", ["destination"]); + _definition = DefineModelProperty("Definition", ["definition"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicySchema.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicySchema.cs index f3a40dbbb7691..30b7da2db233b 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicySchema.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobInventoryPolicySchema.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,38 +19,61 @@ public partial class BlobInventoryPolicySchema : ProvisionableConstruct /// /// Policy is enabled if set to true. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Deprecated Property from API version 2021-04-01 onwards, the required /// destination container name must be specified at the rule level /// 'policy.rule.destination'. /// - public BicepValue Destination { get => _destination; } - private readonly BicepValue _destination; + public BicepValue Destination + { + get { Initialize(); return _destination!; } + } + private BicepValue? _destination; /// /// The valid value is Inventory. /// - public BicepValue RuleType { get => _ruleType; set => _ruleType.Assign(value); } - private readonly BicepValue _ruleType; + public BicepValue RuleType + { + get { Initialize(); return _ruleType!; } + set { Initialize(); _ruleType!.Assign(value); } + } + private BicepValue? _ruleType; /// /// The storage account blob inventory policy rules. The rule is applied /// when it is enabled. /// - public BicepList Rules { get => _rules; set => _rules.Assign(value); } - private readonly BicepList _rules; + public BicepList Rules + { + get { Initialize(); return _rules!; } + set { Initialize(); _rules!.Assign(value); } + } + private BicepList? _rules; /// /// Creates a new BlobInventoryPolicySchema. /// public BlobInventoryPolicySchema() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _destination = BicepValue.DefineProperty(this, "Destination", ["destination"], isOutput: true); - _ruleType = BicepValue.DefineProperty(this, "RuleType", ["type"]); - _rules = BicepList.DefineProperty(this, "Rules", ["rules"]); + } + + /// + /// Define all the provisionable properties of BlobInventoryPolicySchema. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _destination = DefineProperty("Destination", ["destination"], isOutput: true); + _ruleType = DefineProperty("RuleType", ["type"]); + _rules = DefineListProperty("Rules", ["rules"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobRestoreContent.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobRestoreContent.cs index 75394cdafe77d..781725b3346f9 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobRestoreContent.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobRestoreContent.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class BlobRestoreContent : ProvisionableConstruct /// /// Restore blob to the specified time. /// - public BicepValue TimeToRestore { get => _timeToRestore; set => _timeToRestore.Assign(value); } - private readonly BicepValue _timeToRestore; + public BicepValue TimeToRestore + { + get { Initialize(); return _timeToRestore!; } + set { Initialize(); _timeToRestore!.Assign(value); } + } + private BicepValue? _timeToRestore; /// /// Blob ranges to restore. /// - public BicepList BlobRanges { get => _blobRanges; set => _blobRanges.Assign(value); } - private readonly BicepList _blobRanges; + public BicepList BlobRanges + { + get { Initialize(); return _blobRanges!; } + set { Initialize(); _blobRanges!.Assign(value); } + } + private BicepList? _blobRanges; /// /// Creates a new BlobRestoreContent. /// public BlobRestoreContent() { - _timeToRestore = BicepValue.DefineProperty(this, "TimeToRestore", ["timetoRestore"]); - _blobRanges = BicepList.DefineProperty(this, "BlobRanges", ["blobRanges"]); + } + + /// + /// Define all the provisionable properties of BlobRestoreContent. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _timeToRestore = DefineProperty("TimeToRestore", ["timetoRestore"]); + _blobRanges = DefineListProperty("BlobRanges", ["blobRanges"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobRestoreRange.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobRestoreRange.cs index f618bcebf36d3..3b5a20408d7ff 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobRestoreRange.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobRestoreRange.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class BlobRestoreRange : ProvisionableConstruct /// /// Blob start range. This is inclusive. Empty means account start. /// - public BicepValue StartRange { get => _startRange; set => _startRange.Assign(value); } - private readonly BicepValue _startRange; + public BicepValue StartRange + { + get { Initialize(); return _startRange!; } + set { Initialize(); _startRange!.Assign(value); } + } + private BicepValue? _startRange; /// /// Blob end range. This is exclusive. Empty means account end. /// - public BicepValue EndRange { get => _endRange; set => _endRange.Assign(value); } - private readonly BicepValue _endRange; + public BicepValue EndRange + { + get { Initialize(); return _endRange!; } + set { Initialize(); _endRange!.Assign(value); } + } + private BicepValue? _endRange; /// /// Creates a new BlobRestoreRange. /// public BlobRestoreRange() { - _startRange = BicepValue.DefineProperty(this, "StartRange", ["startRange"]); - _endRange = BicepValue.DefineProperty(this, "EndRange", ["endRange"]); + } + + /// + /// Define all the provisionable properties of BlobRestoreRange. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _startRange = DefineProperty("StartRange", ["startRange"]); + _endRange = DefineProperty("EndRange", ["endRange"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobRestoreStatus.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobRestoreStatus.cs index 2020c7d5b69dd..42dbd0ec733e9 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobRestoreStatus.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobRestoreStatus.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -20,35 +22,55 @@ public partial class BlobRestoreStatus : ProvisionableConstruct /// blob restore has been completed successfully. - Failed: Indicates that /// blob restore is failed. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Failure reason when blob restore is failed. /// - public BicepValue FailureReason { get => _failureReason; } - private readonly BicepValue _failureReason; + public BicepValue FailureReason + { + get { Initialize(); return _failureReason!; } + } + private BicepValue? _failureReason; /// /// Id for tracking blob restore request. /// - public BicepValue RestoreId { get => _restoreId; } - private readonly BicepValue _restoreId; + public BicepValue RestoreId + { + get { Initialize(); return _restoreId!; } + } + private BicepValue? _restoreId; /// /// Blob restore request parameters. /// - public BicepValue Parameters { get => _parameters; } - private readonly BicepValue _parameters; + public BlobRestoreContent Parameters + { + get { Initialize(); return _parameters!; } + } + private BlobRestoreContent? _parameters; /// /// Creates a new BlobRestoreStatus. /// public BlobRestoreStatus() { - _status = BicepValue.DefineProperty(this, "Status", ["status"], isOutput: true); - _failureReason = BicepValue.DefineProperty(this, "FailureReason", ["failureReason"], isOutput: true); - _restoreId = BicepValue.DefineProperty(this, "RestoreId", ["restoreId"], isOutput: true); - _parameters = BicepValue.DefineProperty(this, "Parameters", ["parameters"], isOutput: true); + } + + /// + /// Define all the provisionable properties of BlobRestoreStatus. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"], isOutput: true); + _failureReason = DefineProperty("FailureReason", ["failureReason"], isOutput: true); + _restoreId = DefineProperty("RestoreId", ["restoreId"], isOutput: true); + _parameters = DefineModelProperty("Parameters", ["parameters"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobServiceChangeFeed.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobServiceChangeFeed.cs index fd03fa3179138..06b542437d375 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobServiceChangeFeed.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/BlobServiceChangeFeed.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,23 +19,39 @@ public partial class BlobServiceChangeFeed : ProvisionableConstruct /// Indicates whether change feed event logging is enabled for the Blob /// service. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Indicates the duration of changeFeed retention in days. Minimum value /// is 1 day and maximum value is 146000 days (400 years). A null value /// indicates an infinite retention of the change feed. /// - public BicepValue RetentionInDays { get => _retentionInDays; set => _retentionInDays.Assign(value); } - private readonly BicepValue _retentionInDays; + public BicepValue RetentionInDays + { + get { Initialize(); return _retentionInDays!; } + set { Initialize(); _retentionInDays!.Assign(value); } + } + private BicepValue? _retentionInDays; /// /// Creates a new BlobServiceChangeFeed. /// public BlobServiceChangeFeed() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _retentionInDays = BicepValue.DefineProperty(this, "RetentionInDays", ["retentionInDays"]); + } + + /// + /// Define all the provisionable properties of BlobServiceChangeFeed. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _retentionInDays = DefineProperty("RetentionInDays", ["retentionInDays"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/DateAfterCreation.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/DateAfterCreation.cs index bcccec0457fd9..6649b78d100c5 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/DateAfterCreation.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/DateAfterCreation.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,8 +18,12 @@ public partial class DateAfterCreation : ProvisionableConstruct /// /// Value indicating the age in days after creation. /// - public BicepValue DaysAfterCreationGreaterThan { get => _daysAfterCreationGreaterThan; set => _daysAfterCreationGreaterThan.Assign(value); } - private readonly BicepValue _daysAfterCreationGreaterThan; + public BicepValue DaysAfterCreationGreaterThan + { + get { Initialize(); return _daysAfterCreationGreaterThan!; } + set { Initialize(); _daysAfterCreationGreaterThan!.Assign(value); } + } + private BicepValue? _daysAfterCreationGreaterThan; /// /// Value indicating the age in days after last blob tier change time. This @@ -26,15 +32,27 @@ public partial class DateAfterCreation : ProvisionableConstruct /// based actions. The blob will be archived if both the conditions are /// satisfied. /// - public BicepValue DaysAfterLastTierChangeGreaterThan { get => _daysAfterLastTierChangeGreaterThan; set => _daysAfterLastTierChangeGreaterThan.Assign(value); } - private readonly BicepValue _daysAfterLastTierChangeGreaterThan; + public BicepValue DaysAfterLastTierChangeGreaterThan + { + get { Initialize(); return _daysAfterLastTierChangeGreaterThan!; } + set { Initialize(); _daysAfterLastTierChangeGreaterThan!.Assign(value); } + } + private BicepValue? _daysAfterLastTierChangeGreaterThan; /// /// Creates a new DateAfterCreation. /// public DateAfterCreation() { - _daysAfterCreationGreaterThan = BicepValue.DefineProperty(this, "DaysAfterCreationGreaterThan", ["daysAfterCreationGreaterThan"]); - _daysAfterLastTierChangeGreaterThan = BicepValue.DefineProperty(this, "DaysAfterLastTierChangeGreaterThan", ["daysAfterLastTierChangeGreaterThan"]); + } + + /// + /// Define all the provisionable properties of DateAfterCreation. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _daysAfterCreationGreaterThan = DefineProperty("DaysAfterCreationGreaterThan", ["daysAfterCreationGreaterThan"]); + _daysAfterLastTierChangeGreaterThan = DefineProperty("DaysAfterLastTierChangeGreaterThan", ["daysAfterLastTierChangeGreaterThan"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/DateAfterModification.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/DateAfterModification.cs index 2e57a221fdb8d..b7c7a6d547724 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/DateAfterModification.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/DateAfterModification.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -22,15 +24,23 @@ public partial class DateAfterModification : ProvisionableConstruct /// /// Value indicating the age in days after last modification. /// - public BicepValue DaysAfterModificationGreaterThan { get => _daysAfterModificationGreaterThan; set => _daysAfterModificationGreaterThan.Assign(value); } - private readonly BicepValue _daysAfterModificationGreaterThan; + public BicepValue DaysAfterModificationGreaterThan + { + get { Initialize(); return _daysAfterModificationGreaterThan!; } + set { Initialize(); _daysAfterModificationGreaterThan!.Assign(value); } + } + private BicepValue? _daysAfterModificationGreaterThan; /// /// Value indicating the age in days after last blob access. This property /// can only be used in conjunction with last access time tracking policy. /// - public BicepValue DaysAfterLastAccessTimeGreaterThan { get => _daysAfterLastAccessTimeGreaterThan; set => _daysAfterLastAccessTimeGreaterThan.Assign(value); } - private readonly BicepValue _daysAfterLastAccessTimeGreaterThan; + public BicepValue DaysAfterLastAccessTimeGreaterThan + { + get { Initialize(); return _daysAfterLastAccessTimeGreaterThan!; } + set { Initialize(); _daysAfterLastAccessTimeGreaterThan!.Assign(value); } + } + private BicepValue? _daysAfterLastAccessTimeGreaterThan; /// /// Value indicating the age in days after last blob tier change time. This @@ -39,23 +49,39 @@ public partial class DateAfterModification : ProvisionableConstruct /// actions. The blob will be archived if both the conditions are /// satisfied. /// - public BicepValue DaysAfterLastTierChangeGreaterThan { get => _daysAfterLastTierChangeGreaterThan; set => _daysAfterLastTierChangeGreaterThan.Assign(value); } - private readonly BicepValue _daysAfterLastTierChangeGreaterThan; + public BicepValue DaysAfterLastTierChangeGreaterThan + { + get { Initialize(); return _daysAfterLastTierChangeGreaterThan!; } + set { Initialize(); _daysAfterLastTierChangeGreaterThan!.Assign(value); } + } + private BicepValue? _daysAfterLastTierChangeGreaterThan; /// /// Value indicating the age in days after blob creation. /// - public BicepValue DaysAfterCreationGreaterThan { get => _daysAfterCreationGreaterThan; set => _daysAfterCreationGreaterThan.Assign(value); } - private readonly BicepValue _daysAfterCreationGreaterThan; + public BicepValue DaysAfterCreationGreaterThan + { + get { Initialize(); return _daysAfterCreationGreaterThan!; } + set { Initialize(); _daysAfterCreationGreaterThan!.Assign(value); } + } + private BicepValue? _daysAfterCreationGreaterThan; /// /// Creates a new DateAfterModification. /// public DateAfterModification() { - _daysAfterModificationGreaterThan = BicepValue.DefineProperty(this, "DaysAfterModificationGreaterThan", ["daysAfterModificationGreaterThan"]); - _daysAfterLastAccessTimeGreaterThan = BicepValue.DefineProperty(this, "DaysAfterLastAccessTimeGreaterThan", ["daysAfterLastAccessTimeGreaterThan"]); - _daysAfterLastTierChangeGreaterThan = BicepValue.DefineProperty(this, "DaysAfterLastTierChangeGreaterThan", ["daysAfterLastTierChangeGreaterThan"]); - _daysAfterCreationGreaterThan = BicepValue.DefineProperty(this, "DaysAfterCreationGreaterThan", ["daysAfterCreationGreaterThan"]); + } + + /// + /// Define all the provisionable properties of DateAfterModification. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _daysAfterModificationGreaterThan = DefineProperty("DaysAfterModificationGreaterThan", ["daysAfterModificationGreaterThan"]); + _daysAfterLastAccessTimeGreaterThan = DefineProperty("DaysAfterLastAccessTimeGreaterThan", ["daysAfterLastAccessTimeGreaterThan"]); + _daysAfterLastTierChangeGreaterThan = DefineProperty("DaysAfterLastTierChangeGreaterThan", ["daysAfterLastTierChangeGreaterThan"]); + _daysAfterCreationGreaterThan = DefineProperty("DaysAfterCreationGreaterThan", ["daysAfterCreationGreaterThan"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/DeleteRetentionPolicy.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/DeleteRetentionPolicy.cs index f6522796bd529..65767ce6c3cab 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/DeleteRetentionPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/DeleteRetentionPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,15 +18,23 @@ public partial class DeleteRetentionPolicy : ProvisionableConstruct /// /// Indicates whether DeleteRetentionPolicy is enabled. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Indicates the number of days that the deleted item should be retained. /// The minimum specified value can be 1 and the maximum value can be 365. /// - public BicepValue Days { get => _days; set => _days.Assign(value); } - private readonly BicepValue _days; + public BicepValue Days + { + get { Initialize(); return _days!; } + set { Initialize(); _days!.Assign(value); } + } + private BicepValue? _days; /// /// This property when set to true allows deletion of the soft deleted blob @@ -32,16 +42,28 @@ public partial class DeleteRetentionPolicy : ProvisionableConstruct /// policy. This property only applies to blob service and does not apply /// to containers or file share. /// - public BicepValue AllowPermanentDelete { get => _allowPermanentDelete; set => _allowPermanentDelete.Assign(value); } - private readonly BicepValue _allowPermanentDelete; + public BicepValue AllowPermanentDelete + { + get { Initialize(); return _allowPermanentDelete!; } + set { Initialize(); _allowPermanentDelete!.Assign(value); } + } + private BicepValue? _allowPermanentDelete; /// /// Creates a new DeleteRetentionPolicy. /// public DeleteRetentionPolicy() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _days = BicepValue.DefineProperty(this, "Days", ["days"]); - _allowPermanentDelete = BicepValue.DefineProperty(this, "AllowPermanentDelete", ["allowPermanentDelete"]); + } + + /// + /// Define all the provisionable properties of DeleteRetentionPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _days = DefineProperty("Days", ["days"]); + _allowPermanentDelete = DefineProperty("AllowPermanentDelete", ["allowPermanentDelete"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/EncryptionScopeKeyVaultProperties.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/EncryptionScopeKeyVaultProperties.cs index 05ff33f139c9a..54588c3acbc8b 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/EncryptionScopeKeyVaultProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/EncryptionScopeKeyVaultProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -20,28 +22,47 @@ public partial class EncryptionScopeKeyVaultProperties : ProvisionableConstruct /// encryption scope will use the key referenced by the identifier to /// enable customer-managed key support on this encryption scope. /// - public BicepValue KeyUri { get => _keyUri; set => _keyUri.Assign(value); } - private readonly BicepValue _keyUri; + public BicepValue KeyUri + { + get { Initialize(); return _keyUri!; } + set { Initialize(); _keyUri!.Assign(value); } + } + private BicepValue? _keyUri; /// /// The object identifier of the current versioned Key Vault Key in use. /// - public BicepValue CurrentVersionedKeyIdentifier { get => _currentVersionedKeyIdentifier; } - private readonly BicepValue _currentVersionedKeyIdentifier; + public BicepValue CurrentVersionedKeyIdentifier + { + get { Initialize(); return _currentVersionedKeyIdentifier!; } + } + private BicepValue? _currentVersionedKeyIdentifier; /// /// Timestamp of last rotation of the Key Vault Key. /// - public BicepValue LastKeyRotationTimestamp { get => _lastKeyRotationTimestamp; } - private readonly BicepValue _lastKeyRotationTimestamp; + public BicepValue LastKeyRotationTimestamp + { + get { Initialize(); return _lastKeyRotationTimestamp!; } + } + private BicepValue? _lastKeyRotationTimestamp; /// /// Creates a new EncryptionScopeKeyVaultProperties. /// public EncryptionScopeKeyVaultProperties() { - _keyUri = BicepValue.DefineProperty(this, "KeyUri", ["keyUri"]); - _currentVersionedKeyIdentifier = BicepValue.DefineProperty(this, "CurrentVersionedKeyIdentifier", ["currentVersionedKeyIdentifier"], isOutput: true); - _lastKeyRotationTimestamp = BicepValue.DefineProperty(this, "LastKeyRotationTimestamp", ["lastKeyRotationTimestamp"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// EncryptionScopeKeyVaultProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyUri = DefineProperty("KeyUri", ["keyUri"]); + _currentVersionedKeyIdentifier = DefineProperty("CurrentVersionedKeyIdentifier", ["currentVersionedKeyIdentifier"], isOutput: true); + _lastKeyRotationTimestamp = DefineProperty("LastKeyRotationTimestamp", ["lastKeyRotationTimestamp"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.cs index 87d8c143cf30c..7fc2d192dd608 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,30 +19,51 @@ public partial class FilesIdentityBasedAuthentication : ProvisionableConstruct /// Indicates the directory service used. Note that this enum may be /// extended in the future. /// - public BicepValue DirectoryServiceOptions { get => _directoryServiceOptions; set => _directoryServiceOptions.Assign(value); } - private readonly BicepValue _directoryServiceOptions; + public BicepValue DirectoryServiceOptions + { + get { Initialize(); return _directoryServiceOptions!; } + set { Initialize(); _directoryServiceOptions!.Assign(value); } + } + private BicepValue? _directoryServiceOptions; /// /// Required if directoryServiceOptions are AD, optional if they are /// AADKERB. /// - public BicepValue ActiveDirectoryProperties { get => _activeDirectoryProperties; set => _activeDirectoryProperties.Assign(value); } - private readonly BicepValue _activeDirectoryProperties; + public StorageActiveDirectoryProperties ActiveDirectoryProperties + { + get { Initialize(); return _activeDirectoryProperties!; } + set { Initialize(); AssignOrReplace(ref _activeDirectoryProperties, value); } + } + private StorageActiveDirectoryProperties? _activeDirectoryProperties; /// /// Default share permission for users using Kerberos authentication if /// RBAC role is not assigned. /// - public BicepValue DefaultSharePermission { get => _defaultSharePermission; set => _defaultSharePermission.Assign(value); } - private readonly BicepValue _defaultSharePermission; + public BicepValue DefaultSharePermission + { + get { Initialize(); return _defaultSharePermission!; } + set { Initialize(); _defaultSharePermission!.Assign(value); } + } + private BicepValue? _defaultSharePermission; /// /// Creates a new FilesIdentityBasedAuthentication. /// public FilesIdentityBasedAuthentication() { - _directoryServiceOptions = BicepValue.DefineProperty(this, "DirectoryServiceOptions", ["directoryServiceOptions"]); - _activeDirectoryProperties = BicepValue.DefineProperty(this, "ActiveDirectoryProperties", ["activeDirectoryProperties"]); - _defaultSharePermission = BicepValue.DefineProperty(this, "DefaultSharePermission", ["defaultSharePermission"]); + } + + /// + /// Define all the provisionable properties of + /// FilesIdentityBasedAuthentication. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _directoryServiceOptions = DefineProperty("DirectoryServiceOptions", ["directoryServiceOptions"]); + _activeDirectoryProperties = DefineModelProperty("ActiveDirectoryProperties", ["activeDirectoryProperties"]); + _defaultSharePermission = DefineProperty("DefaultSharePermission", ["defaultSharePermission"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/GeoReplicationStatistics.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/GeoReplicationStatistics.cs index 293d0d05f2c3f..d724a8347331f 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/GeoReplicationStatistics.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/GeoReplicationStatistics.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -23,8 +25,11 @@ public partial class GeoReplicationStatistics : ProvisionableConstruct /// replication is first enabled. - Unavailable: Indicates that the /// secondary location is temporarily unavailable. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// All primary writes preceding this UTC date/time value are guaranteed to @@ -33,23 +38,37 @@ public partial class GeoReplicationStatistics : ProvisionableConstruct /// value if value of LastSyncTime is not available, this can happen if /// secondary is offline or we are in bootstrap. /// - public BicepValue LastSyncOn { get => _lastSyncOn; } - private readonly BicepValue _lastSyncOn; + public BicepValue LastSyncOn + { + get { Initialize(); return _lastSyncOn!; } + } + private BicepValue? _lastSyncOn; /// /// A boolean flag which indicates whether or not account failover is /// supported for the account. /// - public BicepValue CanFailover { get => _canFailover; } - private readonly BicepValue _canFailover; + public BicepValue CanFailover + { + get { Initialize(); return _canFailover!; } + } + private BicepValue? _canFailover; /// /// Creates a new GeoReplicationStatistics. /// public GeoReplicationStatistics() { - _status = BicepValue.DefineProperty(this, "Status", ["status"], isOutput: true); - _lastSyncOn = BicepValue.DefineProperty(this, "LastSyncOn", ["lastSyncTime"], isOutput: true); - _canFailover = BicepValue.DefineProperty(this, "CanFailover", ["canFailover"], isOutput: true); + } + + /// + /// Define all the provisionable properties of GeoReplicationStatistics. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"], isOutput: true); + _lastSyncOn = DefineProperty("LastSyncOn", ["lastSyncTime"], isOutput: true); + _canFailover = DefineProperty("CanFailover", ["canFailover"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ImmutableStorageAccount.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ImmutableStorageAccount.cs index 3a8d4ee68f663..0b5d3602488f9 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ImmutableStorageAccount.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ImmutableStorageAccount.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,8 +21,12 @@ public partial class ImmutableStorageAccount : ProvisionableConstruct /// containers under such an account have object-level immutability /// enabled by default. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Specifies the default account-level immutability policy which is @@ -30,15 +36,27 @@ public partial class ImmutableStorageAccount : ProvisionableConstruct /// policy, which has a higher precedence than the account-level /// immutability policy. /// - public BicepValue ImmutabilityPolicy { get => _immutabilityPolicy; set => _immutabilityPolicy.Assign(value); } - private readonly BicepValue _immutabilityPolicy; + public AccountImmutabilityPolicy ImmutabilityPolicy + { + get { Initialize(); return _immutabilityPolicy!; } + set { Initialize(); AssignOrReplace(ref _immutabilityPolicy, value); } + } + private AccountImmutabilityPolicy? _immutabilityPolicy; /// /// Creates a new ImmutableStorageAccount. /// public ImmutableStorageAccount() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _immutabilityPolicy = BicepValue.DefineProperty(this, "ImmutabilityPolicy", ["immutabilityPolicy"]); + } + + /// + /// Define all the provisionable properties of ImmutableStorageAccount. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _immutabilityPolicy = DefineModelProperty("ImmutabilityPolicy", ["immutabilityPolicy"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ImmutableStorageWithVersioning.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ImmutableStorageWithVersioning.cs index 0f546faff9bcf..b5310d3c926d9 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ImmutableStorageWithVersioning.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ImmutableStorageWithVersioning.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,48 @@ public partial class ImmutableStorageWithVersioning : ProvisionableConstruct /// This is an immutable property, when set to true it enables object level /// immutability at the container level. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Returns the date and time the object level immutability was enabled. /// - public BicepValue TimeStamp { get => _timeStamp; } - private readonly BicepValue _timeStamp; + public BicepValue TimeStamp + { + get { Initialize(); return _timeStamp!; } + } + private BicepValue? _timeStamp; /// /// This property denotes the container level immutability to object level /// immutability migration state. /// - public BicepValue MigrationState { get => _migrationState; } - private readonly BicepValue _migrationState; + public BicepValue MigrationState + { + get { Initialize(); return _migrationState!; } + } + private BicepValue? _migrationState; /// /// Creates a new ImmutableStorageWithVersioning. /// public ImmutableStorageWithVersioning() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _timeStamp = BicepValue.DefineProperty(this, "TimeStamp", ["timeStamp"], isOutput: true); - _migrationState = BicepValue.DefineProperty(this, "MigrationState", ["migrationState"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ImmutableStorageWithVersioning. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _timeStamp = DefineProperty("TimeStamp", ["timeStamp"], isOutput: true); + _migrationState = DefineProperty("MigrationState", ["migrationState"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LastAccessTimeTrackingPolicy.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LastAccessTimeTrackingPolicy.cs index 9e2f509cc2d02..32eac6366f228 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LastAccessTimeTrackingPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LastAccessTimeTrackingPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,39 +19,63 @@ public partial class LastAccessTimeTrackingPolicy : ProvisionableConstruct /// /// When set to true last access time based tracking is enabled. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Name of the policy. The valid value is AccessTimeTracking. This field /// is currently read only. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The field specifies blob object tracking granularity in days, typically /// how often the blob object should be tracked.This field is currently /// read only with value as 1. /// - public BicepValue TrackingGranularityInDays { get => _trackingGranularityInDays; set => _trackingGranularityInDays.Assign(value); } - private readonly BicepValue _trackingGranularityInDays; + public BicepValue TrackingGranularityInDays + { + get { Initialize(); return _trackingGranularityInDays!; } + set { Initialize(); _trackingGranularityInDays!.Assign(value); } + } + private BicepValue? _trackingGranularityInDays; /// /// An array of predefined supported blob types. Only blockBlob is the /// supported value. This field is currently read only. /// - public BicepList BlobType { get => _blobType; set => _blobType.Assign(value); } - private readonly BicepList _blobType; + public BicepList BlobType + { + get { Initialize(); return _blobType!; } + set { Initialize(); _blobType!.Assign(value); } + } + private BicepList? _blobType; /// /// Creates a new LastAccessTimeTrackingPolicy. /// public LastAccessTimeTrackingPolicy() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enable"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _trackingGranularityInDays = BicepValue.DefineProperty(this, "TrackingGranularityInDays", ["trackingGranularityInDays"]); - _blobType = BicepList.DefineProperty(this, "BlobType", ["blobType"]); + } + + /// + /// Define all the provisionable properties of LastAccessTimeTrackingPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enable"]); + _name = DefineProperty("Name", ["name"]); + _trackingGranularityInDays = DefineProperty("TrackingGranularityInDays", ["trackingGranularityInDays"]); + _blobType = DefineListProperty("BlobType", ["blobType"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LegalHoldProperties.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LegalHoldProperties.cs index e089a7a33b8bb..ca99655a1c6e8 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LegalHoldProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LegalHoldProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -21,28 +23,45 @@ public partial class LegalHoldProperties : ProvisionableConstruct /// can be a maximum of 1000 blob containers with hasLegalHold=true for a /// given account. /// - public BicepValue HasLegalHold { get => _hasLegalHold; } - private readonly BicepValue _hasLegalHold; + public BicepValue HasLegalHold + { + get { Initialize(); return _hasLegalHold!; } + } + private BicepValue? _hasLegalHold; /// /// The list of LegalHold tags of a blob container. /// - public BicepList Tags { get => _tags; } - private readonly BicepList _tags; + public BicepList Tags + { + get { Initialize(); return _tags!; } + } + private BicepList? _tags; /// /// Protected append blob writes history. /// - public BicepValue ProtectedAppendWritesHistory { get => _protectedAppendWritesHistory; } - private readonly BicepValue _protectedAppendWritesHistory; + public ProtectedAppendWritesHistory ProtectedAppendWritesHistory + { + get { Initialize(); return _protectedAppendWritesHistory!; } + } + private ProtectedAppendWritesHistory? _protectedAppendWritesHistory; /// /// Creates a new LegalHoldProperties. /// public LegalHoldProperties() { - _hasLegalHold = BicepValue.DefineProperty(this, "HasLegalHold", ["hasLegalHold"], isOutput: true); - _tags = BicepList.DefineProperty(this, "Tags", ["tags"], isOutput: true); - _protectedAppendWritesHistory = BicepValue.DefineProperty(this, "ProtectedAppendWritesHistory", ["protectedAppendWritesHistory"], isOutput: true); + } + + /// + /// Define all the provisionable properties of LegalHoldProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _hasLegalHold = DefineProperty("HasLegalHold", ["hasLegalHold"], isOutput: true); + _tags = DefineListProperty("Tags", ["tags"], isOutput: true); + _protectedAppendWritesHistory = DefineModelProperty("ProtectedAppendWritesHistory", ["protectedAppendWritesHistory"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LegalHoldTag.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LegalHoldTag.cs index a6fe407fb62d6..19010eb69c20e 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LegalHoldTag.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LegalHoldTag.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,43 +18,66 @@ public partial class LegalHoldTag : ProvisionableConstruct /// /// The tag value. /// - public BicepValue Tag { get => _tag; } - private readonly BicepValue _tag; + public BicepValue Tag + { + get { Initialize(); return _tag!; } + } + private BicepValue? _tag; /// /// Returns the date and time the tag was added. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// Returns the Object ID of the user who added the tag. /// - public BicepValue ObjectIdentifier { get => _objectIdentifier; } - private readonly BicepValue _objectIdentifier; + public BicepValue ObjectIdentifier + { + get { Initialize(); return _objectIdentifier!; } + } + private BicepValue? _objectIdentifier; /// /// Returns the Tenant ID that issued the token for the user who added the /// tag. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// Returns the User Principal Name of the user who added the tag. /// - public BicepValue Upn { get => _upn; } - private readonly BicepValue _upn; + public BicepValue Upn + { + get { Initialize(); return _upn!; } + } + private BicepValue? _upn; /// /// Creates a new LegalHoldTag. /// public LegalHoldTag() { - _tag = BicepValue.DefineProperty(this, "Tag", ["tag"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["timestamp"], isOutput: true); - _objectIdentifier = BicepValue.DefineProperty(this, "ObjectIdentifier", ["objectIdentifier"], isOutput: true); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); - _upn = BicepValue.DefineProperty(this, "Upn", ["upn"], isOutput: true); + } + + /// + /// Define all the provisionable properties of LegalHoldTag. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tag = DefineProperty("Tag", ["tag"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["timestamp"], isOutput: true); + _objectIdentifier = DefineProperty("ObjectIdentifier", ["objectIdentifier"], isOutput: true); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); + _upn = DefineProperty("Upn", ["upn"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LocalUserKeys.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LocalUserKeys.cs index 94fe4a0bcafaa..fc3172a302a61 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LocalUserKeys.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LocalUserKeys.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Expressions; using Azure.Provisioning.Primitives; @@ -19,37 +21,35 @@ public partial class LocalUserKeys : ProvisionableConstruct /// /// Optional, local user ssh authorized keys for SFTP. /// - public BicepList SshAuthorizedKeys { get => _sshAuthorizedKeys; } - private readonly BicepList _sshAuthorizedKeys; + public BicepList SshAuthorizedKeys + { + get { Initialize(); return _sshAuthorizedKeys!; } + } + private BicepList? _sshAuthorizedKeys; /// /// Auto generated by the server for SMB authentication. /// - public BicepValue SharedKey { get => _sharedKey; } - private readonly BicepValue _sharedKey; + public BicepValue SharedKey + { + get { Initialize(); return _sharedKey!; } + } + private BicepValue? _sharedKey; /// /// Creates a new LocalUserKeys. /// public LocalUserKeys() { - _sshAuthorizedKeys = BicepList.DefineProperty(this, "SshAuthorizedKeys", ["sshAuthorizedKeys"], isOutput: true); - _sharedKey = BicepValue.DefineProperty(this, "SharedKey", ["sharedKey"], isOutput: true, isSecure: true); } /// - /// Creates a new LocalUserKeys resource from a Bicep expression that - /// evaluates to a LocalUserKeys. + /// Define all the provisionable properties of LocalUserKeys. /// - /// - /// A Bicep expression that evaluates to a LocalUserKeys resource. - /// - /// A LocalUserKeys resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static LocalUserKeys FromExpression(BicepExpression expression) + protected override void DefineProvisionableProperties() { - LocalUserKeys resource = new(); - resource.OverrideWithExpression(expression); - return resource; + base.DefineProvisionableProperties(); + _sshAuthorizedKeys = DefineListProperty("SshAuthorizedKeys", ["sshAuthorizedKeys"], isOutput: true); + _sharedKey = DefineProperty("SharedKey", ["sharedKey"], isOutput: true, isSecure: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyAction.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyAction.cs index d7cae8ba85c1a..29421934272f2 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyAction.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyAction.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,48 @@ public partial class ManagementPolicyAction : ProvisionableConstruct /// /// The management policy action for base blob. /// - public BicepValue BaseBlob { get => _baseBlob; set => _baseBlob.Assign(value); } - private readonly BicepValue _baseBlob; + public ManagementPolicyBaseBlob BaseBlob + { + get { Initialize(); return _baseBlob!; } + set { Initialize(); AssignOrReplace(ref _baseBlob, value); } + } + private ManagementPolicyBaseBlob? _baseBlob; /// /// The management policy action for snapshot. /// - public BicepValue Snapshot { get => _snapshot; set => _snapshot.Assign(value); } - private readonly BicepValue _snapshot; + public ManagementPolicySnapShot Snapshot + { + get { Initialize(); return _snapshot!; } + set { Initialize(); AssignOrReplace(ref _snapshot, value); } + } + private ManagementPolicySnapShot? _snapshot; /// /// The management policy action for version. /// - public BicepValue Version { get => _version; set => _version.Assign(value); } - private readonly BicepValue _version; + public ManagementPolicyVersion Version + { + get { Initialize(); return _version!; } + set { Initialize(); AssignOrReplace(ref _version, value); } + } + private ManagementPolicyVersion? _version; /// /// Creates a new ManagementPolicyAction. /// public ManagementPolicyAction() { - _baseBlob = BicepValue.DefineProperty(this, "BaseBlob", ["baseBlob"]); - _snapshot = BicepValue.DefineProperty(this, "Snapshot", ["snapshot"]); - _version = BicepValue.DefineProperty(this, "Version", ["version"]); + } + + /// + /// Define all the provisionable properties of ManagementPolicyAction. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _baseBlob = DefineModelProperty("BaseBlob", ["baseBlob"]); + _snapshot = DefineModelProperty("Snapshot", ["snapshot"]); + _version = DefineModelProperty("Version", ["version"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyBaseBlob.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyBaseBlob.cs index ccc1734b28259..10c39f45e00eb 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyBaseBlob.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyBaseBlob.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,52 +18,84 @@ public partial class ManagementPolicyBaseBlob : ProvisionableConstruct /// /// The function to tier blobs to cool storage. /// - public BicepValue TierToCool { get => _tierToCool; set => _tierToCool.Assign(value); } - private readonly BicepValue _tierToCool; + public DateAfterModification TierToCool + { + get { Initialize(); return _tierToCool!; } + set { Initialize(); AssignOrReplace(ref _tierToCool, value); } + } + private DateAfterModification? _tierToCool; /// /// The function to tier blobs to archive storage. /// - public BicepValue TierToArchive { get => _tierToArchive; set => _tierToArchive.Assign(value); } - private readonly BicepValue _tierToArchive; + public DateAfterModification TierToArchive + { + get { Initialize(); return _tierToArchive!; } + set { Initialize(); AssignOrReplace(ref _tierToArchive, value); } + } + private DateAfterModification? _tierToArchive; /// /// The function to tier blobs to cold storage. /// - public BicepValue TierToCold { get => _tierToCold; set => _tierToCold.Assign(value); } - private readonly BicepValue _tierToCold; + public DateAfterModification TierToCold + { + get { Initialize(); return _tierToCold!; } + set { Initialize(); AssignOrReplace(ref _tierToCold, value); } + } + private DateAfterModification? _tierToCold; /// /// The function to tier blobs to hot storage. This action can only be used /// with Premium Block Blob Storage Accounts. /// - public BicepValue TierToHot { get => _tierToHot; set => _tierToHot.Assign(value); } - private readonly BicepValue _tierToHot; + public DateAfterModification TierToHot + { + get { Initialize(); return _tierToHot!; } + set { Initialize(); AssignOrReplace(ref _tierToHot, value); } + } + private DateAfterModification? _tierToHot; /// /// The function to delete the blob. /// - public BicepValue Delete { get => _delete; set => _delete.Assign(value); } - private readonly BicepValue _delete; + public DateAfterModification Delete + { + get { Initialize(); return _delete!; } + set { Initialize(); AssignOrReplace(ref _delete, value); } + } + private DateAfterModification? _delete; /// /// This property enables auto tiering of a blob from cool to hot on a blob /// access. This property requires /// tierToCool.daysAfterLastAccessTimeGreaterThan. /// - public BicepValue EnableAutoTierToHotFromCool { get => _enableAutoTierToHotFromCool; set => _enableAutoTierToHotFromCool.Assign(value); } - private readonly BicepValue _enableAutoTierToHotFromCool; + public BicepValue EnableAutoTierToHotFromCool + { + get { Initialize(); return _enableAutoTierToHotFromCool!; } + set { Initialize(); _enableAutoTierToHotFromCool!.Assign(value); } + } + private BicepValue? _enableAutoTierToHotFromCool; /// /// Creates a new ManagementPolicyBaseBlob. /// public ManagementPolicyBaseBlob() { - _tierToCool = BicepValue.DefineProperty(this, "TierToCool", ["tierToCool"]); - _tierToArchive = BicepValue.DefineProperty(this, "TierToArchive", ["tierToArchive"]); - _tierToCold = BicepValue.DefineProperty(this, "TierToCold", ["tierToCold"]); - _tierToHot = BicepValue.DefineProperty(this, "TierToHot", ["tierToHot"]); - _delete = BicepValue.DefineProperty(this, "Delete", ["delete"]); - _enableAutoTierToHotFromCool = BicepValue.DefineProperty(this, "EnableAutoTierToHotFromCool", ["enableAutoTierToHotFromCool"]); + } + + /// + /// Define all the provisionable properties of ManagementPolicyBaseBlob. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tierToCool = DefineModelProperty("TierToCool", ["tierToCool"]); + _tierToArchive = DefineModelProperty("TierToArchive", ["tierToArchive"]); + _tierToCold = DefineModelProperty("TierToCold", ["tierToCold"]); + _tierToHot = DefineModelProperty("TierToHot", ["tierToHot"]); + _delete = DefineModelProperty("Delete", ["delete"]); + _enableAutoTierToHotFromCool = DefineProperty("EnableAutoTierToHotFromCool", ["enableAutoTierToHotFromCool"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyDefinition.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyDefinition.cs index 43a5bc2099f7c..1f7121172cccb 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyDefinition.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,21 +20,37 @@ public partial class ManagementPolicyDefinition : ProvisionableConstruct /// /// An object that defines the action set. /// - public BicepValue Actions { get => _actions; set => _actions.Assign(value); } - private readonly BicepValue _actions; + public ManagementPolicyAction Actions + { + get { Initialize(); return _actions!; } + set { Initialize(); AssignOrReplace(ref _actions, value); } + } + private ManagementPolicyAction? _actions; /// /// An object that defines the filter set. /// - public BicepValue Filters { get => _filters; set => _filters.Assign(value); } - private readonly BicepValue _filters; + public ManagementPolicyFilter Filters + { + get { Initialize(); return _filters!; } + set { Initialize(); AssignOrReplace(ref _filters, value); } + } + private ManagementPolicyFilter? _filters; /// /// Creates a new ManagementPolicyDefinition. /// public ManagementPolicyDefinition() { - _actions = BicepValue.DefineProperty(this, "Actions", ["actions"]); - _filters = BicepValue.DefineProperty(this, "Filters", ["filters"]); + } + + /// + /// Define all the provisionable properties of ManagementPolicyDefinition. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _actions = DefineModelProperty("Actions", ["actions"]); + _filters = DefineModelProperty("Filters", ["filters"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyFilter.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyFilter.cs index cac3cfc68587c..48e365857c427 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,31 +20,51 @@ public partial class ManagementPolicyFilter : ProvisionableConstruct /// /// An array of strings for prefixes to be match. /// - public BicepList PrefixMatch { get => _prefixMatch; set => _prefixMatch.Assign(value); } - private readonly BicepList _prefixMatch; + public BicepList PrefixMatch + { + get { Initialize(); return _prefixMatch!; } + set { Initialize(); _prefixMatch!.Assign(value); } + } + private BicepList? _prefixMatch; /// /// An array of predefined enum values. Currently blockBlob supports all /// tiering and delete actions. Only delete actions are supported for /// appendBlob. /// - public BicepList BlobTypes { get => _blobTypes; set => _blobTypes.Assign(value); } - private readonly BicepList _blobTypes; + public BicepList BlobTypes + { + get { Initialize(); return _blobTypes!; } + set { Initialize(); _blobTypes!.Assign(value); } + } + private BicepList? _blobTypes; /// /// An array of blob index tag based filters, there can be at most 10 tag /// filters. /// - public BicepList BlobIndexMatch { get => _blobIndexMatch; set => _blobIndexMatch.Assign(value); } - private readonly BicepList _blobIndexMatch; + public BicepList BlobIndexMatch + { + get { Initialize(); return _blobIndexMatch!; } + set { Initialize(); _blobIndexMatch!.Assign(value); } + } + private BicepList? _blobIndexMatch; /// /// Creates a new ManagementPolicyFilter. /// public ManagementPolicyFilter() { - _prefixMatch = BicepList.DefineProperty(this, "PrefixMatch", ["prefixMatch"]); - _blobTypes = BicepList.DefineProperty(this, "BlobTypes", ["blobTypes"]); - _blobIndexMatch = BicepList.DefineProperty(this, "BlobIndexMatch", ["blobIndexMatch"]); + } + + /// + /// Define all the provisionable properties of ManagementPolicyFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _prefixMatch = DefineListProperty("PrefixMatch", ["prefixMatch"]); + _blobTypes = DefineListProperty("BlobTypes", ["blobTypes"]); + _blobIndexMatch = DefineListProperty("BlobIndexMatch", ["blobIndexMatch"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyRule.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyRule.cs index 6ac06b77d0cfb..2f0747ee8e57a 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,36 +20,60 @@ public partial class ManagementPolicyRule : ProvisionableConstruct /// /// Rule is enabled if set to true. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// A rule name can contain any combination of alpha numeric characters. /// Rule name is case-sensitive. It must be unique within a policy. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The valid value is Lifecycle. /// - public BicepValue RuleType { get => _ruleType; set => _ruleType.Assign(value); } - private readonly BicepValue _ruleType; + public BicepValue RuleType + { + get { Initialize(); return _ruleType!; } + set { Initialize(); _ruleType!.Assign(value); } + } + private BicepValue? _ruleType; /// /// An object that defines the Lifecycle rule. /// - public BicepValue Definition { get => _definition; set => _definition.Assign(value); } - private readonly BicepValue _definition; + public ManagementPolicyDefinition Definition + { + get { Initialize(); return _definition!; } + set { Initialize(); AssignOrReplace(ref _definition, value); } + } + private ManagementPolicyDefinition? _definition; /// /// Creates a new ManagementPolicyRule. /// public ManagementPolicyRule() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _ruleType = BicepValue.DefineProperty(this, "RuleType", ["type"]); - _definition = BicepValue.DefineProperty(this, "Definition", ["definition"]); + } + + /// + /// Define all the provisionable properties of ManagementPolicyRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _name = DefineProperty("Name", ["name"]); + _ruleType = DefineProperty("RuleType", ["type"]); + _definition = DefineModelProperty("Definition", ["definition"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicySnapShot.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicySnapShot.cs index 697f861e80c28..1008731dcd46d 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicySnapShot.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicySnapShot.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,43 +18,71 @@ public partial class ManagementPolicySnapShot : ProvisionableConstruct /// /// The function to tier blob snapshot to cool storage. /// - public BicepValue TierToCool { get => _tierToCool; set => _tierToCool.Assign(value); } - private readonly BicepValue _tierToCool; + public DateAfterCreation TierToCool + { + get { Initialize(); return _tierToCool!; } + set { Initialize(); AssignOrReplace(ref _tierToCool, value); } + } + private DateAfterCreation? _tierToCool; /// /// The function to tier blob snapshot to archive storage. /// - public BicepValue TierToArchive { get => _tierToArchive; set => _tierToArchive.Assign(value); } - private readonly BicepValue _tierToArchive; + public DateAfterCreation TierToArchive + { + get { Initialize(); return _tierToArchive!; } + set { Initialize(); AssignOrReplace(ref _tierToArchive, value); } + } + private DateAfterCreation? _tierToArchive; /// /// The function to tier blobs to cold storage. /// - public BicepValue TierToCold { get => _tierToCold; set => _tierToCold.Assign(value); } - private readonly BicepValue _tierToCold; + public DateAfterCreation TierToCold + { + get { Initialize(); return _tierToCold!; } + set { Initialize(); AssignOrReplace(ref _tierToCold, value); } + } + private DateAfterCreation? _tierToCold; /// /// The function to tier blobs to hot storage. This action can only be used /// with Premium Block Blob Storage Accounts. /// - public BicepValue TierToHot { get => _tierToHot; set => _tierToHot.Assign(value); } - private readonly BicepValue _tierToHot; + public DateAfterCreation TierToHot + { + get { Initialize(); return _tierToHot!; } + set { Initialize(); AssignOrReplace(ref _tierToHot, value); } + } + private DateAfterCreation? _tierToHot; /// /// The function to delete the blob snapshot. /// - public BicepValue Delete { get => _delete; set => _delete.Assign(value); } - private readonly BicepValue _delete; + public DateAfterCreation Delete + { + get { Initialize(); return _delete!; } + set { Initialize(); AssignOrReplace(ref _delete, value); } + } + private DateAfterCreation? _delete; /// /// Creates a new ManagementPolicySnapShot. /// public ManagementPolicySnapShot() { - _tierToCool = BicepValue.DefineProperty(this, "TierToCool", ["tierToCool"]); - _tierToArchive = BicepValue.DefineProperty(this, "TierToArchive", ["tierToArchive"]); - _tierToCold = BicepValue.DefineProperty(this, "TierToCold", ["tierToCold"]); - _tierToHot = BicepValue.DefineProperty(this, "TierToHot", ["tierToHot"]); - _delete = BicepValue.DefineProperty(this, "Delete", ["delete"]); + } + + /// + /// Define all the provisionable properties of ManagementPolicySnapShot. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tierToCool = DefineModelProperty("TierToCool", ["tierToCool"]); + _tierToArchive = DefineModelProperty("TierToArchive", ["tierToArchive"]); + _tierToCold = DefineModelProperty("TierToCold", ["tierToCold"]); + _tierToHot = DefineModelProperty("TierToHot", ["tierToHot"]); + _delete = DefineModelProperty("Delete", ["delete"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyTagFilter.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyTagFilter.cs index 029f425f0462c..94d5dba1ca9e0 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyTagFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyTagFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,30 +18,50 @@ public partial class ManagementPolicyTagFilter : ProvisionableConstruct /// /// This is the filter tag name, it can have 1 - 128 characters. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// This is the comparison operator which is used for object comparison and /// filtering. Only == (equality operator) is currently supported. /// - public BicepValue Operator { get => _operator; set => _operator.Assign(value); } - private readonly BicepValue _operator; + public BicepValue Operator + { + get { Initialize(); return _operator!; } + set { Initialize(); _operator!.Assign(value); } + } + private BicepValue? _operator; /// /// This is the filter tag value field used for tag based filtering, it can /// have 0 - 256 characters. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new ManagementPolicyTagFilter. /// public ManagementPolicyTagFilter() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _operator = BicepValue.DefineProperty(this, "Operator", ["op"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of ManagementPolicyTagFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _operator = DefineProperty("Operator", ["op"]); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyVersion.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyVersion.cs index fc7773a5a84d0..000e0508606a0 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyVersion.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ManagementPolicyVersion.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,43 +18,71 @@ public partial class ManagementPolicyVersion : ProvisionableConstruct /// /// The function to tier blob version to cool storage. /// - public BicepValue TierToCool { get => _tierToCool; set => _tierToCool.Assign(value); } - private readonly BicepValue _tierToCool; + public DateAfterCreation TierToCool + { + get { Initialize(); return _tierToCool!; } + set { Initialize(); AssignOrReplace(ref _tierToCool, value); } + } + private DateAfterCreation? _tierToCool; /// /// The function to tier blob version to archive storage. /// - public BicepValue TierToArchive { get => _tierToArchive; set => _tierToArchive.Assign(value); } - private readonly BicepValue _tierToArchive; + public DateAfterCreation TierToArchive + { + get { Initialize(); return _tierToArchive!; } + set { Initialize(); AssignOrReplace(ref _tierToArchive, value); } + } + private DateAfterCreation? _tierToArchive; /// /// The function to tier blobs to cold storage. /// - public BicepValue TierToCold { get => _tierToCold; set => _tierToCold.Assign(value); } - private readonly BicepValue _tierToCold; + public DateAfterCreation TierToCold + { + get { Initialize(); return _tierToCold!; } + set { Initialize(); AssignOrReplace(ref _tierToCold, value); } + } + private DateAfterCreation? _tierToCold; /// /// The function to tier blobs to hot storage. This action can only be used /// with Premium Block Blob Storage Accounts. /// - public BicepValue TierToHot { get => _tierToHot; set => _tierToHot.Assign(value); } - private readonly BicepValue _tierToHot; + public DateAfterCreation TierToHot + { + get { Initialize(); return _tierToHot!; } + set { Initialize(); AssignOrReplace(ref _tierToHot, value); } + } + private DateAfterCreation? _tierToHot; /// /// The function to delete the blob version. /// - public BicepValue Delete { get => _delete; set => _delete.Assign(value); } - private readonly BicepValue _delete; + public DateAfterCreation Delete + { + get { Initialize(); return _delete!; } + set { Initialize(); AssignOrReplace(ref _delete, value); } + } + private DateAfterCreation? _delete; /// /// Creates a new ManagementPolicyVersion. /// public ManagementPolicyVersion() { - _tierToCool = BicepValue.DefineProperty(this, "TierToCool", ["tierToCool"]); - _tierToArchive = BicepValue.DefineProperty(this, "TierToArchive", ["tierToArchive"]); - _tierToCold = BicepValue.DefineProperty(this, "TierToCold", ["tierToCold"]); - _tierToHot = BicepValue.DefineProperty(this, "TierToHot", ["tierToHot"]); - _delete = BicepValue.DefineProperty(this, "Delete", ["delete"]); + } + + /// + /// Define all the provisionable properties of ManagementPolicyVersion. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tierToCool = DefineModelProperty("TierToCool", ["tierToCool"]); + _tierToArchive = DefineModelProperty("TierToArchive", ["tierToArchive"]); + _tierToCold = DefineModelProperty("TierToCold", ["tierToCold"]); + _tierToHot = DefineModelProperty("TierToHot", ["tierToHot"]); + _delete = DefineModelProperty("Delete", ["delete"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ObjectReplicationPolicyFilter.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ObjectReplicationPolicyFilter.cs index 146e6fe949c50..f8528d70351aa 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ObjectReplicationPolicyFilter.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ObjectReplicationPolicyFilter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -20,23 +22,40 @@ public partial class ObjectReplicationPolicyFilter : ProvisionableConstruct /// Optional. Filters the results to replicate only blobs whose names begin /// with the specified prefix. /// - public BicepList PrefixMatch { get => _prefixMatch; set => _prefixMatch.Assign(value); } - private readonly BicepList _prefixMatch; + public BicepList PrefixMatch + { + get { Initialize(); return _prefixMatch!; } + set { Initialize(); _prefixMatch!.Assign(value); } + } + private BicepList? _prefixMatch; /// /// Blobs created after the time will be replicated to the destination. It /// must be in datetime format 'yyyy-MM-ddTHH:mm:ssZ'. Example: /// 2020-02-19T16:05:00Z. /// - public BicepValue MinCreationTime { get => _minCreationTime; set => _minCreationTime.Assign(value); } - private readonly BicepValue _minCreationTime; + public BicepValue MinCreationTime + { + get { Initialize(); return _minCreationTime!; } + set { Initialize(); _minCreationTime!.Assign(value); } + } + private BicepValue? _minCreationTime; /// /// Creates a new ObjectReplicationPolicyFilter. /// public ObjectReplicationPolicyFilter() { - _prefixMatch = BicepList.DefineProperty(this, "PrefixMatch", ["prefixMatch"]); - _minCreationTime = BicepValue.DefineProperty(this, "MinCreationTime", ["minCreationTime"]); + } + + /// + /// Define all the provisionable properties of + /// ObjectReplicationPolicyFilter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _prefixMatch = DefineListProperty("PrefixMatch", ["prefixMatch"]); + _minCreationTime = DefineProperty("MinCreationTime", ["minCreationTime"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ObjectReplicationPolicyRule.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ObjectReplicationPolicyRule.cs index 679f8b6672381..e76aa9ebcaaef 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ObjectReplicationPolicyRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ObjectReplicationPolicyRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,35 +20,59 @@ public partial class ObjectReplicationPolicyRule : ProvisionableConstruct /// Rule Id is auto-generated for each new rule on destination account. It /// is required for put policy on source account. /// - public BicepValue RuleId { get => _ruleId; set => _ruleId.Assign(value); } - private readonly BicepValue _ruleId; + public BicepValue RuleId + { + get { Initialize(); return _ruleId!; } + set { Initialize(); _ruleId!.Assign(value); } + } + private BicepValue? _ruleId; /// /// Required. Source container name. /// - public BicepValue SourceContainer { get => _sourceContainer; set => _sourceContainer.Assign(value); } - private readonly BicepValue _sourceContainer; + public BicepValue SourceContainer + { + get { Initialize(); return _sourceContainer!; } + set { Initialize(); _sourceContainer!.Assign(value); } + } + private BicepValue? _sourceContainer; /// /// Required. Destination container name. /// - public BicepValue DestinationContainer { get => _destinationContainer; set => _destinationContainer.Assign(value); } - private readonly BicepValue _destinationContainer; + public BicepValue DestinationContainer + { + get { Initialize(); return _destinationContainer!; } + set { Initialize(); _destinationContainer!.Assign(value); } + } + private BicepValue? _destinationContainer; /// /// Optional. An object that defines the filter set. /// - public BicepValue Filters { get => _filters; set => _filters.Assign(value); } - private readonly BicepValue _filters; + public ObjectReplicationPolicyFilter Filters + { + get { Initialize(); return _filters!; } + set { Initialize(); AssignOrReplace(ref _filters, value); } + } + private ObjectReplicationPolicyFilter? _filters; /// /// Creates a new ObjectReplicationPolicyRule. /// public ObjectReplicationPolicyRule() { - _ruleId = BicepValue.DefineProperty(this, "RuleId", ["ruleId"]); - _sourceContainer = BicepValue.DefineProperty(this, "SourceContainer", ["sourceContainer"]); - _destinationContainer = BicepValue.DefineProperty(this, "DestinationContainer", ["destinationContainer"]); - _filters = BicepValue.DefineProperty(this, "Filters", ["filters"]); + } + + /// + /// Define all the provisionable properties of ObjectReplicationPolicyRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _ruleId = DefineProperty("RuleId", ["ruleId"]); + _sourceContainer = DefineProperty("SourceContainer", ["sourceContainer"]); + _destinationContainer = DefineProperty("DestinationContainer", ["destinationContainer"]); + _filters = DefineModelProperty("Filters", ["filters"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ProtectedAppendWritesHistory.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ProtectedAppendWritesHistory.cs index 86745b7018181..53fd5eb10c8a5 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ProtectedAppendWritesHistory.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/ProtectedAppendWritesHistory.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -20,21 +22,35 @@ public partial class ProtectedAppendWritesHistory : ProvisionableConstruct /// Only new blocks can be added and any existing blocks cannot be /// modified or deleted. /// - public BicepValue AllowProtectedAppendWritesAll { get => _allowProtectedAppendWritesAll; } - private readonly BicepValue _allowProtectedAppendWritesAll; + public BicepValue AllowProtectedAppendWritesAll + { + get { Initialize(); return _allowProtectedAppendWritesAll!; } + } + private BicepValue? _allowProtectedAppendWritesAll; /// /// Returns the date and time the tag was added. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// Creates a new ProtectedAppendWritesHistory. /// public ProtectedAppendWritesHistory() { - _allowProtectedAppendWritesAll = BicepValue.DefineProperty(this, "AllowProtectedAppendWritesAll", ["allowProtectedAppendWritesAll"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["timestamp"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ProtectedAppendWritesHistory. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _allowProtectedAppendWritesAll = DefineProperty("AllowProtectedAppendWritesAll", ["allowProtectedAppendWritesAll"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["timestamp"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/RestorePolicy.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/RestorePolicy.cs index 1b41578e8dc2a..a57ecdb9dba1f 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/RestorePolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/RestorePolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,36 +18,58 @@ public partial class RestorePolicy : ProvisionableConstruct /// /// Blob restore is enabled if set to true. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// how long this blob can be restored. It should be great than zero and /// less than DeleteRetentionPolicy.days. /// - public BicepValue Days { get => _days; set => _days.Assign(value); } - private readonly BicepValue _days; + public BicepValue Days + { + get { Initialize(); return _days!; } + set { Initialize(); _days!.Assign(value); } + } + private BicepValue? _days; /// /// Deprecated in favor of minRestoreTime property. /// - public BicepValue LastEnabledOn { get => _lastEnabledOn; } - private readonly BicepValue _lastEnabledOn; + public BicepValue LastEnabledOn + { + get { Initialize(); return _lastEnabledOn!; } + } + private BicepValue? _lastEnabledOn; /// /// Returns the minimum date and time that the restore can be started. /// - public BicepValue MinRestoreOn { get => _minRestoreOn; } - private readonly BicepValue _minRestoreOn; + public BicepValue MinRestoreOn + { + get { Initialize(); return _minRestoreOn!; } + } + private BicepValue? _minRestoreOn; /// /// Creates a new RestorePolicy. /// public RestorePolicy() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _days = BicepValue.DefineProperty(this, "Days", ["days"]); - _lastEnabledOn = BicepValue.DefineProperty(this, "LastEnabledOn", ["lastEnabledTime"], isOutput: true); - _minRestoreOn = BicepValue.DefineProperty(this, "MinRestoreOn", ["minRestoreTime"], isOutput: true); + } + + /// + /// Define all the provisionable properties of RestorePolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _days = DefineProperty("Days", ["days"]); + _lastEnabledOn = DefineProperty("LastEnabledOn", ["lastEnabledTime"], isOutput: true); + _minRestoreOn = DefineProperty("MinRestoreOn", ["minRestoreTime"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/SmbSetting.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/SmbSetting.cs index a089df1ff4fed..d48ebb9e238f8 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/SmbSetting.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/SmbSetting.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,50 +18,78 @@ public partial class SmbSetting : ProvisionableConstruct /// /// Indicates whether multichannel is enabled. /// - public BicepValue IsMultiChannelEnabled { get => _isMultiChannelEnabled; set => _isMultiChannelEnabled.Assign(value); } - private readonly BicepValue _isMultiChannelEnabled; + public BicepValue IsMultiChannelEnabled + { + get { Initialize(); return _isMultiChannelEnabled!; } + set { Initialize(); _isMultiChannelEnabled!.Assign(value); } + } + private BicepValue? _isMultiChannelEnabled; /// /// SMB protocol versions supported by server. Valid values are SMB2.1, /// SMB3.0, SMB3.1.1. Should be passed as a string with delimiter /// ';'. /// - public BicepValue Versions { get => _versions; set => _versions.Assign(value); } - private readonly BicepValue _versions; + public BicepValue Versions + { + get { Initialize(); return _versions!; } + set { Initialize(); _versions!.Assign(value); } + } + private BicepValue? _versions; /// /// SMB authentication methods supported by server. Valid values are /// NTLMv2, Kerberos. Should be passed as a string with delimiter /// ';'. /// - public BicepValue AuthenticationMethods { get => _authenticationMethods; set => _authenticationMethods.Assign(value); } - private readonly BicepValue _authenticationMethods; + public BicepValue AuthenticationMethods + { + get { Initialize(); return _authenticationMethods!; } + set { Initialize(); _authenticationMethods!.Assign(value); } + } + private BicepValue? _authenticationMethods; /// /// Kerberos ticket encryption supported by server. Valid values are /// RC4-HMAC, AES-256. Should be passed as a string with delimiter /// ';'. /// - public BicepValue KerberosTicketEncryption { get => _kerberosTicketEncryption; set => _kerberosTicketEncryption.Assign(value); } - private readonly BicepValue _kerberosTicketEncryption; + public BicepValue KerberosTicketEncryption + { + get { Initialize(); return _kerberosTicketEncryption!; } + set { Initialize(); _kerberosTicketEncryption!.Assign(value); } + } + private BicepValue? _kerberosTicketEncryption; /// /// SMB channel encryption supported by server. Valid values are /// AES-128-CCM, AES-128-GCM, AES-256-GCM. Should be passed as a string /// with delimiter ';'. /// - public BicepValue ChannelEncryption { get => _channelEncryption; set => _channelEncryption.Assign(value); } - private readonly BicepValue _channelEncryption; + public BicepValue ChannelEncryption + { + get { Initialize(); return _channelEncryption!; } + set { Initialize(); _channelEncryption!.Assign(value); } + } + private BicepValue? _channelEncryption; /// /// Creates a new SmbSetting. /// public SmbSetting() { - _isMultiChannelEnabled = BicepValue.DefineProperty(this, "IsMultiChannelEnabled", ["multichannel", "enabled"]); - _versions = BicepValue.DefineProperty(this, "Versions", ["versions"]); - _authenticationMethods = BicepValue.DefineProperty(this, "AuthenticationMethods", ["authenticationMethods"]); - _kerberosTicketEncryption = BicepValue.DefineProperty(this, "KerberosTicketEncryption", ["kerberosTicketEncryption"]); - _channelEncryption = BicepValue.DefineProperty(this, "ChannelEncryption", ["channelEncryption"]); + } + + /// + /// Define all the provisionable properties of SmbSetting. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isMultiChannelEnabled = DefineProperty("IsMultiChannelEnabled", ["multichannel", "enabled"]); + _versions = DefineProperty("Versions", ["versions"]); + _authenticationMethods = DefineProperty("AuthenticationMethods", ["authenticationMethods"]); + _kerberosTicketEncryption = DefineProperty("KerberosTicketEncryption", ["kerberosTicketEncryption"]); + _channelEncryption = DefineProperty("ChannelEncryption", ["channelEncryption"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEncryption.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEncryption.cs index 3e45a6bb81b4e..ca8916be4abbd 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEncryption.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEncryption.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,44 +18,72 @@ public partial class StorageAccountEncryption : ProvisionableConstruct /// /// List of services which support encryption. /// - public BicepValue Services { get => _services; set => _services.Assign(value); } - private readonly BicepValue _services; + public StorageAccountEncryptionServices Services + { + get { Initialize(); return _services!; } + set { Initialize(); AssignOrReplace(ref _services, value); } + } + private StorageAccountEncryptionServices? _services; /// /// The encryption keySource (provider). Possible values /// (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. /// - public BicepValue KeySource { get => _keySource; set => _keySource.Assign(value); } - private readonly BicepValue _keySource; + public BicepValue KeySource + { + get { Initialize(); return _keySource!; } + set { Initialize(); _keySource!.Assign(value); } + } + private BicepValue? _keySource; /// /// A boolean indicating whether or not the service applies a secondary /// layer of encryption with platform managed keys for data at rest. /// - public BicepValue RequireInfrastructureEncryption { get => _requireInfrastructureEncryption; set => _requireInfrastructureEncryption.Assign(value); } - private readonly BicepValue _requireInfrastructureEncryption; + public BicepValue RequireInfrastructureEncryption + { + get { Initialize(); return _requireInfrastructureEncryption!; } + set { Initialize(); _requireInfrastructureEncryption!.Assign(value); } + } + private BicepValue? _requireInfrastructureEncryption; /// /// Properties provided by key vault. /// - public BicepValue KeyVaultProperties { get => _keyVaultProperties; set => _keyVaultProperties.Assign(value); } - private readonly BicepValue _keyVaultProperties; + public StorageAccountKeyVaultProperties KeyVaultProperties + { + get { Initialize(); return _keyVaultProperties!; } + set { Initialize(); AssignOrReplace(ref _keyVaultProperties, value); } + } + private StorageAccountKeyVaultProperties? _keyVaultProperties; /// /// The identity to be used with service-side encryption at rest. /// - public BicepValue EncryptionIdentity { get => _encryptionIdentity; set => _encryptionIdentity.Assign(value); } - private readonly BicepValue _encryptionIdentity; + public StorageAccountEncryptionIdentity EncryptionIdentity + { + get { Initialize(); return _encryptionIdentity!; } + set { Initialize(); AssignOrReplace(ref _encryptionIdentity, value); } + } + private StorageAccountEncryptionIdentity? _encryptionIdentity; /// /// Creates a new StorageAccountEncryption. /// public StorageAccountEncryption() { - _services = BicepValue.DefineProperty(this, "Services", ["services"]); - _keySource = BicepValue.DefineProperty(this, "KeySource", ["keySource"]); - _requireInfrastructureEncryption = BicepValue.DefineProperty(this, "RequireInfrastructureEncryption", ["requireInfrastructureEncryption"]); - _keyVaultProperties = BicepValue.DefineProperty(this, "KeyVaultProperties", ["keyvaultproperties"]); - _encryptionIdentity = BicepValue.DefineProperty(this, "EncryptionIdentity", ["identity"]); + } + + /// + /// Define all the provisionable properties of StorageAccountEncryption. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _services = DefineModelProperty("Services", ["services"]); + _keySource = DefineProperty("KeySource", ["keySource"]); + _requireInfrastructureEncryption = DefineProperty("RequireInfrastructureEncryption", ["requireInfrastructureEncryption"]); + _keyVaultProperties = DefineModelProperty("KeyVaultProperties", ["keyvaultproperties"]); + _encryptionIdentity = DefineModelProperty("EncryptionIdentity", ["identity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEncryptionIdentity.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEncryptionIdentity.cs index 42a370abe8349..7e16239d58bdf 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEncryptionIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEncryptionIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,23 +19,40 @@ public partial class StorageAccountEncryptionIdentity : ProvisionableConstruct /// Resource identifier of the UserAssigned identity to be associated with /// server-side encryption on the storage account. /// - public BicepValue EncryptionUserAssignedIdentity { get => _encryptionUserAssignedIdentity; set => _encryptionUserAssignedIdentity.Assign(value); } - private readonly BicepValue _encryptionUserAssignedIdentity; + public BicepValue EncryptionUserAssignedIdentity + { + get { Initialize(); return _encryptionUserAssignedIdentity!; } + set { Initialize(); _encryptionUserAssignedIdentity!.Assign(value); } + } + private BicepValue? _encryptionUserAssignedIdentity; /// /// ClientId of the multi-tenant application to be used in conjunction with /// the user-assigned identity for cross-tenant customer-managed-keys /// server-side encryption on the storage account. /// - public BicepValue EncryptionFederatedIdentityClientId { get => _encryptionFederatedIdentityClientId; set => _encryptionFederatedIdentityClientId.Assign(value); } - private readonly BicepValue _encryptionFederatedIdentityClientId; + public BicepValue EncryptionFederatedIdentityClientId + { + get { Initialize(); return _encryptionFederatedIdentityClientId!; } + set { Initialize(); _encryptionFederatedIdentityClientId!.Assign(value); } + } + private BicepValue? _encryptionFederatedIdentityClientId; /// /// Creates a new StorageAccountEncryptionIdentity. /// public StorageAccountEncryptionIdentity() { - _encryptionUserAssignedIdentity = BicepValue.DefineProperty(this, "EncryptionUserAssignedIdentity", ["userAssignedIdentity"]); - _encryptionFederatedIdentityClientId = BicepValue.DefineProperty(this, "EncryptionFederatedIdentityClientId", ["federatedIdentityClientId"]); + } + + /// + /// Define all the provisionable properties of + /// StorageAccountEncryptionIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _encryptionUserAssignedIdentity = DefineProperty("EncryptionUserAssignedIdentity", ["userAssignedIdentity"]); + _encryptionFederatedIdentityClientId = DefineProperty("EncryptionFederatedIdentityClientId", ["federatedIdentityClientId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEncryptionServices.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEncryptionServices.cs index 1ff2ebe0aeada..a4d6ea221e42c 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEncryptionServices.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEncryptionServices.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,60 @@ public partial class StorageAccountEncryptionServices : ProvisionableConstruct /// /// The encryption function of the blob storage service. /// - public BicepValue Blob { get => _blob; set => _blob.Assign(value); } - private readonly BicepValue _blob; + public StorageEncryptionService Blob + { + get { Initialize(); return _blob!; } + set { Initialize(); AssignOrReplace(ref _blob, value); } + } + private StorageEncryptionService? _blob; /// /// The encryption function of the file storage service. /// - public BicepValue File { get => _file; set => _file.Assign(value); } - private readonly BicepValue _file; + public StorageEncryptionService File + { + get { Initialize(); return _file!; } + set { Initialize(); AssignOrReplace(ref _file, value); } + } + private StorageEncryptionService? _file; /// /// The encryption function of the table storage service. /// - public BicepValue Table { get => _table; set => _table.Assign(value); } - private readonly BicepValue _table; + public StorageEncryptionService Table + { + get { Initialize(); return _table!; } + set { Initialize(); AssignOrReplace(ref _table, value); } + } + private StorageEncryptionService? _table; /// /// The encryption function of the queue storage service. /// - public BicepValue Queue { get => _queue; set => _queue.Assign(value); } - private readonly BicepValue _queue; + public StorageEncryptionService Queue + { + get { Initialize(); return _queue!; } + set { Initialize(); AssignOrReplace(ref _queue, value); } + } + private StorageEncryptionService? _queue; /// /// Creates a new StorageAccountEncryptionServices. /// public StorageAccountEncryptionServices() { - _blob = BicepValue.DefineProperty(this, "Blob", ["blob"]); - _file = BicepValue.DefineProperty(this, "File", ["file"]); - _table = BicepValue.DefineProperty(this, "Table", ["table"]); - _queue = BicepValue.DefineProperty(this, "Queue", ["queue"]); + } + + /// + /// Define all the provisionable properties of + /// StorageAccountEncryptionServices. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _blob = DefineModelProperty("Blob", ["blob"]); + _file = DefineModelProperty("File", ["file"]); + _table = DefineModelProperty("Table", ["table"]); + _queue = DefineModelProperty("Queue", ["queue"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEndpoints.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEndpoints.cs index 7ce5dc26e349c..35e075a84b50b 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEndpoints.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountEndpoints.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,63 +19,95 @@ public partial class StorageAccountEndpoints : ProvisionableConstruct /// /// Gets the blob endpoint. /// - public BicepValue BlobUri { get => _blobUri; } - private readonly BicepValue _blobUri; + public BicepValue BlobUri + { + get { Initialize(); return _blobUri!; } + } + private BicepValue? _blobUri; /// /// Gets the queue endpoint. /// - public BicepValue QueueUri { get => _queueUri; } - private readonly BicepValue _queueUri; + public BicepValue QueueUri + { + get { Initialize(); return _queueUri!; } + } + private BicepValue? _queueUri; /// /// Gets the table endpoint. /// - public BicepValue TableUri { get => _tableUri; } - private readonly BicepValue _tableUri; + public BicepValue TableUri + { + get { Initialize(); return _tableUri!; } + } + private BicepValue? _tableUri; /// /// Gets the file endpoint. /// - public BicepValue FileUri { get => _fileUri; } - private readonly BicepValue _fileUri; + public BicepValue FileUri + { + get { Initialize(); return _fileUri!; } + } + private BicepValue? _fileUri; /// /// Gets the web endpoint. /// - public BicepValue WebUri { get => _webUri; } - private readonly BicepValue _webUri; + public BicepValue WebUri + { + get { Initialize(); return _webUri!; } + } + private BicepValue? _webUri; /// /// Gets the dfs endpoint. /// - public BicepValue DfsUri { get => _dfsUri; } - private readonly BicepValue _dfsUri; + public BicepValue DfsUri + { + get { Initialize(); return _dfsUri!; } + } + private BicepValue? _dfsUri; /// /// Gets the microsoft routing storage endpoints. /// - public BicepValue MicrosoftEndpoints { get => _microsoftEndpoints; } - private readonly BicepValue _microsoftEndpoints; + public StorageAccountMicrosoftEndpoints MicrosoftEndpoints + { + get { Initialize(); return _microsoftEndpoints!; } + } + private StorageAccountMicrosoftEndpoints? _microsoftEndpoints; /// /// Gets the internet routing storage endpoints. /// - public BicepValue InternetEndpoints { get => _internetEndpoints; } - private readonly BicepValue _internetEndpoints; + public StorageAccountInternetEndpoints InternetEndpoints + { + get { Initialize(); return _internetEndpoints!; } + } + private StorageAccountInternetEndpoints? _internetEndpoints; /// /// Creates a new StorageAccountEndpoints. /// public StorageAccountEndpoints() { - _blobUri = BicepValue.DefineProperty(this, "BlobUri", ["blob"], isOutput: true); - _queueUri = BicepValue.DefineProperty(this, "QueueUri", ["queue"], isOutput: true); - _tableUri = BicepValue.DefineProperty(this, "TableUri", ["table"], isOutput: true); - _fileUri = BicepValue.DefineProperty(this, "FileUri", ["file"], isOutput: true); - _webUri = BicepValue.DefineProperty(this, "WebUri", ["web"], isOutput: true); - _dfsUri = BicepValue.DefineProperty(this, "DfsUri", ["dfs"], isOutput: true); - _microsoftEndpoints = BicepValue.DefineProperty(this, "MicrosoftEndpoints", ["microsoftEndpoints"], isOutput: true); - _internetEndpoints = BicepValue.DefineProperty(this, "InternetEndpoints", ["internetEndpoints"], isOutput: true); + } + + /// + /// Define all the provisionable properties of StorageAccountEndpoints. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _blobUri = DefineProperty("BlobUri", ["blob"], isOutput: true); + _queueUri = DefineProperty("QueueUri", ["queue"], isOutput: true); + _tableUri = DefineProperty("TableUri", ["table"], isOutput: true); + _fileUri = DefineProperty("FileUri", ["file"], isOutput: true); + _webUri = DefineProperty("WebUri", ["web"], isOutput: true); + _dfsUri = DefineProperty("DfsUri", ["dfs"], isOutput: true); + _microsoftEndpoints = DefineModelProperty("MicrosoftEndpoints", ["microsoftEndpoints"], isOutput: true); + _internetEndpoints = DefineModelProperty("InternetEndpoints", ["internetEndpoints"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountIPRule.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountIPRule.cs index ad5d10ac8d56b..84eaa3b5ad702 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountIPRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountIPRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class StorageAccountIPRule : ProvisionableConstruct /// Specifies the IP or IP range in CIDR format. Only IPV4 address is /// allowed. /// - public BicepValue IPAddressOrRange { get => _iPAddressOrRange; set => _iPAddressOrRange.Assign(value); } - private readonly BicepValue _iPAddressOrRange; + public BicepValue IPAddressOrRange + { + get { Initialize(); return _iPAddressOrRange!; } + set { Initialize(); _iPAddressOrRange!.Assign(value); } + } + private BicepValue? _iPAddressOrRange; /// /// The action of IP ACL rule. /// - public BicepValue Action { get => _action; set => _action.Assign(value); } - private readonly BicepValue _action; + public BicepValue Action + { + get { Initialize(); return _action!; } + set { Initialize(); _action!.Assign(value); } + } + private BicepValue? _action; /// /// Creates a new StorageAccountIPRule. /// public StorageAccountIPRule() { - _iPAddressOrRange = BicepValue.DefineProperty(this, "IPAddressOrRange", ["value"]); - _action = BicepValue.DefineProperty(this, "Action", ["action"]); + } + + /// + /// Define all the provisionable properties of StorageAccountIPRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _iPAddressOrRange = DefineProperty("IPAddressOrRange", ["value"]); + _action = DefineProperty("Action", ["action"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountInternetEndpoints.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountInternetEndpoints.cs index 818cd24cc93ea..237128615440e 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountInternetEndpoints.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountInternetEndpoints.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,56 @@ public partial class StorageAccountInternetEndpoints : ProvisionableConstruct /// /// Gets the blob endpoint. /// - public BicepValue BlobUri { get => _blobUri; } - private readonly BicepValue _blobUri; + public BicepValue BlobUri + { + get { Initialize(); return _blobUri!; } + } + private BicepValue? _blobUri; /// /// Gets the file endpoint. /// - public BicepValue FileUri { get => _fileUri; } - private readonly BicepValue _fileUri; + public BicepValue FileUri + { + get { Initialize(); return _fileUri!; } + } + private BicepValue? _fileUri; /// /// Gets the web endpoint. /// - public BicepValue WebUri { get => _webUri; } - private readonly BicepValue _webUri; + public BicepValue WebUri + { + get { Initialize(); return _webUri!; } + } + private BicepValue? _webUri; /// /// Gets the dfs endpoint. /// - public BicepValue DfsUri { get => _dfsUri; } - private readonly BicepValue _dfsUri; + public BicepValue DfsUri + { + get { Initialize(); return _dfsUri!; } + } + private BicepValue? _dfsUri; /// /// Creates a new StorageAccountInternetEndpoints. /// public StorageAccountInternetEndpoints() { - _blobUri = BicepValue.DefineProperty(this, "BlobUri", ["blob"], isOutput: true); - _fileUri = BicepValue.DefineProperty(this, "FileUri", ["file"], isOutput: true); - _webUri = BicepValue.DefineProperty(this, "WebUri", ["web"], isOutput: true); - _dfsUri = BicepValue.DefineProperty(this, "DfsUri", ["dfs"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// StorageAccountInternetEndpoints. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _blobUri = DefineProperty("BlobUri", ["blob"], isOutput: true); + _fileUri = DefineProperty("FileUri", ["file"], isOutput: true); + _webUri = DefineProperty("WebUri", ["web"], isOutput: true); + _dfsUri = DefineProperty("DfsUri", ["dfs"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountKey.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountKey.cs index edbb277128fb9..eb93a9636f025 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountKey.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountKey.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Expressions; using Azure.Provisioning.Primitives; using System; @@ -18,51 +20,55 @@ public partial class StorageAccountKey : ProvisionableConstruct /// /// Name of the key. /// - public BicepValue KeyName { get => _keyName; } - private readonly BicepValue _keyName; + public BicepValue KeyName + { + get { Initialize(); return _keyName!; } + } + private BicepValue? _keyName; /// /// Base 64-encoded value of the key. /// - public BicepValue Value { get => _value; } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + } + private BicepValue? _value; /// /// Permissions for the key -- read-only or full permissions. /// - public BicepValue Permissions { get => _permissions; } - private readonly BicepValue _permissions; + public BicepValue Permissions + { + get { Initialize(); return _permissions!; } + } + private BicepValue? _permissions; /// /// Creation time of the key, in round trip date format. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Creates a new StorageAccountKey. /// public StorageAccountKey() { - _keyName = BicepValue.DefineProperty(this, "KeyName", ["keyName"], isOutput: true); - _value = BicepValue.DefineProperty(this, "Value", ["value"], isOutput: true, isSecure: true); - _permissions = BicepValue.DefineProperty(this, "Permissions", ["permissions"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["creationTime"], isOutput: true); } /// - /// Creates a new StorageAccountKey resource from a Bicep expression that - /// evaluates to a StorageAccountKey. + /// Define all the provisionable properties of StorageAccountKey. /// - /// - /// A Bicep expression that evaluates to a StorageAccountKey resource. - /// - /// A StorageAccountKey resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static StorageAccountKey FromExpression(BicepExpression expression) + protected override void DefineProvisionableProperties() { - StorageAccountKey resource = new(); - resource.OverrideWithExpression(expression); - return resource; + base.DefineProvisionableProperties(); + _keyName = DefineProperty("KeyName", ["keyName"], isOutput: true); + _value = DefineProperty("Value", ["value"], isOutput: true, isSecure: true); + _permissions = DefineProperty("Permissions", ["permissions"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["creationTime"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountKeyCreationTime.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountKeyCreationTime.cs index e557f1e6fdf93..7086d96f35dcc 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountKeyCreationTime.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountKeyCreationTime.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,36 @@ public partial class StorageAccountKeyCreationTime : ProvisionableConstruct /// /// Gets the key 1. /// - public BicepValue Key1 { get => _key1; } - private readonly BicepValue _key1; + public BicepValue Key1 + { + get { Initialize(); return _key1!; } + } + private BicepValue? _key1; /// /// Gets the key 2. /// - public BicepValue Key2 { get => _key2; } - private readonly BicepValue _key2; + public BicepValue Key2 + { + get { Initialize(); return _key2!; } + } + private BicepValue? _key2; /// /// Creates a new StorageAccountKeyCreationTime. /// public StorageAccountKeyCreationTime() { - _key1 = BicepValue.DefineProperty(this, "Key1", ["key1"], isOutput: true); - _key2 = BicepValue.DefineProperty(this, "Key2", ["key2"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// StorageAccountKeyCreationTime. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _key1 = DefineProperty("Key1", ["key1"], isOutput: true); + _key2 = DefineProperty("Key2", ["key2"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountKeyVaultProperties.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountKeyVaultProperties.cs index 60dc94dcf9bc2..2f8fbb8ee4746 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountKeyVaultProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountKeyVaultProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,50 +18,80 @@ public partial class StorageAccountKeyVaultProperties : ProvisionableConstruct /// /// The name of KeyVault key. /// - public BicepValue KeyName { get => _keyName; set => _keyName.Assign(value); } - private readonly BicepValue _keyName; + public BicepValue KeyName + { + get { Initialize(); return _keyName!; } + set { Initialize(); _keyName!.Assign(value); } + } + private BicepValue? _keyName; /// /// The version of KeyVault key. /// - public BicepValue KeyVersion { get => _keyVersion; set => _keyVersion.Assign(value); } - private readonly BicepValue _keyVersion; + public BicepValue KeyVersion + { + get { Initialize(); return _keyVersion!; } + set { Initialize(); _keyVersion!.Assign(value); } + } + private BicepValue? _keyVersion; /// /// The Uri of KeyVault. /// - public BicepValue KeyVaultUri { get => _keyVaultUri; set => _keyVaultUri.Assign(value); } - private readonly BicepValue _keyVaultUri; + public BicepValue KeyVaultUri + { + get { Initialize(); return _keyVaultUri!; } + set { Initialize(); _keyVaultUri!.Assign(value); } + } + private BicepValue? _keyVaultUri; /// /// The object identifier of the current versioned Key Vault Key in use. /// - public BicepValue CurrentVersionedKeyIdentifier { get => _currentVersionedKeyIdentifier; } - private readonly BicepValue _currentVersionedKeyIdentifier; + public BicepValue CurrentVersionedKeyIdentifier + { + get { Initialize(); return _currentVersionedKeyIdentifier!; } + } + private BicepValue? _currentVersionedKeyIdentifier; /// /// Timestamp of last rotation of the Key Vault Key. /// - public BicepValue LastKeyRotationTimestamp { get => _lastKeyRotationTimestamp; } - private readonly BicepValue _lastKeyRotationTimestamp; + public BicepValue LastKeyRotationTimestamp + { + get { Initialize(); return _lastKeyRotationTimestamp!; } + } + private BicepValue? _lastKeyRotationTimestamp; /// /// This is a read only property that represents the expiration time of the /// current version of the customer managed key used for encryption. /// - public BicepValue CurrentVersionedKeyExpirationTimestamp { get => _currentVersionedKeyExpirationTimestamp; } - private readonly BicepValue _currentVersionedKeyExpirationTimestamp; + public BicepValue CurrentVersionedKeyExpirationTimestamp + { + get { Initialize(); return _currentVersionedKeyExpirationTimestamp!; } + } + private BicepValue? _currentVersionedKeyExpirationTimestamp; /// /// Creates a new StorageAccountKeyVaultProperties. /// public StorageAccountKeyVaultProperties() { - _keyName = BicepValue.DefineProperty(this, "KeyName", ["keyname"]); - _keyVersion = BicepValue.DefineProperty(this, "KeyVersion", ["keyversion"]); - _keyVaultUri = BicepValue.DefineProperty(this, "KeyVaultUri", ["keyvaulturi"]); - _currentVersionedKeyIdentifier = BicepValue.DefineProperty(this, "CurrentVersionedKeyIdentifier", ["currentVersionedKeyIdentifier"], isOutput: true); - _lastKeyRotationTimestamp = BicepValue.DefineProperty(this, "LastKeyRotationTimestamp", ["lastKeyRotationTimestamp"], isOutput: true); - _currentVersionedKeyExpirationTimestamp = BicepValue.DefineProperty(this, "CurrentVersionedKeyExpirationTimestamp", ["currentVersionedKeyExpirationTimestamp"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// StorageAccountKeyVaultProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _keyName = DefineProperty("KeyName", ["keyname"]); + _keyVersion = DefineProperty("KeyVersion", ["keyversion"]); + _keyVaultUri = DefineProperty("KeyVaultUri", ["keyvaulturi"]); + _currentVersionedKeyIdentifier = DefineProperty("CurrentVersionedKeyIdentifier", ["currentVersionedKeyIdentifier"], isOutput: true); + _lastKeyRotationTimestamp = DefineProperty("LastKeyRotationTimestamp", ["lastKeyRotationTimestamp"], isOutput: true); + _currentVersionedKeyExpirationTimestamp = DefineProperty("CurrentVersionedKeyExpirationTimestamp", ["currentVersionedKeyExpirationTimestamp"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountMicrosoftEndpoints.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountMicrosoftEndpoints.cs index 25543fb55e7a5..648a81e91d2b6 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountMicrosoftEndpoints.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountMicrosoftEndpoints.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,49 +19,76 @@ public partial class StorageAccountMicrosoftEndpoints : ProvisionableConstruct /// /// Gets the blob endpoint. /// - public BicepValue BlobUri { get => _blobUri; } - private readonly BicepValue _blobUri; + public BicepValue BlobUri + { + get { Initialize(); return _blobUri!; } + } + private BicepValue? _blobUri; /// /// Gets the queue endpoint. /// - public BicepValue QueueUri { get => _queueUri; } - private readonly BicepValue _queueUri; + public BicepValue QueueUri + { + get { Initialize(); return _queueUri!; } + } + private BicepValue? _queueUri; /// /// Gets the table endpoint. /// - public BicepValue TableUri { get => _tableUri; } - private readonly BicepValue _tableUri; + public BicepValue TableUri + { + get { Initialize(); return _tableUri!; } + } + private BicepValue? _tableUri; /// /// Gets the file endpoint. /// - public BicepValue FileUri { get => _fileUri; } - private readonly BicepValue _fileUri; + public BicepValue FileUri + { + get { Initialize(); return _fileUri!; } + } + private BicepValue? _fileUri; /// /// Gets the web endpoint. /// - public BicepValue WebUri { get => _webUri; } - private readonly BicepValue _webUri; + public BicepValue WebUri + { + get { Initialize(); return _webUri!; } + } + private BicepValue? _webUri; /// /// Gets the dfs endpoint. /// - public BicepValue DfsUri { get => _dfsUri; } - private readonly BicepValue _dfsUri; + public BicepValue DfsUri + { + get { Initialize(); return _dfsUri!; } + } + private BicepValue? _dfsUri; /// /// Creates a new StorageAccountMicrosoftEndpoints. /// public StorageAccountMicrosoftEndpoints() { - _blobUri = BicepValue.DefineProperty(this, "BlobUri", ["blob"], isOutput: true); - _queueUri = BicepValue.DefineProperty(this, "QueueUri", ["queue"], isOutput: true); - _tableUri = BicepValue.DefineProperty(this, "TableUri", ["table"], isOutput: true); - _fileUri = BicepValue.DefineProperty(this, "FileUri", ["file"], isOutput: true); - _webUri = BicepValue.DefineProperty(this, "WebUri", ["web"], isOutput: true); - _dfsUri = BicepValue.DefineProperty(this, "DfsUri", ["dfs"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// StorageAccountMicrosoftEndpoints. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _blobUri = DefineProperty("BlobUri", ["blob"], isOutput: true); + _queueUri = DefineProperty("QueueUri", ["queue"], isOutput: true); + _tableUri = DefineProperty("TableUri", ["table"], isOutput: true); + _fileUri = DefineProperty("FileUri", ["file"], isOutput: true); + _webUri = DefineProperty("WebUri", ["web"], isOutput: true); + _dfsUri = DefineProperty("DfsUri", ["dfs"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs index 7e1252909152c..b35ba03c33889 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -21,42 +23,70 @@ public partial class StorageAccountNetworkRuleSet : ProvisionableConstruct /// Logging|Metrics|AzureServices (For example, "Logging, /// Metrics"), or None to bypass none of those traffics. /// - public BicepValue Bypass { get => _bypass; set => _bypass.Assign(value); } - private readonly BicepValue _bypass; + public BicepValue Bypass + { + get { Initialize(); return _bypass!; } + set { Initialize(); _bypass!.Assign(value); } + } + private BicepValue? _bypass; /// /// Sets the resource access rules. /// - public BicepList ResourceAccessRules { get => _resourceAccessRules; set => _resourceAccessRules.Assign(value); } - private readonly BicepList _resourceAccessRules; + public BicepList ResourceAccessRules + { + get { Initialize(); return _resourceAccessRules!; } + set { Initialize(); _resourceAccessRules!.Assign(value); } + } + private BicepList? _resourceAccessRules; /// /// Sets the virtual network rules. /// - public BicepList VirtualNetworkRules { get => _virtualNetworkRules; set => _virtualNetworkRules.Assign(value); } - private readonly BicepList _virtualNetworkRules; + public BicepList VirtualNetworkRules + { + get { Initialize(); return _virtualNetworkRules!; } + set { Initialize(); _virtualNetworkRules!.Assign(value); } + } + private BicepList? _virtualNetworkRules; /// /// Sets the IP ACL rules. /// - public BicepList IPRules { get => _iPRules; set => _iPRules.Assign(value); } - private readonly BicepList _iPRules; + public BicepList IPRules + { + get { Initialize(); return _iPRules!; } + set { Initialize(); _iPRules!.Assign(value); } + } + private BicepList? _iPRules; /// /// Specifies the default action of allow or deny when no other rules match. /// - public BicepValue DefaultAction { get => _defaultAction; set => _defaultAction.Assign(value); } - private readonly BicepValue _defaultAction; + public BicepValue DefaultAction + { + get { Initialize(); return _defaultAction!; } + set { Initialize(); _defaultAction!.Assign(value); } + } + private BicepValue? _defaultAction; /// /// Creates a new StorageAccountNetworkRuleSet. /// public StorageAccountNetworkRuleSet() { - _bypass = BicepValue.DefineProperty(this, "Bypass", ["bypass"]); - _resourceAccessRules = BicepList.DefineProperty(this, "ResourceAccessRules", ["resourceAccessRules"]); - _virtualNetworkRules = BicepList.DefineProperty(this, "VirtualNetworkRules", ["virtualNetworkRules"]); - _iPRules = BicepList.DefineProperty(this, "IPRules", ["ipRules"]); - _defaultAction = BicepValue.DefineProperty(this, "DefaultAction", ["defaultAction"]); + } + + /// + /// Define all the provisionable properties of StorageAccountNetworkRuleSet. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _bypass = DefineProperty("Bypass", ["bypass"]); + _resourceAccessRules = DefineListProperty("ResourceAccessRules", ["resourceAccessRules"]); + _virtualNetworkRules = DefineListProperty("VirtualNetworkRules", ["virtualNetworkRules"]); + _iPRules = DefineListProperty("IPRules", ["ipRules"]); + _defaultAction = DefineProperty("DefaultAction", ["defaultAction"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountResourceAccessRule.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountResourceAccessRule.cs index af5e54be046fc..963b18697d6fa 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountResourceAccessRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountResourceAccessRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class StorageAccountResourceAccessRule : ProvisionableConstruct /// /// Tenant Id. /// - public BicepValue TenantId { get => _tenantId; set => _tenantId.Assign(value); } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; /// /// Resource Id. /// - public BicepValue ResourceId { get => _resourceId; set => _resourceId.Assign(value); } - private readonly BicepValue _resourceId; + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; /// /// Creates a new StorageAccountResourceAccessRule. /// public StorageAccountResourceAccessRule() { - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"]); - _resourceId = BicepValue.DefineProperty(this, "ResourceId", ["resourceId"]); + } + + /// + /// Define all the provisionable properties of + /// StorageAccountResourceAccessRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tenantId = DefineProperty("TenantId", ["tenantId"]); + _resourceId = DefineProperty("ResourceId", ["resourceId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountSasPolicy.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountSasPolicy.cs index 69b56f9cd4e01..54646f613cd9c 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountSasPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountSasPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class StorageAccountSasPolicy : ProvisionableConstruct /// /// The SAS expiration period, DD.HH:MM:SS. /// - public BicepValue SasExpirationPeriod { get => _sasExpirationPeriod; set => _sasExpirationPeriod.Assign(value); } - private readonly BicepValue _sasExpirationPeriod; + public BicepValue SasExpirationPeriod + { + get { Initialize(); return _sasExpirationPeriod!; } + set { Initialize(); _sasExpirationPeriod!.Assign(value); } + } + private BicepValue? _sasExpirationPeriod; /// /// The SAS expiration action. Can only be Log. /// - public BicepValue ExpirationAction { get => _expirationAction; set => _expirationAction.Assign(value); } - private readonly BicepValue _expirationAction; + public BicepValue ExpirationAction + { + get { Initialize(); return _expirationAction!; } + set { Initialize(); _expirationAction!.Assign(value); } + } + private BicepValue? _expirationAction; /// /// Creates a new StorageAccountSasPolicy. /// public StorageAccountSasPolicy() { - _sasExpirationPeriod = BicepValue.DefineProperty(this, "SasExpirationPeriod", ["sasExpirationPeriod"]); - _expirationAction = BicepValue.DefineProperty(this, "ExpirationAction", ["expirationAction"]); + } + + /// + /// Define all the provisionable properties of StorageAccountSasPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _sasExpirationPeriod = DefineProperty("SasExpirationPeriod", ["sasExpirationPeriod"]); + _expirationAction = DefineProperty("ExpirationAction", ["expirationAction"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountSkuConversionStatus.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountSkuConversionStatus.cs index 00bd3e2558f25..f0cefa8cef2df 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountSkuConversionStatus.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountSkuConversionStatus.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,36 +19,58 @@ public partial class StorageAccountSkuConversionStatus : ProvisionableConstruct /// /// This property indicates the current sku conversion status. /// - public BicepValue SkuConversionStatus { get => _skuConversionStatus; } - private readonly BicepValue _skuConversionStatus; + public BicepValue SkuConversionStatus + { + get { Initialize(); return _skuConversionStatus!; } + } + private BicepValue? _skuConversionStatus; /// /// This property represents the target sku name to which the account sku /// is being converted asynchronously. /// - public BicepValue TargetSkuName { get => _targetSkuName; set => _targetSkuName.Assign(value); } - private readonly BicepValue _targetSkuName; + public BicepValue TargetSkuName + { + get { Initialize(); return _targetSkuName!; } + set { Initialize(); _targetSkuName!.Assign(value); } + } + private BicepValue? _targetSkuName; /// /// This property represents the sku conversion start time. /// - public BicepValue StartOn { get => _startOn; } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + } + private BicepValue? _startOn; /// /// This property represents the sku conversion end time. /// - public BicepValue EndOn { get => _endOn; } - private readonly BicepValue _endOn; + public BicepValue EndOn + { + get { Initialize(); return _endOn!; } + } + private BicepValue? _endOn; /// /// Creates a new StorageAccountSkuConversionStatus. /// public StorageAccountSkuConversionStatus() { - _skuConversionStatus = BicepValue.DefineProperty(this, "SkuConversionStatus", ["skuConversionStatus"], isOutput: true); - _targetSkuName = BicepValue.DefineProperty(this, "TargetSkuName", ["targetSkuName"]); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["startTime"], isOutput: true); - _endOn = BicepValue.DefineProperty(this, "EndOn", ["endTime"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// StorageAccountSkuConversionStatus. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _skuConversionStatus = DefineProperty("SkuConversionStatus", ["skuConversionStatus"], isOutput: true); + _targetSkuName = DefineProperty("TargetSkuName", ["targetSkuName"]); + _startOn = DefineProperty("StartOn", ["startTime"], isOutput: true); + _endOn = DefineProperty("EndOn", ["endTime"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountVirtualNetworkRule.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountVirtualNetworkRule.cs index 88d430e45699b..3689870b3cd7d 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountVirtualNetworkRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageAccountVirtualNetworkRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -17,28 +19,49 @@ public partial class StorageAccountVirtualNetworkRule : ProvisionableConstruct /// Resource ID of a subnet, for example: /// /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. /// - public BicepValue VirtualNetworkResourceId { get => _virtualNetworkResourceId; set => _virtualNetworkResourceId.Assign(value); } - private readonly BicepValue _virtualNetworkResourceId; + public BicepValue VirtualNetworkResourceId + { + get { Initialize(); return _virtualNetworkResourceId!; } + set { Initialize(); _virtualNetworkResourceId!.Assign(value); } + } + private BicepValue? _virtualNetworkResourceId; /// /// The action of virtual network rule. /// - public BicepValue Action { get => _action; set => _action.Assign(value); } - private readonly BicepValue _action; + public BicepValue Action + { + get { Initialize(); return _action!; } + set { Initialize(); _action!.Assign(value); } + } + private BicepValue? _action; /// /// Gets the state of virtual network rule. /// - public BicepValue State { get => _state; set => _state.Assign(value); } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + set { Initialize(); _state!.Assign(value); } + } + private BicepValue? _state; /// /// Creates a new StorageAccountVirtualNetworkRule. /// public StorageAccountVirtualNetworkRule() { - _virtualNetworkResourceId = BicepValue.DefineProperty(this, "VirtualNetworkResourceId", ["id"]); - _action = BicepValue.DefineProperty(this, "Action", ["action"]); - _state = BicepValue.DefineProperty(this, "State", ["state"]); + } + + /// + /// Define all the provisionable properties of + /// StorageAccountVirtualNetworkRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _virtualNetworkResourceId = DefineProperty("VirtualNetworkResourceId", ["id"]); + _action = DefineProperty("Action", ["action"]); + _state = DefineProperty("State", ["state"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageActiveDirectoryProperties.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageActiveDirectoryProperties.cs index a87d82cea58a5..fad37c849ebf1 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageActiveDirectoryProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageActiveDirectoryProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,63 +19,104 @@ public partial class StorageActiveDirectoryProperties : ProvisionableConstruct /// Specifies the primary domain that the AD DNS server is authoritative /// for. /// - public BicepValue DomainName { get => _domainName; set => _domainName.Assign(value); } - private readonly BicepValue _domainName; + public BicepValue DomainName + { + get { Initialize(); return _domainName!; } + set { Initialize(); _domainName!.Assign(value); } + } + private BicepValue? _domainName; /// /// Specifies the NetBIOS domain name. /// - public BicepValue NetBiosDomainName { get => _netBiosDomainName; set => _netBiosDomainName.Assign(value); } - private readonly BicepValue _netBiosDomainName; + public BicepValue NetBiosDomainName + { + get { Initialize(); return _netBiosDomainName!; } + set { Initialize(); _netBiosDomainName!.Assign(value); } + } + private BicepValue? _netBiosDomainName; /// /// Specifies the Active Directory forest to get. /// - public BicepValue ForestName { get => _forestName; set => _forestName.Assign(value); } - private readonly BicepValue _forestName; + public BicepValue ForestName + { + get { Initialize(); return _forestName!; } + set { Initialize(); _forestName!.Assign(value); } + } + private BicepValue? _forestName; /// /// Specifies the domain GUID. /// - public BicepValue DomainGuid { get => _domainGuid; set => _domainGuid.Assign(value); } - private readonly BicepValue _domainGuid; + public BicepValue DomainGuid + { + get { Initialize(); return _domainGuid!; } + set { Initialize(); _domainGuid!.Assign(value); } + } + private BicepValue? _domainGuid; /// /// Specifies the security identifier (SID). /// - public BicepValue DomainSid { get => _domainSid; set => _domainSid.Assign(value); } - private readonly BicepValue _domainSid; + public BicepValue DomainSid + { + get { Initialize(); return _domainSid!; } + set { Initialize(); _domainSid!.Assign(value); } + } + private BicepValue? _domainSid; /// /// Specifies the security identifier (SID) for Azure Storage. /// - public BicepValue AzureStorageSid { get => _azureStorageSid; set => _azureStorageSid.Assign(value); } - private readonly BicepValue _azureStorageSid; + public BicepValue AzureStorageSid + { + get { Initialize(); return _azureStorageSid!; } + set { Initialize(); _azureStorageSid!.Assign(value); } + } + private BicepValue? _azureStorageSid; /// /// Specifies the Active Directory SAMAccountName for Azure Storage. /// - public BicepValue SamAccountName { get => _samAccountName; set => _samAccountName.Assign(value); } - private readonly BicepValue _samAccountName; + public BicepValue SamAccountName + { + get { Initialize(); return _samAccountName!; } + set { Initialize(); _samAccountName!.Assign(value); } + } + private BicepValue? _samAccountName; /// /// Specifies the Active Directory account type for Azure Storage. /// - public BicepValue AccountType { get => _accountType; set => _accountType.Assign(value); } - private readonly BicepValue _accountType; + public BicepValue AccountType + { + get { Initialize(); return _accountType!; } + set { Initialize(); _accountType!.Assign(value); } + } + private BicepValue? _accountType; /// /// Creates a new StorageActiveDirectoryProperties. /// public StorageActiveDirectoryProperties() { - _domainName = BicepValue.DefineProperty(this, "DomainName", ["domainName"]); - _netBiosDomainName = BicepValue.DefineProperty(this, "NetBiosDomainName", ["netBiosDomainName"]); - _forestName = BicepValue.DefineProperty(this, "ForestName", ["forestName"]); - _domainGuid = BicepValue.DefineProperty(this, "DomainGuid", ["domainGuid"]); - _domainSid = BicepValue.DefineProperty(this, "DomainSid", ["domainSid"]); - _azureStorageSid = BicepValue.DefineProperty(this, "AzureStorageSid", ["azureStorageSid"]); - _samAccountName = BicepValue.DefineProperty(this, "SamAccountName", ["samAccountName"]); - _accountType = BicepValue.DefineProperty(this, "AccountType", ["accountType"]); + } + + /// + /// Define all the provisionable properties of + /// StorageActiveDirectoryProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _domainName = DefineProperty("DomainName", ["domainName"]); + _netBiosDomainName = DefineProperty("NetBiosDomainName", ["netBiosDomainName"]); + _forestName = DefineProperty("ForestName", ["forestName"]); + _domainGuid = DefineProperty("DomainGuid", ["domainGuid"]); + _domainSid = DefineProperty("DomainSid", ["domainSid"]); + _azureStorageSid = DefineProperty("AzureStorageSid", ["azureStorageSid"]); + _samAccountName = DefineProperty("SamAccountName", ["samAccountName"]); + _accountType = DefineProperty("AccountType", ["accountType"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageCorsRule.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageCorsRule.cs index bef720ff28a5b..6fb5f5809a233 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageCorsRule.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageCorsRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,46 +20,74 @@ public partial class StorageCorsRule : ProvisionableConstruct /// Required if CorsRule element is present. A list of origin domains that /// will be allowed via CORS, or "*" to allow all domains. /// - public BicepList AllowedOrigins { get => _allowedOrigins; set => _allowedOrigins.Assign(value); } - private readonly BicepList _allowedOrigins; + public BicepList AllowedOrigins + { + get { Initialize(); return _allowedOrigins!; } + set { Initialize(); _allowedOrigins!.Assign(value); } + } + private BicepList? _allowedOrigins; /// /// Required if CorsRule element is present. A list of HTTP methods that /// are allowed to be executed by the origin. /// - public BicepList AllowedMethods { get => _allowedMethods; set => _allowedMethods.Assign(value); } - private readonly BicepList _allowedMethods; + public BicepList AllowedMethods + { + get { Initialize(); return _allowedMethods!; } + set { Initialize(); _allowedMethods!.Assign(value); } + } + private BicepList? _allowedMethods; /// /// Required if CorsRule element is present. The number of seconds that the /// client/browser should cache a preflight response. /// - public BicepValue MaxAgeInSeconds { get => _maxAgeInSeconds; set => _maxAgeInSeconds.Assign(value); } - private readonly BicepValue _maxAgeInSeconds; + public BicepValue MaxAgeInSeconds + { + get { Initialize(); return _maxAgeInSeconds!; } + set { Initialize(); _maxAgeInSeconds!.Assign(value); } + } + private BicepValue? _maxAgeInSeconds; /// /// Required if CorsRule element is present. A list of response headers to /// expose to CORS clients. /// - public BicepList ExposedHeaders { get => _exposedHeaders; set => _exposedHeaders.Assign(value); } - private readonly BicepList _exposedHeaders; + public BicepList ExposedHeaders + { + get { Initialize(); return _exposedHeaders!; } + set { Initialize(); _exposedHeaders!.Assign(value); } + } + private BicepList? _exposedHeaders; /// /// Required if CorsRule element is present. A list of headers allowed to /// be part of the cross-origin request. /// - public BicepList AllowedHeaders { get => _allowedHeaders; set => _allowedHeaders.Assign(value); } - private readonly BicepList _allowedHeaders; + public BicepList AllowedHeaders + { + get { Initialize(); return _allowedHeaders!; } + set { Initialize(); _allowedHeaders!.Assign(value); } + } + private BicepList? _allowedHeaders; /// /// Creates a new StorageCorsRule. /// public StorageCorsRule() { - _allowedOrigins = BicepList.DefineProperty(this, "AllowedOrigins", ["allowedOrigins"]); - _allowedMethods = BicepList.DefineProperty(this, "AllowedMethods", ["allowedMethods"]); - _maxAgeInSeconds = BicepValue.DefineProperty(this, "MaxAgeInSeconds", ["maxAgeInSeconds"]); - _exposedHeaders = BicepList.DefineProperty(this, "ExposedHeaders", ["exposedHeaders"]); - _allowedHeaders = BicepList.DefineProperty(this, "AllowedHeaders", ["allowedHeaders"]); + } + + /// + /// Define all the provisionable properties of StorageCorsRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _allowedOrigins = DefineListProperty("AllowedOrigins", ["allowedOrigins"]); + _allowedMethods = DefineListProperty("AllowedMethods", ["allowedMethods"]); + _maxAgeInSeconds = DefineProperty("MaxAgeInSeconds", ["maxAgeInSeconds"]); + _exposedHeaders = DefineListProperty("ExposedHeaders", ["exposedHeaders"]); + _allowedHeaders = DefineListProperty("AllowedHeaders", ["allowedHeaders"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageCustomDomain.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageCustomDomain.cs index fd80656469d4a..cb6930055c191 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageCustomDomain.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageCustomDomain.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,22 +20,38 @@ public partial class StorageCustomDomain : ProvisionableConstruct /// Gets or sets the custom domain name assigned to the storage account. /// Name is the CNAME source. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Indicates whether indirect CName validation is enabled. Default value /// is false. This should only be set on updates. /// - public BicepValue IsUseSubDomainNameEnabled { get => _isUseSubDomainNameEnabled; set => _isUseSubDomainNameEnabled.Assign(value); } - private readonly BicepValue _isUseSubDomainNameEnabled; + public BicepValue IsUseSubDomainNameEnabled + { + get { Initialize(); return _isUseSubDomainNameEnabled!; } + set { Initialize(); _isUseSubDomainNameEnabled!.Assign(value); } + } + private BicepValue? _isUseSubDomainNameEnabled; /// /// Creates a new StorageCustomDomain. /// public StorageCustomDomain() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _isUseSubDomainNameEnabled = BicepValue.DefineProperty(this, "IsUseSubDomainNameEnabled", ["useSubDomainName"]); + } + + /// + /// Define all the provisionable properties of StorageCustomDomain. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _isUseSubDomainNameEnabled = DefineProperty("IsUseSubDomainNameEnabled", ["useSubDomainName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageEncryptionService.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageEncryptionService.cs index 9c0a4c69de3ce..900f123cbab28 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageEncryptionService.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageEncryptionService.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,16 +20,23 @@ public partial class StorageEncryptionService : ProvisionableConstruct /// is stored. Encryption at rest is enabled by default today and cannot /// be disabled. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Gets a rough estimate of the date/time when the encryption was last /// enabled by the user. Data is encrypted at rest by default today and /// cannot be disabled. /// - public BicepValue LastEnabledOn { get => _lastEnabledOn; } - private readonly BicepValue _lastEnabledOn; + public BicepValue LastEnabledOn + { + get { Initialize(); return _lastEnabledOn!; } + } + private BicepValue? _lastEnabledOn; /// /// Encryption key type to be used for the encryption service. @@ -35,16 +44,28 @@ public partial class StorageEncryptionService : ProvisionableConstruct /// key will be used. 'Service' key type implies that a default /// service key is used. /// - public BicepValue KeyType { get => _keyType; set => _keyType.Assign(value); } - private readonly BicepValue _keyType; + public BicepValue KeyType + { + get { Initialize(); return _keyType!; } + set { Initialize(); _keyType!.Assign(value); } + } + private BicepValue? _keyType; /// /// Creates a new StorageEncryptionService. /// public StorageEncryptionService() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _lastEnabledOn = BicepValue.DefineProperty(this, "LastEnabledOn", ["lastEnabledTime"], isOutput: true); - _keyType = BicepValue.DefineProperty(this, "KeyType", ["keyType"]); + } + + /// + /// Define all the provisionable properties of StorageEncryptionService. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _lastEnabledOn = DefineProperty("LastEnabledOn", ["lastEnabledTime"], isOutput: true); + _keyType = DefineProperty("KeyType", ["keyType"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StoragePermissionScope.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StoragePermissionScope.cs index 922c55cb66694..6b0deae80ad01 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StoragePermissionScope.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StoragePermissionScope.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,49 @@ public partial class StoragePermissionScope : ProvisionableConstruct /// The permissions for the local user. Possible values include: Read (r), /// Write (w), Delete (d), List (l), and Create (c). /// - public BicepValue Permissions { get => _permissions; set => _permissions.Assign(value); } - private readonly BicepValue _permissions; + public BicepValue Permissions + { + get { Initialize(); return _permissions!; } + set { Initialize(); _permissions!.Assign(value); } + } + private BicepValue? _permissions; /// /// The service used by the local user, e.g. blob, file. /// - public BicepValue Service { get => _service; set => _service.Assign(value); } - private readonly BicepValue _service; + public BicepValue Service + { + get { Initialize(); return _service!; } + set { Initialize(); _service!.Assign(value); } + } + private BicepValue? _service; /// /// The name of resource, normally the container name or the file share /// name, used by the local user. /// - public BicepValue ResourceName { get => _resourceName; set => _resourceName.Assign(value); } - private readonly BicepValue _resourceName; + public BicepValue ResourceName + { + get { Initialize(); return _resourceName!; } + set { Initialize(); _resourceName!.Assign(value); } + } + private BicepValue? _resourceName; /// /// Creates a new StoragePermissionScope. /// public StoragePermissionScope() { - _permissions = BicepValue.DefineProperty(this, "Permissions", ["permissions"]); - _service = BicepValue.DefineProperty(this, "Service", ["service"]); - _resourceName = BicepValue.DefineProperty(this, "ResourceName", ["resourceName"]); + } + + /// + /// Define all the provisionable properties of StoragePermissionScope. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _permissions = DefineProperty("Permissions", ["permissions"]); + _service = DefineProperty("Service", ["service"]); + _resourceName = DefineProperty("ResourceName", ["resourceName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StoragePrivateEndpointConnectionData.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StoragePrivateEndpointConnectionData.cs index 6ad269ec460dd..88a26c787db13 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StoragePrivateEndpointConnectionData.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StoragePrivateEndpointConnectionData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -19,50 +21,78 @@ public partial class StoragePrivateEndpointConnectionData : ProvisionableConstru /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// A collection of information about the state of the connection between /// service consumer and provider. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public StoragePrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private StoragePrivateLinkServiceConnectionState? _connectionState; /// /// The provisioning state of the private endpoint connection resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new StoragePrivateEndpointConnectionData. /// public StoragePrivateEndpointConnectionData() { - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// StoragePrivateEndpointConnectionData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StoragePrivateLinkServiceConnectionState.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StoragePrivateLinkServiceConnectionState.cs index dd7e207ca6248..a06f140258b06 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StoragePrivateLinkServiceConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StoragePrivateLinkServiceConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,29 +20,50 @@ public partial class StoragePrivateLinkServiceConnectionState : ProvisionableCon /// Indicates whether the connection has been Approved/Rejected/Removed by /// the owner of the service. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The reason for approval/rejection of the connection. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// A message indicating if changes on the service provider require any /// updates on the consumer. /// - public BicepValue ActionRequired { get => _actionRequired; set => _actionRequired.Assign(value); } - private readonly BicepValue _actionRequired; + public BicepValue ActionRequired + { + get { Initialize(); return _actionRequired!; } + set { Initialize(); _actionRequired!.Assign(value); } + } + private BicepValue? _actionRequired; /// /// Creates a new StoragePrivateLinkServiceConnectionState. /// public StoragePrivateLinkServiceConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionRequired = BicepValue.DefineProperty(this, "ActionRequired", ["actionRequired"]); + } + + /// + /// Define all the provisionable properties of + /// StoragePrivateLinkServiceConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionRequired = DefineProperty("ActionRequired", ["actionRequired"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageRoutingPreference.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageRoutingPreference.cs index bee99b8f66cd8..fd6442d56c10b 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageRoutingPreference.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageRoutingPreference.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,30 +20,50 @@ public partial class StorageRoutingPreference : ProvisionableConstruct /// /// Routing Choice defines the kind of network routing opted by the user. /// - public BicepValue RoutingChoice { get => _routingChoice; set => _routingChoice.Assign(value); } - private readonly BicepValue _routingChoice; + public BicepValue RoutingChoice + { + get { Initialize(); return _routingChoice!; } + set { Initialize(); _routingChoice!.Assign(value); } + } + private BicepValue? _routingChoice; /// /// A boolean flag which indicates whether microsoft routing storage /// endpoints are to be published. /// - public BicepValue IsMicrosoftEndpointsPublished { get => _isMicrosoftEndpointsPublished; set => _isMicrosoftEndpointsPublished.Assign(value); } - private readonly BicepValue _isMicrosoftEndpointsPublished; + public BicepValue IsMicrosoftEndpointsPublished + { + get { Initialize(); return _isMicrosoftEndpointsPublished!; } + set { Initialize(); _isMicrosoftEndpointsPublished!.Assign(value); } + } + private BicepValue? _isMicrosoftEndpointsPublished; /// /// A boolean flag which indicates whether internet routing storage /// endpoints are to be published. /// - public BicepValue IsInternetEndpointsPublished { get => _isInternetEndpointsPublished; set => _isInternetEndpointsPublished.Assign(value); } - private readonly BicepValue _isInternetEndpointsPublished; + public BicepValue IsInternetEndpointsPublished + { + get { Initialize(); return _isInternetEndpointsPublished!; } + set { Initialize(); _isInternetEndpointsPublished!.Assign(value); } + } + private BicepValue? _isInternetEndpointsPublished; /// /// Creates a new StorageRoutingPreference. /// public StorageRoutingPreference() { - _routingChoice = BicepValue.DefineProperty(this, "RoutingChoice", ["routingChoice"]); - _isMicrosoftEndpointsPublished = BicepValue.DefineProperty(this, "IsMicrosoftEndpointsPublished", ["publishMicrosoftEndpoints"]); - _isInternetEndpointsPublished = BicepValue.DefineProperty(this, "IsInternetEndpointsPublished", ["publishInternetEndpoints"]); + } + + /// + /// Define all the provisionable properties of StorageRoutingPreference. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _routingChoice = DefineProperty("RoutingChoice", ["routingChoice"]); + _isMicrosoftEndpointsPublished = DefineProperty("IsMicrosoftEndpointsPublished", ["publishMicrosoftEndpoints"]); + _isInternetEndpointsPublished = DefineProperty("IsInternetEndpointsPublished", ["publishInternetEndpoints"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageServiceAccessPolicy.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageServiceAccessPolicy.cs index dd23a2d5ad2c9..a7582c86acdbb 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageServiceAccessPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageServiceAccessPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class StorageServiceAccessPolicy : ProvisionableConstruct /// /// Start time of the access policy. /// - public BicepValue StartOn { get => _startOn; set => _startOn.Assign(value); } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + set { Initialize(); _startOn!.Assign(value); } + } + private BicepValue? _startOn; /// /// Expiry time of the access policy. /// - public BicepValue ExpireOn { get => _expireOn; set => _expireOn.Assign(value); } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + set { Initialize(); _expireOn!.Assign(value); } + } + private BicepValue? _expireOn; /// /// List of abbreviated permissions. /// - public BicepValue Permission { get => _permission; set => _permission.Assign(value); } - private readonly BicepValue _permission; + public BicepValue Permission + { + get { Initialize(); return _permission!; } + set { Initialize(); _permission!.Assign(value); } + } + private BicepValue? _permission; /// /// Creates a new StorageServiceAccessPolicy. /// public StorageServiceAccessPolicy() { - _startOn = BicepValue.DefineProperty(this, "StartOn", ["startTime"]); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["expiryTime"]); - _permission = BicepValue.DefineProperty(this, "Permission", ["permission"]); + } + + /// + /// Define all the provisionable properties of StorageServiceAccessPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _startOn = DefineProperty("StartOn", ["startTime"]); + _expireOn = DefineProperty("ExpireOn", ["expiryTime"]); + _permission = DefineProperty("Permission", ["permission"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageSignedIdentifier.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageSignedIdentifier.cs index 05b22aeb3301a..a83ab7a939908 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageSignedIdentifier.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageSignedIdentifier.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class StorageSignedIdentifier : ProvisionableConstruct /// /// An unique identifier of the stored access policy. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// Access policy. /// - public BicepValue AccessPolicy { get => _accessPolicy; set => _accessPolicy.Assign(value); } - private readonly BicepValue _accessPolicy; + public StorageServiceAccessPolicy AccessPolicy + { + get { Initialize(); return _accessPolicy!; } + set { Initialize(); AssignOrReplace(ref _accessPolicy, value); } + } + private StorageServiceAccessPolicy? _accessPolicy; /// /// Creates a new StorageSignedIdentifier. /// public StorageSignedIdentifier() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _accessPolicy = BicepValue.DefineProperty(this, "AccessPolicy", ["accessPolicy"]); + } + + /// + /// Define all the provisionable properties of StorageSignedIdentifier. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _accessPolicy = DefineModelProperty("AccessPolicy", ["accessPolicy"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageSku.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageSku.cs index 72f7c7a4ee989..f8e97ff9102fb 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageSku.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.Storage; @@ -16,21 +18,36 @@ public partial class StorageSku : ProvisionableConstruct /// The SKU name. Required for account creation; optional for update. Note /// that in older versions, SKU name was called accountType. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The SKU tier. This is based on the SKU name. /// - public BicepValue Tier { get => _tier; } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + } + private BicepValue? _tier; /// /// Creates a new StorageSku. /// public StorageSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"], isOutput: true); + } + + /// + /// Define all the provisionable properties of StorageSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageSshPublicKey.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageSshPublicKey.cs index 446bc7ee72989..ec5dbae6c402c 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageSshPublicKey.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageSshPublicKey.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,38 @@ public partial class StorageSshPublicKey : ProvisionableConstruct /// /// Optional. It is used to store the function/usage of the key. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Ssh public key base64 encoded. The format should be: /// '<keyType> <keyData>', e.g. ssh-rsa AAAABBBB. /// - public BicepValue Key { get => _key; set => _key.Assign(value); } - private readonly BicepValue _key; + public BicepValue Key + { + get { Initialize(); return _key!; } + set { Initialize(); _key!.Assign(value); } + } + private BicepValue? _key; /// /// Creates a new StorageSshPublicKey. /// public StorageSshPublicKey() { - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _key = BicepValue.DefineProperty(this, "Key", ["key"], isSecure: true); + } + + /// + /// Define all the provisionable properties of StorageSshPublicKey. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _description = DefineProperty("Description", ["description"]); + _key = DefineProperty("Key", ["key"], isSecure: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageTableAccessPolicy.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageTableAccessPolicy.cs index 50788eb40841e..27a5d7fb7b449 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageTableAccessPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageTableAccessPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,49 @@ public partial class StorageTableAccessPolicy : ProvisionableConstruct /// /// Start time of the access policy. /// - public BicepValue StartOn { get => _startOn; set => _startOn.Assign(value); } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + set { Initialize(); _startOn!.Assign(value); } + } + private BicepValue? _startOn; /// /// Expiry time of the access policy. /// - public BicepValue ExpireOn { get => _expireOn; set => _expireOn.Assign(value); } - private readonly BicepValue _expireOn; + public BicepValue ExpireOn + { + get { Initialize(); return _expireOn!; } + set { Initialize(); _expireOn!.Assign(value); } + } + private BicepValue? _expireOn; /// /// Required. List of abbreviated permissions. Supported permission values /// include 'r','a','u','d'. /// - public BicepValue Permission { get => _permission; set => _permission.Assign(value); } - private readonly BicepValue _permission; + public BicepValue Permission + { + get { Initialize(); return _permission!; } + set { Initialize(); _permission!.Assign(value); } + } + private BicepValue? _permission; /// /// Creates a new StorageTableAccessPolicy. /// public StorageTableAccessPolicy() { - _startOn = BicepValue.DefineProperty(this, "StartOn", ["startTime"]); - _expireOn = BicepValue.DefineProperty(this, "ExpireOn", ["expiryTime"]); - _permission = BicepValue.DefineProperty(this, "Permission", ["permission"]); + } + + /// + /// Define all the provisionable properties of StorageTableAccessPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _startOn = DefineProperty("StartOn", ["startTime"]); + _expireOn = DefineProperty("ExpireOn", ["expiryTime"]); + _permission = DefineProperty("Permission", ["permission"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageTableSignedIdentifier.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageTableSignedIdentifier.cs index 93db1d7055e22..06255c17d20b2 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageTableSignedIdentifier.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/StorageTableSignedIdentifier.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class StorageTableSignedIdentifier : ProvisionableConstruct /// /// unique-64-character-value of the stored access policy. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// Access policy. /// - public BicepValue AccessPolicy { get => _accessPolicy; set => _accessPolicy.Assign(value); } - private readonly BicepValue _accessPolicy; + public StorageTableAccessPolicy AccessPolicy + { + get { Initialize(); return _accessPolicy!; } + set { Initialize(); AssignOrReplace(ref _accessPolicy, value); } + } + private StorageTableAccessPolicy? _accessPolicy; /// /// Creates a new StorageTableSignedIdentifier. /// public StorageTableSignedIdentifier() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _accessPolicy = BicepValue.DefineProperty(this, "AccessPolicy", ["accessPolicy"]); + } + + /// + /// Define all the provisionable properties of StorageTableSignedIdentifier. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _accessPolicy = DefineModelProperty("AccessPolicy", ["accessPolicy"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/UpdateHistoryEntry.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/UpdateHistoryEntry.cs index 7eb68c21da567..f1b23ab8e0de5 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/UpdateHistoryEntry.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/UpdateHistoryEntry.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,41 +19,59 @@ public partial class UpdateHistoryEntry : ProvisionableConstruct /// The ImmutabilityPolicy update type of a blob container, possible values /// include: put, lock and extend. /// - public BicepValue UpdateType { get => _updateType; } - private readonly BicepValue _updateType; + public BicepValue UpdateType + { + get { Initialize(); return _updateType!; } + } + private BicepValue? _updateType; /// /// The immutability period for the blobs in the container since the policy /// creation, in days. /// - public BicepValue ImmutabilityPeriodSinceCreationInDays { get => _immutabilityPeriodSinceCreationInDays; } - private readonly BicepValue _immutabilityPeriodSinceCreationInDays; + public BicepValue ImmutabilityPeriodSinceCreationInDays + { + get { Initialize(); return _immutabilityPeriodSinceCreationInDays!; } + } + private BicepValue? _immutabilityPeriodSinceCreationInDays; /// /// Returns the date and time the ImmutabilityPolicy was updated. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// Returns the Object ID of the user who updated the ImmutabilityPolicy. /// - public BicepValue ObjectIdentifier { get => _objectIdentifier; } - private readonly BicepValue _objectIdentifier; + public BicepValue ObjectIdentifier + { + get { Initialize(); return _objectIdentifier!; } + } + private BicepValue? _objectIdentifier; /// /// Returns the Tenant ID that issued the token for the user who updated /// the ImmutabilityPolicy. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// Returns the User Principal Name of the user who updated the /// ImmutabilityPolicy. /// - public BicepValue Upn { get => _upn; } - private readonly BicepValue _upn; + public BicepValue Upn + { + get { Initialize(); return _upn!; } + } + private BicepValue? _upn; /// /// This property can only be changed for unlocked time-based retention @@ -61,8 +81,11 @@ public partial class UpdateHistoryEntry : ProvisionableConstruct /// deleted. This property cannot be changed with ExtendImmutabilityPolicy /// API. /// - public BicepValue AllowProtectedAppendWrites { get => _allowProtectedAppendWrites; } - private readonly BicepValue _allowProtectedAppendWrites; + public BicepValue AllowProtectedAppendWrites + { + get { Initialize(); return _allowProtectedAppendWrites!; } + } + private BicepValue? _allowProtectedAppendWrites; /// /// This property can only be changed for unlocked time-based retention @@ -75,21 +98,32 @@ public partial class UpdateHistoryEntry : ProvisionableConstruct /// 'allowProtectedAppendWritesAll' properties are mutually /// exclusive. /// - public BicepValue AllowProtectedAppendWritesAll { get => _allowProtectedAppendWritesAll; } - private readonly BicepValue _allowProtectedAppendWritesAll; + public BicepValue AllowProtectedAppendWritesAll + { + get { Initialize(); return _allowProtectedAppendWritesAll!; } + } + private BicepValue? _allowProtectedAppendWritesAll; /// /// Creates a new UpdateHistoryEntry. /// public UpdateHistoryEntry() { - _updateType = BicepValue.DefineProperty(this, "UpdateType", ["update"], isOutput: true); - _immutabilityPeriodSinceCreationInDays = BicepValue.DefineProperty(this, "ImmutabilityPeriodSinceCreationInDays", ["immutabilityPeriodSinceCreationInDays"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["timestamp"], isOutput: true); - _objectIdentifier = BicepValue.DefineProperty(this, "ObjectIdentifier", ["objectIdentifier"], isOutput: true); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); - _upn = BicepValue.DefineProperty(this, "Upn", ["upn"], isOutput: true); - _allowProtectedAppendWrites = BicepValue.DefineProperty(this, "AllowProtectedAppendWrites", ["allowProtectedAppendWrites"], isOutput: true); - _allowProtectedAppendWritesAll = BicepValue.DefineProperty(this, "AllowProtectedAppendWritesAll", ["allowProtectedAppendWritesAll"], isOutput: true); + } + + /// + /// Define all the provisionable properties of UpdateHistoryEntry. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _updateType = DefineProperty("UpdateType", ["update"], isOutput: true); + _immutabilityPeriodSinceCreationInDays = DefineProperty("ImmutabilityPeriodSinceCreationInDays", ["immutabilityPeriodSinceCreationInDays"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["timestamp"], isOutput: true); + _objectIdentifier = DefineProperty("ObjectIdentifier", ["objectIdentifier"], isOutput: true); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); + _upn = DefineProperty("Upn", ["upn"], isOutput: true); + _allowProtectedAppendWrites = DefineProperty("AllowProtectedAppendWrites", ["allowProtectedAppendWrites"], isOutput: true); + _allowProtectedAppendWritesAll = DefineProperty("AllowProtectedAppendWritesAll", ["allowProtectedAppendWritesAll"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/ObjectReplicationPolicy.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/ObjectReplicationPolicy.cs index 5a850db13a551..2064ca7dc7475 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/ObjectReplicationPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/ObjectReplicationPolicy.cs @@ -21,58 +21,89 @@ public partial class ObjectReplicationPolicy : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Required. Destination account name. It should be full resource id if /// allowCrossTenantReplication set to false. /// - public BicepValue DestinationAccount { get => _destinationAccount; set => _destinationAccount.Assign(value); } - private readonly BicepValue _destinationAccount; + public BicepValue DestinationAccount + { + get { Initialize(); return _destinationAccount!; } + set { Initialize(); _destinationAccount!.Assign(value); } + } + private BicepValue? _destinationAccount; /// /// The storage account object replication rules. /// - public BicepList Rules { get => _rules; set => _rules.Assign(value); } - private readonly BicepList _rules; + public BicepList Rules + { + get { Initialize(); return _rules!; } + set { Initialize(); _rules!.Assign(value); } + } + private BicepList? _rules; /// /// Required. Source account name. It should be full resource id if /// allowCrossTenantReplication set to false. /// - public BicepValue SourceAccount { get => _sourceAccount; set => _sourceAccount.Assign(value); } - private readonly BicepValue _sourceAccount; + public BicepValue SourceAccount + { + get { Initialize(); return _sourceAccount!; } + set { Initialize(); _sourceAccount!.Assign(value); } + } + private BicepValue? _sourceAccount; /// /// Indicates when the policy is enabled on the source account. /// - public BicepValue EnabledOn { get => _enabledOn; } - private readonly BicepValue _enabledOn; + public BicepValue EnabledOn + { + get { Initialize(); return _enabledOn!; } + } + private BicepValue? _enabledOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// A unique id for object replication policy. /// - public BicepValue PolicyId { get => _policyId; } - private readonly BicepValue _policyId; + public BicepValue PolicyId + { + get { Initialize(); return _policyId!; } + } + private BicepValue? _policyId; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StorageAccount. /// - public StorageAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StorageAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ObjectReplicationPolicy. @@ -87,15 +118,22 @@ public partial class ObjectReplicationPolicy : ProvisionableResource public ObjectReplicationPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/objectReplicationPolicies", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _destinationAccount = BicepValue.DefineProperty(this, "DestinationAccount", ["properties", "destinationAccount"]); - _rules = BicepList.DefineProperty(this, "Rules", ["properties", "rules"]); - _sourceAccount = BicepValue.DefineProperty(this, "SourceAccount", ["properties", "sourceAccount"]); - _enabledOn = BicepValue.DefineProperty(this, "EnabledOn", ["properties", "enabledTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _policyId = BicepValue.DefineProperty(this, "PolicyId", ["properties", "policyId"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ObjectReplicationPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _destinationAccount = DefineProperty("DestinationAccount", ["properties", "destinationAccount"]); + _rules = DefineListProperty("Rules", ["properties", "rules"]); + _sourceAccount = DefineProperty("SourceAccount", ["properties", "sourceAccount"]); + _enabledOn = DefineProperty("EnabledOn", ["properties", "enabledTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _policyId = DefineProperty("PolicyId", ["properties", "policyId"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/QueueService.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/QueueService.cs index d01f4445c7dc0..968f8e6d56878 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/QueueService.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/QueueService.cs @@ -21,33 +21,50 @@ public partial class QueueService : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The List of CORS rules. You can include up to five CorsRule elements in /// the request. /// - public BicepList CorsRules { get => _corsRules; set => _corsRules.Assign(value); } - private readonly BicepList _corsRules; + public BicepList CorsRules + { + get { Initialize(); return _corsRules!; } + set { Initialize(); _corsRules!.Assign(value); } + } + private BicepList? _corsRules; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StorageAccount. /// - public StorageAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StorageAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new QueueService. @@ -62,11 +79,18 @@ public partial class QueueService : ProvisionableResource public QueueService(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/queueServices", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _corsRules = BicepList.DefineProperty(this, "CorsRules", ["properties", "cors", "corsRules"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of QueueService. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _corsRules = DefineListProperty("CorsRules", ["properties", "cors", "corsRules"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageAccount.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageAccount.cs index 38bd96cecb8cc..13927442d4827 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageAccount.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageAccount.cs @@ -27,14 +27,22 @@ public partial class StorageAccount : ProvisionableResource /// Storage account names must be between 3 and 24 characters in length /// and use numbers and lower-case letters only. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Required. Indicates the type of storage account. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Required. Gets or sets the location of the resource. This will be one @@ -43,14 +51,22 @@ public partial class StorageAccount : ProvisionableResource /// changed once it is created, but if an identical geo region is /// specified on update, the request will succeed. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Required. Gets or sets the SKU name. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public StorageSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private StorageSku? _sku; /// /// Required for storage accounts where kind = BlobStorage. The access tier @@ -58,29 +74,45 @@ public partial class StorageAccount : ProvisionableResource /// default value for premium block blobs storage account type and it /// cannot be changed for the premium block blobs storage account type. /// - public BicepValue AccessTier { get => _accessTier; set => _accessTier.Assign(value); } - private readonly BicepValue _accessTier; + public BicepValue AccessTier + { + get { Initialize(); return _accessTier!; } + set { Initialize(); _accessTier!.Assign(value); } + } + private BicepValue? _accessTier; /// /// Allow or disallow public access to all blobs or containers in the /// storage account. The default interpretation is true for this property. /// - public BicepValue AllowBlobPublicAccess { get => _allowBlobPublicAccess; set => _allowBlobPublicAccess.Assign(value); } - private readonly BicepValue _allowBlobPublicAccess; + public BicepValue AllowBlobPublicAccess + { + get { Initialize(); return _allowBlobPublicAccess!; } + set { Initialize(); _allowBlobPublicAccess!.Assign(value); } + } + private BicepValue? _allowBlobPublicAccess; /// /// Allow or disallow cross AAD tenant object replication. The default /// interpretation is true for this property. /// - public BicepValue AllowCrossTenantReplication { get => _allowCrossTenantReplication; set => _allowCrossTenantReplication.Assign(value); } - private readonly BicepValue _allowCrossTenantReplication; + public BicepValue AllowCrossTenantReplication + { + get { Initialize(); return _allowCrossTenantReplication!; } + set { Initialize(); _allowCrossTenantReplication!.Assign(value); } + } + private BicepValue? _allowCrossTenantReplication; /// /// Restrict copy to and from Storage Accounts within an AAD tenant or with /// Private Links to the same VNet. /// - public BicepValue AllowedCopyScope { get => _allowedCopyScope; set => _allowedCopyScope.Assign(value); } - private readonly BicepValue _allowedCopyScope; + public BicepValue AllowedCopyScope + { + get { Initialize(); return _allowedCopyScope!; } + set { Initialize(); _allowedCopyScope!.Assign(value); } + } + private BicepValue? _allowedCopyScope; /// /// Indicates whether the storage account permits requests to be authorized @@ -89,14 +121,22 @@ public partial class StorageAccount : ProvisionableResource /// Azure Active Directory (Azure AD). The default value is null, which is /// equivalent to true. /// - public BicepValue AllowSharedKeyAccess { get => _allowSharedKeyAccess; set => _allowSharedKeyAccess.Assign(value); } - private readonly BicepValue _allowSharedKeyAccess; + public BicepValue AllowSharedKeyAccess + { + get { Initialize(); return _allowSharedKeyAccess!; } + set { Initialize(); _allowSharedKeyAccess!.Assign(value); } + } + private BicepValue? _allowSharedKeyAccess; /// /// Provides the identity based authentication settings for Azure Files. /// - public BicepValue AzureFilesIdentityBasedAuthentication { get => _azureFilesIdentityBasedAuthentication; set => _azureFilesIdentityBasedAuthentication.Assign(value); } - private readonly BicepValue _azureFilesIdentityBasedAuthentication; + public FilesIdentityBasedAuthentication AzureFilesIdentityBasedAuthentication + { + get { Initialize(); return _azureFilesIdentityBasedAuthentication!; } + set { Initialize(); AssignOrReplace(ref _azureFilesIdentityBasedAuthentication, value); } + } + private FilesIdentityBasedAuthentication? _azureFilesIdentityBasedAuthentication; /// /// User domain assigned to the storage account. Name is the CNAME source. @@ -104,8 +144,12 @@ public partial class StorageAccount : ProvisionableResource /// To clear the existing custom domain, use an empty string for the /// custom domain name property. /// - public BicepValue CustomDomain { get => _customDomain; set => _customDomain.Assign(value); } - private readonly BicepValue _customDomain; + public StorageCustomDomain CustomDomain + { + get { Initialize(); return _customDomain!; } + set { Initialize(); AssignOrReplace(ref _customDomain, value); } + } + private StorageCustomDomain? _customDomain; /// /// Allows you to specify the type of endpoint. Set this to AzureDNSZone to @@ -113,122 +157,194 @@ public partial class StorageAccount : ProvisionableResource /// creates accounts in an Azure DNS Zone and the endpoint URL will have /// an alphanumeric DNS Zone identifier. /// - public BicepValue DnsEndpointType { get => _dnsEndpointType; set => _dnsEndpointType.Assign(value); } - private readonly BicepValue _dnsEndpointType; + public BicepValue DnsEndpointType + { + get { Initialize(); return _dnsEndpointType!; } + set { Initialize(); _dnsEndpointType!.Assign(value); } + } + private BicepValue? _dnsEndpointType; /// /// Allows https traffic only to storage service if sets to true. The /// default value is true since API version 2019-04-01. /// - public BicepValue EnableHttpsTrafficOnly { get => _enableHttpsTrafficOnly; set => _enableHttpsTrafficOnly.Assign(value); } - private readonly BicepValue _enableHttpsTrafficOnly; + public BicepValue EnableHttpsTrafficOnly + { + get { Initialize(); return _enableHttpsTrafficOnly!; } + set { Initialize(); _enableHttpsTrafficOnly!.Assign(value); } + } + private BicepValue? _enableHttpsTrafficOnly; /// /// Encryption settings to be used for server-side encryption for the /// storage account. /// - public BicepValue Encryption { get => _encryption; set => _encryption.Assign(value); } - private readonly BicepValue _encryption; + public StorageAccountEncryption Encryption + { + get { Initialize(); return _encryption!; } + set { Initialize(); AssignOrReplace(ref _encryption, value); } + } + private StorageAccountEncryption? _encryption; /// /// Optional. Set the extended location of the resource. If not set, the /// storage account will be created in Azure main region. Otherwise it /// will be created in the specified extended location. /// - public BicepValue ExtendedLocation { get => _extendedLocation; set => _extendedLocation.Assign(value); } - private readonly BicepValue _extendedLocation; + public ExtendedAzureLocation ExtendedLocation + { + get { Initialize(); return _extendedLocation!; } + set { Initialize(); AssignOrReplace(ref _extendedLocation, value); } + } + private ExtendedAzureLocation? _extendedLocation; /// /// The identity of the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// The property is immutable and can only be set to true at the account /// creation time. When set to true, it enables object level immutability /// for all the new containers in the account by default. /// - public BicepValue ImmutableStorageWithVersioning { get => _immutableStorageWithVersioning; set => _immutableStorageWithVersioning.Assign(value); } - private readonly BicepValue _immutableStorageWithVersioning; + public ImmutableStorageAccount ImmutableStorageWithVersioning + { + get { Initialize(); return _immutableStorageWithVersioning!; } + set { Initialize(); AssignOrReplace(ref _immutableStorageWithVersioning, value); } + } + private ImmutableStorageAccount? _immutableStorageWithVersioning; /// /// A boolean flag which indicates whether the default authentication is /// OAuth or not. The default interpretation is false for this property. /// - public BicepValue IsDefaultToOAuthAuthentication { get => _isDefaultToOAuthAuthentication; set => _isDefaultToOAuthAuthentication.Assign(value); } - private readonly BicepValue _isDefaultToOAuthAuthentication; + public BicepValue IsDefaultToOAuthAuthentication + { + get { Initialize(); return _isDefaultToOAuthAuthentication!; } + set { Initialize(); _isDefaultToOAuthAuthentication!.Assign(value); } + } + private BicepValue? _isDefaultToOAuthAuthentication; /// /// Account HierarchicalNamespace enabled if sets to true. /// - public BicepValue IsHnsEnabled { get => _isHnsEnabled; set => _isHnsEnabled.Assign(value); } - private readonly BicepValue _isHnsEnabled; + public BicepValue IsHnsEnabled + { + get { Initialize(); return _isHnsEnabled!; } + set { Initialize(); _isHnsEnabled!.Assign(value); } + } + private BicepValue? _isHnsEnabled; /// /// Enables local users feature, if set to true. /// - public BicepValue IsLocalUserEnabled { get => _isLocalUserEnabled; set => _isLocalUserEnabled.Assign(value); } - private readonly BicepValue _isLocalUserEnabled; + public BicepValue IsLocalUserEnabled + { + get { Initialize(); return _isLocalUserEnabled!; } + set { Initialize(); _isLocalUserEnabled!.Assign(value); } + } + private BicepValue? _isLocalUserEnabled; /// /// NFS 3.0 protocol support enabled if set to true. /// - public BicepValue IsNfsV3Enabled { get => _isNfsV3Enabled; set => _isNfsV3Enabled.Assign(value); } - private readonly BicepValue _isNfsV3Enabled; + public BicepValue IsNfsV3Enabled + { + get { Initialize(); return _isNfsV3Enabled!; } + set { Initialize(); _isNfsV3Enabled!.Assign(value); } + } + private BicepValue? _isNfsV3Enabled; /// /// Enables Secure File Transfer Protocol, if set to true. /// - public BicepValue IsSftpEnabled { get => _isSftpEnabled; set => _isSftpEnabled.Assign(value); } - private readonly BicepValue _isSftpEnabled; + public BicepValue IsSftpEnabled + { + get { Initialize(); return _isSftpEnabled!; } + set { Initialize(); _isSftpEnabled!.Assign(value); } + } + private BicepValue? _isSftpEnabled; /// /// The key expiration period in days. /// - public BicepValue KeyExpirationPeriodInDays { get => _keyExpirationPeriodInDays; set => _keyExpirationPeriodInDays.Assign(value); } - private readonly BicepValue _keyExpirationPeriodInDays; + public BicepValue KeyExpirationPeriodInDays + { + get { Initialize(); return _keyExpirationPeriodInDays!; } + set { Initialize(); _keyExpirationPeriodInDays!.Assign(value); } + } + private BicepValue? _keyExpirationPeriodInDays; /// /// Allow large file shares if sets to Enabled. It cannot be disabled once /// it is enabled. /// - public BicepValue LargeFileSharesState { get => _largeFileSharesState; set => _largeFileSharesState.Assign(value); } - private readonly BicepValue _largeFileSharesState; + public BicepValue LargeFileSharesState + { + get { Initialize(); return _largeFileSharesState!; } + set { Initialize(); _largeFileSharesState!.Assign(value); } + } + private BicepValue? _largeFileSharesState; /// /// Set the minimum TLS version to be permitted on requests to storage. The /// default interpretation is TLS 1.0 for this property. /// - public BicepValue MinimumTlsVersion { get => _minimumTlsVersion; set => _minimumTlsVersion.Assign(value); } - private readonly BicepValue _minimumTlsVersion; + public BicepValue MinimumTlsVersion + { + get { Initialize(); return _minimumTlsVersion!; } + set { Initialize(); _minimumTlsVersion!.Assign(value); } + } + private BicepValue? _minimumTlsVersion; /// /// Network rule set. /// - public BicepValue NetworkRuleSet { get => _networkRuleSet; set => _networkRuleSet.Assign(value); } - private readonly BicepValue _networkRuleSet; + public StorageAccountNetworkRuleSet NetworkRuleSet + { + get { Initialize(); return _networkRuleSet!; } + set { Initialize(); AssignOrReplace(ref _networkRuleSet, value); } + } + private StorageAccountNetworkRuleSet? _networkRuleSet; /// /// Allow or disallow public network access to Storage Account. Value is /// optional but if passed in, must be 'Enabled' or /// 'Disabled'. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Maintains information about the network routing choice opted by the /// user for data transfer. /// - public BicepValue RoutingPreference { get => _routingPreference; set => _routingPreference.Assign(value); } - private readonly BicepValue _routingPreference; + public StorageRoutingPreference RoutingPreference + { + get { Initialize(); return _routingPreference!; } + set { Initialize(); AssignOrReplace(ref _routingPreference, value); } + } + private StorageRoutingPreference? _routingPreference; /// /// SasPolicy assigned to the storage account. /// - public BicepValue SasPolicy { get => _sasPolicy; set => _sasPolicy.Assign(value); } - private readonly BicepValue _sasPolicy; + public StorageAccountSasPolicy SasPolicy + { + get { Initialize(); return _sasPolicy!; } + set { Initialize(); AssignOrReplace(ref _sasPolicy, value); } + } + private StorageAccountSasPolicy? _sasPolicy; /// /// Gets or sets a list of key value pairs that describe the resource. @@ -237,45 +353,67 @@ public partial class StorageAccount : ProvisionableResource /// Each tag must have a key with a length no greater than 128 characters /// and a value with a length no greater than 256 characters. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Blob restore status. /// - public BicepValue BlobRestoreStatus { get => _blobRestoreStatus; } - private readonly BicepValue _blobRestoreStatus; + public BlobRestoreStatus BlobRestoreStatus + { + get { Initialize(); return _blobRestoreStatus!; } + } + private BlobRestoreStatus? _blobRestoreStatus; /// /// Gets the creation date and time of the storage account in UTC. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Geo Replication Stats. /// - public BicepValue GeoReplicationStats { get => _geoReplicationStats; } - private readonly BicepValue _geoReplicationStats; + public GeoReplicationStatistics GeoReplicationStats + { + get { Initialize(); return _geoReplicationStats!; } + } + private GeoReplicationStatistics? _geoReplicationStats; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// If the failover is in progress, the value will be true, otherwise, it /// will be null. /// - public BicepValue IsFailoverInProgress { get => _isFailoverInProgress; } - private readonly BicepValue _isFailoverInProgress; + public BicepValue IsFailoverInProgress + { + get { Initialize(); return _isFailoverInProgress!; } + } + private BicepValue? _isFailoverInProgress; /// /// Storage account keys creation time. /// - public BicepValue KeyCreationTime { get => _keyCreationTime; } - private readonly BicepValue _keyCreationTime; + public StorageAccountKeyCreationTime KeyCreationTime + { + get { Initialize(); return _keyCreationTime!; } + } + private StorageAccountKeyCreationTime? _keyCreationTime; /// /// Gets the timestamp of the most recent instance of a failover to the @@ -283,80 +421,113 @@ public partial class StorageAccount : ProvisionableResource /// element is not returned if there has never been a failover instance. /// Only available if the accountType is Standard_GRS or Standard_RAGRS. /// - public BicepValue LastGeoFailoverOn { get => _lastGeoFailoverOn; } - private readonly BicepValue _lastGeoFailoverOn; + public BicepValue LastGeoFailoverOn + { + get { Initialize(); return _lastGeoFailoverOn!; } + } + private BicepValue? _lastGeoFailoverOn; /// /// Gets the URLs that are used to perform a retrieval of a public blob, /// queue, or table object. Note that Standard_ZRS and Premium_LRS /// accounts only return the blob endpoint. /// - public BicepValue PrimaryEndpoints { get => _primaryEndpoints; } - private readonly BicepValue _primaryEndpoints; + public StorageAccountEndpoints PrimaryEndpoints + { + get { Initialize(); return _primaryEndpoints!; } + } + private StorageAccountEndpoints? _primaryEndpoints; /// /// Gets the location of the primary data center for the storage account. /// - public BicepValue PrimaryLocation { get => _primaryLocation; } - private readonly BicepValue _primaryLocation; + public BicepValue PrimaryLocation + { + get { Initialize(); return _primaryLocation!; } + } + private BicepValue? _primaryLocation; /// /// List of private endpoint connection associated with the specified /// storage account. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// Gets the status of the storage account at the time the operation was /// called. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the URLs that are used to perform a retrieval of a public blob, /// queue, or table object from the secondary location of the storage /// account. Only available if the SKU name is Standard_RAGRS. /// - public BicepValue SecondaryEndpoints { get => _secondaryEndpoints; } - private readonly BicepValue _secondaryEndpoints; + public StorageAccountEndpoints SecondaryEndpoints + { + get { Initialize(); return _secondaryEndpoints!; } + } + private StorageAccountEndpoints? _secondaryEndpoints; /// /// Gets the location of the geo-replicated secondary for the storage /// account. Only available if the accountType is Standard_GRS or /// Standard_RAGRS. /// - public BicepValue SecondaryLocation { get => _secondaryLocation; } - private readonly BicepValue _secondaryLocation; + public BicepValue SecondaryLocation + { + get { Initialize(); return _secondaryLocation!; } + } + private BicepValue? _secondaryLocation; /// /// Gets the status indicating whether the primary location of the storage /// account is available or unavailable. /// - public BicepValue StatusOfPrimary { get => _statusOfPrimary; } - private readonly BicepValue _statusOfPrimary; + public BicepValue StatusOfPrimary + { + get { Initialize(); return _statusOfPrimary!; } + } + private BicepValue? _statusOfPrimary; /// /// Gets the status indicating whether the secondary location of the /// storage account is available or unavailable. Only available if the SKU /// name is Standard_GRS or Standard_RAGRS. /// - public BicepValue StatusOfSecondary { get => _statusOfSecondary; } - private readonly BicepValue _statusOfSecondary; + public BicepValue StatusOfSecondary + { + get { Initialize(); return _statusOfSecondary!; } + } + private BicepValue? _statusOfSecondary; /// /// This property is readOnly and is set by server during asynchronous /// storage account sku conversion operations. /// - public BicepValue StorageAccountSkuConversionStatus { get => _storageAccountSkuConversionStatus; } - private readonly BicepValue _storageAccountSkuConversionStatus; + public StorageAccountSkuConversionStatus StorageAccountSkuConversionStatus + { + get { Initialize(); return _storageAccountSkuConversionStatus!; } + } + private StorageAccountSkuConversionStatus? _storageAccountSkuConversionStatus; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new StorageAccount. @@ -371,53 +542,60 @@ public partial class StorageAccount : ProvisionableResource public StorageAccount(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"], isRequired: true); - _accessTier = BicepValue.DefineProperty(this, "AccessTier", ["properties", "accessTier"]); - _allowBlobPublicAccess = BicepValue.DefineProperty(this, "AllowBlobPublicAccess", ["properties", "allowBlobPublicAccess"]); - _allowCrossTenantReplication = BicepValue.DefineProperty(this, "AllowCrossTenantReplication", ["properties", "allowCrossTenantReplication"]); - _allowedCopyScope = BicepValue.DefineProperty(this, "AllowedCopyScope", ["properties", "allowedCopyScope"]); - _allowSharedKeyAccess = BicepValue.DefineProperty(this, "AllowSharedKeyAccess", ["properties", "allowSharedKeyAccess"]); - _azureFilesIdentityBasedAuthentication = BicepValue.DefineProperty(this, "AzureFilesIdentityBasedAuthentication", ["properties", "azureFilesIdentityBasedAuthentication"]); - _customDomain = BicepValue.DefineProperty(this, "CustomDomain", ["properties", "customDomain"]); - _dnsEndpointType = BicepValue.DefineProperty(this, "DnsEndpointType", ["properties", "dnsEndpointType"]); - _enableHttpsTrafficOnly = BicepValue.DefineProperty(this, "EnableHttpsTrafficOnly", ["properties", "supportsHttpsTrafficOnly"]); - _encryption = BicepValue.DefineProperty(this, "Encryption", ["properties", "encryption"]); - _extendedLocation = BicepValue.DefineProperty(this, "ExtendedLocation", ["extendedLocation"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _immutableStorageWithVersioning = BicepValue.DefineProperty(this, "ImmutableStorageWithVersioning", ["properties", "immutableStorageWithVersioning"]); - _isDefaultToOAuthAuthentication = BicepValue.DefineProperty(this, "IsDefaultToOAuthAuthentication", ["properties", "defaultToOAuthAuthentication"]); - _isHnsEnabled = BicepValue.DefineProperty(this, "IsHnsEnabled", ["properties", "isHnsEnabled"]); - _isLocalUserEnabled = BicepValue.DefineProperty(this, "IsLocalUserEnabled", ["properties", "isLocalUserEnabled"]); - _isNfsV3Enabled = BicepValue.DefineProperty(this, "IsNfsV3Enabled", ["properties", "isNfsV3Enabled"]); - _isSftpEnabled = BicepValue.DefineProperty(this, "IsSftpEnabled", ["properties", "isSftpEnabled"]); - _keyExpirationPeriodInDays = BicepValue.DefineProperty(this, "KeyExpirationPeriodInDays", ["properties", "keyPolicy", "keyExpirationPeriodInDays"]); - _largeFileSharesState = BicepValue.DefineProperty(this, "LargeFileSharesState", ["properties", "largeFileSharesState"]); - _minimumTlsVersion = BicepValue.DefineProperty(this, "MinimumTlsVersion", ["properties", "minimumTlsVersion"]); - _networkRuleSet = BicepValue.DefineProperty(this, "NetworkRuleSet", ["properties", "networkAcls"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _routingPreference = BicepValue.DefineProperty(this, "RoutingPreference", ["properties", "routingPreference"]); - _sasPolicy = BicepValue.DefineProperty(this, "SasPolicy", ["properties", "sasPolicy"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _blobRestoreStatus = BicepValue.DefineProperty(this, "BlobRestoreStatus", ["properties", "blobRestoreStatus"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "creationTime"], isOutput: true); - _geoReplicationStats = BicepValue.DefineProperty(this, "GeoReplicationStats", ["properties", "geoReplicationStats"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _isFailoverInProgress = BicepValue.DefineProperty(this, "IsFailoverInProgress", ["properties", "failoverInProgress"], isOutput: true); - _keyCreationTime = BicepValue.DefineProperty(this, "KeyCreationTime", ["properties", "keyCreationTime"], isOutput: true); - _lastGeoFailoverOn = BicepValue.DefineProperty(this, "LastGeoFailoverOn", ["properties", "lastGeoFailoverTime"], isOutput: true); - _primaryEndpoints = BicepValue.DefineProperty(this, "PrimaryEndpoints", ["properties", "primaryEndpoints"], isOutput: true); - _primaryLocation = BicepValue.DefineProperty(this, "PrimaryLocation", ["properties", "primaryLocation"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _secondaryEndpoints = BicepValue.DefineProperty(this, "SecondaryEndpoints", ["properties", "secondaryEndpoints"], isOutput: true); - _secondaryLocation = BicepValue.DefineProperty(this, "SecondaryLocation", ["properties", "secondaryLocation"], isOutput: true); - _statusOfPrimary = BicepValue.DefineProperty(this, "StatusOfPrimary", ["properties", "statusOfPrimary"], isOutput: true); - _statusOfSecondary = BicepValue.DefineProperty(this, "StatusOfSecondary", ["properties", "statusOfSecondary"], isOutput: true); - _storageAccountSkuConversionStatus = BicepValue.DefineProperty(this, "StorageAccountSkuConversionStatus", ["properties", "storageAccountSkuConversionStatus"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of StorageAccount. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _sku = DefineModelProperty("Sku", ["sku"], isRequired: true); + _accessTier = DefineProperty("AccessTier", ["properties", "accessTier"]); + _allowBlobPublicAccess = DefineProperty("AllowBlobPublicAccess", ["properties", "allowBlobPublicAccess"]); + _allowCrossTenantReplication = DefineProperty("AllowCrossTenantReplication", ["properties", "allowCrossTenantReplication"]); + _allowedCopyScope = DefineProperty("AllowedCopyScope", ["properties", "allowedCopyScope"]); + _allowSharedKeyAccess = DefineProperty("AllowSharedKeyAccess", ["properties", "allowSharedKeyAccess"]); + _azureFilesIdentityBasedAuthentication = DefineModelProperty("AzureFilesIdentityBasedAuthentication", ["properties", "azureFilesIdentityBasedAuthentication"]); + _customDomain = DefineModelProperty("CustomDomain", ["properties", "customDomain"]); + _dnsEndpointType = DefineProperty("DnsEndpointType", ["properties", "dnsEndpointType"]); + _enableHttpsTrafficOnly = DefineProperty("EnableHttpsTrafficOnly", ["properties", "supportsHttpsTrafficOnly"]); + _encryption = DefineModelProperty("Encryption", ["properties", "encryption"]); + _extendedLocation = DefineModelProperty("ExtendedLocation", ["extendedLocation"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _immutableStorageWithVersioning = DefineModelProperty("ImmutableStorageWithVersioning", ["properties", "immutableStorageWithVersioning"]); + _isDefaultToOAuthAuthentication = DefineProperty("IsDefaultToOAuthAuthentication", ["properties", "defaultToOAuthAuthentication"]); + _isHnsEnabled = DefineProperty("IsHnsEnabled", ["properties", "isHnsEnabled"]); + _isLocalUserEnabled = DefineProperty("IsLocalUserEnabled", ["properties", "isLocalUserEnabled"]); + _isNfsV3Enabled = DefineProperty("IsNfsV3Enabled", ["properties", "isNfsV3Enabled"]); + _isSftpEnabled = DefineProperty("IsSftpEnabled", ["properties", "isSftpEnabled"]); + _keyExpirationPeriodInDays = DefineProperty("KeyExpirationPeriodInDays", ["properties", "keyPolicy", "keyExpirationPeriodInDays"]); + _largeFileSharesState = DefineProperty("LargeFileSharesState", ["properties", "largeFileSharesState"]); + _minimumTlsVersion = DefineProperty("MinimumTlsVersion", ["properties", "minimumTlsVersion"]); + _networkRuleSet = DefineModelProperty("NetworkRuleSet", ["properties", "networkAcls"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _routingPreference = DefineModelProperty("RoutingPreference", ["properties", "routingPreference"]); + _sasPolicy = DefineModelProperty("SasPolicy", ["properties", "sasPolicy"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _blobRestoreStatus = DefineModelProperty("BlobRestoreStatus", ["properties", "blobRestoreStatus"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["properties", "creationTime"], isOutput: true); + _geoReplicationStats = DefineModelProperty("GeoReplicationStats", ["properties", "geoReplicationStats"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _isFailoverInProgress = DefineProperty("IsFailoverInProgress", ["properties", "failoverInProgress"], isOutput: true); + _keyCreationTime = DefineModelProperty("KeyCreationTime", ["properties", "keyCreationTime"], isOutput: true); + _lastGeoFailoverOn = DefineProperty("LastGeoFailoverOn", ["properties", "lastGeoFailoverTime"], isOutput: true); + _primaryEndpoints = DefineModelProperty("PrimaryEndpoints", ["properties", "primaryEndpoints"], isOutput: true); + _primaryLocation = DefineProperty("PrimaryLocation", ["properties", "primaryLocation"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _secondaryEndpoints = DefineModelProperty("SecondaryEndpoints", ["properties", "secondaryEndpoints"], isOutput: true); + _secondaryLocation = DefineProperty("SecondaryLocation", ["properties", "secondaryLocation"], isOutput: true); + _statusOfPrimary = DefineProperty("StatusOfPrimary", ["properties", "statusOfPrimary"], isOutput: true); + _statusOfSecondary = DefineProperty("StatusOfSecondary", ["properties", "statusOfSecondary"], isOutput: true); + _storageAccountSkuConversionStatus = DefineModelProperty("StorageAccountSkuConversionStatus", ["properties", "storageAccountSkuConversionStatus"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// @@ -572,10 +750,12 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this StorageAccount resource. /// /// The keys for this StorageAccount resource. - public BicepList GetKeys() => - BicepList.FromExpression( - StorageAccountKey.FromExpression, + public BicepList GetKeys() + { + return BicepList.FromExpression( + e => { StorageAccountKey key = new(); ((IBicepValue)key).Expression = e; return key; }, new MemberExpression(new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")), "keys")); + } /// /// Creates a role assignment for a user-assigned identity that grants diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageAccountLocalUser.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageAccountLocalUser.cs index 4c300ab033a5f..6d65dbd63e533 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageAccountLocalUser.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageAccountLocalUser.cs @@ -24,71 +24,112 @@ public partial class StorageAccountLocalUser : ProvisionableResource /// The name of local user. The username must contain lowercase letters and /// numbers only. It must be unique only within the storage account. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Indicates whether shared key exists. Set it to false to remove existing /// shared key. /// - public BicepValue HasSharedKey { get => _hasSharedKey; set => _hasSharedKey.Assign(value); } - private readonly BicepValue _hasSharedKey; + public BicepValue HasSharedKey + { + get { Initialize(); return _hasSharedKey!; } + set { Initialize(); _hasSharedKey!.Assign(value); } + } + private BicepValue? _hasSharedKey; /// /// Indicates whether ssh key exists. Set it to false to remove existing /// SSH key. /// - public BicepValue HasSshKey { get => _hasSshKey; set => _hasSshKey.Assign(value); } - private readonly BicepValue _hasSshKey; + public BicepValue HasSshKey + { + get { Initialize(); return _hasSshKey!; } + set { Initialize(); _hasSshKey!.Assign(value); } + } + private BicepValue? _hasSshKey; /// /// Indicates whether ssh password exists. Set it to false to remove /// existing SSH password. /// - public BicepValue HasSshPassword { get => _hasSshPassword; set => _hasSshPassword.Assign(value); } - private readonly BicepValue _hasSshPassword; + public BicepValue HasSshPassword + { + get { Initialize(); return _hasSshPassword!; } + set { Initialize(); _hasSshPassword!.Assign(value); } + } + private BicepValue? _hasSshPassword; /// /// Optional, local user home directory. /// - public BicepValue HomeDirectory { get => _homeDirectory; set => _homeDirectory.Assign(value); } - private readonly BicepValue _homeDirectory; + public BicepValue HomeDirectory + { + get { Initialize(); return _homeDirectory!; } + set { Initialize(); _homeDirectory!.Assign(value); } + } + private BicepValue? _homeDirectory; /// /// The permission scopes of the local user. /// - public BicepList PermissionScopes { get => _permissionScopes; set => _permissionScopes.Assign(value); } - private readonly BicepList _permissionScopes; + public BicepList PermissionScopes + { + get { Initialize(); return _permissionScopes!; } + set { Initialize(); _permissionScopes!.Assign(value); } + } + private BicepList? _permissionScopes; /// /// Optional, local user ssh authorized keys for SFTP. /// - public BicepList SshAuthorizedKeys { get => _sshAuthorizedKeys; set => _sshAuthorizedKeys.Assign(value); } - private readonly BicepList _sshAuthorizedKeys; + public BicepList SshAuthorizedKeys + { + get { Initialize(); return _sshAuthorizedKeys!; } + set { Initialize(); _sshAuthorizedKeys!.Assign(value); } + } + private BicepList? _sshAuthorizedKeys; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// A unique Security Identifier that is generated by the server. /// - public BicepValue Sid { get => _sid; } - private readonly BicepValue _sid; + public BicepValue Sid + { + get { Initialize(); return _sid!; } + } + private BicepValue? _sid; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StorageAccount. /// - public StorageAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StorageAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new StorageAccountLocalUser. @@ -103,17 +144,24 @@ public partial class StorageAccountLocalUser : ProvisionableResource public StorageAccountLocalUser(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/localUsers", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _hasSharedKey = BicepValue.DefineProperty(this, "HasSharedKey", ["properties", "hasSharedKey"]); - _hasSshKey = BicepValue.DefineProperty(this, "HasSshKey", ["properties", "hasSshKey"]); - _hasSshPassword = BicepValue.DefineProperty(this, "HasSshPassword", ["properties", "hasSshPassword"]); - _homeDirectory = BicepValue.DefineProperty(this, "HomeDirectory", ["properties", "homeDirectory"]); - _permissionScopes = BicepList.DefineProperty(this, "PermissionScopes", ["properties", "permissionScopes"]); - _sshAuthorizedKeys = BicepList.DefineProperty(this, "SshAuthorizedKeys", ["properties", "sshAuthorizedKeys"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _sid = BicepValue.DefineProperty(this, "Sid", ["properties", "sid"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of StorageAccountLocalUser. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _hasSharedKey = DefineProperty("HasSharedKey", ["properties", "hasSharedKey"]); + _hasSshKey = DefineProperty("HasSshKey", ["properties", "hasSshKey"]); + _hasSshPassword = DefineProperty("HasSshPassword", ["properties", "hasSshPassword"]); + _homeDirectory = DefineProperty("HomeDirectory", ["properties", "homeDirectory"]); + _permissionScopes = DefineListProperty("PermissionScopes", ["properties", "permissionScopes"]); + _sshAuthorizedKeys = DefineListProperty("SshAuthorizedKeys", ["properties", "sshAuthorizedKeys"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _sid = DefineProperty("Sid", ["properties", "sid"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// @@ -260,7 +308,10 @@ public static StorageAccountLocalUser FromExisting(string bicepIdentifier, strin /// Get access keys for this StorageAccountLocalUser resource. /// /// The keys for this StorageAccountLocalUser resource. - public LocalUserKeys GetKeys() => - LocalUserKeys.FromExpression( - new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys"))); + public LocalUserKeys GetKeys() + { + LocalUserKeys key = new(); + ((IBicepValue)key).Expression = new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")); + return key; + } } diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageAccountManagementPolicy.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageAccountManagementPolicy.cs index ccf4499a3247d..56d343dc48bf7 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageAccountManagementPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageAccountManagementPolicy.cs @@ -18,38 +18,55 @@ namespace Azure.Provisioning.Storage; /// public partial class StorageAccountManagementPolicy : ProvisionableResource { - private readonly BicepValue _name; + private BicepValue? _name; /// /// The Storage Account ManagementPolicies Rules. See more details in: /// https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. /// - public BicepList Rules { get => _rules; set => _rules.Assign(value); } - private readonly BicepList _rules; + public BicepList Rules + { + get { Initialize(); return _rules!; } + set { Initialize(); _rules!.Assign(value); } + } + private BicepList? _rules; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Returns the date and time the ManagementPolicies was last modified. /// - public BicepValue LastModifiedOn { get => _lastModifiedOn; } - private readonly BicepValue _lastModifiedOn; + public BicepValue LastModifiedOn + { + get { Initialize(); return _lastModifiedOn!; } + } + private BicepValue? _lastModifiedOn; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StorageAccount. /// - public StorageAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StorageAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Get the default value for the Name property. @@ -69,12 +86,20 @@ public partial class StorageAccountManagementPolicy : ProvisionableResource public StorageAccountManagementPolicy(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/managementPolicies", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], defaultValue: GetNameDefaultValue()); - _rules = BicepList.DefineProperty(this, "Rules", ["properties", "policy", "rules"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _lastModifiedOn = BicepValue.DefineProperty(this, "LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// StorageAccountManagementPolicy. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], defaultValue: GetNameDefaultValue()); + _rules = DefineListProperty("Rules", ["properties", "policy", "rules"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _lastModifiedOn = DefineProperty("LastModifiedOn", ["properties", "lastModifiedTime"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StoragePrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StoragePrivateEndpointConnection.cs index 2f61f4a96f87f..8345f5a5636e6 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StoragePrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StoragePrivateEndpointConnection.cs @@ -21,45 +21,69 @@ public partial class StoragePrivateEndpointConnection : ProvisionableResource /// The name of the private endpoint connection associated with the Azure /// resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// A collection of information about the state of the connection between /// service consumer and provider. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public StoragePrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private StoragePrivateLinkServiceConnectionState? _connectionState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets Id. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + } + private BicepValue? _privateEndpointId; /// /// The provisioning state of the private endpoint connection resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StorageAccount. /// - public StorageAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StorageAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new StoragePrivateEndpointConnection. @@ -74,13 +98,21 @@ public partial class StoragePrivateEndpointConnection : ProvisionableResource public StoragePrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/privateEndpointConnections", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// StoragePrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageQueue.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageQueue.cs index 3b6839bdbf28e..0285962ef32ee 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageQueue.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageQueue.cs @@ -26,40 +26,61 @@ public partial class StorageQueue : ProvisionableResource /// an alphanumeric character and it cannot have two consecutive dash(-) /// characters. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// A name-value pair that represents queue metadata. /// - public BicepDictionary Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepDictionary _metadata; + public BicepDictionary Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepDictionary? _metadata; /// /// Integer indicating an approximate number of messages in the queue. This /// number is not lower than the actual number of messages in the queue, /// but could be higher. /// - public BicepValue ApproximateMessageCount { get => _approximateMessageCount; } - private readonly BicepValue _approximateMessageCount; + public BicepValue ApproximateMessageCount + { + get { Initialize(); return _approximateMessageCount!; } + } + private BicepValue? _approximateMessageCount; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent QueueService. /// - public QueueService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public QueueService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new StorageQueue. @@ -74,12 +95,19 @@ public partial class StorageQueue : ProvisionableResource public StorageQueue(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/queueServices/queues", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _metadata = BicepDictionary.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _approximateMessageCount = BicepValue.DefineProperty(this, "ApproximateMessageCount", ["properties", "approximateMessageCount"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of StorageQueue. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _metadata = DefineDictionaryProperty("Metadata", ["properties", "metadata"]); + _approximateMessageCount = DefineProperty("ApproximateMessageCount", ["properties", "approximateMessageCount"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageTable.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageTable.cs index b89f51bc9f1ca..18cf38b7b8ca2 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageTable.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/StorageTable.cs @@ -24,38 +24,59 @@ public partial class StorageTable : ProvisionableResource /// between 3 and 63 characters.The name must comprise of only /// alphanumeric characters and it cannot begin with a numeric character. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// List of stored access policies specified on the table. /// - public BicepList SignedIdentifiers { get => _signedIdentifiers; set => _signedIdentifiers.Assign(value); } - private readonly BicepList _signedIdentifiers; + public BicepList SignedIdentifiers + { + get { Initialize(); return _signedIdentifiers!; } + set { Initialize(); _signedIdentifiers!.Assign(value); } + } + private BicepList? _signedIdentifiers; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Table name under the specified account. /// - public BicepValue TableName { get => _tableName; } - private readonly BicepValue _tableName; + public BicepValue TableName + { + get { Initialize(); return _tableName!; } + } + private BicepValue? _tableName; /// /// Gets or sets a reference to the parent TableService. /// - public TableService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public TableService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new StorageTable. @@ -70,12 +91,19 @@ public partial class StorageTable : ProvisionableResource public StorageTable(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/tableServices/tables", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _signedIdentifiers = BicepList.DefineProperty(this, "SignedIdentifiers", ["properties", "signedIdentifiers"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _tableName = BicepValue.DefineProperty(this, "TableName", ["properties", "tableName"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of StorageTable. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _signedIdentifiers = DefineListProperty("SignedIdentifiers", ["properties", "signedIdentifiers"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _tableName = DefineProperty("TableName", ["properties", "tableName"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/TableService.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/TableService.cs index ad1686e826c0b..fc95fa60f3128 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/TableService.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/TableService.cs @@ -21,33 +21,50 @@ public partial class TableService : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The List of CORS rules. You can include up to five CorsRule elements in /// the request. /// - public BicepList CorsRules { get => _corsRules; set => _corsRules.Assign(value); } - private readonly BicepList _corsRules; + public BicepList CorsRules + { + get { Initialize(); return _corsRules!; } + set { Initialize(); _corsRules!.Assign(value); } + } + private BicepList? _corsRules; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent StorageAccount. /// - public StorageAccount? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public StorageAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new TableService. @@ -62,11 +79,18 @@ public partial class TableService : ProvisionableResource public TableService(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Storage/storageAccounts/tableServices", resourceVersion ?? "2024-01-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _corsRules = BicepList.DefineProperty(this, "CorsRules", ["properties", "cors", "corsRules"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of TableService. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _corsRules = DefineListProperty("CorsRules", ["properties", "cors", "corsRules"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.Storage/tests/BasicStorageTests.cs b/sdk/provisioning/Azure.Provisioning.Storage/tests/BasicStorageTests.cs index 85272cbda4251..cd5e33d7d1d8a 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/tests/BasicStorageTests.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/tests/BasicStorageTests.cs @@ -23,7 +23,7 @@ await test.Define( new StorageAccount("storage", StorageAccount.ResourceVersions.V2023_01_01) { Kind = StorageKind.StorageV2, - Sku = new StorageSku { Name = StorageSkuName.StandardLrs }, + Sku = { Name = StorageSkuName.StandardLrs }, IsHnsEnabled = true, AllowBlobPublicAccess = false }) @@ -66,6 +66,7 @@ await test.Define( IsHnsEnabled = true, AllowBlobPublicAccess = false }; + storage.IsHnsEnabled.ClearValue(); infra.Add(storage); BlobService blobs = new(nameof(blobs)) { Parent = storage, DependsOn = { storage } }; @@ -87,7 +88,6 @@ await test.Define( } properties: { allowBlobPublicAccess: false - isHnsEnabled: true } } @@ -267,7 +267,7 @@ await test.Define( BlobService blobs = new(nameof(blobs)) { Parent = storage }; infra.Add(blobs); - infra.Add(new ProvisioningOutput("blobs_endpoint", typeof(string)) { Value = storage.PrimaryEndpoints.Value!.BlobUri }); + infra.Add(new ProvisioningOutput("blobs_endpoint", typeof(string)) { Value = storage.PrimaryEndpoints.BlobUri }); // Manually compute the public Azure endpoint string? nothing = null; @@ -333,7 +333,7 @@ await test.Define( BlobService blobs = new(nameof(blobs)) { Parent = storage }; infra.Add(blobs); - infra.Add(new ProvisioningOutput("blobs_endpoint", typeof(string)) { Value = storage.PrimaryEndpoints.Value!.BlobUri }); + infra.Add(new ProvisioningOutput("blobs_endpoint", typeof(string)) { Value = storage.PrimaryEndpoints.BlobUri }); return infra; }) diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/api/Azure.Provisioning.WebPubSub.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/api/Azure.Provisioning.WebPubSub.netstandard2.0.cs index b1432328a5560..6b57521902023 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/api/Azure.Provisioning.WebPubSub.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/api/Azure.Provisioning.WebPubSub.netstandard2.0.cs @@ -13,41 +13,48 @@ public BillingInfoSku() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Size { get { throw null; } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class LiveTraceCategory : Azure.Provisioning.Primitives.ProvisionableConstruct { public LiveTraceCategory() { } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class LiveTraceConfiguration : Azure.Provisioning.Primitives.ProvisionableConstruct { public LiveTraceConfiguration() { } public Azure.Provisioning.BicepList Categories { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PrivateEndpointAcl : Azure.Provisioning.WebPubSub.PublicNetworkAcls { public PrivateEndpointAcl() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PublicNetworkAcls : Azure.Provisioning.Primitives.ProvisionableConstruct { public PublicNetworkAcls() { } public Azure.Provisioning.BicepList Allow { get { throw null; } set { } } public Azure.Provisioning.BicepList Deny { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ResourceLogCategory : Azure.Provisioning.Primitives.ProvisionableConstruct { public ResourceLogCategory() { } public Azure.Provisioning.BicepValue Enabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class UpstreamAuthSettings : Azure.Provisioning.Primitives.ProvisionableConstruct { public UpstreamAuthSettings() { } public Azure.Provisioning.BicepValue AuthType { get { throw null; } set { } } public Azure.Provisioning.BicepValue ManagedIdentityResource { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum UpstreamAuthType { @@ -78,10 +85,11 @@ public enum UpstreamAuthType public partial class WebPubSubEventHandler : Azure.Provisioning.Primitives.ProvisionableConstruct { public WebPubSubEventHandler() { } - public Azure.Provisioning.BicepValue Auth { get { throw null; } set { } } + public Azure.Provisioning.WebPubSub.UpstreamAuthSettings Auth { get { throw null; } set { } } public Azure.Provisioning.BicepList SystemEvents { get { throw null; } set { } } public Azure.Provisioning.BicepValue UrlTemplate { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserEventPattern { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class WebPubSubHub : Azure.Provisioning.Primitives.ProvisionableResource { @@ -89,8 +97,9 @@ public partial class WebPubSubHub : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.WebPubSub.WebPubSubService? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.WebPubSub.WebPubSubHubProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.WebPubSub.WebPubSubHub FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -105,6 +114,7 @@ public partial class WebPubSubHubProperties : Azure.Provisioning.Primitives.Prov public WebPubSubHubProperties() { } public Azure.Provisioning.BicepValue AnonymousConnectPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepList EventHandlers { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class WebPubSubKeys : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -113,27 +123,28 @@ public WebPubSubKeys() { } public Azure.Provisioning.BicepValue PrimaryKey { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryConnectionString { get { throw null; } } public Azure.Provisioning.BicepValue SecondaryKey { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.WebPubSub.WebPubSubKeys FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } } public partial class WebPubSubNetworkAcls : Azure.Provisioning.Primitives.ProvisionableConstruct { public WebPubSubNetworkAcls() { } public Azure.Provisioning.BicepValue DefaultAction { get { throw null; } set { } } public Azure.Provisioning.BicepList PrivateEndpoints { get { throw null; } set { } } - public Azure.Provisioning.BicepValue PublicNetwork { get { throw null; } set { } } + public Azure.Provisioning.WebPubSub.PublicNetworkAcls PublicNetwork { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class WebPubSubPrivateEndpointConnection : Azure.Provisioning.Primitives.ProvisionableResource { public WebPubSubPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.WebPubSub.WebPubSubPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepList GroupIds { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.WebPubSub.WebPubSubService? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.WebPubSub.WebPubSubPrivateEndpointConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -146,13 +157,14 @@ public static partial class ResourceVersions public partial class WebPubSubPrivateEndpointConnectionData : Azure.Provisioning.Primitives.ProvisionableConstruct { public WebPubSubPrivateEndpointConnectionData() { } - public Azure.Provisioning.BicepValue ConnectionState { get { throw null; } set { } } + public Azure.Provisioning.WebPubSub.WebPubSubPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } public Azure.Provisioning.BicepList GroupIds { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue PrivateEndpointId { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class WebPubSubPrivateLinkServiceConnectionState : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -160,6 +172,7 @@ public WebPubSubPrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue ActionsRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum WebPubSubPrivateLinkServiceConnectionStatus { @@ -195,14 +208,14 @@ public partial class WebPubSubService : Azure.Provisioning.Primitives.Provisiona public Azure.Provisioning.BicepValue HostName { get { throw null; } } public Azure.Provisioning.BicepValue HostNamePrefix { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsAadAuthDisabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsClientCertEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsLocalAuthDisabled { get { throw null; } set { } } - public Azure.Provisioning.BicepValue LiveTraceConfiguration { get { throw null; } set { } } + public Azure.Provisioning.WebPubSub.LiveTraceConfiguration LiveTraceConfiguration { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue NetworkAcls { get { throw null; } set { } } + public Azure.Provisioning.WebPubSub.WebPubSubNetworkAcls NetworkAcls { get { throw null; } set { } } public Azure.Provisioning.BicepList PrivateEndpointConnections { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublicNetworkAccess { get { throw null; } set { } } @@ -210,12 +223,13 @@ public partial class WebPubSubService : Azure.Provisioning.Primitives.Provisiona public Azure.Provisioning.BicepList ResourceLogCategories { get { throw null; } set { } } public Azure.Provisioning.BicepValue ServerPort { get { throw null; } } public Azure.Provisioning.BicepList SharedPrivateLinkResources { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.WebPubSub.BillingInfoSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue Version { get { throw null; } } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.WebPubSub.WebPubSubBuiltInRole role, Azure.Provisioning.BicepValue principalType, Azure.Provisioning.BicepValue principalId, string? bicepIdentifierSuffix = null) { throw null; } public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment(Azure.Provisioning.WebPubSub.WebPubSubBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity) { throw null; } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.WebPubSub.WebPubSubService FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public Azure.Provisioning.WebPubSub.WebPubSubKeys GetKeys() { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -239,7 +253,8 @@ public partial class WebPubSubSharedPrivateLink : Azure.Provisioning.Primitives. public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue RequestMessage { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.WebPubSub.WebPubSubSharedPrivateLink FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -259,7 +274,8 @@ public WebPubSubSharedPrivateLinkData() { } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue RequestMessage { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum WebPubSubSharedPrivateLinkStatus { diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/BillingInfoSku.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/BillingInfoSku.cs index fb4ab806a8e35..ae11e2db74bc2 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/BillingInfoSku.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/BillingInfoSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,46 +19,72 @@ public partial class BillingInfoSku : ProvisionableConstruct /// The name of the SKU. Required. Allowed /// values: Standard_S1, Free_F1 /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Optional tier of this particular SKU. 'Standard' or /// 'Free'. `Basic` is deprecated, use /// `Standard` instead. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// Not used. Retained for future use. /// - public BicepValue Size { get => _size; } - private readonly BicepValue _size; + public BicepValue Size + { + get { Initialize(); return _size!; } + } + private BicepValue? _size; /// /// Not used. Retained for future use. /// - public BicepValue Family { get => _family; } - private readonly BicepValue _family; + public BicepValue Family + { + get { Initialize(); return _family!; } + } + private BicepValue? _family; /// /// Optional, integer. The unit count of the resource. 1 by default. /// If present, following values are allowed: /// Free: 1 Standard: 1,2,5,10,20,50,100 /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// Creates a new BillingInfoSku. /// public BillingInfoSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); - _size = BicepValue.DefineProperty(this, "Size", ["size"], isOutput: true); - _family = BicepValue.DefineProperty(this, "Family", ["family"], isOutput: true); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); + } + + /// + /// Define all the provisionable properties of BillingInfoSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"]); + _size = DefineProperty("Size", ["size"], isOutput: true); + _family = DefineProperty("Family", ["family"], isOutput: true); + _capacity = DefineProperty("Capacity", ["capacity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/LiveTraceCategory.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/LiveTraceCategory.cs index ae2fbe566d1a2..69e5d717fba5a 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/LiveTraceCategory.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/LiveTraceCategory.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class LiveTraceCategory : ProvisionableConstruct /// Gets or sets the live trace category's name. Available /// values: ConnectivityLogs, MessagingLogs. Case insensitive. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Indicates whether or the live trace category is enabled. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Creates a new LiveTraceCategory. /// public LiveTraceCategory() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); + } + + /// + /// Define all the provisionable properties of LiveTraceCategory. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/LiveTraceConfiguration.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/LiveTraceConfiguration.cs index 071d2f51f7f45..7cc9bccd712bd 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/LiveTraceConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/LiveTraceConfiguration.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class LiveTraceConfiguration : ProvisionableConstruct /// /// Indicates whether or not enable live trace. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// Gets or sets the list of category configurations. /// - public BicepList Categories { get => _categories; set => _categories.Assign(value); } - private readonly BicepList _categories; + public BicepList Categories + { + get { Initialize(); return _categories!; } + set { Initialize(); _categories!.Assign(value); } + } + private BicepList? _categories; /// /// Creates a new LiveTraceConfiguration. /// public LiveTraceConfiguration() { - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["enabled"]); - _categories = BicepList.DefineProperty(this, "Categories", ["categories"]); + } + + /// + /// Define all the provisionable properties of LiveTraceConfiguration. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isEnabled = DefineProperty("IsEnabled", ["enabled"]); + _categories = DefineListProperty("Categories", ["categories"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/PrivateEndpointAcl.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/PrivateEndpointAcl.cs index 65560829d1afc..d421dcc66fd3e 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/PrivateEndpointAcl.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/PrivateEndpointAcl.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,14 +18,26 @@ public partial class PrivateEndpointAcl : PublicNetworkAcls /// /// Name of the private endpoint connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new PrivateEndpointAcl. /// public PrivateEndpointAcl() : base() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of PrivateEndpointAcl. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/PublicNetworkAcls.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/PublicNetworkAcls.cs index eabbcc4015b78..a1a3782934038 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/PublicNetworkAcls.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/PublicNetworkAcls.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -17,22 +19,38 @@ public partial class PublicNetworkAcls : ProvisionableConstruct /// Allowed request types. The value can be one or more of: /// ClientConnection, ServerConnection, RESTAPI. /// - public BicepList Allow { get => _allow; set => _allow.Assign(value); } - private readonly BicepList _allow; + public BicepList Allow + { + get { Initialize(); return _allow!; } + set { Initialize(); _allow!.Assign(value); } + } + private BicepList? _allow; /// /// Denied request types. The value can be one or more of: /// ClientConnection, ServerConnection, RESTAPI. /// - public BicepList Deny { get => _deny; set => _deny.Assign(value); } - private readonly BicepList _deny; + public BicepList Deny + { + get { Initialize(); return _deny!; } + set { Initialize(); _deny!.Assign(value); } + } + private BicepList? _deny; /// /// Creates a new PublicNetworkAcls. /// public PublicNetworkAcls() { - _allow = BicepList.DefineProperty(this, "Allow", ["allow"]); - _deny = BicepList.DefineProperty(this, "Deny", ["deny"]); + } + + /// + /// Define all the provisionable properties of PublicNetworkAcls. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _allow = DefineListProperty("Allow", ["allow"]); + _deny = DefineListProperty("Deny", ["deny"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/ResourceLogCategory.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/ResourceLogCategory.cs index ccd019871aa2d..5c606ac773ec0 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/ResourceLogCategory.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/ResourceLogCategory.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,23 +20,39 @@ public partial class ResourceLogCategory : ProvisionableConstruct /// Available values: ConnectivityLogs, MessagingLogs. /// Case insensitive. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Indicates whether or the resource log category is enabled. /// Available values: true, false. Case /// insensitive. /// - public BicepValue Enabled { get => _enabled; set => _enabled.Assign(value); } - private readonly BicepValue _enabled; + public BicepValue Enabled + { + get { Initialize(); return _enabled!; } + set { Initialize(); _enabled!.Assign(value); } + } + private BicepValue? _enabled; /// /// Creates a new ResourceLogCategory. /// public ResourceLogCategory() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _enabled = BicepValue.DefineProperty(this, "Enabled", ["enabled"]); + } + + /// + /// Define all the provisionable properties of ResourceLogCategory. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _enabled = DefineProperty("Enabled", ["enabled"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/UpstreamAuthSettings.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/UpstreamAuthSettings.cs index 2ab84d4db8f9c..a357a22b02f92 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/UpstreamAuthSettings.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/UpstreamAuthSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,23 +18,39 @@ public partial class UpstreamAuthSettings : ProvisionableConstruct /// /// Upstream auth type enum. /// - public BicepValue AuthType { get => _authType; set => _authType.Assign(value); } - private readonly BicepValue _authType; + public BicepValue AuthType + { + get { Initialize(); return _authType!; } + set { Initialize(); _authType!.Assign(value); } + } + private BicepValue? _authType; /// /// The Resource indicating the App ID URI of the target resource. /// It also appears in the aud (audience) claim of the issued /// token. /// - public BicepValue ManagedIdentityResource { get => _managedIdentityResource; set => _managedIdentityResource.Assign(value); } - private readonly BicepValue _managedIdentityResource; + public BicepValue ManagedIdentityResource + { + get { Initialize(); return _managedIdentityResource!; } + set { Initialize(); _managedIdentityResource!.Assign(value); } + } + private BicepValue? _managedIdentityResource; /// /// Creates a new UpstreamAuthSettings. /// public UpstreamAuthSettings() { - _authType = BicepValue.DefineProperty(this, "AuthType", ["type"]); - _managedIdentityResource = BicepValue.DefineProperty(this, "ManagedIdentityResource", ["managedIdentity", "resource"]); + } + + /// + /// Define all the provisionable properties of UpstreamAuthSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _authType = DefineProperty("AuthType", ["type"]); + _managedIdentityResource = DefineProperty("ManagedIdentityResource", ["managedIdentity", "resource"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubEventHandler.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubEventHandler.cs index b23424446b5b7..ab273644b56e3 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubEventHandler.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubEventHandler.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -22,8 +24,12 @@ public partial class WebPubSubEventHandler : ProvisionableConstruct /// `http://example.com/api/{hub}/{event}`. The host part can't /// contains parameters. /// - public BicepValue UrlTemplate { get => _urlTemplate; set => _urlTemplate.Assign(value); } - private readonly BicepValue _urlTemplate; + public BicepValue UrlTemplate + { + get { Initialize(); return _urlTemplate!; } + set { Initialize(); _urlTemplate!.Assign(value); } + } + private BicepValue? _urlTemplate; /// /// Gets or sets the matching pattern for event names. There @@ -34,30 +40,50 @@ public partial class WebPubSubEventHandler : ProvisionableConstruct /// single event name, for example, "event1", it matches /// "event1" /// - public BicepValue UserEventPattern { get => _userEventPattern; set => _userEventPattern.Assign(value); } - private readonly BicepValue _userEventPattern; + public BicepValue UserEventPattern + { + get { Initialize(); return _userEventPattern!; } + set { Initialize(); _userEventPattern!.Assign(value); } + } + private BicepValue? _userEventPattern; /// /// Gets ot sets the list of system events. /// - public BicepList SystemEvents { get => _systemEvents; set => _systemEvents.Assign(value); } - private readonly BicepList _systemEvents; + public BicepList SystemEvents + { + get { Initialize(); return _systemEvents!; } + set { Initialize(); _systemEvents!.Assign(value); } + } + private BicepList? _systemEvents; /// /// Upstream auth settings. If not set, no auth is used for upstream /// messages. /// - public BicepValue Auth { get => _auth; set => _auth.Assign(value); } - private readonly BicepValue _auth; + public UpstreamAuthSettings Auth + { + get { Initialize(); return _auth!; } + set { Initialize(); AssignOrReplace(ref _auth, value); } + } + private UpstreamAuthSettings? _auth; /// /// Creates a new WebPubSubEventHandler. /// public WebPubSubEventHandler() { - _urlTemplate = BicepValue.DefineProperty(this, "UrlTemplate", ["urlTemplate"]); - _userEventPattern = BicepValue.DefineProperty(this, "UserEventPattern", ["userEventPattern"]); - _systemEvents = BicepList.DefineProperty(this, "SystemEvents", ["systemEvents"]); - _auth = BicepValue.DefineProperty(this, "Auth", ["auth"]); + } + + /// + /// Define all the provisionable properties of WebPubSubEventHandler. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _urlTemplate = DefineProperty("UrlTemplate", ["urlTemplate"]); + _userEventPattern = DefineProperty("UserEventPattern", ["userEventPattern"]); + _systemEvents = DefineListProperty("SystemEvents", ["systemEvents"]); + _auth = DefineModelProperty("Auth", ["auth"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubHubProperties.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubHubProperties.cs index 3926672a5663f..91eb89f4dc44f 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubHubProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubHubProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,23 +19,39 @@ public partial class WebPubSubHubProperties : ProvisionableConstruct /// /// Event handler of a hub. /// - public BicepList EventHandlers { get => _eventHandlers; set => _eventHandlers.Assign(value); } - private readonly BicepList _eventHandlers; + public BicepList EventHandlers + { + get { Initialize(); return _eventHandlers!; } + set { Initialize(); _eventHandlers!.Assign(value); } + } + private BicepList? _eventHandlers; /// /// The settings for configuring if anonymous connections are allowed for /// this hub: "allow" or "deny". Default to /// "deny". /// - public BicepValue AnonymousConnectPolicy { get => _anonymousConnectPolicy; set => _anonymousConnectPolicy.Assign(value); } - private readonly BicepValue _anonymousConnectPolicy; + public BicepValue AnonymousConnectPolicy + { + get { Initialize(); return _anonymousConnectPolicy!; } + set { Initialize(); _anonymousConnectPolicy!.Assign(value); } + } + private BicepValue? _anonymousConnectPolicy; /// /// Creates a new WebPubSubHubProperties. /// public WebPubSubHubProperties() { - _eventHandlers = BicepList.DefineProperty(this, "EventHandlers", ["eventHandlers"]); - _anonymousConnectPolicy = BicepValue.DefineProperty(this, "AnonymousConnectPolicy", ["anonymousConnectPolicy"]); + } + + /// + /// Define all the provisionable properties of WebPubSubHubProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _eventHandlers = DefineListProperty("EventHandlers", ["eventHandlers"]); + _anonymousConnectPolicy = DefineProperty("AnonymousConnectPolicy", ["anonymousConnectPolicy"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubKeys.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubKeys.cs index e815a3eb752d0..e242dde040a63 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubKeys.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubKeys.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Expressions; using Azure.Provisioning.Primitives; using System; @@ -18,51 +20,55 @@ public partial class WebPubSubKeys : ProvisionableConstruct /// /// The primary access key. /// - public BicepValue PrimaryKey { get => _primaryKey; } - private readonly BicepValue _primaryKey; + public BicepValue PrimaryKey + { + get { Initialize(); return _primaryKey!; } + } + private BicepValue? _primaryKey; /// /// The secondary access key. /// - public BicepValue SecondaryKey { get => _secondaryKey; } - private readonly BicepValue _secondaryKey; + public BicepValue SecondaryKey + { + get { Initialize(); return _secondaryKey!; } + } + private BicepValue? _secondaryKey; /// /// Connection string constructed via the primaryKey. /// - public BicepValue PrimaryConnectionString { get => _primaryConnectionString; } - private readonly BicepValue _primaryConnectionString; + public BicepValue PrimaryConnectionString + { + get { Initialize(); return _primaryConnectionString!; } + } + private BicepValue? _primaryConnectionString; /// /// Connection string constructed via the secondaryKey. /// - public BicepValue SecondaryConnectionString { get => _secondaryConnectionString; } - private readonly BicepValue _secondaryConnectionString; + public BicepValue SecondaryConnectionString + { + get { Initialize(); return _secondaryConnectionString!; } + } + private BicepValue? _secondaryConnectionString; /// /// Creates a new WebPubSubKeys. /// public WebPubSubKeys() { - _primaryKey = BicepValue.DefineProperty(this, "PrimaryKey", ["primaryKey"], isOutput: true, isSecure: true); - _secondaryKey = BicepValue.DefineProperty(this, "SecondaryKey", ["secondaryKey"], isOutput: true, isSecure: true); - _primaryConnectionString = BicepValue.DefineProperty(this, "PrimaryConnectionString", ["primaryConnectionString"], isOutput: true, isSecure: true); - _secondaryConnectionString = BicepValue.DefineProperty(this, "SecondaryConnectionString", ["secondaryConnectionString"], isOutput: true, isSecure: true); } /// - /// Creates a new WebPubSubKeys resource from a Bicep expression that - /// evaluates to a WebPubSubKeys. + /// Define all the provisionable properties of WebPubSubKeys. /// - /// - /// A Bicep expression that evaluates to a WebPubSubKeys resource. - /// - /// A WebPubSubKeys resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static WebPubSubKeys FromExpression(BicepExpression expression) + protected override void DefineProvisionableProperties() { - WebPubSubKeys resource = new(); - resource.OverrideWithExpression(expression); - return resource; + base.DefineProvisionableProperties(); + _primaryKey = DefineProperty("PrimaryKey", ["primaryKey"], isOutput: true, isSecure: true); + _secondaryKey = DefineProperty("SecondaryKey", ["secondaryKey"], isOutput: true, isSecure: true); + _primaryConnectionString = DefineProperty("PrimaryConnectionString", ["primaryConnectionString"], isOutput: true, isSecure: true); + _secondaryConnectionString = DefineProperty("SecondaryConnectionString", ["secondaryConnectionString"], isOutput: true, isSecure: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubNetworkAcls.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubNetworkAcls.cs index b86dea97efd4e..374871a176713 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubNetworkAcls.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubNetworkAcls.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,48 @@ public partial class WebPubSubNetworkAcls : ProvisionableConstruct /// /// Azure Networking ACL Action. /// - public BicepValue DefaultAction { get => _defaultAction; set => _defaultAction.Assign(value); } - private readonly BicepValue _defaultAction; + public BicepValue DefaultAction + { + get { Initialize(); return _defaultAction!; } + set { Initialize(); _defaultAction!.Assign(value); } + } + private BicepValue? _defaultAction; /// /// Network ACL. /// - public BicepValue PublicNetwork { get => _publicNetwork; set => _publicNetwork.Assign(value); } - private readonly BicepValue _publicNetwork; + public PublicNetworkAcls PublicNetwork + { + get { Initialize(); return _publicNetwork!; } + set { Initialize(); AssignOrReplace(ref _publicNetwork, value); } + } + private PublicNetworkAcls? _publicNetwork; /// /// ACLs for requests from private endpoints. /// - public BicepList PrivateEndpoints { get => _privateEndpoints; set => _privateEndpoints.Assign(value); } - private readonly BicepList _privateEndpoints; + public BicepList PrivateEndpoints + { + get { Initialize(); return _privateEndpoints!; } + set { Initialize(); _privateEndpoints!.Assign(value); } + } + private BicepList? _privateEndpoints; /// /// Creates a new WebPubSubNetworkAcls. /// public WebPubSubNetworkAcls() { - _defaultAction = BicepValue.DefineProperty(this, "DefaultAction", ["defaultAction"]); - _publicNetwork = BicepValue.DefineProperty(this, "PublicNetwork", ["publicNetwork"]); - _privateEndpoints = BicepList.DefineProperty(this, "PrivateEndpoints", ["privateEndpoints"]); + } + + /// + /// Define all the provisionable properties of WebPubSubNetworkAcls. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _defaultAction = DefineProperty("DefaultAction", ["defaultAction"]); + _publicNetwork = DefineModelProperty("PublicNetwork", ["publicNetwork"]); + _privateEndpoints = DefineListProperty("PrivateEndpoints", ["privateEndpoints"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubPrivateEndpointConnectionData.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubPrivateEndpointConnectionData.cs index a6675d01b12e4..8a9288fe5bfe8 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubPrivateEndpointConnectionData.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubPrivateEndpointConnectionData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -20,56 +22,88 @@ public partial class WebPubSubPrivateEndpointConnectionData : ProvisionableConst /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Full qualified Id of the private endpoint. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Group IDs. /// - public BicepList GroupIds { get => _groupIds; } - private readonly BicepList _groupIds; + public BicepList GroupIds + { + get { Initialize(); return _groupIds!; } + } + private BicepList? _groupIds; /// /// Connection state of the private endpoint connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public WebPubSubPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private WebPubSubPrivateLinkServiceConnectionState? _connectionState; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new WebPubSubPrivateEndpointConnectionData. /// public WebPubSubPrivateEndpointConnectionData() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _groupIds = BicepList.DefineProperty(this, "GroupIds", ["properties", "groupIds"], isOutput: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// WebPubSubPrivateEndpointConnectionData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _groupIds = DefineListProperty("GroupIds", ["properties", "groupIds"], isOutput: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubPrivateLinkServiceConnectionState.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubPrivateLinkServiceConnectionState.cs index e264e96c34fd2..5cc8143d9da6b 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubPrivateLinkServiceConnectionState.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubPrivateLinkServiceConnectionState.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,50 @@ public partial class WebPubSubPrivateLinkServiceConnectionState : ProvisionableC /// Indicates whether the connection has been Approved/Rejected/Removed by /// the owner of the service. /// - public BicepValue Status { get => _status; set => _status.Assign(value); } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + set { Initialize(); _status!.Assign(value); } + } + private BicepValue? _status; /// /// The reason for approval/rejection of the connection. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// A message indicating if changes on the service provider require any /// updates on the consumer. /// - public BicepValue ActionsRequired { get => _actionsRequired; set => _actionsRequired.Assign(value); } - private readonly BicepValue _actionsRequired; + public BicepValue ActionsRequired + { + get { Initialize(); return _actionsRequired!; } + set { Initialize(); _actionsRequired!.Assign(value); } + } + private BicepValue? _actionsRequired; /// /// Creates a new WebPubSubPrivateLinkServiceConnectionState. /// public WebPubSubPrivateLinkServiceConnectionState() { - _status = BicepValue.DefineProperty(this, "Status", ["status"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _actionsRequired = BicepValue.DefineProperty(this, "ActionsRequired", ["actionsRequired"]); + } + + /// + /// Define all the provisionable properties of + /// WebPubSubPrivateLinkServiceConnectionState. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _status = DefineProperty("Status", ["status"]); + _description = DefineProperty("Description", ["description"]); + _actionsRequired = DefineProperty("ActionsRequired", ["actionsRequired"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubSharedPrivateLinkData.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubSharedPrivateLinkData.cs index 9db7858410b62..b50b99eab56d8 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubSharedPrivateLinkData.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/Models/WebPubSubSharedPrivateLinkData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -20,64 +22,100 @@ public partial class WebPubSubSharedPrivateLinkData : ProvisionableConstruct /// The group id from the provider of resource the shared private link /// resource is for. /// - public BicepValue GroupId { get => _groupId; set => _groupId.Assign(value); } - private readonly BicepValue _groupId; + public BicepValue GroupId + { + get { Initialize(); return _groupId!; } + set { Initialize(); _groupId!.Assign(value); } + } + private BicepValue? _groupId; /// /// The resource id of the resource the shared private link resource is for. /// - public BicepValue PrivateLinkResourceId { get => _privateLinkResourceId; set => _privateLinkResourceId.Assign(value); } - private readonly BicepValue _privateLinkResourceId; + public BicepValue PrivateLinkResourceId + { + get { Initialize(); return _privateLinkResourceId!; } + set { Initialize(); _privateLinkResourceId!.Assign(value); } + } + private BicepValue? _privateLinkResourceId; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The request message for requesting approval of the shared private link /// resource. /// - public BicepValue RequestMessage { get => _requestMessage; set => _requestMessage.Assign(value); } - private readonly BicepValue _requestMessage; + public BicepValue RequestMessage + { + get { Initialize(); return _requestMessage!; } + set { Initialize(); _requestMessage!.Assign(value); } + } + private BicepValue? _requestMessage; /// /// Status of the shared private link resource. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new WebPubSubSharedPrivateLinkData. /// public WebPubSubSharedPrivateLinkData() { - _groupId = BicepValue.DefineProperty(this, "GroupId", ["properties", "groupId"]); - _privateLinkResourceId = BicepValue.DefineProperty(this, "PrivateLinkResourceId", ["properties", "privateLinkResourceId"]); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _requestMessage = BicepValue.DefineProperty(this, "RequestMessage", ["properties", "requestMessage"]); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// WebPubSubSharedPrivateLinkData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _groupId = DefineProperty("GroupId", ["properties", "groupId"]); + _privateLinkResourceId = DefineProperty("PrivateLinkResourceId", ["properties", "privateLinkResourceId"]); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _requestMessage = DefineProperty("RequestMessage", ["properties", "requestMessage"]); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubHub.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubHub.cs index 08426f5b1fc1f..34f1a804e1ff4 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubHub.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubHub.cs @@ -21,32 +21,50 @@ public partial class WebPubSubHub : ProvisionableResource /// /// The hub name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Properties of a hub. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public WebPubSubHubProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private WebPubSubHubProperties? _properties; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebPubSubService. /// - public WebPubSubService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebPubSubService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebPubSubHub. @@ -61,11 +79,18 @@ public partial class WebPubSubHub : ProvisionableResource public WebPubSubHub(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.SignalRService/webPubSub/hubs", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"], isRequired: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebPubSubHub. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubPrivateEndpointConnection.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubPrivateEndpointConnection.cs index 0f486343d5220..5a156e736ead0 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubPrivateEndpointConnection.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubPrivateEndpointConnection.cs @@ -21,50 +21,78 @@ public partial class WebPubSubPrivateEndpointConnection : ProvisionableResource /// /// The name of the private endpoint connection. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Connection state of the private endpoint connection. /// - public BicepValue ConnectionState { get => _connectionState; set => _connectionState.Assign(value); } - private readonly BicepValue _connectionState; + public WebPubSubPrivateLinkServiceConnectionState ConnectionState + { + get { Initialize(); return _connectionState!; } + set { Initialize(); AssignOrReplace(ref _connectionState, value); } + } + private WebPubSubPrivateLinkServiceConnectionState? _connectionState; /// /// Full qualified Id of the private endpoint. /// - public BicepValue PrivateEndpointId { get => _privateEndpointId; set => _privateEndpointId.Assign(value); } - private readonly BicepValue _privateEndpointId; + public BicepValue PrivateEndpointId + { + get { Initialize(); return _privateEndpointId!; } + set { Initialize(); _privateEndpointId!.Assign(value); } + } + private BicepValue? _privateEndpointId; /// /// Group IDs. /// - public BicepList GroupIds { get => _groupIds; } - private readonly BicepList _groupIds; + public BicepList GroupIds + { + get { Initialize(); return _groupIds!; } + } + private BicepList? _groupIds; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebPubSubService. /// - public WebPubSubService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebPubSubService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebPubSubPrivateEndpointConnection. @@ -79,14 +107,22 @@ public partial class WebPubSubPrivateEndpointConnection : ProvisionableResource public WebPubSubPrivateEndpointConnection(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.SignalRService/webPubSub/privateEndpointConnections", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _connectionState = BicepValue.DefineProperty(this, "ConnectionState", ["properties", "privateLinkServiceConnectionState"]); - _privateEndpointId = BicepValue.DefineProperty(this, "PrivateEndpointId", ["properties", "privateEndpoint", "id"]); - _groupIds = BicepList.DefineProperty(this, "GroupIds", ["properties", "groupIds"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of + /// WebPubSubPrivateEndpointConnection. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _connectionState = DefineModelProperty("ConnectionState", ["properties", "privateLinkServiceConnectionState"]); + _privateEndpointId = DefineProperty("PrivateEndpointId", ["properties", "privateEndpoint", "id"]); + _groupIds = DefineListProperty("GroupIds", ["properties", "groupIds"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubService.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubService.cs index e92d7fbd779e5..2e07ab61f8377 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubService.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubService.cs @@ -25,55 +25,87 @@ public partial class WebPubSubService : ProvisionableResource /// /// The name of the resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// A class represent managed identities used for request and response. /// Current supported identity types: None, SystemAssigned, UserAssigned. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// DisableLocalAuth Enable or disable aad auth /// When set as true, connection with AuthType=aad won't /// work. /// - public BicepValue IsAadAuthDisabled { get => _isAadAuthDisabled; set => _isAadAuthDisabled.Assign(value); } - private readonly BicepValue _isAadAuthDisabled; + public BicepValue IsAadAuthDisabled + { + get { Initialize(); return _isAadAuthDisabled!; } + set { Initialize(); _isAadAuthDisabled!.Assign(value); } + } + private BicepValue? _isAadAuthDisabled; /// /// Request client certificate during TLS handshake if enabled. /// - public BicepValue IsClientCertEnabled { get => _isClientCertEnabled; set => _isClientCertEnabled.Assign(value); } - private readonly BicepValue _isClientCertEnabled; + public BicepValue IsClientCertEnabled + { + get { Initialize(); return _isClientCertEnabled!; } + set { Initialize(); _isClientCertEnabled!.Assign(value); } + } + private BicepValue? _isClientCertEnabled; /// /// DisableLocalAuth Enable or disable local auth with /// AccessKey When set as true, connection with AccessKey=xxx /// won't work. /// - public BicepValue IsLocalAuthDisabled { get => _isLocalAuthDisabled; set => _isLocalAuthDisabled.Assign(value); } - private readonly BicepValue _isLocalAuthDisabled; + public BicepValue IsLocalAuthDisabled + { + get { Initialize(); return _isLocalAuthDisabled!; } + set { Initialize(); _isLocalAuthDisabled!.Assign(value); } + } + private BicepValue? _isLocalAuthDisabled; /// /// Live trace configuration of a Microsoft.SignalRService resource. /// - public BicepValue LiveTraceConfiguration { get => _liveTraceConfiguration; set => _liveTraceConfiguration.Assign(value); } - private readonly BicepValue _liveTraceConfiguration; + public LiveTraceConfiguration LiveTraceConfiguration + { + get { Initialize(); return _liveTraceConfiguration!; } + set { Initialize(); AssignOrReplace(ref _liveTraceConfiguration, value); } + } + private LiveTraceConfiguration? _liveTraceConfiguration; /// /// Network ACLs for the resource. /// - public BicepValue NetworkAcls { get => _networkAcls; set => _networkAcls.Assign(value); } - private readonly BicepValue _networkAcls; + public WebPubSubNetworkAcls NetworkAcls + { + get { Initialize(); return _networkAcls!; } + set { Initialize(); AssignOrReplace(ref _networkAcls, value); } + } + private WebPubSubNetworkAcls? _networkAcls; /// /// Enable or disable public network access. Default to @@ -81,95 +113,144 @@ public partial class WebPubSubService : ProvisionableResource /// still apply. When it's Disabled, public network /// access is always disabled no matter what you set in network ACLs. /// - public BicepValue PublicNetworkAccess { get => _publicNetworkAccess; set => _publicNetworkAccess.Assign(value); } - private readonly BicepValue _publicNetworkAccess; + public BicepValue PublicNetworkAccess + { + get { Initialize(); return _publicNetworkAccess!; } + set { Initialize(); _publicNetworkAccess!.Assign(value); } + } + private BicepValue? _publicNetworkAccess; /// /// Gets or sets the list of category configurations. /// - public BicepList ResourceLogCategories { get => _resourceLogCategories; set => _resourceLogCategories.Assign(value); } - private readonly BicepList _resourceLogCategories; + public BicepList ResourceLogCategories + { + get { Initialize(); return _resourceLogCategories!; } + set { Initialize(); _resourceLogCategories!.Assign(value); } + } + private BicepList? _resourceLogCategories; /// /// The billing information of the resource. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public BillingInfoSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private BillingInfoSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The publicly accessible IP of the resource. /// - public BicepValue ExternalIP { get => _externalIP; } - private readonly BicepValue _externalIP; + public BicepValue ExternalIP + { + get { Initialize(); return _externalIP!; } + } + private BicepValue? _externalIP; /// /// FQDN of the service instance. /// - public BicepValue HostName { get => _hostName; } - private readonly BicepValue _hostName; + public BicepValue HostName + { + get { Initialize(); return _hostName!; } + } + private BicepValue? _hostName; /// /// Deprecated. /// - public BicepValue HostNamePrefix { get => _hostNamePrefix; } - private readonly BicepValue _hostNamePrefix; + public BicepValue HostNamePrefix + { + get { Initialize(); return _hostNamePrefix!; } + } + private BicepValue? _hostNamePrefix; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Private endpoint connections to the resource. /// - public BicepList PrivateEndpointConnections { get => _privateEndpointConnections; } - private readonly BicepList _privateEndpointConnections; + public BicepList PrivateEndpointConnections + { + get { Initialize(); return _privateEndpointConnections!; } + } + private BicepList? _privateEndpointConnections; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The publicly accessible port of the resource which is designed for /// browser/client side usage. /// - public BicepValue PublicPort { get => _publicPort; } - private readonly BicepValue _publicPort; + public BicepValue PublicPort + { + get { Initialize(); return _publicPort!; } + } + private BicepValue? _publicPort; /// /// The publicly accessible port of the resource which is designed for /// customer server side usage. /// - public BicepValue ServerPort { get => _serverPort; } - private readonly BicepValue _serverPort; + public BicepValue ServerPort + { + get { Initialize(); return _serverPort!; } + } + private BicepValue? _serverPort; /// /// The list of shared private link resources. /// - public BicepList SharedPrivateLinkResources { get => _sharedPrivateLinkResources; } - private readonly BicepList _sharedPrivateLinkResources; + public BicepList SharedPrivateLinkResources + { + get { Initialize(); return _sharedPrivateLinkResources!; } + } + private BicepList? _sharedPrivateLinkResources; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Version of the resource. Probably you need the same or higher version /// of client SDKs. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// Creates a new WebPubSubService. @@ -184,29 +265,36 @@ public partial class WebPubSubService : ProvisionableResource public WebPubSubService(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.SignalRService/webPubSub", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _isAadAuthDisabled = BicepValue.DefineProperty(this, "IsAadAuthDisabled", ["properties", "disableAadAuth"]); - _isClientCertEnabled = BicepValue.DefineProperty(this, "IsClientCertEnabled", ["properties", "tls", "clientCertEnabled"]); - _isLocalAuthDisabled = BicepValue.DefineProperty(this, "IsLocalAuthDisabled", ["properties", "disableLocalAuth"]); - _liveTraceConfiguration = BicepValue.DefineProperty(this, "LiveTraceConfiguration", ["properties", "liveTraceConfiguration"]); - _networkAcls = BicepValue.DefineProperty(this, "NetworkAcls", ["properties", "networkACLs"]); - _publicNetworkAccess = BicepValue.DefineProperty(this, "PublicNetworkAccess", ["properties", "publicNetworkAccess"]); - _resourceLogCategories = BicepList.DefineProperty(this, "ResourceLogCategories", ["properties", "resourceLogConfiguration", "categories"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _externalIP = BicepValue.DefineProperty(this, "ExternalIP", ["properties", "externalIP"], isOutput: true); - _hostName = BicepValue.DefineProperty(this, "HostName", ["properties", "hostName"], isOutput: true); - _hostNamePrefix = BicepValue.DefineProperty(this, "HostNamePrefix", ["properties", "hostNamePrefix"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _privateEndpointConnections = BicepList.DefineProperty(this, "PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _publicPort = BicepValue.DefineProperty(this, "PublicPort", ["properties", "publicPort"], isOutput: true); - _serverPort = BicepValue.DefineProperty(this, "ServerPort", ["properties", "serverPort"], isOutput: true); - _sharedPrivateLinkResources = BicepList.DefineProperty(this, "SharedPrivateLinkResources", ["properties", "sharedPrivateLinkResources"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _version = BicepValue.DefineProperty(this, "Version", ["properties", "version"], isOutput: true); + } + + /// + /// Define all the provisionable properties of WebPubSubService. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _isAadAuthDisabled = DefineProperty("IsAadAuthDisabled", ["properties", "disableAadAuth"]); + _isClientCertEnabled = DefineProperty("IsClientCertEnabled", ["properties", "tls", "clientCertEnabled"]); + _isLocalAuthDisabled = DefineProperty("IsLocalAuthDisabled", ["properties", "disableLocalAuth"]); + _liveTraceConfiguration = DefineModelProperty("LiveTraceConfiguration", ["properties", "liveTraceConfiguration"]); + _networkAcls = DefineModelProperty("NetworkAcls", ["properties", "networkACLs"]); + _publicNetworkAccess = DefineProperty("PublicNetworkAccess", ["properties", "publicNetworkAccess"]); + _resourceLogCategories = DefineListProperty("ResourceLogCategories", ["properties", "resourceLogConfiguration", "categories"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _externalIP = DefineProperty("ExternalIP", ["properties", "externalIP"], isOutput: true); + _hostName = DefineProperty("HostName", ["properties", "hostName"], isOutput: true); + _hostNamePrefix = DefineProperty("HostNamePrefix", ["properties", "hostNamePrefix"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _privateEndpointConnections = DefineListProperty("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _publicPort = DefineProperty("PublicPort", ["properties", "publicPort"], isOutput: true); + _serverPort = DefineProperty("ServerPort", ["properties", "serverPort"], isOutput: true); + _sharedPrivateLinkResources = DefineListProperty("SharedPrivateLinkResources", ["properties", "sharedPrivateLinkResources"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _version = DefineProperty("Version", ["properties", "version"], isOutput: true); } /// @@ -261,9 +349,12 @@ public override ResourceNameRequirements GetResourceNameRequirements() => /// Get access keys for this WebPubSubService resource. /// /// The keys for this WebPubSubService resource. - public WebPubSubKeys GetKeys() => - WebPubSubKeys.FromExpression( - new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys"))); + public WebPubSubKeys GetKeys() + { + WebPubSubKeys key = new(); + ((IBicepValue)key).Expression = new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), "listKeys")); + return key; + } /// /// Creates a role assignment for a user-assigned identity that grants diff --git a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubSharedPrivateLink.cs b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubSharedPrivateLink.cs index 21fcdeaeb7be5..bb94abc2fe2ef 100644 --- a/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubSharedPrivateLink.cs +++ b/sdk/provisioning/Azure.Provisioning.WebPubSub/src/Generated/WebPubSubSharedPrivateLink.cs @@ -20,58 +20,90 @@ public partial class WebPubSubSharedPrivateLink : ProvisionableResource /// /// The name of the shared private link resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The group id from the provider of resource the shared private link /// resource is for. /// - public BicepValue GroupId { get => _groupId; set => _groupId.Assign(value); } - private readonly BicepValue _groupId; + public BicepValue GroupId + { + get { Initialize(); return _groupId!; } + set { Initialize(); _groupId!.Assign(value); } + } + private BicepValue? _groupId; /// /// The resource id of the resource the shared private link resource is for. /// - public BicepValue PrivateLinkResourceId { get => _privateLinkResourceId; set => _privateLinkResourceId.Assign(value); } - private readonly BicepValue _privateLinkResourceId; + public BicepValue PrivateLinkResourceId + { + get { Initialize(); return _privateLinkResourceId!; } + set { Initialize(); _privateLinkResourceId!.Assign(value); } + } + private BicepValue? _privateLinkResourceId; /// /// The request message for requesting approval of the shared private link /// resource. /// - public BicepValue RequestMessage { get => _requestMessage; set => _requestMessage.Assign(value); } - private readonly BicepValue _requestMessage; + public BicepValue RequestMessage + { + get { Initialize(); return _requestMessage!; } + set { Initialize(); _requestMessage!.Assign(value); } + } + private BicepValue? _requestMessage; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Provisioning state of the resource. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Status of the shared private link resource. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent WebPubSubService. /// - public WebPubSubService? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public WebPubSubService? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new WebPubSubSharedPrivateLink. @@ -86,15 +118,22 @@ public partial class WebPubSubSharedPrivateLink : ProvisionableResource public WebPubSubSharedPrivateLink(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources", resourceVersion ?? "2024-03-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _groupId = BicepValue.DefineProperty(this, "GroupId", ["properties", "groupId"]); - _privateLinkResourceId = BicepValue.DefineProperty(this, "PrivateLinkResourceId", ["properties", "privateLinkResourceId"]); - _requestMessage = BicepValue.DefineProperty(this, "RequestMessage", ["properties", "requestMessage"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of WebPubSubSharedPrivateLink. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _groupId = DefineProperty("GroupId", ["properties", "groupId"]); + _privateLinkResourceId = DefineProperty("PrivateLinkResourceId", ["properties", "privateLinkResourceId"]); + _requestMessage = DefineProperty("RequestMessage", ["properties", "requestMessage"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/api/Azure.Provisioning.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning/api/Azure.Provisioning.netstandard2.0.cs index 49f436bae9f02..8688af63f3daa 100644 --- a/sdk/provisioning/Azure.Provisioning/api/Azure.Provisioning.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning/api/Azure.Provisioning.netstandard2.0.cs @@ -1,15 +1,18 @@ namespace Azure.Provisioning { - public partial class BicepDictionary : Azure.Provisioning.BicepValue, System.Collections.Generic.ICollection>>, System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>>, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable + public partial class BicepDictionary : Azure.Provisioning.BicepValue, System.Collections.Generic.ICollection>>, System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>>, System.Collections.Generic.IEnumerable>, System.Collections.Generic.IReadOnlyCollection>>, System.Collections.Generic.IReadOnlyDictionary>, System.Collections.IEnumerable { public BicepDictionary() { } public BicepDictionary(System.Collections.Generic.IDictionary>? values) { } public int Count { get { throw null; } } + public override bool IsEmpty { get { throw null; } } public bool IsReadOnly { get { throw null; } } public Azure.Provisioning.BicepValue this[string key] { get { throw null; } set { } } public System.Collections.Generic.ICollection Keys { get { throw null; } } - Azure.Provisioning.BicepValue System.Collections.Generic.IDictionary.this[string key] { get { throw null; } set { } } - System.Collections.Generic.ICollection System.Collections.Generic.IDictionary.Values { get { throw null; } } + Azure.Provisioning.IBicepValue System.Collections.Generic.IDictionary.this[string key] { get { throw null; } set { } } + System.Collections.Generic.ICollection System.Collections.Generic.IDictionary.Values { get { throw null; } } + System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary>.Keys { get { throw null; } } + System.Collections.Generic.IEnumerable> System.Collections.Generic.IReadOnlyDictionary>.Values { get { throw null; } } public System.Collections.Generic.ICollection> Values { get { throw null; } } public void Add(System.Collections.Generic.KeyValuePair> item) { } public void Add(string key, Azure.Provisioning.BicepValue value) { } @@ -19,27 +22,26 @@ public void Clear() { } public bool Contains(System.Collections.Generic.KeyValuePair> item) { throw null; } public bool ContainsKey(string key) { throw null; } public void CopyTo(System.Collections.Generic.KeyValuePair>[] array, int arrayIndex) { } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.BicepDictionary DefineProperty(Azure.Provisioning.Primitives.ProvisionableConstruct construct, string propertyName, string[]? bicepPath, bool isOutput = false, bool isRequired = false) { throw null; } public System.Collections.Generic.IEnumerator>> GetEnumerator() { throw null; } public static implicit operator Azure.Provisioning.BicepDictionary (Azure.Provisioning.ProvisioningVariable reference) { throw null; } public bool Remove(System.Collections.Generic.KeyValuePair> item) { throw null; } public bool Remove(string key) { throw null; } - void System.Collections.Generic.ICollection>.Add(System.Collections.Generic.KeyValuePair item) { } - bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair item) { throw null; } - void System.Collections.Generic.ICollection>.CopyTo(System.Collections.Generic.KeyValuePair[] array, int arrayIndex) { } - bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair item) { throw null; } - void System.Collections.Generic.IDictionary.Add(string key, Azure.Provisioning.BicepValue value) { } - bool System.Collections.Generic.IDictionary.TryGetValue(string key, out Azure.Provisioning.BicepValue value) { throw null; } - System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() { throw null; } + void System.Collections.Generic.ICollection>.Add(System.Collections.Generic.KeyValuePair item) { } + bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair item) { throw null; } + void System.Collections.Generic.ICollection>.CopyTo(System.Collections.Generic.KeyValuePair[] array, int arrayIndex) { } + bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair item) { throw null; } + void System.Collections.Generic.IDictionary.Add(string key, Azure.Provisioning.IBicepValue value) { } + bool System.Collections.Generic.IDictionary.TryGetValue(string key, out Azure.Provisioning.IBicepValue value) { throw null; } + System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } public bool TryGetValue(string key, out Azure.Provisioning.BicepValue value) { throw null; } } - public partial class BicepList : Azure.Provisioning.BicepValue, System.Collections.Generic.ICollection>, System.Collections.Generic.IEnumerable>, System.Collections.Generic.IList>, System.Collections.IEnumerable + public partial class BicepList : Azure.Provisioning.BicepValue, System.Collections.Generic.ICollection>, System.Collections.Generic.IEnumerable>, System.Collections.Generic.IList>, System.Collections.Generic.IReadOnlyCollection>, System.Collections.Generic.IReadOnlyList>, System.Collections.IEnumerable { public BicepList() { } public BicepList(System.Collections.Generic.IList>? values) { } public int Count { get { throw null; } } + public override bool IsEmpty { get { throw null; } } public bool IsReadOnly { get { throw null; } } public Azure.Provisioning.BicepValue this[int index] { get { throw null; } set { } } public void Add(Azure.Provisioning.BicepValue item) { } @@ -49,8 +51,6 @@ public void Clear() { } public bool Contains(Azure.Provisioning.BicepValue item) { throw null; } public void CopyTo(Azure.Provisioning.BicepValue[] array, int arrayIndex) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.BicepList DefineProperty(Azure.Provisioning.Primitives.ProvisionableConstruct construct, string propertyName, string[]? bicepPath, bool isOutput = false, bool isRequired = false) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Provisioning.BicepList FromExpression(System.Func referenceFactory, Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } public System.Collections.Generic.IEnumerator> GetEnumerator() { throw null; } public int IndexOf(Azure.Provisioning.BicepValue item) { throw null; } @@ -60,14 +60,29 @@ public void Insert(int index, Azure.Provisioning.BicepValue item) { } public void RemoveAt(int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public abstract partial class BicepValue + public abstract partial class BicepValue : Azure.Provisioning.IBicepValue { internal BicepValue() { } - public Azure.Provisioning.Expressions.BicepExpression? Expression { get { throw null; } set { } } - public Azure.Provisioning.BicepValueKind Kind { get { throw null; } set { } } + Azure.Provisioning.Expressions.BicepExpression? Azure.Provisioning.IBicepValue.Expression { get { throw null; } set { } } + bool Azure.Provisioning.IBicepValue.IsOutput { get { throw null; } } + bool Azure.Provisioning.IBicepValue.IsRequired { get { throw null; } } + bool Azure.Provisioning.IBicepValue.IsSecure { get { throw null; } } + Azure.Provisioning.BicepValueKind Azure.Provisioning.IBicepValue.Kind { get { throw null; } } + object? Azure.Provisioning.IBicepValue.LiteralValue { get { throw null; } } + Azure.Provisioning.Primitives.BicepValueReference? Azure.Provisioning.IBicepValue.Self { get { throw null; } set { } } + Azure.Provisioning.Primitives.BicepValueReference? Azure.Provisioning.IBicepValue.Source { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual bool IsEmpty { get { throw null; } } + void Azure.Provisioning.IBicepValue.Assign(Azure.Provisioning.IBicepValue source) { } + void Azure.Provisioning.IBicepValue.SetReadOnly() { } public Azure.Provisioning.Expressions.BicepExpression Compile() { throw null; } + public static explicit operator Azure.Provisioning.Expressions.BicepExpression (Azure.Provisioning.BicepValue value) { throw null; } public override string ToString() { throw null; } } + public static partial class BicepValueExtensions + { + public static T Unwrap(this Azure.Provisioning.BicepValue value) where T : Azure.Provisioning.Primitives.ProvisionableConstruct, new() { throw null; } + } public enum BicepValueKind { Unset = 0, @@ -81,13 +96,27 @@ public BicepValue(T literal) { } public T? Value { get { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public void Assign(Azure.Provisioning.BicepValue source) { } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.BicepValue DefineProperty(Azure.Provisioning.Primitives.ProvisionableConstruct construct, string propertyName, string[]? bicepPath, bool isOutput = false, bool isRequired = false, bool isSecure = false, Azure.Provisioning.BicepValue? defaultValue = null, string? format = null) { throw null; } + public void ClearValue() { } public static implicit operator Azure.Provisioning.BicepValue (Azure.Provisioning.BicepValue value) { throw null; } - public static implicit operator Azure.Provisioning.BicepValue (Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + public static implicit operator Azure.Provisioning.BicepValue (Azure.Provisioning.Expressions.BicepExpression? expression) { throw null; } public static implicit operator Azure.Provisioning.BicepValue (Azure.Provisioning.ProvisioningVariable reference) { throw null; } public static implicit operator Azure.Provisioning.BicepValue (T value) { throw null; } } + public partial interface IBicepValue + { + Azure.Provisioning.Expressions.BicepExpression? Expression { get; set; } + bool IsEmpty { get; } + bool IsOutput { get; } + bool IsRequired { get; } + bool IsSecure { get; } + Azure.Provisioning.BicepValueKind Kind { get; } + object? LiteralValue { get; } + Azure.Provisioning.Primitives.BicepValueReference? Self { get; set; } + Azure.Provisioning.Primitives.BicepValueReference? Source { get; } + void Assign(Azure.Provisioning.IBicepValue source); + Azure.Provisioning.Expressions.BicepExpression Compile(); + void SetReadOnly(); + } public partial class Infrastructure : Azure.Provisioning.Primitives.Provisionable { public Infrastructure(string bicepName = "main") { } @@ -155,7 +184,8 @@ public partial class AuthorizationRoleDefinition : Azure.Provisioning.Primitives public Azure.Provisioning.BicepList Permissions { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoleName { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoleType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Authorization.AuthorizationRoleDefinition FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -181,7 +211,7 @@ public partial class PolicyAssignmentProperties : Azure.Provisioning.Primitives. { public PolicyAssignmentProperties() { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue LastModifiedBy { get { throw null; } } + public Azure.Provisioning.Authorization.RoleManagementPrincipal LastModifiedBy { get { throw null; } } public Azure.Provisioning.BicepValue LastModifiedOn { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue PolicyId { get { throw null; } } @@ -191,7 +221,8 @@ public PolicyAssignmentProperties() { } public Azure.Provisioning.BicepValue ScopeDisplayName { get { throw null; } } public Azure.Provisioning.BicepValue ScopeId { get { throw null; } } public Azure.Provisioning.BicepValue ScopeType { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class RoleAssignment : Azure.Provisioning.Primitives.ProvisionableResource { @@ -208,9 +239,10 @@ public partial class RoleAssignment : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue PrincipalType { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoleDefinitionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue Scope { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue UpdatedBy { get { throw null; } } public Azure.Provisioning.BicepValue UpdatedOn { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Authorization.RoleAssignment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -238,7 +270,7 @@ public partial class RoleAssignmentScheduleRequest : Azure.Provisioning.Primitiv public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue Duration { get { throw null; } set { } } public Azure.Provisioning.BicepValue EndOn { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ExpandedProperties { get { throw null; } } + public Azure.Provisioning.Authorization.RoleManagementExpandedProperties ExpandedProperties { get { throw null; } } public Azure.Provisioning.BicepValue ExpirationType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Justification { get { throw null; } set { } } @@ -252,10 +284,11 @@ public partial class RoleAssignmentScheduleRequest : Azure.Provisioning.Primitiv public Azure.Provisioning.BicepValue Scope { get { throw null; } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TargetRoleAssignmentScheduleId { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetRoleAssignmentScheduleInstanceId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TicketInfo { get { throw null; } set { } } + public Azure.Provisioning.Authorization.RoleAssignmentScheduleTicketInfo TicketInfo { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Authorization.RoleAssignmentScheduleRequest FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -267,6 +300,7 @@ public partial class RoleAssignmentScheduleTicketInfo : Azure.Provisioning.Primi public RoleAssignmentScheduleTicketInfo() { } public Azure.Provisioning.BicepValue TicketNumber { get { throw null; } set { } } public Azure.Provisioning.BicepValue TicketSystem { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RoleDefinitionPermission : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -275,6 +309,7 @@ public RoleDefinitionPermission() { } public Azure.Provisioning.BicepList DataActions { get { throw null; } set { } } public Azure.Provisioning.BicepList NotActions { get { throw null; } set { } } public Azure.Provisioning.BicepList NotDataActions { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RoleEligibilityScheduleRequest : Azure.Provisioning.Primitives.ProvisionableResource { @@ -285,7 +320,7 @@ public partial class RoleEligibilityScheduleRequest : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue Duration { get { throw null; } set { } } public Azure.Provisioning.BicepValue EndOn { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ExpandedProperties { get { throw null; } } + public Azure.Provisioning.Authorization.RoleManagementExpandedProperties ExpandedProperties { get { throw null; } } public Azure.Provisioning.BicepValue ExpirationType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Justification { get { throw null; } set { } } @@ -298,10 +333,11 @@ public partial class RoleEligibilityScheduleRequest : Azure.Provisioning.Primiti public Azure.Provisioning.BicepValue Scope { get { throw null; } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } set { } } public Azure.Provisioning.BicepValue Status { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TargetRoleEligibilityScheduleId { get { throw null; } set { } } public Azure.Provisioning.BicepValue TargetRoleEligibilityScheduleInstanceId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TicketInfo { get { throw null; } set { } } + public Azure.Provisioning.Authorization.RoleEligibilityScheduleRequestPropertiesTicketInfo TicketInfo { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Authorization.RoleEligibilityScheduleRequest FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -313,6 +349,7 @@ public partial class RoleEligibilityScheduleRequestPropertiesTicketInfo : Azure. public RoleEligibilityScheduleRequestPropertiesTicketInfo() { } public Azure.Provisioning.BicepValue TicketNumber { get { throw null; } set { } } public Azure.Provisioning.BicepValue TicketSystem { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum RoleManagementApprovalMode { @@ -329,6 +366,7 @@ public RoleManagementApprovalSettings() { } public Azure.Provisioning.BicepValue IsApprovalRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsApprovalRequiredForExtension { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsRequestorJustificationRequired { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RoleManagementApprovalStage : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -339,6 +377,7 @@ public RoleManagementApprovalStage() { } public Azure.Provisioning.BicepValue IsApproverJustificationRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEscalationEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepList PrimaryApprovers { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum RoleManagementAssignmentLevel { @@ -358,11 +397,13 @@ public RoleManagementExpandedProperties() { } public Azure.Provisioning.BicepValue ScopeDisplayName { get { throw null; } } public Azure.Provisioning.BicepValue ScopeId { get { throw null; } } public Azure.Provisioning.BicepValue ScopeType { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class RoleManagementPolicyApprovalRule : Azure.Provisioning.Authorization.RoleManagementPolicyRule { public RoleManagementPolicyApprovalRule() { } - public Azure.Provisioning.BicepValue Settings { get { throw null; } set { } } + public Azure.Provisioning.Authorization.RoleManagementApprovalSettings Settings { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RoleManagementPolicyAssignment : Azure.Provisioning.Primitives.ProvisionableResource { @@ -370,11 +411,12 @@ public partial class RoleManagementPolicyAssignment : Azure.Provisioning.Primiti public Azure.Provisioning.BicepList EffectiveRules { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue PolicyAssignmentProperties { get { throw null; } } + public Azure.Provisioning.Authorization.PolicyAssignmentProperties PolicyAssignmentProperties { get { throw null; } } public Azure.Provisioning.BicepValue PolicyId { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoleDefinitionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue Scope { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Authorization.RoleManagementPolicyAssignment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -386,17 +428,20 @@ public partial class RoleManagementPolicyAuthenticationContextRule : Azure.Provi public RoleManagementPolicyAuthenticationContextRule() { } public Azure.Provisioning.BicepValue ClaimValue { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RoleManagementPolicyEnablementRule : Azure.Provisioning.Authorization.RoleManagementPolicyRule { public RoleManagementPolicyEnablementRule() { } public Azure.Provisioning.BicepList EnablementRules { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RoleManagementPolicyExpirationRule : Azure.Provisioning.Authorization.RoleManagementPolicyRule { public RoleManagementPolicyExpirationRule() { } public Azure.Provisioning.BicepValue IsExpirationRequired { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaximumDuration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum RoleManagementPolicyNotificationLevel { @@ -412,6 +457,7 @@ public RoleManagementPolicyNotificationRule() { } public Azure.Provisioning.BicepValue NotificationLevel { get { throw null; } set { } } public Azure.Provisioning.BicepList NotificationRecipients { get { throw null; } set { } } public Azure.Provisioning.BicepValue RecipientType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum RoleManagementPolicyRecipientType { @@ -423,7 +469,8 @@ public partial class RoleManagementPolicyRule : Azure.Provisioning.Primitives.Pr { public RoleManagementPolicyRule() { } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Target { get { throw null; } set { } } + public Azure.Provisioning.Authorization.RoleManagementPolicyRuleTarget Target { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RoleManagementPolicyRuleTarget : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -434,6 +481,7 @@ public RoleManagementPolicyRuleTarget() { } public Azure.Provisioning.BicepValue Level { get { throw null; } set { } } public Azure.Provisioning.BicepList Operations { get { throw null; } set { } } public Azure.Provisioning.BicepList TargetObjects { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class RoleManagementPrincipal : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -442,6 +490,7 @@ public RoleManagementPrincipal() { } public Azure.Provisioning.BicepValue Email { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue PrincipalType { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum RoleManagementPrincipalType { @@ -510,6 +559,7 @@ public RoleManagementUserInfo() { } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } public Azure.Provisioning.BicepValue IsBackup { get { throw null; } set { } } public Azure.Provisioning.BicepValue UserType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum RoleManagementUserType { @@ -844,18 +894,39 @@ internal Provisionable() { } protected internal virtual void Resolve(Azure.Provisioning.ProvisioningBuildOptions? options = null) { } protected internal virtual void Validate(Azure.Provisioning.ProvisioningBuildOptions? options = null) { } } - public abstract partial class ProvisionableConstruct : Azure.Provisioning.Primitives.Provisionable + public abstract partial class ProvisionableConstruct : Azure.Provisioning.Primitives.Provisionable, Azure.Provisioning.IBicepValue { protected ProvisionableConstruct() { } + Azure.Provisioning.Expressions.BicepExpression? Azure.Provisioning.IBicepValue.Expression { get { throw null; } set { } } + bool Azure.Provisioning.IBicepValue.IsEmpty { get { throw null; } } + bool Azure.Provisioning.IBicepValue.IsOutput { get { throw null; } } + bool Azure.Provisioning.IBicepValue.IsRequired { get { throw null; } } + bool Azure.Provisioning.IBicepValue.IsSecure { get { throw null; } } + Azure.Provisioning.BicepValueKind Azure.Provisioning.IBicepValue.Kind { get { throw null; } } + object? Azure.Provisioning.IBicepValue.LiteralValue { get { throw null; } } + Azure.Provisioning.Primitives.BicepValueReference? Azure.Provisioning.IBicepValue.Self { get { throw null; } set { } } + Azure.Provisioning.Primitives.BicepValueReference? Azure.Provisioning.IBicepValue.Source { get { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public Azure.Provisioning.Infrastructure? ParentInfrastructure { get { throw null; } } + public Azure.Provisioning.Infrastructure? ParentInfrastructure { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public System.Collections.Generic.IDictionary ProvisionableProperties { get { throw null; } } + protected virtual void AssignOrReplace(ref T? property, T value) where T : Azure.Provisioning.IBicepValue { } + void Azure.Provisioning.IBicepValue.Assign(Azure.Provisioning.IBicepValue source) { } + Azure.Provisioning.Expressions.BicepExpression Azure.Provisioning.IBicepValue.Compile() { throw null; } + void Azure.Provisioning.IBicepValue.SetReadOnly() { } protected internal override System.Collections.Generic.IEnumerable Compile() { throw null; } + protected Azure.Provisioning.BicepDictionary DefineDictionaryProperty(string propertyName, string[]? bicepPath, bool isOutput = false, bool isRequired = false) { throw null; } + protected Azure.Provisioning.BicepList DefineListProperty(string propertyName, string[]? bicepPath, bool isOutput = false, bool isRequired = false) { throw null; } + protected T DefineModelProperty(string propertyName, string[]? bicepPath, bool isOutput = false, bool isRequired = false, bool isSecure = false, string? format = null) where T : Azure.Provisioning.Primitives.ProvisionableConstruct, new() { throw null; } + protected Azure.Provisioning.BicepValue DefineProperty(string propertyName, string[]? bicepPath, bool isOutput = false, bool isRequired = false, bool isSecure = false, Azure.Provisioning.BicepValue? defaultValue = null, string? format = null) { throw null; } + protected virtual void DefineProvisionableProperties() { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override System.Collections.Generic.IEnumerable GetProvisionableResources() { throw null; } + protected void Initialize() { } protected internal void OverrideWithExpression(Azure.Provisioning.Expressions.BicepExpression reference) { } protected internal override void Resolve(Azure.Provisioning.ProvisioningBuildOptions? options = null) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public void SetProvisioningProperty(Azure.Provisioning.BicepValue property, Azure.Provisioning.BicepValue value) { } + public void SetProvisioningProperty(Azure.Provisioning.IBicepValue property, Azure.Provisioning.BicepValue value) { } protected internal override void Validate(Azure.Provisioning.ProvisioningBuildOptions? options = null) { } } public abstract partial class ProvisionableResource : Azure.Provisioning.Primitives.NamedProvisionableConstruct @@ -867,6 +938,7 @@ protected ProvisionableResource(string bicepIdentifier, Azure.Core.ResourceType public string? ResourceVersion { get { throw null; } set { } } public virtual Azure.Provisioning.ProvisioningPlan Build(Azure.Provisioning.ProvisioningBuildOptions? options = null) { throw null; } protected internal override System.Collections.Generic.IEnumerable Compile() { throw null; } + protected Azure.Provisioning.Primitives.ResourceReference DefineResource(string propertyName, string[]? bicepPath, bool isOutput = false, bool isRequired = false, T? defaultValue = null) where T : Azure.Provisioning.Primitives.ProvisionableResource { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } protected internal override void Validate(Azure.Provisioning.ProvisioningBuildOptions? options = null) { } @@ -904,8 +976,6 @@ public partial class ResourceReference where T : Azure.Provisioning.Primitive { public ResourceReference(Azure.Provisioning.BicepValue reference) { } public T? Value { get { throw null; } set { } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.Primitives.ResourceReference DefineResource(Azure.Provisioning.Primitives.ProvisionableResource construct, string propertyName, string[]? bicepPath, bool isOutput = false, bool isRequired = false, T? defaultValue = null) { throw null; } } public partial class StaticResourceNamePropertyResolver : Azure.Provisioning.Primitives.ResourceNamePropertyResolver { @@ -920,6 +990,7 @@ public partial class ApiProfile : Azure.Provisioning.Primitives.ProvisionableCon public ApiProfile() { } public Azure.Provisioning.BicepValue ApiVersion { get { throw null; } } public Azure.Provisioning.BicepValue ProfileVersion { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ArmApplication : Azure.Provisioning.Primitives.ProvisionableResource { @@ -928,11 +999,11 @@ public partial class ArmApplication : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepList Artifacts { get { throw null; } } public Azure.Provisioning.BicepList Authorizations { get { throw null; } } public Azure.Provisioning.BicepValue BillingDetailsResourceUsageId { get { throw null; } } - public Azure.Provisioning.BicepValue CreatedBy { get { throw null; } } - public Azure.Provisioning.BicepValue CustomerSupport { get { throw null; } } + public Azure.Provisioning.Resources.ArmApplicationDetails CreatedBy { get { throw null; } } + public Azure.Provisioning.Resources.ArmApplicationPackageContact CustomerSupport { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } - public Azure.Provisioning.BicepValue JitAccessPolicy { get { throw null; } set { } } + public Azure.Provisioning.Resources.ArmApplicationManagedIdentity Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ArmApplicationJitAccessPolicy JitAccessPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue ManagedBy { get { throw null; } set { } } @@ -941,14 +1012,15 @@ public partial class ArmApplication : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Outputs { get { throw null; } } public Azure.Provisioning.BicepValue Parameters { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Plan { get { throw null; } set { } } + public Azure.Provisioning.Resources.ArmPlan Plan { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublisherTenantId { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SupportUris { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.ArmApplicationSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.ArmApplicationPackageSupportUris SupportUris { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } - public Azure.Provisioning.BicepValue UpdatedBy { get { throw null; } } + public Azure.Provisioning.Resources.ArmApplicationDetails UpdatedBy { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.ArmApplication FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -967,6 +1039,7 @@ public ArmApplicationArtifact() { } public Azure.Provisioning.BicepValue ArtifactType { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepValue Uri { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ArmApplicationArtifactName { @@ -986,6 +1059,7 @@ public partial class ArmApplicationAuthorization : Azure.Provisioning.Primitives public ArmApplicationAuthorization() { } public Azure.Provisioning.BicepValue PrincipalId { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoleDefinitionId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ArmApplicationDefinition : Azure.Provisioning.Primitives.ProvisionableResource { @@ -998,7 +1072,7 @@ public partial class ArmApplicationDefinition : Azure.Provisioning.Primitives.Pr public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue IsEnabled { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } - public Azure.Provisioning.BicepValue LockingPolicy { get { throw null; } set { } } + public Azure.Provisioning.Resources.ArmApplicationPackageLockingPolicy LockingPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue LockLevel { get { throw null; } set { } } public Azure.Provisioning.BicepValue MainTemplate { get { throw null; } set { } } public Azure.Provisioning.BicepValue ManagedBy { get { throw null; } set { } } @@ -1007,9 +1081,10 @@ public partial class ArmApplicationDefinition : Azure.Provisioning.Primitives.Pr public Azure.Provisioning.BicepList NotificationEndpoints { get { throw null; } set { } } public Azure.Provisioning.BicepValue PackageFileUri { get { throw null; } set { } } public Azure.Provisioning.BicepList Policies { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.ArmApplicationSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.ArmApplicationDefinition FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1028,6 +1103,7 @@ public ArmApplicationDefinitionArtifact() { } public Azure.Provisioning.BicepValue ArtifactType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Uri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ArmApplicationDefinitionArtifactName { @@ -1048,6 +1124,7 @@ public ArmApplicationDetails() { } public Azure.Provisioning.BicepValue ApplicationId { get { throw null; } } public Azure.Provisioning.BicepValue ObjectId { get { throw null; } } public Azure.Provisioning.BicepValue Puid { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ArmApplicationJitAccessPolicy : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1056,6 +1133,7 @@ public ArmApplicationJitAccessPolicy() { } public Azure.Provisioning.BicepValue JitApprovalMode { get { throw null; } set { } } public Azure.Provisioning.BicepList JitApprovers { get { throw null; } set { } } public Azure.Provisioning.BicepValue MaximumJitAccessDuration { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ArmApplicationLockLevel { @@ -1070,6 +1148,7 @@ public ArmApplicationManagedIdentity() { } public Azure.Provisioning.BicepValue PrincipalId { get { throw null; } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } public Azure.Provisioning.BicepDictionary UserAssignedIdentities { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ArmApplicationManagedIdentityType { @@ -1089,6 +1168,7 @@ public partial class ArmApplicationNotificationEndpoint : Azure.Provisioning.Pri { public ArmApplicationNotificationEndpoint() { } public Azure.Provisioning.BicepValue Uri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ArmApplicationPackageContact : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1096,18 +1176,21 @@ public ArmApplicationPackageContact() { } public Azure.Provisioning.BicepValue ContactName { get { throw null; } } public Azure.Provisioning.BicepValue Email { get { throw null; } } public Azure.Provisioning.BicepValue Phone { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ArmApplicationPackageLockingPolicy : Azure.Provisioning.Primitives.ProvisionableConstruct { public ArmApplicationPackageLockingPolicy() { } public Azure.Provisioning.BicepList AllowedActions { get { throw null; } set { } } public Azure.Provisioning.BicepList AllowedDataActions { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ArmApplicationPackageSupportUris : Azure.Provisioning.Primitives.ProvisionableConstruct { public ArmApplicationPackageSupportUris() { } public Azure.Provisioning.BicepValue AzureGovernmentUri { get { throw null; } } public Azure.Provisioning.BicepValue AzurePublicCloudUri { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ArmApplicationPolicy : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1115,6 +1198,7 @@ public ArmApplicationPolicy() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Parameters { get { throw null; } set { } } public Azure.Provisioning.BicepValue PolicyDefinitionId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ArmApplicationSku : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1125,12 +1209,14 @@ public ArmApplicationSku() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Size { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ArmApplicationUserAssignedIdentity : Azure.Provisioning.Primitives.ProvisionableConstruct { public ArmApplicationUserAssignedIdentity() { } public Azure.Provisioning.BicepValue PrincipalId { get { throw null; } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } + protected override void DefineProvisionableProperties() { } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ArmBuiltInRole : System.IEquatable @@ -1164,6 +1250,7 @@ public ArmDependency() { } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue ResourceName { get { throw null; } } public Azure.Provisioning.BicepValue ResourceType { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ArmDeployment : Azure.Provisioning.Primitives.ProvisionableResource { @@ -1171,13 +1258,12 @@ public partial class ArmDeployment : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.ArmDeploymentPropertiesExtended Properties { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.ArmDeployment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.Resources.ArmDeployment FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } public static partial class ResourceVersions { @@ -1216,8 +1302,9 @@ public partial class ArmDeploymentContent : Azure.Provisioning.Primitives.Provis { public ArmDeploymentContent() { } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Properties { get { throw null; } } + public Azure.Provisioning.Resources.ArmDeploymentProperties Properties { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ArmDeploymentMode { @@ -1229,18 +1316,20 @@ public partial class ArmDeploymentParametersLink : Azure.Provisioning.Primitives public ArmDeploymentParametersLink() { } public Azure.Provisioning.BicepValue ContentVersion { get { throw null; } set { } } public Azure.Provisioning.BicepValue Uri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ArmDeploymentProperties : Azure.Provisioning.Primitives.ProvisionableConstruct { public ArmDeploymentProperties() { } public Azure.Provisioning.BicepValue DebugSettingDetailLevel { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ErrorDeployment { get { throw null; } set { } } + public Azure.Provisioning.Resources.ErrorDeployment ErrorDeployment { get { throw null; } set { } } public Azure.Provisioning.BicepValue ExpressionEvaluationScope { get { throw null; } set { } } public Azure.Provisioning.BicepValue Mode { get { throw null; } } public Azure.Provisioning.BicepValue Parameters { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ParametersLink { get { throw null; } set { } } + public Azure.Provisioning.Resources.ArmDeploymentParametersLink ParametersLink { get { throw null; } set { } } public Azure.Provisioning.BicepValue Template { get { throw null; } set { } } - public Azure.Provisioning.BicepValue TemplateLink { get { throw null; } set { } } + public Azure.Provisioning.Resources.ArmDeploymentTemplateLink TemplateLink { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ArmDeploymentPropertiesExtended : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1249,28 +1338,30 @@ public ArmDeploymentPropertiesExtended() { } public Azure.Provisioning.BicepList Dependencies { get { throw null; } } public Azure.Provisioning.BicepValue Duration { get { throw null; } } public Azure.Provisioning.BicepValue Error { get { throw null; } } - public Azure.Provisioning.BicepValue ErrorDeployment { get { throw null; } } + public Azure.Provisioning.Resources.ErrorDeploymentExtended ErrorDeployment { get { throw null; } } public Azure.Provisioning.BicepValue Mode { get { throw null; } } public Azure.Provisioning.BicepList OutputResources { get { throw null; } } public Azure.Provisioning.BicepValue Outputs { get { throw null; } } public Azure.Provisioning.BicepValue Parameters { get { throw null; } } - public Azure.Provisioning.BicepValue ParametersLink { get { throw null; } } + public Azure.Provisioning.Resources.ArmDeploymentParametersLink ParametersLink { get { throw null; } } public Azure.Provisioning.BicepList Providers { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue TemplateHash { get { throw null; } } - public Azure.Provisioning.BicepValue TemplateLink { get { throw null; } } + public Azure.Provisioning.Resources.ArmDeploymentTemplateLink TemplateLink { get { throw null; } } public Azure.Provisioning.BicepValue Timestamp { get { throw null; } } public Azure.Provisioning.BicepList ValidatedResources { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ArmDeploymentScript : Azure.Provisioning.Primitives.ProvisionableResource { public ArmDeploymentScript(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ArmDeploymentScriptManagedIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.ArmDeploymentScript FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1284,6 +1375,7 @@ public ArmDeploymentScriptManagedIdentity() { } public Azure.Provisioning.BicepValue IdentityType { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } public Azure.Provisioning.BicepDictionary UserAssignedIdentities { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ArmDeploymentScriptManagedIdentityType { @@ -1297,11 +1389,13 @@ public ArmDeploymentTemplateLink() { } public Azure.Provisioning.BicepValue QueryString { get { throw null; } set { } } public Azure.Provisioning.BicepValue RelativePath { get { throw null; } set { } } public Azure.Provisioning.BicepValue Uri { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ArmDeploymentWhatIfProperties : Azure.Provisioning.Resources.ArmDeploymentProperties { public ArmDeploymentWhatIfProperties() { } public Azure.Provisioning.BicepValue WhatIfResultFormat { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ArmPlan : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1311,14 +1405,16 @@ public ArmPlan() { } public Azure.Provisioning.BicepValue PromotionCode { get { throw null; } set { } } public Azure.Provisioning.BicepValue Publisher { get { throw null; } set { } } public Azure.Provisioning.BicepValue Version { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ArmPolicyParameter : Azure.Provisioning.Primitives.ProvisionableConstruct { public ArmPolicyParameter() { } public Azure.Provisioning.BicepList AllowedValues { get { throw null; } set { } } public Azure.Provisioning.BicepValue DefaultValue { get { throw null; } set { } } - public Azure.Provisioning.BicepValue Metadata { get { throw null; } set { } } + public Azure.Provisioning.Resources.ParameterDefinitionsValueMetadata Metadata { get { throw null; } set { } } public Azure.Provisioning.BicepValue ParameterType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ArmPolicyParameterType { @@ -1334,6 +1430,7 @@ public partial class ArmPolicyParameterValue : Azure.Provisioning.Primitives.Pro { public ArmPolicyParameterValue() { } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class BasicArmDependency : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1341,6 +1438,7 @@ public BasicArmDependency() { } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue ResourceName { get { throw null; } } public Azure.Provisioning.BicepValue ResourceType { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum CreatedByType { @@ -1352,10 +1450,11 @@ public enum CreatedByType public partial class CreateManagementGroupDetails : Azure.Provisioning.Primitives.ProvisionableConstruct { public CreateManagementGroupDetails() { } - public Azure.Provisioning.BicepValue Parent { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagementGroupParentCreateOptions Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue UpdatedBy { get { throw null; } } public Azure.Provisioning.BicepValue UpdatedOn { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum EnforcementMode { @@ -1369,6 +1468,7 @@ public partial class ErrorDeployment : Azure.Provisioning.Primitives.Provisionab public ErrorDeployment() { } public Azure.Provisioning.BicepValue DeploymentName { get { throw null; } set { } } public Azure.Provisioning.BicepValue DeploymentType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ErrorDeploymentExtended : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1376,6 +1476,7 @@ public ErrorDeploymentExtended() { } public Azure.Provisioning.BicepValue DeploymentName { get { throw null; } } public Azure.Provisioning.BicepValue DeploymentType { get { throw null; } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ErrorDeploymentType { @@ -1393,6 +1494,7 @@ public partial class ExtendedAzureLocation : Azure.Provisioning.Primitives.Provi public ExtendedAzureLocation() { } public Azure.Provisioning.BicepValue ExtendedLocationType { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ExtendedLocationType { @@ -1403,19 +1505,20 @@ public partial class GenericResource : Azure.Provisioning.Primitives.Provisionab public GenericResource(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue ChangedOn { get { throw null; } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } - public Azure.Provisioning.BicepValue ExtendedLocation { get { throw null; } set { } } + public Azure.Provisioning.Resources.ExtendedAzureLocation ExtendedLocation { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } - public Azure.Provisioning.BicepValue Identity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue ManagedBy { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } - public Azure.Provisioning.BicepValue Plan { get { throw null; } set { } } + public Azure.Provisioning.Resources.ArmPlan Plan { get { throw null; } set { } } public Azure.Provisioning.BicepValue Properties { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue Sku { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.ResourcesSku Sku { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.GenericResource FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } } public enum JitApprovalMode @@ -1430,6 +1533,7 @@ public JitApprover() { } public Azure.Provisioning.BicepValue ApproverType { get { throw null; } set { } } public Azure.Provisioning.BicepValue DisplayName { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum JitApproverType { @@ -1443,23 +1547,25 @@ public partial class JitAuthorizationPolicies : Azure.Provisioning.Primitives.Pr public JitAuthorizationPolicies() { } public Azure.Provisioning.BicepValue PrincipalId { get { throw null; } set { } } public Azure.Provisioning.BicepValue RoleDefinitionId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class JitRequest : Azure.Provisioning.Primitives.ProvisionableResource { public JitRequest(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue ApplicationResourceId { get { throw null; } set { } } - public Azure.Provisioning.BicepValue CreatedBy { get { throw null; } } + public Azure.Provisioning.Resources.ArmApplicationDetails CreatedBy { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepList JitAuthorizationPolicies { get { throw null; } set { } } public Azure.Provisioning.BicepValue JitRequestState { get { throw null; } } - public Azure.Provisioning.BicepValue JitSchedulingPolicy { get { throw null; } set { } } + public Azure.Provisioning.Resources.JitSchedulingPolicy JitSchedulingPolicy { get { throw null; } set { } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } public Azure.Provisioning.BicepValue PublisherTenantId { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } - public Azure.Provisioning.BicepValue UpdatedBy { get { throw null; } } + public Azure.Provisioning.Resources.ArmApplicationDetails UpdatedBy { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.JitRequest FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1484,6 +1590,7 @@ public JitSchedulingPolicy() { } public Azure.Provisioning.BicepValue Duration { get { throw null; } set { } } public Azure.Provisioning.BicepValue SchedulingType { get { throw null; } } public Azure.Provisioning.BicepValue StartOn { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum JitSchedulingType { @@ -1496,11 +1603,13 @@ public partial class LinkedTemplateArtifact : Azure.Provisioning.Primitives.Prov public LinkedTemplateArtifact() { } public Azure.Provisioning.BicepValue Path { get { throw null; } set { } } public Azure.Provisioning.BicepValue Template { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedByTenant : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagedByTenant() { } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ManagedServiceIdentity : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1509,6 +1618,7 @@ public ManagedServiceIdentity() { } public Azure.Provisioning.BicepValue PrincipalId { get { throw null; } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } public Azure.Provisioning.BicepDictionary UserAssignedIdentities { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ManagedServiceIdentityType { @@ -1522,12 +1632,13 @@ public partial class ManagementGroup : Azure.Provisioning.Primitives.Provisionab { public ManagementGroup(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepList Children { get { throw null; } } - public Azure.Provisioning.BicepValue Details { get { throw null; } set { } } + public Azure.Provisioning.Resources.CreateManagementGroupDetails Details { get { throw null; } set { } } public Azure.Provisioning.BicepValue DisplayName { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.ManagementGroup FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -1550,6 +1661,7 @@ public ManagementGroupChildInfo() { } public Azure.Provisioning.BicepValue DisplayName { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ManagementGroupChildOptions : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1559,6 +1671,7 @@ public ManagementGroupChildOptions() { } public Azure.Provisioning.BicepValue DisplayName { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ManagementGroupChildType { @@ -1572,11 +1685,12 @@ public partial class ManagementGroupInfo : Azure.Provisioning.Primitives.Provisi public ManagementGroupInfo() { } public Azure.Provisioning.BicepList ManagementGroupAncestorChain { get { throw null; } } public Azure.Provisioning.BicepList ManagementGroupAncestors { get { throw null; } } - public Azure.Provisioning.BicepValue Parent { get { throw null; } } + public Azure.Provisioning.Resources.ParentManagementGroupInfo Parent { get { throw null; } } public Azure.Provisioning.BicepList Path { get { throw null; } } public Azure.Provisioning.BicepValue UpdatedBy { get { throw null; } } public Azure.Provisioning.BicepValue UpdatedOn { get { throw null; } } public Azure.Provisioning.BicepValue Version { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ManagementGroupParentCreateOptions : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1584,12 +1698,14 @@ public ManagementGroupParentCreateOptions() { } public Azure.Provisioning.BicepValue DisplayName { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ManagementGroupPathElement : Azure.Provisioning.Primitives.ProvisionableConstruct { public ManagementGroupPathElement() { } public Azure.Provisioning.BicepValue DisplayName { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ManagementGroupPolicyDefinition : Azure.Provisioning.Primitives.ProvisionableResource { @@ -1603,7 +1719,8 @@ public partial class ManagementGroupPolicyDefinition : Azure.Provisioning.Primit public Azure.Provisioning.BicepDictionary Parameters { get { throw null; } set { } } public Azure.Provisioning.BicepValue PolicyRule { get { throw null; } set { } } public Azure.Provisioning.BicepValue PolicyType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.ManagementGroupPolicyDefinition FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -1635,7 +1752,8 @@ public partial class ManagementGroupPolicySetDefinition : Azure.Provisioning.Pri public Azure.Provisioning.BicepList PolicyDefinitionGroups { get { throw null; } set { } } public Azure.Provisioning.BicepList PolicyDefinitions { get { throw null; } set { } } public Azure.Provisioning.BicepValue PolicyType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.ManagementGroupPolicySetDefinition FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -1662,8 +1780,9 @@ public partial class ManagementGroupSubscription : Azure.Provisioning.Primitives public Azure.Provisioning.Resources.ManagementGroup? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue ParentId { get { throw null; } } public Azure.Provisioning.BicepValue State { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepValue Tenant { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.ManagementGroupSubscription FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -1684,7 +1803,8 @@ public partial class ManagementLock : Azure.Provisioning.Primitives.Provisionabl public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Notes { get { throw null; } set { } } public Azure.Provisioning.BicepList Owners { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.ManagementLock FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -1707,12 +1827,14 @@ public partial class ManagementLockOwner : Azure.Provisioning.Primitives.Provisi { public ManagementLockOwner() { } public Azure.Provisioning.BicepValue ApplicationId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class NonComplianceMessage : Azure.Provisioning.Primitives.ProvisionableConstruct { public NonComplianceMessage() { } public Azure.Provisioning.BicepValue Message { get { throw null; } set { } } public Azure.Provisioning.BicepValue PolicyDefinitionReferenceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ParameterDefinitionsValueMetadata : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1722,6 +1844,7 @@ public ParameterDefinitionsValueMetadata() { } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue DisplayName { get { throw null; } set { } } public Azure.Provisioning.BicepValue StrongType { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ParentManagementGroupInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1729,6 +1852,7 @@ public ParentManagementGroupInfo() { } public Azure.Provisioning.BicepValue DisplayName { get { throw null; } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class PolicyAssignment : Azure.Provisioning.Primitives.ProvisionableResource { @@ -1739,7 +1863,7 @@ public partial class PolicyAssignment : Azure.Provisioning.Primitives.Provisiona public Azure.Provisioning.BicepList ExcludedScopes { get { throw null; } set { } } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } - public Azure.Provisioning.BicepValue ManagedIdentity { get { throw null; } set { } } + public Azure.Provisioning.Resources.ManagedServiceIdentity ManagedIdentity { get { throw null; } set { } } public Azure.Provisioning.BicepValue Metadata { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepList NonComplianceMessages { get { throw null; } set { } } @@ -1748,7 +1872,8 @@ public partial class PolicyAssignment : Azure.Provisioning.Primitives.Provisiona public Azure.Provisioning.BicepValue PolicyDefinitionId { get { throw null; } set { } } public Azure.Provisioning.BicepList ResourceSelectors { get { throw null; } set { } } public Azure.Provisioning.BicepValue Scope { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.PolicyAssignment FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -1778,6 +1903,7 @@ public PolicyDefinitionGroup() { } public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } public Azure.Provisioning.BicepValue DisplayName { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PolicyDefinitionReference : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1786,6 +1912,7 @@ public PolicyDefinitionReference() { } public Azure.Provisioning.BicepDictionary Parameters { get { throw null; } set { } } public Azure.Provisioning.BicepValue PolicyDefinitionId { get { throw null; } set { } } public Azure.Provisioning.BicepValue PolicyDefinitionReferenceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class PolicyOverride : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1793,6 +1920,7 @@ public PolicyOverride() { } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepList Selectors { get { throw null; } set { } } public Azure.Provisioning.BicepValue Value { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum PolicyOverrideKind { @@ -1819,6 +1947,7 @@ public ProviderExtendedLocation() { } public Azure.Provisioning.BicepList ExtendedLocations { get { throw null; } } public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepValue ProviderExtendedLocationType { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ProviderResourceType : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1833,6 +1962,7 @@ public ProviderResourceType() { } public Azure.Provisioning.BicepDictionary Properties { get { throw null; } } public Azure.Provisioning.BicepValue ResourceType { get { throw null; } } public Azure.Provisioning.BicepList ZoneMappings { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ResourceGroup : Azure.Provisioning.Primitives.ProvisionableResource { @@ -1842,12 +1972,11 @@ public partial class ResourceGroup : Azure.Provisioning.Primitives.Provisionable public Azure.Provisioning.BicepValue ManagedBy { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue ResourceGroupProvisioningState { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.ResourceGroup FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.Resources.ResourceGroup FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } public static partial class ResourceVersions { @@ -1904,12 +2033,14 @@ public ResourceProviderData() { } public Azure.Provisioning.BicepValue RegistrationPolicy { get { throw null; } } public Azure.Provisioning.BicepValue RegistrationState { get { throw null; } } public Azure.Provisioning.BicepList ResourceTypes { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ResourceSelector : Azure.Provisioning.Primitives.ProvisionableConstruct { public ResourceSelector() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepList Selectors { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ResourceSelectorExpression : Azure.Provisioning.Primitives.ProvisionableConstruct { @@ -1917,6 +2048,7 @@ public ResourceSelectorExpression() { } public Azure.Provisioning.BicepList In { get { throw null; } set { } } public Azure.Provisioning.BicepValue Kind { get { throw null; } set { } } public Azure.Provisioning.BicepList NotIn { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public enum ResourceSelectorKind { @@ -1953,24 +2085,27 @@ public ResourcesSku() { } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue Size { get { throw null; } set { } } public Azure.Provisioning.BicepValue Tier { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ResourceTypeAlias : Azure.Provisioning.Primitives.ProvisionableConstruct { public ResourceTypeAlias() { } public Azure.Provisioning.BicepValue AliasType { get { throw null; } } - public Azure.Provisioning.BicepValue DefaultMetadata { get { throw null; } } + public Azure.Provisioning.Resources.ResourceTypeAliasPathMetadata DefaultMetadata { get { throw null; } } public Azure.Provisioning.BicepValue DefaultPath { get { throw null; } } - public Azure.Provisioning.BicepValue DefaultPattern { get { throw null; } } + public Azure.Provisioning.Resources.ResourceTypeAliasPattern DefaultPattern { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.BicepList Paths { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class ResourceTypeAliasPath : Azure.Provisioning.Primitives.ProvisionableConstruct { public ResourceTypeAliasPath() { } public Azure.Provisioning.BicepList ApiVersions { get { throw null; } } - public Azure.Provisioning.BicepValue Metadata { get { throw null; } } + public Azure.Provisioning.Resources.ResourceTypeAliasPathMetadata Metadata { get { throw null; } } public Azure.Provisioning.BicepValue Path { get { throw null; } } - public Azure.Provisioning.BicepValue Pattern { get { throw null; } } + public Azure.Provisioning.Resources.ResourceTypeAliasPattern Pattern { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ResourceTypeAliasPathAttributes { @@ -1982,6 +2117,7 @@ public partial class ResourceTypeAliasPathMetadata : Azure.Provisioning.Primitiv public ResourceTypeAliasPathMetadata() { } public Azure.Provisioning.BicepValue Attributes { get { throw null; } } public Azure.Provisioning.BicepValue TokenType { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ResourceTypeAliasPathTokenType { @@ -2000,6 +2136,7 @@ public ResourceTypeAliasPattern() { } public Azure.Provisioning.BicepValue PatternType { get { throw null; } } public Azure.Provisioning.BicepValue Phrase { get { throw null; } } public Azure.Provisioning.BicepValue Variable { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum ResourceTypeAliasPatternType { @@ -2022,6 +2159,7 @@ public partial class SubResource : Azure.Provisioning.Primitives.ProvisionableCo { public SubResource() { } public Azure.Provisioning.BicepValue Id { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class Subscription : Azure.Provisioning.Primitives.ProvisionableResource { @@ -2032,11 +2170,10 @@ public partial class Subscription : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepList ManagedByTenants { get { throw null; } } public Azure.Provisioning.BicepValue State { get { throw null; } } public Azure.Provisioning.BicepValue SubscriptionId { get { throw null; } } - public Azure.Provisioning.BicepValue SubscriptionPolicies { get { throw null; } } + public Azure.Provisioning.Resources.SubscriptionPolicies SubscriptionPolicies { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.Resources.Subscription FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } public static partial class ResourceVersions { public static readonly string V2015_01_01; @@ -2070,6 +2207,7 @@ public SubscriptionPolicies() { } public Azure.Provisioning.BicepValue LocationPlacementId { get { throw null; } } public Azure.Provisioning.BicepValue QuotaId { get { throw null; } } public Azure.Provisioning.BicepValue SpendingLimit { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class SubscriptionPolicyDefinition : Azure.Provisioning.Primitives.ProvisionableResource { @@ -2083,7 +2221,8 @@ public partial class SubscriptionPolicyDefinition : Azure.Provisioning.Primitive public Azure.Provisioning.BicepDictionary Parameters { get { throw null; } set { } } public Azure.Provisioning.BicepValue PolicyRule { get { throw null; } set { } } public Azure.Provisioning.BicepValue PolicyType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.SubscriptionPolicyDefinition FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -2100,7 +2239,8 @@ public partial class SubscriptionPolicySetDefinition : Azure.Provisioning.Primit public Azure.Provisioning.BicepList PolicyDefinitionGroups { get { throw null; } set { } } public Azure.Provisioning.BicepList PolicyDefinitions { get { throw null; } set { } } public Azure.Provisioning.BicepValue PolicyType { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.SubscriptionPolicySetDefinition FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -2119,6 +2259,7 @@ public SystemAssignedServiceIdentity() { } public Azure.Provisioning.BicepValue PrincipalId { get { throw null; } } public Azure.Provisioning.BicepValue SystemAssignedServiceIdentityType { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum SystemAssignedServiceIdentityType { @@ -2134,14 +2275,16 @@ public SystemData() { } public Azure.Provisioning.BicepValue LastModifiedBy { get { throw null; } } public Azure.Provisioning.BicepValue LastModifiedByType { get { throw null; } } public Azure.Provisioning.BicepValue LastModifiedOn { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class TagResource : Azure.Provisioning.Primitives.ProvisionableResource { public TagResource(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } public Azure.Provisioning.BicepValue Id { get { throw null; } } public Azure.Provisioning.BicepValue Name { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary TagValues { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.TagResource FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -2165,9 +2308,10 @@ public partial class TemplateSpec : Azure.Provisioning.Primitives.ProvisionableR public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Metadata { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepDictionary Versions { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.TemplateSpec FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } @@ -2188,9 +2332,10 @@ public partial class TemplateSpecVersion : Azure.Provisioning.Primitives.Provisi public Azure.Provisioning.BicepValue Metadata { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } } public Azure.Provisioning.Resources.TemplateSpec? Parent { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue UiFormDefinition { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Resources.TemplateSpecVersion FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2204,6 +2349,7 @@ public TemplateSpecVersionInfo() { } public Azure.Provisioning.BicepValue Description { get { throw null; } } public Azure.Provisioning.BicepValue TimeCreated { get { throw null; } } public Azure.Provisioning.BicepValue TimeModified { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public partial class Tenant : Azure.Provisioning.Primitives.ProvisionableResource { @@ -2218,8 +2364,7 @@ public partial class Tenant : Azure.Provisioning.Primitives.ProvisionableResourc public Azure.Provisioning.BicepValue TenantCategory { get { throw null; } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } public Azure.Provisioning.BicepValue TenantType { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Provisioning.Resources.Tenant FromExpression(Azure.Provisioning.Expressions.BicepExpression expression) { throw null; } + protected override void DefineProvisionableProperties() { } public static partial class ResourceVersions { public static readonly string V2015_01_01; @@ -2258,6 +2403,7 @@ public partial class UserAssignedIdentityDetails : Azure.Provisioning.Primitives public UserAssignedIdentityDetails() { } public Azure.Provisioning.BicepValue ClientId { get { throw null; } } public Azure.Provisioning.BicepValue PrincipalId { get { throw null; } } + protected override void DefineProvisionableProperties() { } } public enum WhatIfResultFormat { @@ -2268,12 +2414,14 @@ public partial class WritableSubResource : Azure.Provisioning.Primitives.Provisi { public WritableSubResource() { } public Azure.Provisioning.BicepValue Id { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } } public partial class ZoneMapping : Azure.Provisioning.Primitives.ProvisionableConstruct { public ZoneMapping() { } public Azure.Provisioning.BicepValue Location { get { throw null; } } public Azure.Provisioning.BicepList Zones { get { throw null; } } + protected override void DefineProvisionableProperties() { } } } namespace Azure.Provisioning.Roles @@ -2287,7 +2435,8 @@ public partial class FederatedIdentityCredential : Azure.Provisioning.Primitives public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.Roles.UserAssignedIdentity? Parent { get { throw null; } set { } } public Azure.Provisioning.BicepValue Subject { get { throw null; } set { } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Roles.FederatedIdentityCredential FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } public static partial class ResourceVersions { @@ -2304,9 +2453,10 @@ public partial class UserAssignedIdentity : Azure.Provisioning.Primitives.Provis public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } public Azure.Provisioning.BicepValue PrincipalId { get { throw null; } } - public Azure.Provisioning.BicepValue SystemData { get { throw null; } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } public Azure.Provisioning.BicepValue TenantId { get { throw null; } } + protected override void DefineProvisionableProperties() { } public static Azure.Provisioning.Roles.UserAssignedIdentity FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; } diff --git a/sdk/provisioning/Azure.Provisioning/src/BicepDictionaryOfT.cs b/sdk/provisioning/Azure.Provisioning/src/BicepDictionaryOfT.cs index e575ef8157ed1..6c481695478b2 100644 --- a/sdk/provisioning/Azure.Provisioning/src/BicepDictionaryOfT.cs +++ b/sdk/provisioning/Azure.Provisioning/src/BicepDictionaryOfT.cs @@ -10,22 +10,21 @@ namespace Azure.Provisioning; -// TODO: Dictionaries are less commonly used in Azure APIs so I haven't -// implemented all the more experimental parts of BicepList here yet while we -// iterate on the design. - /// /// Represents a dictionary with string keys and bicep values. /// /// The type of element represented by the values. -public class BicepDictionary : BicepValue, IDictionary>, IDictionary +public class BicepDictionary : + BicepValue, IDictionary>, + IDictionary, + IReadOnlyDictionary> { // Literal values private IDictionary> _values; - internal override object? GetLiteralValue() => _values; + private protected override object? GetLiteralValue() => _values; // We're empty if unset or no literal values - internal override bool IsEmpty => base.IsEmpty || (Kind == BicepValueKind.Literal && _values.Count == 0); + public override bool IsEmpty => base.IsEmpty || (_kind == BicepValueKind.Literal && _values.Count == 0); /// /// Creates a new BicepDictionary. @@ -41,26 +40,23 @@ private protected BicepDictionary(BicepValueReference? self, BicepExpression exp : base(self, expression) => _values = new Dictionary>(); - private BicepDictionary(BicepValueReference? self, IDictionary>? values = null) + internal BicepDictionary(BicepValueReference? self, IDictionary>? values = null) : base(self) { - Kind = BicepValueKind.Literal; - _values = values != null ? new Dictionary>(values) : []; + _kind = BicepValueKind.Literal; // Shallow clone their values + _values = values != null ? new Dictionary>(values) : []; } // Move literal elements when assigning values to a dictionary [EditorBrowsable(EditorBrowsableState.Never)] public void Assign(BicepDictionary source) => Assign((BicepValue)source); - internal override void Assign(BicepValue source) + internal override void Assign(IBicepValue source) { if (source is BicepDictionary typed) { - // TODO: Decide if we'd rather shallow copy or steal their reference. _values = typed._values; } - - // Everything else is handled by the base Assign base.Assign(source); } @@ -69,12 +65,7 @@ internal override void Assign(BicepValue source) /// /// The variable or parameter. public static implicit operator BicepDictionary(ProvisioningVariable reference) => - new(new BicepValueReference(reference, ""), BicepSyntax.Var(reference.BicepIdentifier)) { IsSecure = reference is ProvisioningParameter p && p.IsSecure }; - - // TODO: Make it possible to correctly reference these values (especially - // across module boundaries)? Currently we only allow pulling values into - // collections. - private BicepValue WrapValue(string key, BicepValue value) => value; + new(new BicepValueReference(reference, "{}"), BicepSyntax.Var(reference.BicepIdentifier)) { _isSecure = reference is ProvisioningParameter p && p.IsSecure }; /// /// Gets or sets a value in a BicepDictionary. @@ -83,14 +74,12 @@ public static implicit operator BicepDictionary(ProvisioningVariable referenc /// The value. public BicepValue this[string key] { - // TODO: Decide if we want to support expression overrides (though - // we'd also neeed a FromExpression + factory) get => _values[key]; - set => _values[key] = WrapValue(key, value); + set => _values[key] = value; } - public void Add(string key, BicepValue value) => _values.Add(key, WrapValue(key, value)); - public void Add(KeyValuePair> item) => _values.Add(item.Key, WrapValue(item.Key, item.Value)); + public void Add(string key, BicepValue value) => _values.Add(key, value); + public void Add(KeyValuePair> item) => _values.Add(item.Key, item.Value); // TODO: Decide whether it's important to "unlink" resources on removal public bool Remove(string key) => _values.Remove(key); @@ -108,15 +97,17 @@ public BicepValue this[string key] public bool Remove(KeyValuePair> item) => Remove(item.Key); public IEnumerator>> GetEnumerator() => _values.GetEnumerator(); IEnumerator IEnumerable.GetEnumerator() => _values.GetEnumerator(); + IEnumerable IReadOnlyDictionary>.Keys => _values.Keys; + ICollection IDictionary.Values => _values.Values.OfType().ToList(); + IEnumerable> IReadOnlyDictionary>.Values => _values.Values; - ICollection IDictionary.Values => _values.Values.OfType().ToList(); - BicepValue IDictionary.this[string key] + IBicepValue IDictionary.this[string key] { get => this[key]; set => this[key] = (BicepValue)value; } - void IDictionary.Add(string key, BicepValue value) => Add(key, (BicepValue)value); - bool IDictionary.TryGetValue(string key, out BicepValue value) + void IDictionary.Add(string key, IBicepValue value) => Add(key, (BicepValue)value); + bool IDictionary.TryGetValue(string key, out IBicepValue value) { if (TryGetValue(key, out BicepValue val)) { @@ -126,29 +117,11 @@ bool IDictionary.TryGetValue(string key, out BicepValue valu value = new BicepValue(BicepSyntax.Null()); return false; } - void ICollection>.Add(KeyValuePair item) => Add(item.Key, (BicepValue)item.Value); - bool ICollection>.Contains(KeyValuePair item) => ContainsKey(item.Key); - void ICollection>.CopyTo(KeyValuePair[] array, int arrayIndex) => - _values.Select(p => new KeyValuePair(p.Key, p.Value)).ToList().CopyTo(array, arrayIndex); - bool ICollection>.Remove(KeyValuePair item) => Remove(item.Key); - IEnumerator> IEnumerable>.GetEnumerator() => - _values.Select(p => new KeyValuePair(p.Key, p.Value)).GetEnumerator(); - - [EditorBrowsable(EditorBrowsableState.Never)] - public static BicepDictionary DefineProperty( - ProvisionableConstruct construct, - string propertyName, - string[]? bicepPath, - bool isOutput = false, - bool isRequired = false) - { - BicepDictionary values = - new(new BicepValueReference(construct, propertyName, bicepPath)) - { - IsOutput = isOutput, - IsRequired = isRequired - }; - construct.ProvisioningProperties[propertyName] = values; - return values; - } + void ICollection>.Add(KeyValuePair item) => Add(item.Key, (BicepValue)item.Value); + bool ICollection>.Contains(KeyValuePair item) => ContainsKey(item.Key); + void ICollection>.CopyTo(KeyValuePair[] array, int arrayIndex) => + _values.Select(p => new KeyValuePair(p.Key, p.Value)).ToList().CopyTo(array, arrayIndex); + bool ICollection>.Remove(KeyValuePair item) => Remove(item.Key); + IEnumerator> IEnumerable>.GetEnumerator() => + _values.Select(p => new KeyValuePair(p.Key, p.Value)).GetEnumerator(); } diff --git a/sdk/provisioning/Azure.Provisioning/src/BicepListOfT.cs b/sdk/provisioning/Azure.Provisioning/src/BicepListOfT.cs index a689b2b76623c..0a177a3792765 100644 --- a/sdk/provisioning/Azure.Provisioning/src/BicepListOfT.cs +++ b/sdk/provisioning/Azure.Provisioning/src/BicepListOfT.cs @@ -14,15 +14,18 @@ namespace Azure.Provisioning; /// Represents a list of Bicep values. /// /// The type of element represented by the values. -public class BicepList : BicepValue, IList> +public class BicepList : + BicepValue, + IList>, + IReadOnlyList> { // Literal values private IList> _values; - internal override object? GetLiteralValue() => _values; + private protected override object? GetLiteralValue() => _values; // We're empty if unset or no literal values - internal override bool IsEmpty => - base.IsEmpty || (Kind == BicepValueKind.Literal && _values.Count == 0); + public override bool IsEmpty => + base.IsEmpty || (_kind == BicepValueKind.Literal && _values.Count == 0); /// /// Creates a new BicepList. @@ -36,22 +39,21 @@ public BicepList(IList>? values) : this(self: null, values) { } private BicepList(BicepExpression expression) : base(self: null, expression) { _values = []; } private protected BicepList(BicepValueReference? self, BicepExpression expression) : base(self, expression) { _values = []; } - private BicepList(BicepValueReference? self, IList>? values = null) + internal BicepList(BicepValueReference? self, IList>? values = null) : base(self) { - Kind = BicepValueKind.Literal; - _values = values != null ? [.. values] : []; + _kind = BicepValueKind.Literal; // Shallow clone their list + _values = values != null ? [.. values] : []; } // Move literal elements when assigning values to a list [EditorBrowsable(EditorBrowsableState.Never)] public void Assign(BicepList source) => Assign((BicepValue)source); - internal override void Assign(BicepValue source) + internal override void Assign(IBicepValue source) { if (source is BicepList typed) { - // TODO: Decide if we'd rather shallow copy or steal their reference. _values = typed._values; } @@ -65,17 +67,12 @@ internal override void Assign(BicepValue source) /// The variable or parameter. public static implicit operator BicepList(ProvisioningVariable reference) => new( - new BicepValueReference(reference, ""), + new BicepValueReference(reference, "[]"), BicepSyntax.Var(reference.BicepIdentifier)) { - IsSecure = reference is ProvisioningParameter p && p.IsSecure + _isSecure = reference is ProvisioningParameter p && p.IsSecure }; - // TODO: Make it possible to correctly reference these values - // (especially across module boundaries)? Currently we only allow - // pulling values into collections. - private BicepValue WrapValue(BicepValue value) => value; - /// /// Gets or sets a value at a given index. /// @@ -85,12 +82,12 @@ public BicepValue this[int index] { get { - if (Kind == BicepValueKind.Expression) + if (_kind == BicepValueKind.Expression) { // If we're being overridden by an expression, then turn any // reads into expressions as well, but of type T so people // can reference their members. - return _referenceFactory!(BicepSyntax.Index(Expression!, BicepSyntax.Value(index))); + return _referenceFactory!(BicepSyntax.Index(_expression!, BicepSyntax.Value(index))); } else { @@ -99,16 +96,16 @@ public BicepValue this[int index] } set { - if (Kind == BicepValueKind.Expression || IsOutput) + if (_kind == BicepValueKind.Expression || _isOutput) { - throw new InvalidOperationException($"Cannot assign to {Self?.PropertyName}"); + throw new InvalidOperationException($"Cannot assign to {_self?.PropertyName}"); } - _values[index] = WrapValue(value); + _values[index] = value; } } - public void Insert(int index, BicepValue item) => _values.Insert(index, WrapValue(item)); - public void Add(BicepValue item) => _values.Add(WrapValue(item)); + public void Insert(int index, BicepValue item) => _values.Insert(index, item); + public void Add(BicepValue item) => _values.Add(item); // TODO: Decide whether it's important to "unlink" resources on removal public void RemoveAt(int index) => _values.RemoveAt(index); @@ -138,22 +135,4 @@ public BicepValue this[int index] public static BicepList FromExpression(Func referenceFactory, BicepExpression expression) => new(expression) { _referenceFactory = referenceFactory }; private Func? _referenceFactory = null; - - [EditorBrowsable(EditorBrowsableState.Never)] - public static BicepList DefineProperty( - ProvisionableConstruct construct, - string propertyName, - string[]? bicepPath, - bool isOutput = false, - bool isRequired = false) - { - BicepList values = - new(new BicepValueReference(construct, propertyName, bicepPath)) - { - IsOutput = isOutput, - IsRequired = isRequired - }; - construct.ProvisioningProperties[propertyName] = values; - return values; - } } diff --git a/sdk/provisioning/Azure.Provisioning/src/BicepValue.cs b/sdk/provisioning/Azure.Provisioning/src/BicepValue.cs index ab44a5d1d377a..3f449b44fd26c 100644 --- a/sdk/provisioning/Azure.Provisioning/src/BicepValue.cs +++ b/sdk/provisioning/Azure.Provisioning/src/BicepValue.cs @@ -2,110 +2,131 @@ // Licensed under the MIT License. using System; +using System.ComponentModel; using Azure.Provisioning.Expressions; using Azure.Provisioning.Primitives; namespace Azure.Provisioning; -// TODO: Currently everything's wrapped in BicepValue, but we're going to pull -// models and enums out (kind of like we do with ResourceReference already) so -// we get a better intellisense experience. That'll also remove a lot of the -// clutter in this class hierarchy. - /// /// Represents the value of a property that could be a literal .NET value, a /// Bicep expression, or it could be unset. /// -public abstract class BicepValue +public abstract class BicepValue : IBicepValue { - /// - /// Gets the kind of this value (a literal value, an expression, or it's - /// unset). - /// - public BicepValueKind Kind { get; set; } = BicepValueKind.Unset; + /// + BicepValueKind IBicepValue.Kind => _kind; + private protected BicepValueKind _kind = BicepValueKind.Unset; - public BicepExpression? Expression { get; set; } = null; - // TODO: Lock down setter? At a minimum we should force Kind to stay in - // sync, but I'm hoping to change both at once. + /// + BicepExpression? IBicepValue.Expression + { + get => _kind == BicepValueKind.Expression ? _expression : null; + set + { + _kind = BicepValueKind.Expression; + _expression = value; + } + } + private protected BicepExpression? _expression; - // Get the value when Kind == Literal - internal abstract object? GetLiteralValue(); + /// + object? IBicepValue.LiteralValue => GetLiteralValue(); + private protected abstract object? GetLiteralValue(); - // Tracks who defined this property - internal BicepValueReference? Self { get; } + /// + BicepValueReference? IBicepValue.Self { get => _self; set => _self = value; } + private protected BicepValueReference? _self; - // Tracks who set this property - internal BicepValueReference? Source { get; private set; } + /// + BicepValueReference? IBicepValue.Source => _source; + private protected BicepValueReference? _source; - // Tracks whether this is an output only property. - internal bool IsOutput { get; set; } = false; + /// + bool IBicepValue.IsOutput => _isOutput; + internal bool _isOutput; - // Tracks whether this property is required. - internal bool IsRequired { get; set; } = false; + /// + bool IBicepValue.IsRequired => _isRequired; + internal bool _isRequired; - // Tracks whether we currently wrap a secure value. Bicep doesn't really - // make use of this directly, but it will be important for module splitting - // and test sanitization. - internal bool IsSecure { get; set; } = false; + /// + bool IBicepValue.IsSecure => _isSecure; + internal bool _isSecure; // Optional format defining how values should be serialized internal string? Format { get; set; } = null; // Indicate whether this value is empty or should be included in output - internal virtual bool IsEmpty => Kind == BicepValueKind.Unset; + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual bool IsEmpty => _kind == BicepValueKind.Unset; // Naive Bicep type of the value. We don't support complex object types so // this is mostly to help map primitives. private protected virtual BicepExpression GetBicepType() => BicepSyntax.Types.Object; // TODO: Clean these up when pulling richer objects out of BicepValue - private protected BicepValue(BicepValueReference? self) => Self = self; + private protected BicepValue(BicepValueReference? self) + { + _kind = BicepValueKind.Unset; + _self = self; + } private protected BicepValue(BicepValueReference? self, /* unused but forces literal */ object literal) - : this(self) { Kind = BicepValueKind.Literal; } + : this(self) + { + _kind = BicepValueKind.Literal; + } private protected BicepValue(BicepValueReference? self, BicepExpression expression) - : this(self) { Kind = BicepValueKind.Expression; Expression = expression; } + : this(self) + { + _kind = BicepValueKind.Expression; + _expression = expression; + } + + /// + void IBicepValue.SetReadOnly() => _isOutput = true; + + /// + public override string ToString() => Compile().ToString(); + + /// + public BicepExpression Compile() => BicepTypeMapping.ToBicep(this, Format); + + /// + void IBicepValue.Assign(IBicepValue source) => Assign(source); // Assign a value to this property. - internal virtual void Assign(BicepValue source) + internal virtual void Assign(IBicepValue source) { // TODO: Do we want to add a more explicit notion of readonly // (especially for expr ref resources)? - if (IsOutput) { throw new InvalidOperationException($"Cannot assign to output value {Self?.PropertyName}"); } + if (_isOutput) { throw new InvalidOperationException($"Cannot assign to output value {_self?.PropertyName}"); } // Track the source so we can correctly link references across modules - Source = source?.Self; + _source = source?.Self; // Copy over the common values (but rely on derived classes for other values) - Kind = source?.Kind ?? BicepValueKind.Unset; - Expression = source?.Expression; - IsSecure = source?.IsSecure ?? false; + _kind = source?.Kind ?? BicepValueKind.Unset; + _expression = source?.Expression; + _isSecure = source?.IsSecure ?? false; // If we're being assigned an Unset value that references a specific // resource, we'll consider this an expression referencing that property // (i.e., this is like referencing the unset Id property of a resource // you created moments ago). - if (Kind == BicepValueKind.Unset && Source is not null) + if (_kind == BicepValueKind.Unset && _source is not null) { - Kind = BicepValueKind.Expression; - Expression = Source.GetReference(); + _kind = BicepValueKind.Expression; + _expression = _source.GetReference(); } } - /// - public override string ToString() => - Kind switch - { - BicepValueKind.Unset => $"<{nameof(BicepValue)}: Unset>", - BicepValueKind.Literal => $"<{nameof(BicepValue)}: {GetLiteralValue()}>", - _ => $"<{nameof(BicepValue)}: {Compile()}>", - }; - - public BicepExpression Compile() => BicepTypeMapping.ToBicep(this, Format); + /// + /// Gets a bicep expression corresponding to this instance. + /// + /// + public static explicit operator BicepExpression?(BicepValue value) => + value._kind == BicepValueKind.Expression ? + value._expression : + value._self?.GetReference(); } - -/// -/// Gets the kind of a . -/// -public enum BicepValueKind { Unset, Literal, Expression } - -// TODO: Replace this with helper properties like HasLiteral diff --git a/sdk/provisioning/Azure.Provisioning/src/BicepValueExtensions.cs b/sdk/provisioning/Azure.Provisioning/src/BicepValueExtensions.cs new file mode 100644 index 0000000000000..8b9d943091f86 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning/src/BicepValueExtensions.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using Azure.Provisioning.Primitives; + +namespace Azure.Provisioning; + +/// +/// Extension methods for manipulating bicep values. +/// +public static class BicepValueExtensions +{ + /// + /// Unwrap the BicepValue from a model. + /// + /// Type of the model. + /// The value to unwrap. + /// An easily consumed model. + public static T Unwrap(this BicepValue value) + where T : ProvisionableConstruct, new() + { + switch (((IBicepValue)value).Kind) + { + case BicepValueKind.Literal: + return value.Value!; + case BicepValueKind.Expression: + T wrapper = new(); + ((IBicepValue)wrapper).Expression = ((IBicepValue)value).Expression!; + return wrapper; + default: + return new T(); // (i.e., model where everything is Unset) + } + } + + // TODO: Add more common casts +} diff --git a/sdk/provisioning/Azure.Provisioning/src/BicepValueKind.cs b/sdk/provisioning/Azure.Provisioning/src/BicepValueKind.cs new file mode 100644 index 0000000000000..e3243dff8a5d0 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning/src/BicepValueKind.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Provisioning; + +/// +/// Gets the kind of a . +/// +public enum BicepValueKind +{ + /// + /// The value has not been set. + /// + Unset, + + /// + /// The value has been set to a literal .NET object. + /// + Literal, + + /// + /// The value has been set to a Bicep expression. + /// + Expression +} diff --git a/sdk/provisioning/Azure.Provisioning/src/BicepValueOfT.cs b/sdk/provisioning/Azure.Provisioning/src/BicepValueOfT.cs index 14505a6418896..c5ade94947314 100644 --- a/sdk/provisioning/Azure.Provisioning/src/BicepValueOfT.cs +++ b/sdk/provisioning/Azure.Provisioning/src/BicepValueOfT.cs @@ -21,32 +21,8 @@ public class BicepValue : BicepValue /// Gets or sets the literal value. You can also rely on implicit /// conversions most of the time. /// - public T? Value - { - get - { - // If someone is referencing an output of a named resource, rather - // than just return null, we'll return a reference expression - if (IsOutput && - Kind == BicepValueKind.Unset && - typeof(ProvisionableConstruct).IsAssignableFrom(typeof(T)) && - Self?.Construct is NamedProvisionableConstruct) - { - // TODO: This is obviously a hack but we need to decide if we'd - // rather have a separate type for outputs (kind of like we - // do with ResourceReference) or whether we want to merge - // this concept into BicepValue. - T val = Activator.CreateInstance(); - (val as ProvisionableConstruct)!.OverrideWithExpression(Self.GetReference()); - return val; - } - - return _value; - } - private protected set => _value = value; - } - private T? _value; - internal override object? GetLiteralValue() => Value; + public T? Value { get; private protected set; } + private protected override object? GetLiteralValue() => Value; // Get the closest primitive to T private protected override BicepExpression GetBicepType() => @@ -64,14 +40,25 @@ public BicepValue(T literal) : this(self: null, literal) { } /// An expression that evaluates to the value. public BicepValue(BicepExpression expression) : this(self: null, expression) { } - private protected BicepValue(BicepValueReference? self) : base(self) { } + internal BicepValue(BicepValueReference? self) : base(self) { } private protected BicepValue(BicepValueReference? self, T literal) : base(self, (object)literal!) { Value = literal; } private protected BicepValue(BicepValueReference? self, BicepExpression expression) : base(self, expression) { } + /// + /// Clears a previously assigned literal or expression value. + /// + public void ClearValue() + { + _kind = BicepValueKind.Unset; + Value = default; + _expression = null; + _source = null; + } + // Move strongly typed literal values when assigning [EditorBrowsable(EditorBrowsableState.Never)] public void Assign(BicepValue source) => Assign((BicepValue)source); - internal override void Assign(BicepValue source) + internal override void Assign(IBicepValue source) { if (source is BicepValue typed) { @@ -85,15 +72,15 @@ internal override void Assign(BicepValue source) // Convert literals, raw expressions, and vars/params/outputs public static implicit operator BicepValue(T value) { - if (value is BicepValue e) + if (value is IBicepValue e) { if (e.Kind == BicepValueKind.Expression) { - return new BicepValue(e.Self, e.Expression!) { IsSecure = e.IsSecure }; + return new BicepValue(e.Self, e.Expression!) { _isSecure = e.IsSecure }; } else if (e.Kind == BicepValueKind.Unset && e.Self is not null) { - return new BicepValue(e.Self, e.Self.GetReference()) { IsSecure = e.IsSecure }; + return new BicepValue(e.Self, e.Self.GetReference()) { _isSecure = e.IsSecure }; } } @@ -106,48 +93,24 @@ public static implicit operator BicepValue(T value) // We'll create a new BicepValue but copy the Self reference so the // relationship is tracked. This is likely to come up when we're assigning // something like BicepValue to a property of type BicepValue. - BicepValue bicep = (value as BicepValue)!; // Cast will always succeed so ! - return new BicepValue(bicep.Self, (T)bicep.GetLiteralValue()!) { IsSecure = bicep.IsSecure }; + IBicepValue bicep = (value as IBicepValue)!; // Cast will always succeed so ! + return new BicepValue(bicep.Self, (T)bicep.LiteralValue!) { _isSecure = bicep.IsSecure }; } // Otherwise just wrap the literal return new(value); } - public static implicit operator BicepValue(BicepExpression expression) => new(expression); + public static implicit operator BicepValue(BicepExpression? expression) => new(expression ?? BicepSyntax.Null()); public static implicit operator BicepValue(ProvisioningVariable reference) => - new(new BicepValueReference(reference, ""), BicepSyntax.Var(reference.BicepIdentifier)) { IsSecure = reference is ProvisioningParameter p && p.IsSecure }; + new(new BicepValueReference(reference, ""), BicepSyntax.Var(reference.BicepIdentifier)) { _isSecure = reference is ProvisioningParameter p && p.IsSecure }; // Special case conversions to string for things like Uri, AzureLocation, etc. public static implicit operator BicepValue(BicepValue value) => - value.Kind switch + value._kind switch { - BicepValueKind.Unset => new(value.Self), - BicepValueKind.Expression => new(value.Self, value.Expression!), - BicepValueKind.Literal => new(value.Self, BicepTypeMapping.ToLiteralString(value.Value!, value.Format)), + BicepValueKind.Unset => new(value._self), + BicepValueKind.Expression => new(value._self, value._expression!), + BicepValueKind.Literal => new(value._self, BicepTypeMapping.ToLiteralString(value.Value!, value.Format)), _ => throw new InvalidOperationException($"Unknown {nameof(BicepValueKind)}!") }; - - [EditorBrowsable(EditorBrowsableState.Never)] - public static BicepValue DefineProperty( - ProvisionableConstruct construct, - string propertyName, - string[]? bicepPath, - bool isOutput = false, - bool isRequired = false, - bool isSecure = false, - BicepValue? defaultValue = null, - string? format = null) - { - BicepValue val = - new(new BicepValueReference(construct, propertyName, bicepPath)) - { - IsOutput = isOutput, - IsRequired = isRequired, - IsSecure = isSecure, - Format = format - }; - if (defaultValue is not null) { val.Assign(defaultValue); } - construct.ProvisioningProperties[propertyName] = val; - return val; - } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepFunction.cs b/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepFunction.cs index 76330c56e01ef..4f2f606a5f753 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepFunction.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepFunction.cs @@ -163,8 +163,12 @@ public static BicepValue GetSubscriptionResourceId(params Bi /// /// Bicep Functions Reference for more. /// - public static ArmDeployment GetDeployment() => - ArmDeployment.FromExpression(BicepSyntax.Call("deployment")); + public static ArmDeployment GetDeployment() + { + ArmDeployment deployment = new("deployment"); + ((IBicepValue)deployment).Expression = BicepSyntax.Call("deployment"); + return deployment; + } /// /// Returns details about the subscription for the current deployment. This @@ -178,8 +182,12 @@ public static ArmDeployment GetDeployment() => /// /// Bicep Functions Reference for more. /// - public static Subscription GetSubscription() => - Subscription.FromExpression(BicepSyntax.Call("subscription")); + public static Subscription GetSubscription() + { + Subscription subscription = new("subscription"); + ((IBicepValue)subscription).Expression = BicepSyntax.Call("subscription"); + return subscription; + } /// /// Returns the tenant of the user. This represents the tenant @@ -191,8 +199,12 @@ public static Subscription GetSubscription() => /// /// Bicep Functions Reference for more. /// - public static Tenant GetTenant() => - Tenant.FromExpression(BicepSyntax.Call("tenant")); + public static Tenant GetTenant() + { + Tenant tenant = new("tenant"); + ((IBicepValue)tenant).Expression = BicepSyntax.Call("tenant"); + return tenant; + } /// /// Returns an object that represents the current resource group. This @@ -204,8 +216,12 @@ public static Tenant GetTenant() => /// /// Bicep Functions Reference for more. /// - public static ResourceGroup GetResourceGroup() => - ResourceGroup.FromExpression(BicepSyntax.Call("resourceGroup")); + public static ResourceGroup GetResourceGroup() + { + ResourceGroup rg = new("resourceGroup"); + ((IBicepValue)rg).Expression = BicepSyntax.Call("resourceGroup"); + return rg; + } /// /// Converts a valid JSON string into a JSON data type. This represents diff --git a/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepStringBuilder.cs b/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepStringBuilder.cs index 6e0f194ae6fe8..4ab965246473b 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepStringBuilder.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepStringBuilder.cs @@ -57,8 +57,12 @@ public BicepStringBuilder Append(BicepInterpolatedStringHandler handler) /// Combine all the subexpressions into a single interpolated string. /// /// The composed value. - public BicepValue Build() => - new(new InterpolatedStringExpression([.. _expressions])) { IsSecure = _isSecure }; + public BicepValue Build() + { + BicepValue value = new(new InterpolatedStringExpression([.. _expressions])); + value._isSecure = _isSecure; + return value; + } /// /// Implicitly convert a builder to a so @@ -90,15 +94,15 @@ public void AppendLiteral(string text) => public void AppendFormatted(T t) { - if (t is BicepValue b) + if (t is ProvisioningVariable v) { - _expressions.Add(b.Compile()); - _isSecure = _isSecure || b.IsSecure; + _expressions.Add(BicepSyntax.Var(v.BicepIdentifier)); + _isSecure = _isSecure || ((IBicepValue)v.Value).IsSecure; } - else if (t is ProvisioningVariable v) + else if (t is IBicepValue b) { - _expressions.Add(BicepSyntax.Var(v.BicepIdentifier)); - _isSecure = _isSecure || v.Value.IsSecure; + _expressions.Add(b.Compile()); + _isSecure = _isSecure || b.IsSecure; } else { @@ -110,6 +114,10 @@ public void AppendFormatted(T t) } } - internal readonly BicepValue Build() => - new(new InterpolatedStringExpression([.. _expressions])) { IsSecure = _isSecure }; + internal readonly BicepValue Build() + { + BicepValue value = new(new InterpolatedStringExpression([.. _expressions])); + value._isSecure = _isSecure; + return value; + } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepTypeMapping.cs b/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepTypeMapping.cs index 711c3167778aa..be575708782ee 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepTypeMapping.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepTypeMapping.cs @@ -106,30 +106,35 @@ public static BicepExpression ToBicep(object? value, string? format) ResourceIdentifier i => BicepSyntax.Value(ToLiteralString(i, format)), Enum e => BicepSyntax.Value(ToLiteralString(e, format)), ProvisionableConstruct c => CompileNestedConstruct(c), - IDictionary d => - d is BicepValue b && b.Kind == BicepValueKind.Expression ? b.Expression! : ToObject(d), + IDictionary d => + d is IBicepValue b && b.Kind == BicepValueKind.Expression ? b.Expression! : ToObject(d), IEnumerable seq => - seq is BicepValue b && b.Kind == BicepValueKind.Expression ? b.Expression! : ToArray(seq.OfType()), + seq is IBicepValue b && b.Kind == BicepValueKind.Expression ? b.Expression! : ToArray(seq.OfType()), // Extensible enums like Azure.Location ValueType ee => BicepSyntax.Value(ToLiteralString(ee, format)), // Unwrap BicepValue after collections so it doesn't loop forever - BicepValue v when (v.Kind == BicepValueKind.Expression) => v.Expression!, - BicepValue v when (v.Source is not null) => v.Source.GetReference(), - BicepValue v when (v.Kind == BicepValueKind.Literal) => ToBicep(v.GetLiteralValue(), format), - BicepValue v when (v.Self is not null) => v.Self.GetReference(), - BicepValue v when (v.Kind == BicepValueKind.Unset) => BicepSyntax.Null(), + IBicepValue v when (v.Kind == BicepValueKind.Expression) => v.Expression!, + IBicepValue v when (v.Source is not null) => v.Source.GetReference(), + IBicepValue v when (v.Kind == BicepValueKind.Literal) => ToBicep(v.LiteralValue, format), + IBicepValue v when (v.Self is not null) => v.Self.GetReference(), + IBicepValue v when (v.Kind == BicepValueKind.Unset) => BicepSyntax.Null(), _ => throw new InvalidOperationException($"Cannot convert {value} to a Bicep expression.") }; ArrayExpression ToArray(IEnumerable seq) => BicepSyntax.Array([.. seq.Select(v => ToBicep(v, v is BicepValue b ? b.Format : null))]); - ObjectExpression ToObject(IDictionary dict) + ObjectExpression ToObject(IDictionary dict) { Dictionary values = []; - foreach (KeyValuePair pair in dict) + foreach (KeyValuePair pair in dict) { - values[pair.Key] = ToBicep(pair.Value, pair.Value.Format); + string? format = null; + if (pair.Value is BicepValue v) + { + format = v.Format; + } + values[pair.Key] = ToBicep(pair.Value, format); } return BicepSyntax.Object(values); } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/ArmApplication.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/ArmApplication.cs index b2688092ee198..927a37d69b0c9 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/ArmApplication.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/ArmApplication.cs @@ -20,51 +20,83 @@ public partial class ArmApplication : ProvisionableResource /// /// The name of the managed application. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The kind of the managed application. Allowed values are MarketPlace and /// ServiceCatalog. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The fully qualified path of managed application definition Id. /// - public BicepValue ApplicationDefinitionId { get => _applicationDefinitionId; set => _applicationDefinitionId.Assign(value); } - private readonly BicepValue _applicationDefinitionId; + public BicepValue ApplicationDefinitionId + { + get { Initialize(); return _applicationDefinitionId!; } + set { Initialize(); _applicationDefinitionId!.Assign(value); } + } + private BicepValue? _applicationDefinitionId; /// /// The identity of the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ArmApplicationManagedIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ArmApplicationManagedIdentity? _identity; /// /// The managed application Jit access policy. /// - public BicepValue JitAccessPolicy { get => _jitAccessPolicy; set => _jitAccessPolicy.Assign(value); } - private readonly BicepValue _jitAccessPolicy; + public ArmApplicationJitAccessPolicy JitAccessPolicy + { + get { Initialize(); return _jitAccessPolicy!; } + set { Initialize(); AssignOrReplace(ref _jitAccessPolicy, value); } + } + private ArmApplicationJitAccessPolicy? _jitAccessPolicy; /// /// ID of the resource that manages this resource. /// - public BicepValue ManagedBy { get => _managedBy; set => _managedBy.Assign(value); } - private readonly BicepValue _managedBy; + public BicepValue ManagedBy + { + get { Initialize(); return _managedBy!; } + set { Initialize(); _managedBy!.Assign(value); } + } + private BicepValue? _managedBy; /// /// The managed resource group Id. /// - public BicepValue ManagedResourceGroupId { get => _managedResourceGroupId; set => _managedResourceGroupId.Assign(value); } - private readonly BicepValue _managedResourceGroupId; + public BicepValue ManagedResourceGroupId + { + get { Initialize(); return _managedResourceGroupId!; } + set { Initialize(); _managedResourceGroupId!.Assign(value); } + } + private BicepValue? _managedResourceGroupId; /// /// Name and value pairs that define the managed application parameters. It @@ -83,70 +115,107 @@ public partial class ArmApplication : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Parameters { get => _parameters; set => _parameters.Assign(value); } - private readonly BicepValue _parameters; + public BicepValue Parameters + { + get { Initialize(); return _parameters!; } + set { Initialize(); _parameters!.Assign(value); } + } + private BicepValue? _parameters; /// /// The plan information. /// - public BicepValue Plan { get => _plan; set => _plan.Assign(value); } - private readonly BicepValue _plan; + public ArmPlan Plan + { + get { Initialize(); return _plan!; } + set { Initialize(); AssignOrReplace(ref _plan, value); } + } + private ArmPlan? _plan; /// /// The SKU of the resource. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public ArmApplicationSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private ArmApplicationSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The collection of managed application artifacts. /// - public BicepList Artifacts { get => _artifacts; } - private readonly BicepList _artifacts; + public BicepList Artifacts + { + get { Initialize(); return _artifacts!; } + } + private BicepList? _artifacts; /// /// The read-only authorizations property that is retrieved from the /// application package. /// - public BicepList Authorizations { get => _authorizations; } - private readonly BicepList _authorizations; + public BicepList Authorizations + { + get { Initialize(); return _authorizations!; } + } + private BicepList? _authorizations; /// /// The managed application resource usage Id. /// - public BicepValue BillingDetailsResourceUsageId { get => _billingDetailsResourceUsageId; } - private readonly BicepValue _billingDetailsResourceUsageId; + public BicepValue BillingDetailsResourceUsageId + { + get { Initialize(); return _billingDetailsResourceUsageId!; } + } + private BicepValue? _billingDetailsResourceUsageId; /// /// The client entity that created the JIT request. /// - public BicepValue CreatedBy { get => _createdBy; } - private readonly BicepValue _createdBy; + public ArmApplicationDetails CreatedBy + { + get { Initialize(); return _createdBy!; } + } + private ArmApplicationDetails? _createdBy; /// /// The read-only customer support property that is retrieved from the /// application package. /// - public BicepValue CustomerSupport { get => _customerSupport; } - private readonly BicepValue _customerSupport; + public ArmApplicationPackageContact CustomerSupport + { + get { Initialize(); return _customerSupport!; } + } + private ArmApplicationPackageContact? _customerSupport; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The managed application management mode. /// - public BicepValue ManagementMode { get => _managementMode; } - private readonly BicepValue _managementMode; + public BicepValue ManagementMode + { + get { Initialize(); return _managementMode!; } + } + private BicepValue? _managementMode; /// /// Name and value pairs that define the managed application outputs. @@ -164,39 +233,57 @@ public partial class ArmApplication : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Outputs { get => _outputs; } - private readonly BicepValue _outputs; + public BicepValue Outputs + { + get { Initialize(); return _outputs!; } + } + private BicepValue? _outputs; /// /// The managed application provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The publisher tenant Id. /// - public BicepValue PublisherTenantId { get => _publisherTenantId; } - private readonly BicepValue _publisherTenantId; + public BicepValue PublisherTenantId + { + get { Initialize(); return _publisherTenantId!; } + } + private BicepValue? _publisherTenantId; /// /// The read-only support URLs property that is retrieved from the /// application package. /// - public BicepValue SupportUris { get => _supportUris; } - private readonly BicepValue _supportUris; + public ArmApplicationPackageSupportUris SupportUris + { + get { Initialize(); return _supportUris!; } + } + private ArmApplicationPackageSupportUris? _supportUris; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The client entity that last updated the JIT request. /// - public BicepValue UpdatedBy { get => _updatedBy; } - private readonly BicepValue _updatedBy; + public ArmApplicationDetails UpdatedBy + { + get { Initialize(); return _updatedBy!; } + } + private ArmApplicationDetails? _updatedBy; /// /// Creates a new ArmApplication. @@ -211,31 +298,38 @@ public partial class ArmApplication : ProvisionableResource public ArmApplication(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Solutions/applications", resourceVersion ?? "2021-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _applicationDefinitionId = BicepValue.DefineProperty(this, "ApplicationDefinitionId", ["properties", "applicationDefinitionId"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _jitAccessPolicy = BicepValue.DefineProperty(this, "JitAccessPolicy", ["properties", "jitAccessPolicy"]); - _managedBy = BicepValue.DefineProperty(this, "ManagedBy", ["managedBy"]); - _managedResourceGroupId = BicepValue.DefineProperty(this, "ManagedResourceGroupId", ["properties", "managedResourceGroupId"]); - _parameters = BicepValue.DefineProperty(this, "Parameters", ["properties", "parameters"]); - _plan = BicepValue.DefineProperty(this, "Plan", ["plan"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _artifacts = BicepList.DefineProperty(this, "Artifacts", ["properties", "artifacts"], isOutput: true); - _authorizations = BicepList.DefineProperty(this, "Authorizations", ["properties", "authorizations"], isOutput: true); - _billingDetailsResourceUsageId = BicepValue.DefineProperty(this, "BillingDetailsResourceUsageId", ["properties", "billingDetails", "resourceUsageId"], isOutput: true); - _createdBy = BicepValue.DefineProperty(this, "CreatedBy", ["properties", "createdBy"], isOutput: true); - _customerSupport = BicepValue.DefineProperty(this, "CustomerSupport", ["properties", "customerSupport"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _managementMode = BicepValue.DefineProperty(this, "ManagementMode", ["properties", "managementMode"], isOutput: true); - _outputs = BicepValue.DefineProperty(this, "Outputs", ["properties", "outputs"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _publisherTenantId = BicepValue.DefineProperty(this, "PublisherTenantId", ["properties", "publisherTenantId"], isOutput: true); - _supportUris = BicepValue.DefineProperty(this, "SupportUris", ["properties", "supportUrls"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _updatedBy = BicepValue.DefineProperty(this, "UpdatedBy", ["properties", "updatedBy"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ArmApplication. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _kind = DefineProperty("Kind", ["kind"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _applicationDefinitionId = DefineProperty("ApplicationDefinitionId", ["properties", "applicationDefinitionId"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _jitAccessPolicy = DefineModelProperty("JitAccessPolicy", ["properties", "jitAccessPolicy"]); + _managedBy = DefineProperty("ManagedBy", ["managedBy"]); + _managedResourceGroupId = DefineProperty("ManagedResourceGroupId", ["properties", "managedResourceGroupId"]); + _parameters = DefineProperty("Parameters", ["properties", "parameters"]); + _plan = DefineModelProperty("Plan", ["plan"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _artifacts = DefineListProperty("Artifacts", ["properties", "artifacts"], isOutput: true); + _authorizations = DefineListProperty("Authorizations", ["properties", "authorizations"], isOutput: true); + _billingDetailsResourceUsageId = DefineProperty("BillingDetailsResourceUsageId", ["properties", "billingDetails", "resourceUsageId"], isOutput: true); + _createdBy = DefineModelProperty("CreatedBy", ["properties", "createdBy"], isOutput: true); + _customerSupport = DefineModelProperty("CustomerSupport", ["properties", "customerSupport"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _managementMode = DefineProperty("ManagementMode", ["properties", "managementMode"], isOutput: true); + _outputs = DefineProperty("Outputs", ["properties", "outputs"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _publisherTenantId = DefineProperty("PublisherTenantId", ["properties", "publisherTenantId"], isOutput: true); + _supportUris = DefineModelProperty("SupportUris", ["properties", "supportUrls"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _updatedBy = DefineModelProperty("UpdatedBy", ["properties", "updatedBy"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/ArmApplicationDefinition.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/ArmApplicationDefinition.cs index efc5e20c63005..d7decf8f05d8e 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/ArmApplicationDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/ArmApplicationDefinition.cs @@ -20,34 +20,54 @@ public partial class ArmApplicationDefinition : ProvisionableResource /// /// The name of the managed application definition. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The managed application lock level. /// - public BicepValue LockLevel { get => _lockLevel; set => _lockLevel.Assign(value); } - private readonly BicepValue _lockLevel; + public BicepValue LockLevel + { + get { Initialize(); return _lockLevel!; } + set { Initialize(); _lockLevel!.Assign(value); } + } + private BicepValue? _lockLevel; /// /// The collection of managed application artifacts. The portal will use /// the files specified as artifacts to construct the user experience of /// creating a managed application from a managed application definition. /// - public BicepList Artifacts { get => _artifacts; set => _artifacts.Assign(value); } - private readonly BicepList _artifacts; + public BicepList Artifacts + { + get { Initialize(); return _artifacts!; } + set { Initialize(); _artifacts!.Assign(value); } + } + private BicepList? _artifacts; /// /// The managed application provider authorizations. /// - public BicepList Authorizations { get => _authorizations; set => _authorizations.Assign(value); } - private readonly BicepList _authorizations; + public BicepList Authorizations + { + get { Initialize(); return _authorizations!; } + set { Initialize(); _authorizations!.Assign(value); } + } + private BicepList? _authorizations; /// /// The createUiDefinition json for the backing template with @@ -67,32 +87,52 @@ public partial class ArmApplicationDefinition : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue CreateUiDefinition { get => _createUiDefinition; set => _createUiDefinition.Assign(value); } - private readonly BicepValue _createUiDefinition; + public BicepValue CreateUiDefinition + { + get { Initialize(); return _createUiDefinition!; } + set { Initialize(); _createUiDefinition!.Assign(value); } + } + private BicepValue? _createUiDefinition; /// /// The managed application definition description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The managed application definition display name. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// A value indicating whether the package is enabled or not. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// The managed application locking policy. /// - public BicepValue LockingPolicy { get => _lockingPolicy; set => _lockingPolicy.Assign(value); } - private readonly BicepValue _lockingPolicy; + public ArmApplicationPackageLockingPolicy LockingPolicy + { + get { Initialize(); return _lockingPolicy!; } + set { Initialize(); AssignOrReplace(ref _lockingPolicy, value); } + } + private ArmApplicationPackageLockingPolicy? _lockingPolicy; /// /// The inline main template json which has resources to be provisioned. It @@ -111,62 +151,100 @@ public partial class ArmApplicationDefinition : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue MainTemplate { get => _mainTemplate; set => _mainTemplate.Assign(value); } - private readonly BicepValue _mainTemplate; + public BicepValue MainTemplate + { + get { Initialize(); return _mainTemplate!; } + set { Initialize(); _mainTemplate!.Assign(value); } + } + private BicepValue? _mainTemplate; /// /// ID of the resource that manages this resource. /// - public BicepValue ManagedBy { get => _managedBy; set => _managedBy.Assign(value); } - private readonly BicepValue _managedBy; + public BicepValue ManagedBy + { + get { Initialize(); return _managedBy!; } + set { Initialize(); _managedBy!.Assign(value); } + } + private BicepValue? _managedBy; /// /// The managed application management mode. /// - public BicepValue ManagementMode { get => _managementMode; set => _managementMode.Assign(value); } - private readonly BicepValue _managementMode; + public BicepValue ManagementMode + { + get { Initialize(); return _managementMode!; } + set { Initialize(); _managementMode!.Assign(value); } + } + private BicepValue? _managementMode; /// /// The managed application notification endpoint. /// - public BicepList NotificationEndpoints { get => _notificationEndpoints; set => _notificationEndpoints.Assign(value); } - private readonly BicepList _notificationEndpoints; + public BicepList NotificationEndpoints + { + get { Initialize(); return _notificationEndpoints!; } + set { Initialize(); _notificationEndpoints!.Assign(value); } + } + private BicepList? _notificationEndpoints; /// /// The managed application definition package file Uri. Use this element. /// - public BicepValue PackageFileUri { get => _packageFileUri; set => _packageFileUri.Assign(value); } - private readonly BicepValue _packageFileUri; + public BicepValue PackageFileUri + { + get { Initialize(); return _packageFileUri!; } + set { Initialize(); _packageFileUri!.Assign(value); } + } + private BicepValue? _packageFileUri; /// /// The managed application provider policies. /// - public BicepList Policies { get => _policies; set => _policies.Assign(value); } - private readonly BicepList _policies; + public BicepList Policies + { + get { Initialize(); return _policies!; } + set { Initialize(); _policies!.Assign(value); } + } + private BicepList? _policies; /// /// The SKU of the resource. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public ArmApplicationSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private ArmApplicationSku? _sku; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ArmApplicationDefinition. @@ -181,26 +259,33 @@ public partial class ArmApplicationDefinition : ProvisionableResource public ArmApplicationDefinition(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Solutions/applicationDefinitions", resourceVersion ?? "2021-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _lockLevel = BicepValue.DefineProperty(this, "LockLevel", ["properties", "lockLevel"], isRequired: true); - _artifacts = BicepList.DefineProperty(this, "Artifacts", ["properties", "artifacts"]); - _authorizations = BicepList.DefineProperty(this, "Authorizations", ["properties", "authorizations"]); - _createUiDefinition = BicepValue.DefineProperty(this, "CreateUiDefinition", ["properties", "createUiDefinition"]); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["properties", "displayName"]); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["properties", "isEnabled"]); - _lockingPolicy = BicepValue.DefineProperty(this, "LockingPolicy", ["properties", "lockingPolicy"]); - _mainTemplate = BicepValue.DefineProperty(this, "MainTemplate", ["properties", "mainTemplate"]); - _managedBy = BicepValue.DefineProperty(this, "ManagedBy", ["managedBy"]); - _managementMode = BicepValue.DefineProperty(this, "ManagementMode", ["properties", "managementPolicy", "mode"]); - _notificationEndpoints = BicepList.DefineProperty(this, "NotificationEndpoints", ["properties", "notificationPolicy", "notificationEndpoints"]); - _packageFileUri = BicepValue.DefineProperty(this, "PackageFileUri", ["properties", "packageFileUri"]); - _policies = BicepList.DefineProperty(this, "Policies", ["properties", "policies"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ArmApplicationDefinition. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _lockLevel = DefineProperty("LockLevel", ["properties", "lockLevel"], isRequired: true); + _artifacts = DefineListProperty("Artifacts", ["properties", "artifacts"]); + _authorizations = DefineListProperty("Authorizations", ["properties", "authorizations"]); + _createUiDefinition = DefineProperty("CreateUiDefinition", ["properties", "createUiDefinition"]); + _description = DefineProperty("Description", ["properties", "description"]); + _displayName = DefineProperty("DisplayName", ["properties", "displayName"]); + _isEnabled = DefineProperty("IsEnabled", ["properties", "isEnabled"]); + _lockingPolicy = DefineModelProperty("LockingPolicy", ["properties", "lockingPolicy"]); + _mainTemplate = DefineProperty("MainTemplate", ["properties", "mainTemplate"]); + _managedBy = DefineProperty("ManagedBy", ["managedBy"]); + _managementMode = DefineProperty("ManagementMode", ["properties", "managementPolicy", "mode"]); + _notificationEndpoints = DefineListProperty("NotificationEndpoints", ["properties", "notificationPolicy", "notificationEndpoints"]); + _packageFileUri = DefineProperty("PackageFileUri", ["properties", "packageFileUri"]); + _policies = DefineListProperty("Policies", ["properties", "policies"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/ArmDeployment.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/ArmDeployment.cs index 062732ad727c6..160ef0ae8f158 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/ArmDeployment.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/ArmDeployment.cs @@ -23,38 +23,57 @@ public partial class ArmDeployment : ProvisionableResource /// /// The name of the deployment. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// the location of the deployment. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Deployment properties. /// - public BicepValue Properties { get => _properties; } - private readonly BicepValue _properties; + public ArmDeploymentPropertiesExtended Properties + { + get { Initialize(); return _properties!; } + } + private ArmDeploymentPropertiesExtended? _properties; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Deployment tags. /// - public BicepDictionary Tags { get => _tags; } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + } + private BicepDictionary? _tags; /// /// Creates a new ArmDeployment. @@ -69,12 +88,19 @@ public partial class ArmDeployment : ProvisionableResource public ArmDeployment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Resources/deployments", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ArmDeployment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _location = DefineProperty("Location", ["location"], isOutput: true); + _properties = DefineModelProperty("Properties", ["properties"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _tags = DefineDictionaryProperty("Tags", ["tags"], isOutput: true); } /// @@ -242,22 +268,6 @@ public static class ResourceVersions public static ArmDeployment FromExisting(string bicepIdentifier, string? resourceVersion = default) => new(bicepIdentifier, resourceVersion) { IsExistingResource = true }; - /// - /// Creates a new ArmDeployment resource from a Bicep expression that - /// evaluates to a ArmDeployment. - /// - /// - /// A Bicep expression that evaluates to a ArmDeployment resource. - /// - /// A ArmDeployment resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static ArmDeployment FromExpression(BicepExpression expression) - { - ArmDeployment resource = new(nameof(ArmDeployment)); - resource.OverrideWithExpression(expression); - return resource; - } - /// /// Get the requirements for naming this ArmDeployment resource. /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/ArmDeploymentScript.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/ArmDeploymentScript.cs index a8d47f8b79d78..d351824053511 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/ArmDeploymentScript.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/ArmDeploymentScript.cs @@ -20,40 +20,62 @@ public partial class ArmDeploymentScript : ProvisionableResource /// /// Name of the deployment script. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The location of the ACI and the storage account for the deployment /// script. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Optional property. Managed identity to be used for this deployment /// script. Currently, only user-assigned MSI is supported. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ArmDeploymentScriptManagedIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ArmDeploymentScriptManagedIdentity? _identity; /// /// Resource tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ArmDeploymentScript. @@ -68,12 +90,19 @@ public partial class ArmDeploymentScript : ProvisionableResource public ArmDeploymentScript(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Resources/deploymentScripts", resourceVersion ?? "2023-08-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ArmDeploymentScript. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/AuthorizationRoleDefinition.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/AuthorizationRoleDefinition.cs index ebb142c6f4f0d..880498e7f83fd 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/AuthorizationRoleDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/AuthorizationRoleDefinition.cs @@ -21,50 +21,79 @@ public partial class AuthorizationRoleDefinition : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Role definition assignable scopes. /// - public BicepList AssignableScopes { get => _assignableScopes; set => _assignableScopes.Assign(value); } - private readonly BicepList _assignableScopes; + public BicepList AssignableScopes + { + get { Initialize(); return _assignableScopes!; } + set { Initialize(); _assignableScopes!.Assign(value); } + } + private BicepList? _assignableScopes; /// /// The role definition description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Role definition permissions. /// - public BicepList Permissions { get => _permissions; set => _permissions.Assign(value); } - private readonly BicepList _permissions; + public BicepList Permissions + { + get { Initialize(); return _permissions!; } + set { Initialize(); _permissions!.Assign(value); } + } + private BicepList? _permissions; /// /// The role name. /// - public BicepValue RoleName { get => _roleName; set => _roleName.Assign(value); } - private readonly BicepValue _roleName; + public BicepValue RoleName + { + get { Initialize(); return _roleName!; } + set { Initialize(); _roleName!.Assign(value); } + } + private BicepValue? _roleName; /// /// The role type. /// - public BicepValue RoleType { get => _roleType; set => _roleType.Assign(value); } - private readonly BicepValue _roleType; + public BicepValue RoleType + { + get { Initialize(); return _roleType!; } + set { Initialize(); _roleType!.Assign(value); } + } + private BicepValue? _roleType; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Get the default value for the Name property. @@ -84,14 +113,21 @@ public partial class AuthorizationRoleDefinition : ProvisionableResource public AuthorizationRoleDefinition(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Authorization/roleDefinitions", resourceVersion ?? "2022-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true, defaultValue: GetNameDefaultValue()); - _assignableScopes = BicepList.DefineProperty(this, "AssignableScopes", ["properties", "assignableScopes"]); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _permissions = BicepList.DefineProperty(this, "Permissions", ["properties", "permissions"]); - _roleName = BicepValue.DefineProperty(this, "RoleName", ["properties", "roleName"]); - _roleType = BicepValue.DefineProperty(this, "RoleType", ["properties", "type"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of AuthorizationRoleDefinition. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true, defaultValue: GetNameDefaultValue()); + _assignableScopes = DefineListProperty("AssignableScopes", ["properties", "assignableScopes"]); + _description = DefineProperty("Description", ["properties", "description"]); + _permissions = DefineListProperty("Permissions", ["properties", "permissions"]); + _roleName = DefineProperty("RoleName", ["properties", "roleName"]); + _roleType = DefineProperty("RoleType", ["properties", "type"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/FederatedIdentityCredential.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/FederatedIdentityCredential.cs index 4c108a694d452..434bbadb54c20 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/FederatedIdentityCredential.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/FederatedIdentityCredential.cs @@ -21,44 +21,70 @@ public partial class FederatedIdentityCredential : ProvisionableResource /// /// The name of the federated identity credential resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The list of audiences that can appear in the issued token. /// - public BicepList Audiences { get => _audiences; set => _audiences.Assign(value); } - private readonly BicepList _audiences; + public BicepList Audiences + { + get { Initialize(); return _audiences!; } + set { Initialize(); _audiences!.Assign(value); } + } + private BicepList? _audiences; /// /// The URL of the issuer to be trusted. /// - public BicepValue IssuerUri { get => _issuerUri; set => _issuerUri.Assign(value); } - private readonly BicepValue _issuerUri; + public BicepValue IssuerUri + { + get { Initialize(); return _issuerUri!; } + set { Initialize(); _issuerUri!.Assign(value); } + } + private BicepValue? _issuerUri; /// /// The identifier of the external identity. /// - public BicepValue Subject { get => _subject; set => _subject.Assign(value); } - private readonly BicepValue _subject; + public BicepValue Subject + { + get { Initialize(); return _subject!; } + set { Initialize(); _subject!.Assign(value); } + } + private BicepValue? _subject; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent UserAssignedIdentity. /// - public UserAssignedIdentity? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public UserAssignedIdentity? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new FederatedIdentityCredential. @@ -73,13 +99,20 @@ public partial class FederatedIdentityCredential : ProvisionableResource public FederatedIdentityCredential(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials", resourceVersion ?? "2023-01-31") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _audiences = BicepList.DefineProperty(this, "Audiences", ["properties", "audiences"]); - _issuerUri = BicepValue.DefineProperty(this, "IssuerUri", ["properties", "issuer"]); - _subject = BicepValue.DefineProperty(this, "Subject", ["properties", "subject"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of FederatedIdentityCredential. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _audiences = DefineListProperty("Audiences", ["properties", "audiences"]); + _issuerUri = DefineProperty("IssuerUri", ["properties", "issuer"]); + _subject = DefineProperty("Subject", ["properties", "subject"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/GenericResource.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/GenericResource.cs index 860f6e12718e6..2a8ba8aeb33b1 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/GenericResource.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/GenericResource.cs @@ -20,44 +20,71 @@ public partial class GenericResource : ProvisionableResource /// /// The name of the resource. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Resource extended location. /// - public BicepValue ExtendedLocation { get => _extendedLocation; set => _extendedLocation.Assign(value); } - private readonly BicepValue _extendedLocation; + public ExtendedAzureLocation ExtendedLocation + { + get { Initialize(); return _extendedLocation!; } + set { Initialize(); AssignOrReplace(ref _extendedLocation, value); } + } + private ExtendedAzureLocation? _extendedLocation; /// /// The identity of the resource. /// - public BicepValue Identity { get => _identity; set => _identity.Assign(value); } - private readonly BicepValue _identity; + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; /// /// The kind of the resource. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// ID of the resource that manages this resource. /// - public BicepValue ManagedBy { get => _managedBy; set => _managedBy.Assign(value); } - private readonly BicepValue _managedBy; + public BicepValue ManagedBy + { + get { Initialize(); return _managedBy!; } + set { Initialize(); _managedBy!.Assign(value); } + } + private BicepValue? _managedBy; /// /// The plan of the resource. /// - public BicepValue Plan { get => _plan; set => _plan.Assign(value); } - private readonly BicepValue _plan; + public ArmPlan Plan + { + get { Initialize(); return _plan!; } + set { Initialize(); AssignOrReplace(ref _plan, value); } + } + private ArmPlan? _plan; /// /// The resource properties. To assign an object @@ -75,55 +102,82 @@ public partial class GenericResource : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Properties { get => _properties; set => _properties.Assign(value); } - private readonly BicepValue _properties; + public BicepValue Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); _properties!.Assign(value); } + } + private BicepValue? _properties; /// /// The SKU of the resource. /// - public BicepValue Sku { get => _sku; set => _sku.Assign(value); } - private readonly BicepValue _sku; + public ResourcesSku Sku + { + get { Initialize(); return _sku!; } + set { Initialize(); AssignOrReplace(ref _sku, value); } + } + private ResourcesSku? _sku; /// /// Resource tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The changed time of the resource. This is only present if requested via /// the $expand query parameter. /// - public BicepValue ChangedOn { get => _changedOn; } - private readonly BicepValue _changedOn; + public BicepValue ChangedOn + { + get { Initialize(); return _changedOn!; } + } + private BicepValue? _changedOn; /// /// The created time of the resource. This is only present if requested via /// the $expand query parameter. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning state of the resource. This is only present if /// requested via the $expand query parameter. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// Azure Resource Manager metadata containing createdBy and modifiedBy /// information. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new GenericResource. @@ -138,21 +192,28 @@ public partial class GenericResource : ProvisionableResource public GenericResource(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _extendedLocation = BicepValue.DefineProperty(this, "ExtendedLocation", ["extendedLocation"]); - _identity = BicepValue.DefineProperty(this, "Identity", ["identity"]); - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _managedBy = BicepValue.DefineProperty(this, "ManagedBy", ["managedBy"]); - _plan = BicepValue.DefineProperty(this, "Plan", ["plan"]); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"]); - _sku = BicepValue.DefineProperty(this, "Sku", ["sku"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _changedOn = BicepValue.DefineProperty(this, "ChangedOn", ["changedTime"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["createdTime"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of GenericResource. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _extendedLocation = DefineModelProperty("ExtendedLocation", ["extendedLocation"]); + _identity = DefineModelProperty("Identity", ["identity"]); + _kind = DefineProperty("Kind", ["kind"]); + _managedBy = DefineProperty("ManagedBy", ["managedBy"]); + _plan = DefineModelProperty("Plan", ["plan"]); + _properties = DefineProperty("Properties", ["properties"]); + _sku = DefineModelProperty("Sku", ["sku"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _changedOn = DefineProperty("ChangedOn", ["changedTime"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["createdTime"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/JitRequest.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/JitRequest.cs index 661ec4795a800..0c8bb40f80599 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/JitRequest.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/JitRequest.cs @@ -20,80 +20,125 @@ public partial class JitRequest : ProvisionableResource /// /// The name of the JIT request. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The parent application id. /// - public BicepValue ApplicationResourceId { get => _applicationResourceId; set => _applicationResourceId.Assign(value); } - private readonly BicepValue _applicationResourceId; + public BicepValue ApplicationResourceId + { + get { Initialize(); return _applicationResourceId!; } + set { Initialize(); _applicationResourceId!.Assign(value); } + } + private BicepValue? _applicationResourceId; /// /// The JIT authorization policies. /// - public BicepList JitAuthorizationPolicies { get => _jitAuthorizationPolicies; set => _jitAuthorizationPolicies.Assign(value); } - private readonly BicepList _jitAuthorizationPolicies; + public BicepList JitAuthorizationPolicies + { + get { Initialize(); return _jitAuthorizationPolicies!; } + set { Initialize(); _jitAuthorizationPolicies!.Assign(value); } + } + private BicepList? _jitAuthorizationPolicies; /// /// The JIT request properties. /// - public BicepValue JitSchedulingPolicy { get => _jitSchedulingPolicy; set => _jitSchedulingPolicy.Assign(value); } - private readonly BicepValue _jitSchedulingPolicy; + public JitSchedulingPolicy JitSchedulingPolicy + { + get { Initialize(); return _jitSchedulingPolicy!; } + set { Initialize(); AssignOrReplace(ref _jitSchedulingPolicy, value); } + } + private JitSchedulingPolicy? _jitSchedulingPolicy; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The client entity that created the JIT request. /// - public BicepValue CreatedBy { get => _createdBy; } - private readonly BicepValue _createdBy; + public ArmApplicationDetails CreatedBy + { + get { Initialize(); return _createdBy!; } + } + private ArmApplicationDetails? _createdBy; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The JIT request state. /// - public BicepValue JitRequestState { get => _jitRequestState; } - private readonly BicepValue _jitRequestState; + public BicepValue JitRequestState + { + get { Initialize(); return _jitRequestState!; } + } + private BicepValue? _jitRequestState; /// /// The JIT request provisioning state. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The publisher tenant id. /// - public BicepValue PublisherTenantId { get => _publisherTenantId; } - private readonly BicepValue _publisherTenantId; + public BicepValue PublisherTenantId + { + get { Initialize(); return _publisherTenantId!; } + } + private BicepValue? _publisherTenantId; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The client entity that last updated the JIT request. /// - public BicepValue UpdatedBy { get => _updatedBy; } - private readonly BicepValue _updatedBy; + public ArmApplicationDetails UpdatedBy + { + get { Initialize(); return _updatedBy!; } + } + private ArmApplicationDetails? _updatedBy; /// /// Creates a new JitRequest. @@ -108,19 +153,26 @@ public partial class JitRequest : ProvisionableResource public JitRequest(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Solutions/jitRequests", resourceVersion ?? "2021-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _applicationResourceId = BicepValue.DefineProperty(this, "ApplicationResourceId", ["properties", "applicationResourceId"]); - _jitAuthorizationPolicies = BicepList.DefineProperty(this, "JitAuthorizationPolicies", ["properties", "jitAuthorizationPolicies"]); - _jitSchedulingPolicy = BicepValue.DefineProperty(this, "JitSchedulingPolicy", ["properties", "jitSchedulingPolicy"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _createdBy = BicepValue.DefineProperty(this, "CreatedBy", ["properties", "createdBy"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _jitRequestState = BicepValue.DefineProperty(this, "JitRequestState", ["properties", "jitRequestState"], isOutput: true); - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["properties", "provisioningState"], isOutput: true); - _publisherTenantId = BicepValue.DefineProperty(this, "PublisherTenantId", ["properties", "publisherTenantId"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _updatedBy = BicepValue.DefineProperty(this, "UpdatedBy", ["properties", "updatedBy"], isOutput: true); + } + + /// + /// Define all the provisionable properties of JitRequest. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _applicationResourceId = DefineProperty("ApplicationResourceId", ["properties", "applicationResourceId"]); + _jitAuthorizationPolicies = DefineListProperty("JitAuthorizationPolicies", ["properties", "jitAuthorizationPolicies"]); + _jitSchedulingPolicy = DefineModelProperty("JitSchedulingPolicy", ["properties", "jitSchedulingPolicy"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _createdBy = DefineModelProperty("CreatedBy", ["properties", "createdBy"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _jitRequestState = DefineProperty("JitRequestState", ["properties", "jitRequestState"], isOutput: true); + _provisioningState = DefineProperty("ProvisioningState", ["properties", "provisioningState"], isOutput: true); + _publisherTenantId = DefineProperty("PublisherTenantId", ["properties", "publisherTenantId"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _updatedBy = DefineModelProperty("UpdatedBy", ["properties", "updatedBy"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroup.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroup.cs index 67044f9626c24..7b44fb3fbfdc8 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroup.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroup.cs @@ -21,48 +21,72 @@ public partial class ManagementGroup : ProvisionableResource /// The name of the management group. For example, /// 00000000-0000-0000-0000-000000000000. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The details of a management group used during creation. /// - public BicepValue Details { get => _details; set => _details.Assign(value); } - private readonly BicepValue _details; + public CreateManagementGroupDetails Details + { + get { Initialize(); return _details!; } + set { Initialize(); AssignOrReplace(ref _details, value); } + } + private CreateManagementGroupDetails? _details; /// /// The friendly name of the management group. If no value is passed then /// this field will be set to the groupId. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// The list of children. /// - public BicepList Children { get => _children; } - private readonly BicepList _children; + public BicepList Children + { + get { Initialize(); return _children!; } + } + private BicepList? _children; /// /// The fully qualified ID for the management group. For example, /// /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Azure Resource Manager metadata containing createdBy and modifiedBy /// information. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The AAD Tenant ID associated with the management group. For example, /// 00000000-0000-0000-0000-000000000000. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// Creates a new ManagementGroup. @@ -77,13 +101,20 @@ public partial class ManagementGroup : ProvisionableResource public ManagementGroup(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Management/managementGroups", resourceVersion ?? "2023-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _details = BicepValue.DefineProperty(this, "Details", ["properties", "details"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["properties", "displayName"]); - _children = BicepList.DefineProperty(this, "Children", ["properties", "children"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["properties", "tenantId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagementGroup. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"]); + _details = DefineModelProperty("Details", ["properties", "details"]); + _displayName = DefineProperty("DisplayName", ["properties", "displayName"]); + _children = DefineListProperty("Children", ["properties", "children"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _tenantId = DefineProperty("TenantId", ["properties", "tenantId"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicyDefinition.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicyDefinition.cs index 40cc10ea8650c..fde4fe232179f 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicyDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicyDefinition.cs @@ -21,20 +21,32 @@ public partial class ManagementGroupPolicyDefinition : ProvisionableResource /// /// The name of the policy definition to create. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The policy definition description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The display name of the policy definition. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// The policy definition metadata. Metadata is an open ended object and @@ -53,22 +65,34 @@ public partial class ManagementGroupPolicyDefinition : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepValue _metadata; + public BicepValue Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepValue? _metadata; /// /// The policy definition mode. Some examples are All, Indexed, /// Microsoft.KeyVault.Data. /// - public BicepValue Mode { get => _mode; set => _mode.Assign(value); } - private readonly BicepValue _mode; + public BicepValue Mode + { + get { Initialize(); return _mode!; } + set { Initialize(); _mode!.Assign(value); } + } + private BicepValue? _mode; /// /// The parameter definitions for parameters used in the policy rule. The /// keys are the parameter names. /// - public BicepDictionary Parameters { get => _parameters; set => _parameters.Assign(value); } - private readonly BicepDictionary _parameters; + public BicepDictionary Parameters + { + get { Initialize(); return _parameters!; } + set { Initialize(); _parameters!.Assign(value); } + } + private BicepDictionary? _parameters; /// /// The policy rule. To assign an object to this @@ -86,29 +110,43 @@ public partial class ManagementGroupPolicyDefinition : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue PolicyRule { get => _policyRule; set => _policyRule.Assign(value); } - private readonly BicepValue _policyRule; + public BicepValue PolicyRule + { + get { Initialize(); return _policyRule!; } + set { Initialize(); _policyRule!.Assign(value); } + } + private BicepValue? _policyRule; /// /// The type of policy definition. Possible values are NotSpecified, /// BuiltIn, Custom, and Static. /// - public BicepValue PolicyType { get => _policyType; set => _policyType.Assign(value); } - private readonly BicepValue _policyType; + public BicepValue PolicyType + { + get { Initialize(); return _policyType!; } + set { Initialize(); _policyType!.Assign(value); } + } + private BicepValue? _policyType; /// /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Azure Resource Manager metadata containing createdBy and modifiedBy /// information. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ManagementGroupPolicyDefinition. @@ -123,16 +161,24 @@ public partial class ManagementGroupPolicyDefinition : ProvisionableResource public ManagementGroupPolicyDefinition(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Authorization/policyDefinitions", resourceVersion ?? "2023-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["properties", "displayName"]); - _metadata = BicepValue.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _mode = BicepValue.DefineProperty(this, "Mode", ["properties", "mode"]); - _parameters = BicepDictionary.DefineProperty(this, "Parameters", ["properties", "parameters"]); - _policyRule = BicepValue.DefineProperty(this, "PolicyRule", ["properties", "policyRule"]); - _policyType = BicepValue.DefineProperty(this, "PolicyType", ["properties", "policyType"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ManagementGroupPolicyDefinition. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _description = DefineProperty("Description", ["properties", "description"]); + _displayName = DefineProperty("DisplayName", ["properties", "displayName"]); + _metadata = DefineProperty("Metadata", ["properties", "metadata"]); + _mode = DefineProperty("Mode", ["properties", "mode"]); + _parameters = DefineDictionaryProperty("Parameters", ["properties", "parameters"]); + _policyRule = DefineProperty("PolicyRule", ["properties", "policyRule"]); + _policyType = DefineProperty("PolicyType", ["properties", "policyType"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicySetDefinition.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicySetDefinition.cs index 597dfb0ef6aed..461c27a7caec8 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicySetDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicySetDefinition.cs @@ -21,20 +21,32 @@ public partial class ManagementGroupPolicySetDefinition : ProvisionableResource /// /// The name of the policy set definition to create. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The policy set definition description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The display name of the policy set definition. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// The policy set definition metadata. Metadata is an open ended object @@ -53,49 +65,75 @@ public partial class ManagementGroupPolicySetDefinition : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepValue _metadata; + public BicepValue Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepValue? _metadata; /// /// The policy set definition parameters that can be used in policy /// definition references. /// - public BicepDictionary Parameters { get => _parameters; set => _parameters.Assign(value); } - private readonly BicepDictionary _parameters; + public BicepDictionary Parameters + { + get { Initialize(); return _parameters!; } + set { Initialize(); _parameters!.Assign(value); } + } + private BicepDictionary? _parameters; /// /// The metadata describing groups of policy definition references within /// the policy set definition. /// - public BicepList PolicyDefinitionGroups { get => _policyDefinitionGroups; set => _policyDefinitionGroups.Assign(value); } - private readonly BicepList _policyDefinitionGroups; + public BicepList PolicyDefinitionGroups + { + get { Initialize(); return _policyDefinitionGroups!; } + set { Initialize(); _policyDefinitionGroups!.Assign(value); } + } + private BicepList? _policyDefinitionGroups; /// /// An array of policy definition references. /// - public BicepList PolicyDefinitions { get => _policyDefinitions; set => _policyDefinitions.Assign(value); } - private readonly BicepList _policyDefinitions; + public BicepList PolicyDefinitions + { + get { Initialize(); return _policyDefinitions!; } + set { Initialize(); _policyDefinitions!.Assign(value); } + } + private BicepList? _policyDefinitions; /// /// The type of policy definition. Possible values are NotSpecified, /// BuiltIn, Custom, and Static. /// - public BicepValue PolicyType { get => _policyType; set => _policyType.Assign(value); } - private readonly BicepValue _policyType; + public BicepValue PolicyType + { + get { Initialize(); return _policyType!; } + set { Initialize(); _policyType!.Assign(value); } + } + private BicepValue? _policyType; /// /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Azure Resource Manager metadata containing createdBy and modifiedBy /// information. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ManagementGroupPolicySetDefinition. @@ -110,16 +148,24 @@ public partial class ManagementGroupPolicySetDefinition : ProvisionableResource public ManagementGroupPolicySetDefinition(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Authorization/policySetDefinitions", resourceVersion ?? "2023-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["properties", "displayName"]); - _metadata = BicepValue.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _parameters = BicepDictionary.DefineProperty(this, "Parameters", ["properties", "parameters"]); - _policyDefinitionGroups = BicepList.DefineProperty(this, "PolicyDefinitionGroups", ["properties", "policyDefinitionGroups"]); - _policyDefinitions = BicepList.DefineProperty(this, "PolicyDefinitions", ["properties", "policyDefinitions"]); - _policyType = BicepValue.DefineProperty(this, "PolicyType", ["properties", "policyType"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ManagementGroupPolicySetDefinition. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _description = DefineProperty("Description", ["properties", "description"]); + _displayName = DefineProperty("DisplayName", ["properties", "displayName"]); + _metadata = DefineProperty("Metadata", ["properties", "metadata"]); + _parameters = DefineDictionaryProperty("Parameters", ["properties", "parameters"]); + _policyDefinitionGroups = DefineListProperty("PolicyDefinitionGroups", ["properties", "policyDefinitionGroups"]); + _policyDefinitions = DefineListProperty("PolicyDefinitions", ["properties", "policyDefinitions"]); + _policyType = DefineProperty("PolicyType", ["properties", "policyType"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupSubscription.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupSubscription.cs index 44d3adf019052..3c46339ff99f1 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupSubscription.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupSubscription.cs @@ -19,54 +19,79 @@ public partial class ManagementGroupSubscription : ProvisionableResource /// /// The name of the resource. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The friendly name of the subscription. /// - public BicepValue DisplayName { get => _displayName; } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + } + private BicepValue? _displayName; /// /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The fully qualified ID for the parent management group. For example, /// /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. /// - public BicepValue ParentId { get => _parentId; } - private readonly BicepValue _parentId; + public BicepValue ParentId + { + get { Initialize(); return _parentId!; } + } + private BicepValue? _parentId; /// /// The state of the subscription. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// Azure Resource Manager metadata containing createdBy and modifiedBy /// information. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The AAD Tenant ID associated with the subscription. For example, /// 00000000-0000-0000-0000-000000000000. /// - public BicepValue Tenant { get => _tenant; } - private readonly BicepValue _tenant; + public BicepValue Tenant + { + get { Initialize(); return _tenant!; } + } + private BicepValue? _tenant; /// /// Gets or sets a reference to the parent ManagementGroup. /// - public ManagementGroup? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public ManagementGroup? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new ManagementGroupSubscription. @@ -81,14 +106,21 @@ public partial class ManagementGroupSubscription : ProvisionableResource public ManagementGroupSubscription(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Management/managementGroups/subscriptions", resourceVersion ?? "2023-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["properties", "displayName"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _parentId = BicepValue.DefineProperty(this, "ParentId", ["properties", "parent", "id"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["properties", "state"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _tenant = BicepValue.DefineProperty(this, "Tenant", ["properties", "tenant"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of ManagementGroupSubscription. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _displayName = DefineProperty("DisplayName", ["properties", "displayName"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _parentId = DefineProperty("ParentId", ["properties", "parent", "id"], isOutput: true); + _state = DefineProperty("State", ["properties", "state"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _tenant = DefineProperty("Tenant", ["properties", "tenant"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementLock.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementLock.cs index 01e9560b49d97..a4b0f3f4345d5 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementLock.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementLock.cs @@ -21,8 +21,12 @@ public partial class ManagementLock : ProvisionableResource /// /// The name of lock. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The level of the lock. Possible values are: NotSpecified, CanNotDelete, @@ -30,34 +34,52 @@ public partial class ManagementLock : ProvisionableResource /// modify the resources, but not delete. ReadOnly means authorized users /// can only read from a resource, but they can't modify or delete it. /// - public BicepValue Level { get => _level; set => _level.Assign(value); } - private readonly BicepValue _level; + public BicepValue Level + { + get { Initialize(); return _level!; } + set { Initialize(); _level!.Assign(value); } + } + private BicepValue? _level; /// /// Notes about the lock. Maximum of 512 characters. /// - public BicepValue Notes { get => _notes; set => _notes.Assign(value); } - private readonly BicepValue _notes; + public BicepValue Notes + { + get { Initialize(); return _notes!; } + set { Initialize(); _notes!.Assign(value); } + } + private BicepValue? _notes; /// /// The owners of the lock. /// - public BicepList Owners { get => _owners; set => _owners.Assign(value); } - private readonly BicepList _owners; + public BicepList Owners + { + get { Initialize(); return _owners!; } + set { Initialize(); _owners!.Assign(value); } + } + private BicepList? _owners; /// /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Azure Resource Manager metadata containing createdBy and modifiedBy /// information. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ManagementLock. @@ -72,12 +94,19 @@ public partial class ManagementLock : ProvisionableResource public ManagementLock(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Authorization/locks", resourceVersion ?? "2020-05-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _level = BicepValue.DefineProperty(this, "Level", ["properties", "level"], isRequired: true); - _notes = BicepValue.DefineProperty(this, "Notes", ["properties", "notes"]); - _owners = BicepList.DefineProperty(this, "Owners", ["properties", "owners"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagementLock. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _level = DefineProperty("Level", ["properties", "level"], isRequired: true); + _notes = DefineProperty("Notes", ["properties", "notes"]); + _owners = DefineListProperty("Owners", ["properties", "owners"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ApiProfile.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ApiProfile.cs index bbb487d9faa5f..84ab61d3a6776 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ApiProfile.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ApiProfile.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,35 @@ public partial class ApiProfile : ProvisionableConstruct /// /// Gets the ProfileVersion. /// - public BicepValue ProfileVersion { get => _profileVersion; } - private readonly BicepValue _profileVersion; + public BicepValue ProfileVersion + { + get { Initialize(); return _profileVersion!; } + } + private BicepValue? _profileVersion; /// /// Gets the ApiVersion. /// - public BicepValue ApiVersion { get => _apiVersion; } - private readonly BicepValue _apiVersion; + public BicepValue ApiVersion + { + get { Initialize(); return _apiVersion!; } + } + private BicepValue? _apiVersion; /// /// Creates a new ApiProfile. /// public ApiProfile() { - _profileVersion = BicepValue.DefineProperty(this, "ProfileVersion", ["profileVersion"], isOutput: true); - _apiVersion = BicepValue.DefineProperty(this, "ApiVersion", ["apiVersion"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ApiProfile. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _profileVersion = DefineProperty("ProfileVersion", ["profileVersion"], isOutput: true); + _apiVersion = DefineProperty("ApiVersion", ["apiVersion"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationArtifact.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationArtifact.cs index 16c17f83d0f55..34647456dd1f8 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationArtifact.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationArtifact.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,45 @@ public partial class ArmApplicationArtifact : ProvisionableConstruct /// /// The managed application artifact name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The managed application artifact blob uri. /// - public BicepValue Uri { get => _uri; } - private readonly BicepValue _uri; + public BicepValue Uri + { + get { Initialize(); return _uri!; } + } + private BicepValue? _uri; /// /// The managed application artifact type. /// - public BicepValue ArtifactType { get => _artifactType; } - private readonly BicepValue _artifactType; + public BicepValue ArtifactType + { + get { Initialize(); return _artifactType!; } + } + private BicepValue? _artifactType; /// /// Creates a new ArmApplicationArtifact. /// public ArmApplicationArtifact() { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _uri = BicepValue.DefineProperty(this, "Uri", ["uri"], isOutput: true); - _artifactType = BicepValue.DefineProperty(this, "ArtifactType", ["type"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ArmApplicationArtifact. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isOutput: true); + _uri = DefineProperty("Uri", ["uri"], isOutput: true); + _artifactType = DefineProperty("ArtifactType", ["type"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationAuthorization.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationAuthorization.cs index 0fce13f253fa8..48d19b0d011aa 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationAuthorization.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationAuthorization.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -18,8 +20,12 @@ public partial class ArmApplicationAuthorization : ProvisionableConstruct /// provider will use to call ARM to manage the managed application /// resources. /// - public BicepValue PrincipalId { get => _principalId; set => _principalId.Assign(value); } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + set { Initialize(); _principalId!.Assign(value); } + } + private BicepValue? _principalId; /// /// The provider's role definition identifier. This role will define @@ -27,15 +33,27 @@ public partial class ArmApplicationAuthorization : ProvisionableConstruct /// application's container resource group. This role definition /// cannot have permission to delete the resource group. /// - public BicepValue RoleDefinitionId { get => _roleDefinitionId; set => _roleDefinitionId.Assign(value); } - private readonly BicepValue _roleDefinitionId; + public BicepValue RoleDefinitionId + { + get { Initialize(); return _roleDefinitionId!; } + set { Initialize(); _roleDefinitionId!.Assign(value); } + } + private BicepValue? _roleDefinitionId; /// /// Creates a new ArmApplicationAuthorization. /// public ArmApplicationAuthorization() { - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["principalId"]); - _roleDefinitionId = BicepValue.DefineProperty(this, "RoleDefinitionId", ["roleDefinitionId"]); + } + + /// + /// Define all the provisionable properties of ArmApplicationAuthorization. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _principalId = DefineProperty("PrincipalId", ["principalId"]); + _roleDefinitionId = DefineProperty("RoleDefinitionId", ["roleDefinitionId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationDefinitionArtifact.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationDefinitionArtifact.cs index 9de3cd3b90fca..7ae572fd47a22 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationDefinitionArtifact.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationDefinitionArtifact.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,49 @@ public partial class ArmApplicationDefinitionArtifact : ProvisionableConstruct /// /// The managed application definition artifact name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The managed application definition artifact blob uri. /// - public BicepValue Uri { get => _uri; set => _uri.Assign(value); } - private readonly BicepValue _uri; + public BicepValue Uri + { + get { Initialize(); return _uri!; } + set { Initialize(); _uri!.Assign(value); } + } + private BicepValue? _uri; /// /// The managed application definition artifact type. /// - public BicepValue ArtifactType { get => _artifactType; set => _artifactType.Assign(value); } - private readonly BicepValue _artifactType; + public BicepValue ArtifactType + { + get { Initialize(); return _artifactType!; } + set { Initialize(); _artifactType!.Assign(value); } + } + private BicepValue? _artifactType; /// /// Creates a new ArmApplicationDefinitionArtifact. /// public ArmApplicationDefinitionArtifact() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _uri = BicepValue.DefineProperty(this, "Uri", ["uri"]); - _artifactType = BicepValue.DefineProperty(this, "ArtifactType", ["type"]); + } + + /// + /// Define all the provisionable properties of + /// ArmApplicationDefinitionArtifact. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _uri = DefineProperty("Uri", ["uri"]); + _artifactType = DefineProperty("ArtifactType", ["type"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationDetails.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationDetails.cs index 3b9cde7938253..ce6dd1a07bf9f 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationDetails.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationDetails.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,45 @@ public partial class ArmApplicationDetails : ProvisionableConstruct /// /// The client Oid. /// - public BicepValue ObjectId { get => _objectId; } - private readonly BicepValue _objectId; + public BicepValue ObjectId + { + get { Initialize(); return _objectId!; } + } + private BicepValue? _objectId; /// /// The client Puid. /// - public BicepValue Puid { get => _puid; } - private readonly BicepValue _puid; + public BicepValue Puid + { + get { Initialize(); return _puid!; } + } + private BicepValue? _puid; /// /// The client application Id. /// - public BicepValue ApplicationId { get => _applicationId; } - private readonly BicepValue _applicationId; + public BicepValue ApplicationId + { + get { Initialize(); return _applicationId!; } + } + private BicepValue? _applicationId; /// /// Creates a new ArmApplicationDetails. /// public ArmApplicationDetails() { - _objectId = BicepValue.DefineProperty(this, "ObjectId", ["oid"], isOutput: true); - _puid = BicepValue.DefineProperty(this, "Puid", ["puid"], isOutput: true); - _applicationId = BicepValue.DefineProperty(this, "ApplicationId", ["applicationId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ArmApplicationDetails. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _objectId = DefineProperty("ObjectId", ["oid"], isOutput: true); + _puid = DefineProperty("Puid", ["puid"], isOutput: true); + _applicationId = DefineProperty("ApplicationId", ["applicationId"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationJitAccessPolicy.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationJitAccessPolicy.cs index 7169bb212541f..4a535e3466d34 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationJitAccessPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationJitAccessPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,36 +19,61 @@ public partial class ArmApplicationJitAccessPolicy : ProvisionableConstruct /// /// Whether the JIT access is enabled. /// - public BicepValue JitAccessEnabled { get => _jitAccessEnabled; set => _jitAccessEnabled.Assign(value); } - private readonly BicepValue _jitAccessEnabled; + public BicepValue JitAccessEnabled + { + get { Initialize(); return _jitAccessEnabled!; } + set { Initialize(); _jitAccessEnabled!.Assign(value); } + } + private BicepValue? _jitAccessEnabled; /// /// JIT approval mode. /// - public BicepValue JitApprovalMode { get => _jitApprovalMode; set => _jitApprovalMode.Assign(value); } - private readonly BicepValue _jitApprovalMode; + public BicepValue JitApprovalMode + { + get { Initialize(); return _jitApprovalMode!; } + set { Initialize(); _jitApprovalMode!.Assign(value); } + } + private BicepValue? _jitApprovalMode; /// /// The JIT approvers. /// - public BicepList JitApprovers { get => _jitApprovers; set => _jitApprovers.Assign(value); } - private readonly BicepList _jitApprovers; + public BicepList JitApprovers + { + get { Initialize(); return _jitApprovers!; } + set { Initialize(); _jitApprovers!.Assign(value); } + } + private BicepList? _jitApprovers; /// /// The maximum duration JIT access is granted. This is an ISO8601 time /// period value. /// - public BicepValue MaximumJitAccessDuration { get => _maximumJitAccessDuration; set => _maximumJitAccessDuration.Assign(value); } - private readonly BicepValue _maximumJitAccessDuration; + public BicepValue MaximumJitAccessDuration + { + get { Initialize(); return _maximumJitAccessDuration!; } + set { Initialize(); _maximumJitAccessDuration!.Assign(value); } + } + private BicepValue? _maximumJitAccessDuration; /// /// Creates a new ArmApplicationJitAccessPolicy. /// public ArmApplicationJitAccessPolicy() { - _jitAccessEnabled = BicepValue.DefineProperty(this, "JitAccessEnabled", ["jitAccessEnabled"]); - _jitApprovalMode = BicepValue.DefineProperty(this, "JitApprovalMode", ["jitApprovalMode"]); - _jitApprovers = BicepList.DefineProperty(this, "JitApprovers", ["jitApprovers"]); - _maximumJitAccessDuration = BicepValue.DefineProperty(this, "MaximumJitAccessDuration", ["maximumJitAccessDuration"], format: "P"); + } + + /// + /// Define all the provisionable properties of + /// ArmApplicationJitAccessPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _jitAccessEnabled = DefineProperty("JitAccessEnabled", ["jitAccessEnabled"]); + _jitApprovalMode = DefineProperty("JitApprovalMode", ["jitApprovalMode"]); + _jitApprovers = DefineListProperty("JitApprovers", ["jitApprovers"]); + _maximumJitAccessDuration = DefineProperty("MaximumJitAccessDuration", ["maximumJitAccessDuration"], format: "P"); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationManagedIdentity.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationManagedIdentity.cs index e3d8d848cf6b5..d87f80134b072 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationManagedIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationManagedIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,37 +19,60 @@ public partial class ArmApplicationManagedIdentity : ProvisionableConstruct /// /// The principal ID of resource identity. /// - public BicepValue PrincipalId { get => _principalId; } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + } + private BicepValue? _principalId; /// /// The tenant ID of resource. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// The identity type. /// - public BicepValue IdentityType { get => _identityType; set => _identityType.Assign(value); } - private readonly BicepValue _identityType; + public BicepValue IdentityType + { + get { Initialize(); return _identityType!; } + set { Initialize(); _identityType!.Assign(value); } + } + private BicepValue? _identityType; /// /// The list of user identities associated with the resource. The user /// identity dictionary key references will be resource ids in the form: /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. /// - public BicepDictionary UserAssignedIdentities { get => _userAssignedIdentities; set => _userAssignedIdentities.Assign(value); } - private readonly BicepDictionary _userAssignedIdentities; + public BicepDictionary UserAssignedIdentities + { + get { Initialize(); return _userAssignedIdentities!; } + set { Initialize(); _userAssignedIdentities!.Assign(value); } + } + private BicepDictionary? _userAssignedIdentities; /// /// Creates a new ArmApplicationManagedIdentity. /// public ArmApplicationManagedIdentity() { - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["principalId"], isOutput: true); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); - _identityType = BicepValue.DefineProperty(this, "IdentityType", ["type"]); - _userAssignedIdentities = BicepDictionary.DefineProperty(this, "UserAssignedIdentities", ["userAssignedIdentities"]); + } + + /// + /// Define all the provisionable properties of + /// ArmApplicationManagedIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _principalId = DefineProperty("PrincipalId", ["principalId"], isOutput: true); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); + _identityType = DefineProperty("IdentityType", ["type"]); + _userAssignedIdentities = DefineDictionaryProperty("UserAssignedIdentities", ["userAssignedIdentities"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationNotificationEndpoint.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationNotificationEndpoint.cs index 3c3d201a0e2b7..fbe6d0e07be91 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationNotificationEndpoint.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationNotificationEndpoint.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,14 +18,27 @@ public partial class ArmApplicationNotificationEndpoint : ProvisionableConstruct /// /// The managed application notification endpoint uri. /// - public BicepValue Uri { get => _uri; set => _uri.Assign(value); } - private readonly BicepValue _uri; + public BicepValue Uri + { + get { Initialize(); return _uri!; } + set { Initialize(); _uri!.Assign(value); } + } + private BicepValue? _uri; /// /// Creates a new ArmApplicationNotificationEndpoint. /// public ArmApplicationNotificationEndpoint() { - _uri = BicepValue.DefineProperty(this, "Uri", ["uri"]); + } + + /// + /// Define all the provisionable properties of + /// ArmApplicationNotificationEndpoint. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _uri = DefineProperty("Uri", ["uri"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPackageContact.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPackageContact.cs index fc1c6673081b4..3ec021c62b533 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPackageContact.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPackageContact.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,45 @@ public partial class ArmApplicationPackageContact : ProvisionableConstruct /// /// The contact name. /// - public BicepValue ContactName { get => _contactName; } - private readonly BicepValue _contactName; + public BicepValue ContactName + { + get { Initialize(); return _contactName!; } + } + private BicepValue? _contactName; /// /// The contact email. /// - public BicepValue Email { get => _email; } - private readonly BicepValue _email; + public BicepValue Email + { + get { Initialize(); return _email!; } + } + private BicepValue? _email; /// /// The contact phone number. /// - public BicepValue Phone { get => _phone; } - private readonly BicepValue _phone; + public BicepValue Phone + { + get { Initialize(); return _phone!; } + } + private BicepValue? _phone; /// /// Creates a new ArmApplicationPackageContact. /// public ArmApplicationPackageContact() { - _contactName = BicepValue.DefineProperty(this, "ContactName", ["contactName"], isOutput: true); - _email = BicepValue.DefineProperty(this, "Email", ["email"], isOutput: true); - _phone = BicepValue.DefineProperty(this, "Phone", ["phone"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ArmApplicationPackageContact. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _contactName = DefineProperty("ContactName", ["contactName"], isOutput: true); + _email = DefineProperty("Email", ["email"], isOutput: true); + _phone = DefineProperty("Phone", ["phone"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs index 37d09f961dee4..51823d02cd27b 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,38 @@ public partial class ArmApplicationPackageLockingPolicy : ProvisionableConstruct /// /// The deny assignment excluded actions. /// - public BicepList AllowedActions { get => _allowedActions; set => _allowedActions.Assign(value); } - private readonly BicepList _allowedActions; + public BicepList AllowedActions + { + get { Initialize(); return _allowedActions!; } + set { Initialize(); _allowedActions!.Assign(value); } + } + private BicepList? _allowedActions; /// /// The deny assignment excluded data actions. /// - public BicepList AllowedDataActions { get => _allowedDataActions; set => _allowedDataActions.Assign(value); } - private readonly BicepList _allowedDataActions; + public BicepList AllowedDataActions + { + get { Initialize(); return _allowedDataActions!; } + set { Initialize(); _allowedDataActions!.Assign(value); } + } + private BicepList? _allowedDataActions; /// /// Creates a new ArmApplicationPackageLockingPolicy. /// public ArmApplicationPackageLockingPolicy() { - _allowedActions = BicepList.DefineProperty(this, "AllowedActions", ["allowedActions"]); - _allowedDataActions = BicepList.DefineProperty(this, "AllowedDataActions", ["allowedDataActions"]); + } + + /// + /// Define all the provisionable properties of + /// ArmApplicationPackageLockingPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _allowedActions = DefineListProperty("AllowedActions", ["allowedActions"]); + _allowedDataActions = DefineListProperty("AllowedDataActions", ["allowedDataActions"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPackageSupportUris.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPackageSupportUris.cs index 0d75b879325b1..cbeaeb31394fb 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPackageSupportUris.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPackageSupportUris.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,36 @@ public partial class ArmApplicationPackageSupportUris : ProvisionableConstruct /// /// The public azure support URL. /// - public BicepValue AzurePublicCloudUri { get => _azurePublicCloudUri; } - private readonly BicepValue _azurePublicCloudUri; + public BicepValue AzurePublicCloudUri + { + get { Initialize(); return _azurePublicCloudUri!; } + } + private BicepValue? _azurePublicCloudUri; /// /// The government cloud support URL. /// - public BicepValue AzureGovernmentUri { get => _azureGovernmentUri; } - private readonly BicepValue _azureGovernmentUri; + public BicepValue AzureGovernmentUri + { + get { Initialize(); return _azureGovernmentUri!; } + } + private BicepValue? _azureGovernmentUri; /// /// Creates a new ArmApplicationPackageSupportUris. /// public ArmApplicationPackageSupportUris() { - _azurePublicCloudUri = BicepValue.DefineProperty(this, "AzurePublicCloudUri", ["publicAzure"], isOutput: true); - _azureGovernmentUri = BicepValue.DefineProperty(this, "AzureGovernmentUri", ["governmentCloud"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ArmApplicationPackageSupportUris. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _azurePublicCloudUri = DefineProperty("AzurePublicCloudUri", ["publicAzure"], isOutput: true); + _azureGovernmentUri = DefineProperty("AzureGovernmentUri", ["governmentCloud"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPolicy.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPolicy.cs index c68d46b4bb2c3..718ebf9186c90 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class ArmApplicationPolicy : ProvisionableConstruct /// /// The policy name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The policy definition Id. /// - public BicepValue PolicyDefinitionId { get => _policyDefinitionId; set => _policyDefinitionId.Assign(value); } - private readonly BicepValue _policyDefinitionId; + public BicepValue PolicyDefinitionId + { + get { Initialize(); return _policyDefinitionId!; } + set { Initialize(); _policyDefinitionId!.Assign(value); } + } + private BicepValue? _policyDefinitionId; /// /// The policy parameters. /// - public BicepValue Parameters { get => _parameters; set => _parameters.Assign(value); } - private readonly BicepValue _parameters; + public BicepValue Parameters + { + get { Initialize(); return _parameters!; } + set { Initialize(); _parameters!.Assign(value); } + } + private BicepValue? _parameters; /// /// Creates a new ArmApplicationPolicy. /// public ArmApplicationPolicy() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _policyDefinitionId = BicepValue.DefineProperty(this, "PolicyDefinitionId", ["policyDefinitionId"]); - _parameters = BicepValue.DefineProperty(this, "Parameters", ["parameters"]); + } + + /// + /// Define all the provisionable properties of ArmApplicationPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _policyDefinitionId = DefineProperty("PolicyDefinitionId", ["policyDefinitionId"]); + _parameters = DefineProperty("Parameters", ["parameters"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationSku.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationSku.cs index acf3f5004c574..2eec0b087ec16 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationSku.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,49 +18,81 @@ public partial class ArmApplicationSku : ProvisionableConstruct /// /// The SKU name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The SKU tier. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// The SKU size. /// - public BicepValue Size { get => _size; set => _size.Assign(value); } - private readonly BicepValue _size; + public BicepValue Size + { + get { Initialize(); return _size!; } + set { Initialize(); _size!.Assign(value); } + } + private BicepValue? _size; /// /// The SKU family. /// - public BicepValue Family { get => _family; set => _family.Assign(value); } - private readonly BicepValue _family; + public BicepValue Family + { + get { Initialize(); return _family!; } + set { Initialize(); _family!.Assign(value); } + } + private BicepValue? _family; /// /// The SKU model. /// - public BicepValue Model { get => _model; set => _model.Assign(value); } - private readonly BicepValue _model; + public BicepValue Model + { + get { Initialize(); return _model!; } + set { Initialize(); _model!.Assign(value); } + } + private BicepValue? _model; /// /// The SKU capacity. /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// Creates a new ArmApplicationSku. /// public ArmApplicationSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); - _size = BicepValue.DefineProperty(this, "Size", ["size"]); - _family = BicepValue.DefineProperty(this, "Family", ["family"]); - _model = BicepValue.DefineProperty(this, "Model", ["model"]); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); + } + + /// + /// Define all the provisionable properties of ArmApplicationSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"]); + _size = DefineProperty("Size", ["size"]); + _family = DefineProperty("Family", ["family"]); + _model = DefineProperty("Model", ["model"]); + _capacity = DefineProperty("Capacity", ["capacity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationUserAssignedIdentity.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationUserAssignedIdentity.cs index dcb516b77b064..ccb6810e46b99 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationUserAssignedIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmApplicationUserAssignedIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,36 @@ public partial class ArmApplicationUserAssignedIdentity : ProvisionableConstruct /// /// The principal id of user assigned identity. /// - public BicepValue PrincipalId { get => _principalId; } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + } + private BicepValue? _principalId; /// /// The tenant id of user assigned identity. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// Creates a new ArmApplicationUserAssignedIdentity. /// public ArmApplicationUserAssignedIdentity() { - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["principalId"], isOutput: true); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ArmApplicationUserAssignedIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _principalId = DefineProperty("PrincipalId", ["principalId"], isOutput: true); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDependency.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDependency.cs index 34cff150c936d..7e37c0c81fab5 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDependency.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDependency.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,35 +20,55 @@ public partial class ArmDependency : ProvisionableConstruct /// /// The list of dependencies. /// - public BicepList DependsOn { get => _dependsOn; } - private readonly BicepList _dependsOn; + public BicepList DependsOn + { + get { Initialize(); return _dependsOn!; } + } + private BicepList? _dependsOn; /// /// The ID of the dependency. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The dependency resource type. /// - public BicepValue ResourceType { get => _resourceType; } - private readonly BicepValue _resourceType; + public BicepValue ResourceType + { + get { Initialize(); return _resourceType!; } + } + private BicepValue? _resourceType; /// /// The dependency resource name. /// - public BicepValue ResourceName { get => _resourceName; } - private readonly BicepValue _resourceName; + public BicepValue ResourceName + { + get { Initialize(); return _resourceName!; } + } + private BicepValue? _resourceName; /// /// Creates a new ArmDependency. /// public ArmDependency() { - _dependsOn = BicepList.DefineProperty(this, "DependsOn", ["dependsOn"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _resourceType = BicepValue.DefineProperty(this, "ResourceType", ["resourceType"], isOutput: true); - _resourceName = BicepValue.DefineProperty(this, "ResourceName", ["resourceName"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ArmDependency. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _dependsOn = DefineListProperty("DependsOn", ["dependsOn"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _resourceType = DefineProperty("ResourceType", ["resourceType"], isOutput: true); + _resourceName = DefineProperty("ResourceName", ["resourceName"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentContent.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentContent.cs index 7109934871077..845c49b46ad2b 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentContent.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentContent.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,28 +20,47 @@ public partial class ArmDeploymentContent : ProvisionableConstruct /// /// The location to store the deployment data. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The deployment properties. /// - public BicepValue Properties { get => _properties; } - private readonly BicepValue _properties; + public ArmDeploymentProperties Properties + { + get { Initialize(); return _properties!; } + } + private ArmDeploymentProperties? _properties; /// /// Deployment tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Creates a new ArmDeploymentContent. /// public ArmDeploymentContent() { - _location = BicepValue.DefineProperty(this, "Location", ["location"]); - _properties = BicepValue.DefineProperty(this, "Properties", ["properties"], isOutput: true); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); + } + + /// + /// Define all the provisionable properties of ArmDeploymentContent. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _location = DefineProperty("Location", ["location"]); + _properties = DefineModelProperty("Properties", ["properties"], isOutput: true); + _tags = DefineDictionaryProperty("Tags", ["tags"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentParametersLink.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentParametersLink.cs index b16decd98e0d8..67636a62a09df 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentParametersLink.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentParametersLink.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class ArmDeploymentParametersLink : ProvisionableConstruct /// /// The URI of the parameters file. /// - public BicepValue Uri { get => _uri; set => _uri.Assign(value); } - private readonly BicepValue _uri; + public BicepValue Uri + { + get { Initialize(); return _uri!; } + set { Initialize(); _uri!.Assign(value); } + } + private BicepValue? _uri; /// /// If included, must match the ContentVersion in the template. /// - public BicepValue ContentVersion { get => _contentVersion; set => _contentVersion.Assign(value); } - private readonly BicepValue _contentVersion; + public BicepValue ContentVersion + { + get { Initialize(); return _contentVersion!; } + set { Initialize(); _contentVersion!.Assign(value); } + } + private BicepValue? _contentVersion; /// /// Creates a new ArmDeploymentParametersLink. /// public ArmDeploymentParametersLink() { - _uri = BicepValue.DefineProperty(this, "Uri", ["uri"]); - _contentVersion = BicepValue.DefineProperty(this, "ContentVersion", ["contentVersion"]); + } + + /// + /// Define all the provisionable properties of ArmDeploymentParametersLink. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _uri = DefineProperty("Uri", ["uri"]); + _contentVersion = DefineProperty("ContentVersion", ["contentVersion"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentProperties.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentProperties.cs index b07cd00ece470..af1c86323dfe7 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentProperties.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -32,15 +34,23 @@ public partial class ArmDeploymentProperties : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Template { get => _template; set => _template.Assign(value); } - private readonly BicepValue _template; + public BicepValue Template + { + get { Initialize(); return _template!; } + set { Initialize(); _template!.Assign(value); } + } + private BicepValue? _template; /// /// The URI of the template. Use either the templateLink property or the /// template property, but not both. /// - public BicepValue TemplateLink { get => _templateLink; set => _templateLink.Assign(value); } - private readonly BicepValue _templateLink; + public ArmDeploymentTemplateLink TemplateLink + { + get { Initialize(); return _templateLink!; } + set { Initialize(); AssignOrReplace(ref _templateLink, value); } + } + private ArmDeploymentTemplateLink? _templateLink; /// /// Name and value pairs that define the deployment parameters for the @@ -63,16 +73,24 @@ public partial class ArmDeploymentProperties : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Parameters { get => _parameters; set => _parameters.Assign(value); } - private readonly BicepValue _parameters; + public BicepValue Parameters + { + get { Initialize(); return _parameters!; } + set { Initialize(); _parameters!.Assign(value); } + } + private BicepValue? _parameters; /// /// The URI of parameters file. You use this element to link to an existing /// parameters file. Use either the parametersLink property or the /// parameters property, but not both. /// - public BicepValue ParametersLink { get => _parametersLink; set => _parametersLink.Assign(value); } - private readonly BicepValue _parametersLink; + public ArmDeploymentParametersLink ParametersLink + { + get { Initialize(); return _parametersLink!; } + set { Initialize(); AssignOrReplace(ref _parametersLink, value); } + } + private ArmDeploymentParametersLink? _parametersLink; /// /// The mode that is used to deploy resources. This value can be either @@ -83,8 +101,11 @@ public partial class ArmDeploymentProperties : ProvisionableConstruct /// are deleted. Be careful when using Complete mode as you may /// unintentionally delete resources. /// - public BicepValue Mode { get => _mode; } - private readonly BicepValue _mode; + public BicepValue Mode + { + get { Initialize(); return _mode!; } + } + private BicepValue? _mode; /// /// Specifies the type of information to log for debugging. The permitted @@ -96,34 +117,54 @@ public partial class ArmDeploymentProperties : ProvisionableConstruct /// expose sensitive data that is retrieved through the deployment /// operations. /// - public BicepValue DebugSettingDetailLevel { get => _debugSettingDetailLevel; set => _debugSettingDetailLevel.Assign(value); } - private readonly BicepValue _debugSettingDetailLevel; + public BicepValue DebugSettingDetailLevel + { + get { Initialize(); return _debugSettingDetailLevel!; } + set { Initialize(); _debugSettingDetailLevel!.Assign(value); } + } + private BicepValue? _debugSettingDetailLevel; /// /// The deployment on error behavior. /// - public BicepValue ErrorDeployment { get => _errorDeployment; set => _errorDeployment.Assign(value); } - private readonly BicepValue _errorDeployment; + public ErrorDeployment ErrorDeployment + { + get { Initialize(); return _errorDeployment!; } + set { Initialize(); AssignOrReplace(ref _errorDeployment, value); } + } + private ErrorDeployment? _errorDeployment; /// /// The scope to be used for evaluation of parameters, variables and /// functions in a nested template. /// - public BicepValue ExpressionEvaluationScope { get => _expressionEvaluationScope; set => _expressionEvaluationScope.Assign(value); } - private readonly BicepValue _expressionEvaluationScope; + public BicepValue ExpressionEvaluationScope + { + get { Initialize(); return _expressionEvaluationScope!; } + set { Initialize(); _expressionEvaluationScope!.Assign(value); } + } + private BicepValue? _expressionEvaluationScope; /// /// Creates a new ArmDeploymentProperties. /// public ArmDeploymentProperties() { - _template = BicepValue.DefineProperty(this, "Template", ["template"]); - _templateLink = BicepValue.DefineProperty(this, "TemplateLink", ["templateLink"]); - _parameters = BicepValue.DefineProperty(this, "Parameters", ["parameters"]); - _parametersLink = BicepValue.DefineProperty(this, "ParametersLink", ["parametersLink"]); - _mode = BicepValue.DefineProperty(this, "Mode", ["mode"], isOutput: true); - _debugSettingDetailLevel = BicepValue.DefineProperty(this, "DebugSettingDetailLevel", ["debugSetting", "detailLevel"]); - _errorDeployment = BicepValue.DefineProperty(this, "ErrorDeployment", ["onErrorDeployment"]); - _expressionEvaluationScope = BicepValue.DefineProperty(this, "ExpressionEvaluationScope", ["expressionEvaluationOptions", "scope"]); + } + + /// + /// Define all the provisionable properties of ArmDeploymentProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _template = DefineProperty("Template", ["template"]); + _templateLink = DefineModelProperty("TemplateLink", ["templateLink"]); + _parameters = DefineProperty("Parameters", ["parameters"]); + _parametersLink = DefineModelProperty("ParametersLink", ["parametersLink"]); + _mode = DefineProperty("Mode", ["mode"], isOutput: true); + _debugSettingDetailLevel = DefineProperty("DebugSettingDetailLevel", ["debugSetting", "detailLevel"]); + _errorDeployment = DefineModelProperty("ErrorDeployment", ["onErrorDeployment"]); + _expressionEvaluationScope = DefineProperty("ExpressionEvaluationScope", ["expressionEvaluationOptions", "scope"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentPropertiesExtended.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentPropertiesExtended.cs index 055b1aacf8fab..dd40d9b8aef09 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentPropertiesExtended.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentPropertiesExtended.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure; using Azure.Core; using Azure.Provisioning; @@ -19,26 +21,38 @@ public partial class ArmDeploymentPropertiesExtended : ProvisionableConstruct /// /// Denotes the state of provisioning. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The correlation ID of the deployment. /// - public BicepValue CorrelationId { get => _correlationId; } - private readonly BicepValue _correlationId; + public BicepValue CorrelationId + { + get { Initialize(); return _correlationId!; } + } + private BicepValue? _correlationId; /// /// The timestamp of the template deployment. /// - public BicepValue Timestamp { get => _timestamp; } - private readonly BicepValue _timestamp; + public BicepValue Timestamp + { + get { Initialize(); return _timestamp!; } + } + private BicepValue? _timestamp; /// /// The duration of the template deployment. /// - public BicepValue Duration { get => _duration; } - private readonly BicepValue _duration; + public BicepValue Duration + { + get { Initialize(); return _duration!; } + } + private BicepValue? _duration; /// /// Key/value pairs that represent deployment output. @@ -56,26 +70,38 @@ public partial class ArmDeploymentPropertiesExtended : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Outputs { get => _outputs; } - private readonly BicepValue _outputs; + public BicepValue Outputs + { + get { Initialize(); return _outputs!; } + } + private BicepValue? _outputs; /// /// The list of resource providers needed for the deployment. /// - public BicepList Providers { get => _providers; } - private readonly BicepList _providers; + public BicepList Providers + { + get { Initialize(); return _providers!; } + } + private BicepList? _providers; /// /// The list of deployment dependencies. /// - public BicepList Dependencies { get => _dependencies; } - private readonly BicepList _dependencies; + public BicepList Dependencies + { + get { Initialize(); return _dependencies!; } + } + private BicepList? _dependencies; /// /// The URI referencing the template. /// - public BicepValue TemplateLink { get => _templateLink; } - private readonly BicepValue _templateLink; + public ArmDeploymentTemplateLink TemplateLink + { + get { Initialize(); return _templateLink!; } + } + private ArmDeploymentTemplateLink? _templateLink; /// /// Deployment parameters. To assign an object to @@ -93,71 +119,104 @@ public partial class ArmDeploymentPropertiesExtended : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Parameters { get => _parameters; } - private readonly BicepValue _parameters; + public BicepValue Parameters + { + get { Initialize(); return _parameters!; } + } + private BicepValue? _parameters; /// /// The URI referencing the parameters. /// - public BicepValue ParametersLink { get => _parametersLink; } - private readonly BicepValue _parametersLink; + public ArmDeploymentParametersLink ParametersLink + { + get { Initialize(); return _parametersLink!; } + } + private ArmDeploymentParametersLink? _parametersLink; /// /// The deployment mode. Possible values are Incremental and Complete. /// - public BicepValue Mode { get => _mode; } - private readonly BicepValue _mode; + public BicepValue Mode + { + get { Initialize(); return _mode!; } + } + private BicepValue? _mode; /// /// The deployment on error behavior. /// - public BicepValue ErrorDeployment { get => _errorDeployment; } - private readonly BicepValue _errorDeployment; + public ErrorDeploymentExtended ErrorDeployment + { + get { Initialize(); return _errorDeployment!; } + } + private ErrorDeploymentExtended? _errorDeployment; /// /// The hash produced for the template. /// - public BicepValue TemplateHash { get => _templateHash; } - private readonly BicepValue _templateHash; + public BicepValue TemplateHash + { + get { Initialize(); return _templateHash!; } + } + private BicepValue? _templateHash; /// /// Array of provisioned resources. /// - public BicepList OutputResources { get => _outputResources; } - private readonly BicepList _outputResources; + public BicepList OutputResources + { + get { Initialize(); return _outputResources!; } + } + private BicepList? _outputResources; /// /// Array of validated resources. /// - public BicepList ValidatedResources { get => _validatedResources; } - private readonly BicepList _validatedResources; + public BicepList ValidatedResources + { + get { Initialize(); return _validatedResources!; } + } + private BicepList? _validatedResources; /// /// The deployment error. /// - public BicepValue Error { get => _error; } - private readonly BicepValue _error; + public BicepValue Error + { + get { Initialize(); return _error!; } + } + private BicepValue? _error; /// /// Creates a new ArmDeploymentPropertiesExtended. /// public ArmDeploymentPropertiesExtended() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); - _correlationId = BicepValue.DefineProperty(this, "CorrelationId", ["correlationId"], isOutput: true); - _timestamp = BicepValue.DefineProperty(this, "Timestamp", ["timestamp"], isOutput: true); - _duration = BicepValue.DefineProperty(this, "Duration", ["duration"], isOutput: true, format: "P"); - _outputs = BicepValue.DefineProperty(this, "Outputs", ["outputs"], isOutput: true); - _providers = BicepList.DefineProperty(this, "Providers", ["providers"], isOutput: true); - _dependencies = BicepList.DefineProperty(this, "Dependencies", ["dependencies"], isOutput: true); - _templateLink = BicepValue.DefineProperty(this, "TemplateLink", ["templateLink"], isOutput: true); - _parameters = BicepValue.DefineProperty(this, "Parameters", ["parameters"], isOutput: true); - _parametersLink = BicepValue.DefineProperty(this, "ParametersLink", ["parametersLink"], isOutput: true); - _mode = BicepValue.DefineProperty(this, "Mode", ["mode"], isOutput: true); - _errorDeployment = BicepValue.DefineProperty(this, "ErrorDeployment", ["onErrorDeployment"], isOutput: true); - _templateHash = BicepValue.DefineProperty(this, "TemplateHash", ["templateHash"], isOutput: true); - _outputResources = BicepList.DefineProperty(this, "OutputResources", ["outputResources"], isOutput: true); - _validatedResources = BicepList.DefineProperty(this, "ValidatedResources", ["validatedResources"], isOutput: true); - _error = BicepValue.DefineProperty(this, "Error", ["error"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ArmDeploymentPropertiesExtended. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _correlationId = DefineProperty("CorrelationId", ["correlationId"], isOutput: true); + _timestamp = DefineProperty("Timestamp", ["timestamp"], isOutput: true); + _duration = DefineProperty("Duration", ["duration"], isOutput: true, format: "P"); + _outputs = DefineProperty("Outputs", ["outputs"], isOutput: true); + _providers = DefineListProperty("Providers", ["providers"], isOutput: true); + _dependencies = DefineListProperty("Dependencies", ["dependencies"], isOutput: true); + _templateLink = DefineModelProperty("TemplateLink", ["templateLink"], isOutput: true); + _parameters = DefineProperty("Parameters", ["parameters"], isOutput: true); + _parametersLink = DefineModelProperty("ParametersLink", ["parametersLink"], isOutput: true); + _mode = DefineProperty("Mode", ["mode"], isOutput: true); + _errorDeployment = DefineModelProperty("ErrorDeployment", ["onErrorDeployment"], isOutput: true); + _templateHash = DefineProperty("TemplateHash", ["templateHash"], isOutput: true); + _outputResources = DefineListProperty("OutputResources", ["outputResources"], isOutput: true); + _validatedResources = DefineListProperty("ValidatedResources", ["validatedResources"], isOutput: true); + _error = DefineProperty("Error", ["error"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentScriptManagedIdentity.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentScriptManagedIdentity.cs index 51076304470bc..8c5da544ce769 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentScriptManagedIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentScriptManagedIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,49 @@ public partial class ArmDeploymentScriptManagedIdentity : ProvisionableConstruct /// /// Type of the managed identity. /// - public BicepValue IdentityType { get => _identityType; set => _identityType.Assign(value); } - private readonly BicepValue _identityType; + public BicepValue IdentityType + { + get { Initialize(); return _identityType!; } + set { Initialize(); _identityType!.Assign(value); } + } + private BicepValue? _identityType; /// /// ID of the Azure Active Directory. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// The list of user-assigned managed identities associated with the /// resource. Key is the Azure resource Id of the managed identity. /// - public BicepDictionary UserAssignedIdentities { get => _userAssignedIdentities; set => _userAssignedIdentities.Assign(value); } - private readonly BicepDictionary _userAssignedIdentities; + public BicepDictionary UserAssignedIdentities + { + get { Initialize(); return _userAssignedIdentities!; } + set { Initialize(); _userAssignedIdentities!.Assign(value); } + } + private BicepDictionary? _userAssignedIdentities; /// /// Creates a new ArmDeploymentScriptManagedIdentity. /// public ArmDeploymentScriptManagedIdentity() { - _identityType = BicepValue.DefineProperty(this, "IdentityType", ["type"]); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); - _userAssignedIdentities = BicepDictionary.DefineProperty(this, "UserAssignedIdentities", ["userAssignedIdentities"]); + } + + /// + /// Define all the provisionable properties of + /// ArmDeploymentScriptManagedIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _identityType = DefineProperty("IdentityType", ["type"]); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); + _userAssignedIdentities = DefineDictionaryProperty("UserAssignedIdentities", ["userAssignedIdentities"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentTemplateLink.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentTemplateLink.cs index 993b5cde1389f..c30b97c19d3c0 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentTemplateLink.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentTemplateLink.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,23 @@ public partial class ArmDeploymentTemplateLink : ProvisionableConstruct /// The URI of the template to deploy. Use either the uri or id property, /// but not both. /// - public BicepValue Uri { get => _uri; set => _uri.Assign(value); } - private readonly BicepValue _uri; + public BicepValue Uri + { + get { Initialize(); return _uri!; } + set { Initialize(); _uri!.Assign(value); } + } + private BicepValue? _uri; /// /// The resource id of a Template Spec. Use either the id or uri property, /// but not both. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// The relativePath property can be used to deploy a linked template at a @@ -34,31 +44,51 @@ public partial class ArmDeploymentTemplateLink : ProvisionableConstruct /// TemplateSpec. If the parent was linked with a URI, the child /// deployment will be a combination of the parent and relativePath URIs. /// - public BicepValue RelativePath { get => _relativePath; set => _relativePath.Assign(value); } - private readonly BicepValue _relativePath; + public BicepValue RelativePath + { + get { Initialize(); return _relativePath!; } + set { Initialize(); _relativePath!.Assign(value); } + } + private BicepValue? _relativePath; /// /// If included, must match the ContentVersion in the template. /// - public BicepValue ContentVersion { get => _contentVersion; set => _contentVersion.Assign(value); } - private readonly BicepValue _contentVersion; + public BicepValue ContentVersion + { + get { Initialize(); return _contentVersion!; } + set { Initialize(); _contentVersion!.Assign(value); } + } + private BicepValue? _contentVersion; /// /// The query string (for example, a SAS token) to be used with the /// templateLink URI. /// - public BicepValue QueryString { get => _queryString; set => _queryString.Assign(value); } - private readonly BicepValue _queryString; + public BicepValue QueryString + { + get { Initialize(); return _queryString!; } + set { Initialize(); _queryString!.Assign(value); } + } + private BicepValue? _queryString; /// /// Creates a new ArmDeploymentTemplateLink. /// public ArmDeploymentTemplateLink() { - _uri = BicepValue.DefineProperty(this, "Uri", ["uri"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _relativePath = BicepValue.DefineProperty(this, "RelativePath", ["relativePath"]); - _contentVersion = BicepValue.DefineProperty(this, "ContentVersion", ["contentVersion"]); - _queryString = BicepValue.DefineProperty(this, "QueryString", ["queryString"]); + } + + /// + /// Define all the provisionable properties of ArmDeploymentTemplateLink. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _uri = DefineProperty("Uri", ["uri"]); + _id = DefineProperty("Id", ["id"]); + _relativePath = DefineProperty("RelativePath", ["relativePath"]); + _contentVersion = DefineProperty("ContentVersion", ["contentVersion"]); + _queryString = DefineProperty("QueryString", ["queryString"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentWhatIfProperties.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentWhatIfProperties.cs index 716a7768b3651..ab580d2739619 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentWhatIfProperties.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmDeploymentWhatIfProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.Resources; @@ -15,14 +17,27 @@ public partial class ArmDeploymentWhatIfProperties : ArmDeploymentProperties /// /// The format of the What-If results. /// - public BicepValue WhatIfResultFormat { get => _whatIfResultFormat; set => _whatIfResultFormat.Assign(value); } - private readonly BicepValue _whatIfResultFormat; + public BicepValue WhatIfResultFormat + { + get { Initialize(); return _whatIfResultFormat!; } + set { Initialize(); _whatIfResultFormat!.Assign(value); } + } + private BicepValue? _whatIfResultFormat; /// /// Creates a new ArmDeploymentWhatIfProperties. /// public ArmDeploymentWhatIfProperties() : base() { - _whatIfResultFormat = BicepValue.DefineProperty(this, "WhatIfResultFormat", ["whatIfSettings", "resultFormat"]); + } + + /// + /// Define all the provisionable properties of + /// ArmDeploymentWhatIfProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _whatIfResultFormat = DefineProperty("WhatIfResultFormat", ["whatIfSettings", "resultFormat"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmPlan.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmPlan.cs index 7ccbdcb16ce13..2143757d34669 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmPlan.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmPlan.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,46 +18,74 @@ public partial class ArmPlan : ProvisionableConstruct /// /// A user defined name of the 3rd Party Artifact that is being procured. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The publisher of the 3rd Party Artifact that is being bought. E.g. /// NewRelic. /// - public BicepValue Publisher { get => _publisher; set => _publisher.Assign(value); } - private readonly BicepValue _publisher; + public BicepValue Publisher + { + get { Initialize(); return _publisher!; } + set { Initialize(); _publisher!.Assign(value); } + } + private BicepValue? _publisher; /// /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product /// maps to the OfferID specified for the artifact at the time of Data /// Market onboarding. /// - public BicepValue Product { get => _product; set => _product.Assign(value); } - private readonly BicepValue _product; + public BicepValue Product + { + get { Initialize(); return _product!; } + set { Initialize(); _product!.Assign(value); } + } + private BicepValue? _product; /// /// A publisher provided promotion code as provisioned in Data Market for /// the said product/artifact. /// - public BicepValue PromotionCode { get => _promotionCode; set => _promotionCode.Assign(value); } - private readonly BicepValue _promotionCode; + public BicepValue PromotionCode + { + get { Initialize(); return _promotionCode!; } + set { Initialize(); _promotionCode!.Assign(value); } + } + private BicepValue? _promotionCode; /// /// The version of the desired product/artifact. /// - public BicepValue Version { get => _version; set => _version.Assign(value); } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + set { Initialize(); _version!.Assign(value); } + } + private BicepValue? _version; /// /// Creates a new ArmPlan. /// public ArmPlan() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _publisher = BicepValue.DefineProperty(this, "Publisher", ["publisher"]); - _product = BicepValue.DefineProperty(this, "Product", ["product"]); - _promotionCode = BicepValue.DefineProperty(this, "PromotionCode", ["promotionCode"]); - _version = BicepValue.DefineProperty(this, "Version", ["version"]); + } + + /// + /// Define all the provisionable properties of ArmPlan. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _publisher = DefineProperty("Publisher", ["publisher"]); + _product = DefineProperty("Product", ["product"]); + _promotionCode = DefineProperty("PromotionCode", ["promotionCode"]); + _version = DefineProperty("Version", ["version"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmPolicyParameter.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmPolicyParameter.cs index bcffd60a7f3e0..b424afc37d6f7 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmPolicyParameter.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmPolicyParameter.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,8 +19,12 @@ public partial class ArmPolicyParameter : ProvisionableConstruct /// /// The data type of the parameter. /// - public BicepValue ParameterType { get => _parameterType; set => _parameterType.Assign(value); } - private readonly BicepValue _parameterType; + public BicepValue ParameterType + { + get { Initialize(); return _parameterType!; } + set { Initialize(); _parameterType!.Assign(value); } + } + private BicepValue? _parameterType; /// /// The allowed values for the parameter. To @@ -36,8 +42,12 @@ public partial class ArmPolicyParameter : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepList AllowedValues { get => _allowedValues; set => _allowedValues.Assign(value); } - private readonly BicepList _allowedValues; + public BicepList AllowedValues + { + get { Initialize(); return _allowedValues!; } + set { Initialize(); _allowedValues!.Assign(value); } + } + private BicepList? _allowedValues; /// /// The default value for the parameter if no value is provided. @@ -55,23 +65,39 @@ public partial class ArmPolicyParameter : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue DefaultValue { get => _defaultValue; set => _defaultValue.Assign(value); } - private readonly BicepValue _defaultValue; + public BicepValue DefaultValue + { + get { Initialize(); return _defaultValue!; } + set { Initialize(); _defaultValue!.Assign(value); } + } + private BicepValue? _defaultValue; /// /// General metadata for the parameter. /// - public BicepValue Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepValue _metadata; + public ParameterDefinitionsValueMetadata Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); AssignOrReplace(ref _metadata, value); } + } + private ParameterDefinitionsValueMetadata? _metadata; /// /// Creates a new ArmPolicyParameter. /// public ArmPolicyParameter() { - _parameterType = BicepValue.DefineProperty(this, "ParameterType", ["type"]); - _allowedValues = BicepList.DefineProperty(this, "AllowedValues", ["allowedValues"]); - _defaultValue = BicepValue.DefineProperty(this, "DefaultValue", ["defaultValue"]); - _metadata = BicepValue.DefineProperty(this, "Metadata", ["metadata"]); + } + + /// + /// Define all the provisionable properties of ArmPolicyParameter. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _parameterType = DefineProperty("ParameterType", ["type"]); + _allowedValues = DefineListProperty("AllowedValues", ["allowedValues"]); + _defaultValue = DefineProperty("DefaultValue", ["defaultValue"]); + _metadata = DefineModelProperty("Metadata", ["metadata"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmPolicyParameterValue.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmPolicyParameterValue.cs index efcf5ec7cd6e7..31d8a7ed28b95 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmPolicyParameterValue.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ArmPolicyParameterValue.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -29,14 +31,26 @@ public partial class ArmPolicyParameterValue : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// Creates a new ArmPolicyParameterValue. /// public ArmPolicyParameterValue() { - _value = BicepValue.DefineProperty(this, "Value", ["value"]); + } + + /// + /// Define all the provisionable properties of ArmPolicyParameterValue. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _value = DefineProperty("Value", ["value"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/BasicArmDependency.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/BasicArmDependency.cs index 7ff1c04538952..1ba094e60a47e 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/BasicArmDependency.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/BasicArmDependency.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,45 @@ public partial class BasicArmDependency : ProvisionableConstruct /// /// The ID of the dependency. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The dependency resource type. /// - public BicepValue ResourceType { get => _resourceType; } - private readonly BicepValue _resourceType; + public BicepValue ResourceType + { + get { Initialize(); return _resourceType!; } + } + private BicepValue? _resourceType; /// /// The dependency resource name. /// - public BicepValue ResourceName { get => _resourceName; } - private readonly BicepValue _resourceName; + public BicepValue ResourceName + { + get { Initialize(); return _resourceName!; } + } + private BicepValue? _resourceName; /// /// Creates a new BasicArmDependency. /// public BasicArmDependency() { - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _resourceType = BicepValue.DefineProperty(this, "ResourceType", ["resourceType"], isOutput: true); - _resourceName = BicepValue.DefineProperty(this, "ResourceName", ["resourceName"], isOutput: true); + } + + /// + /// Define all the provisionable properties of BasicArmDependency. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"], isOutput: true); + _resourceType = DefineProperty("ResourceType", ["resourceType"], isOutput: true); + _resourceName = DefineProperty("ResourceName", ["resourceName"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/CreateManagementGroupDetails.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/CreateManagementGroupDetails.cs index 7c2545e936efd..e5272ca718605 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/CreateManagementGroupDetails.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/CreateManagementGroupDetails.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,56 @@ public partial class CreateManagementGroupDetails : ProvisionableConstruct /// /// The version number of the object. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// The date and time when this object was last updated. /// - public BicepValue UpdatedOn { get => _updatedOn; } - private readonly BicepValue _updatedOn; + public BicepValue UpdatedOn + { + get { Initialize(); return _updatedOn!; } + } + private BicepValue? _updatedOn; /// /// The identity of the principal or process that updated the object. /// - public BicepValue UpdatedBy { get => _updatedBy; } - private readonly BicepValue _updatedBy; + public BicepValue UpdatedBy + { + get { Initialize(); return _updatedBy!; } + } + private BicepValue? _updatedBy; /// /// (Optional) The ID of the parent management group used during creation. /// - public BicepValue Parent { get => _parent; set => _parent.Assign(value); } - private readonly BicepValue _parent; + public ManagementGroupParentCreateOptions Parent + { + get { Initialize(); return _parent!; } + set { Initialize(); AssignOrReplace(ref _parent, value); } + } + private ManagementGroupParentCreateOptions? _parent; /// /// Creates a new CreateManagementGroupDetails. /// public CreateManagementGroupDetails() { - _version = BicepValue.DefineProperty(this, "Version", ["version"], isOutput: true); - _updatedOn = BicepValue.DefineProperty(this, "UpdatedOn", ["updatedTime"], isOutput: true); - _updatedBy = BicepValue.DefineProperty(this, "UpdatedBy", ["updatedBy"], isOutput: true); - _parent = BicepValue.DefineProperty(this, "Parent", ["parent"]); + } + + /// + /// Define all the provisionable properties of CreateManagementGroupDetails. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _version = DefineProperty("Version", ["version"], isOutput: true); + _updatedOn = DefineProperty("UpdatedOn", ["updatedTime"], isOutput: true); + _updatedBy = DefineProperty("UpdatedBy", ["updatedBy"], isOutput: true); + _parent = DefineModelProperty("Parent", ["parent"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ErrorDeployment.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ErrorDeployment.cs index 7c3d5002600ae..adeafdf5e98b4 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ErrorDeployment.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ErrorDeployment.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class ErrorDeployment : ProvisionableConstruct /// The deployment on error behavior type. Possible values are /// LastSuccessful and SpecificDeployment. /// - public BicepValue DeploymentType { get => _deploymentType; set => _deploymentType.Assign(value); } - private readonly BicepValue _deploymentType; + public BicepValue DeploymentType + { + get { Initialize(); return _deploymentType!; } + set { Initialize(); _deploymentType!.Assign(value); } + } + private BicepValue? _deploymentType; /// /// The deployment to be used on error case. /// - public BicepValue DeploymentName { get => _deploymentName; set => _deploymentName.Assign(value); } - private readonly BicepValue _deploymentName; + public BicepValue DeploymentName + { + get { Initialize(); return _deploymentName!; } + set { Initialize(); _deploymentName!.Assign(value); } + } + private BicepValue? _deploymentName; /// /// Creates a new ErrorDeployment. /// public ErrorDeployment() { - _deploymentType = BicepValue.DefineProperty(this, "DeploymentType", ["type"]); - _deploymentName = BicepValue.DefineProperty(this, "DeploymentName", ["deploymentName"]); + } + + /// + /// Define all the provisionable properties of ErrorDeployment. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _deploymentType = DefineProperty("DeploymentType", ["type"]); + _deploymentName = DefineProperty("DeploymentName", ["deploymentName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ErrorDeploymentExtended.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ErrorDeploymentExtended.cs index 3516997001aba..00b8d0aa47d30 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ErrorDeploymentExtended.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ErrorDeploymentExtended.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,29 +18,46 @@ public partial class ErrorDeploymentExtended : ProvisionableConstruct /// /// The state of the provisioning for the on error deployment. /// - public BicepValue ProvisioningState { get => _provisioningState; } - private readonly BicepValue _provisioningState; + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; /// /// The deployment on error behavior type. Possible values are /// LastSuccessful and SpecificDeployment. /// - public BicepValue DeploymentType { get => _deploymentType; } - private readonly BicepValue _deploymentType; + public BicepValue DeploymentType + { + get { Initialize(); return _deploymentType!; } + } + private BicepValue? _deploymentType; /// /// The deployment to be used on error case. /// - public BicepValue DeploymentName { get => _deploymentName; } - private readonly BicepValue _deploymentName; + public BicepValue DeploymentName + { + get { Initialize(); return _deploymentName!; } + } + private BicepValue? _deploymentName; /// /// Creates a new ErrorDeploymentExtended. /// public ErrorDeploymentExtended() { - _provisioningState = BicepValue.DefineProperty(this, "ProvisioningState", ["provisioningState"], isOutput: true); - _deploymentType = BicepValue.DefineProperty(this, "DeploymentType", ["type"], isOutput: true); - _deploymentName = BicepValue.DefineProperty(this, "DeploymentName", ["deploymentName"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ErrorDeploymentExtended. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _deploymentType = DefineProperty("DeploymentType", ["type"], isOutput: true); + _deploymentName = DefineProperty("DeploymentName", ["deploymentName"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ExtendedAzureLocation.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ExtendedAzureLocation.cs index ecb57ceb21b8a..30d8c650c33cc 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ExtendedAzureLocation.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ExtendedAzureLocation.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class ExtendedAzureLocation : ProvisionableConstruct /// /// The extended location type. /// - public BicepValue ExtendedLocationType { get => _extendedLocationType; set => _extendedLocationType.Assign(value); } - private readonly BicepValue _extendedLocationType; + public BicepValue ExtendedLocationType + { + get { Initialize(); return _extendedLocationType!; } + set { Initialize(); _extendedLocationType!.Assign(value); } + } + private BicepValue? _extendedLocationType; /// /// The extended location name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Creates a new ExtendedAzureLocation. /// public ExtendedAzureLocation() { - _extendedLocationType = BicepValue.DefineProperty(this, "ExtendedLocationType", ["type"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"]); + } + + /// + /// Define all the provisionable properties of ExtendedAzureLocation. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _extendedLocationType = DefineProperty("ExtendedLocationType", ["type"]); + _name = DefineProperty("Name", ["name"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/JitApprover.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/JitApprover.cs index 0d90206dbb48e..21d69d1c07637 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/JitApprover.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/JitApprover.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,48 @@ public partial class JitApprover : ProvisionableConstruct /// /// The approver service principal Id. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// The approver type. /// - public BicepValue ApproverType { get => _approverType; set => _approverType.Assign(value); } - private readonly BicepValue _approverType; + public BicepValue ApproverType + { + get { Initialize(); return _approverType!; } + set { Initialize(); _approverType!.Assign(value); } + } + private BicepValue? _approverType; /// /// The approver display name. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// Creates a new JitApprover. /// public JitApprover() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _approverType = BicepValue.DefineProperty(this, "ApproverType", ["type"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"]); + } + + /// + /// Define all the provisionable properties of JitApprover. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _approverType = DefineProperty("ApproverType", ["type"]); + _displayName = DefineProperty("DisplayName", ["displayName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/JitAuthorizationPolicies.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/JitAuthorizationPolicies.cs index 77e4c2d6351fb..e7af44a490621 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/JitAuthorizationPolicies.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/JitAuthorizationPolicies.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,37 @@ public partial class JitAuthorizationPolicies : ProvisionableConstruct /// /// The the principal id that will be granted JIT access. /// - public BicepValue PrincipalId { get => _principalId; set => _principalId.Assign(value); } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + set { Initialize(); _principalId!.Assign(value); } + } + private BicepValue? _principalId; /// /// The role definition id that will be granted to the Principal. /// - public BicepValue RoleDefinitionId { get => _roleDefinitionId; set => _roleDefinitionId.Assign(value); } - private readonly BicepValue _roleDefinitionId; + public BicepValue RoleDefinitionId + { + get { Initialize(); return _roleDefinitionId!; } + set { Initialize(); _roleDefinitionId!.Assign(value); } + } + private BicepValue? _roleDefinitionId; /// /// Creates a new JitAuthorizationPolicies. /// public JitAuthorizationPolicies() { - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["principalId"]); - _roleDefinitionId = BicepValue.DefineProperty(this, "RoleDefinitionId", ["roleDefinitionId"]); + } + + /// + /// Define all the provisionable properties of JitAuthorizationPolicies. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _principalId = DefineProperty("PrincipalId", ["principalId"]); + _roleDefinitionId = DefineProperty("RoleDefinitionId", ["roleDefinitionId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/JitSchedulingPolicy.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/JitSchedulingPolicy.cs index 8483c259470ff..bfb5b2dd1eef8 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/JitSchedulingPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/JitSchedulingPolicy.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,47 @@ public partial class JitSchedulingPolicy : ProvisionableConstruct /// /// The type of JIT schedule. /// - public BicepValue SchedulingType { get => _schedulingType; } - private readonly BicepValue _schedulingType; + public BicepValue SchedulingType + { + get { Initialize(); return _schedulingType!; } + } + private BicepValue? _schedulingType; /// /// The required duration of the JIT request. /// - public BicepValue Duration { get => _duration; set => _duration.Assign(value); } - private readonly BicepValue _duration; + public BicepValue Duration + { + get { Initialize(); return _duration!; } + set { Initialize(); _duration!.Assign(value); } + } + private BicepValue? _duration; /// /// The start time of the request. /// - public BicepValue StartOn { get => _startOn; set => _startOn.Assign(value); } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + set { Initialize(); _startOn!.Assign(value); } + } + private BicepValue? _startOn; /// /// Creates a new JitSchedulingPolicy. /// public JitSchedulingPolicy() { - _schedulingType = BicepValue.DefineProperty(this, "SchedulingType", ["type"], isOutput: true); - _duration = BicepValue.DefineProperty(this, "Duration", ["duration"], format: "P"); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["startTime"]); + } + + /// + /// Define all the provisionable properties of JitSchedulingPolicy. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _schedulingType = DefineProperty("SchedulingType", ["type"], isOutput: true); + _duration = DefineProperty("Duration", ["duration"], format: "P"); + _startOn = DefineProperty("StartOn", ["startTime"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/LinkedTemplateArtifact.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/LinkedTemplateArtifact.cs index 4f56f4647ac32..a019b4030e22b 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/LinkedTemplateArtifact.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/LinkedTemplateArtifact.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,8 +19,12 @@ public partial class LinkedTemplateArtifact : ProvisionableConstruct /// /// A filesystem safe relative path of the artifact. /// - public BicepValue Path { get => _path; set => _path.Assign(value); } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + set { Initialize(); _path!.Assign(value); } + } + private BicepValue? _path; /// /// The Azure Resource Manager template. To assign @@ -36,15 +42,27 @@ public partial class LinkedTemplateArtifact : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Template { get => _template; set => _template.Assign(value); } - private readonly BicepValue _template; + public BicepValue Template + { + get { Initialize(); return _template!; } + set { Initialize(); _template!.Assign(value); } + } + private BicepValue? _template; /// /// Creates a new LinkedTemplateArtifact. /// public LinkedTemplateArtifact() { - _path = BicepValue.DefineProperty(this, "Path", ["path"]); - _template = BicepValue.DefineProperty(this, "Template", ["template"]); + } + + /// + /// Define all the provisionable properties of LinkedTemplateArtifact. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _path = DefineProperty("Path", ["path"]); + _template = DefineProperty("Template", ["template"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagedByTenant.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagedByTenant.cs index 414a3df607fed..0aae888164bbe 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagedByTenant.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagedByTenant.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,14 +18,25 @@ public partial class ManagedByTenant : ProvisionableConstruct /// /// The tenant ID of the managing tenant. This is a GUID. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// Creates a new ManagedByTenant. /// public ManagedByTenant() { - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagedByTenant. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagedServiceIdentity.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagedServiceIdentity.cs index 2898730a8f2ea..efcc9a0753f34 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagedServiceIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagedServiceIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,22 +20,32 @@ public partial class ManagedServiceIdentity : ProvisionableConstruct /// The service principal ID of the system assigned identity. This property /// will only be provided for a system assigned identity. /// - public BicepValue PrincipalId { get => _principalId; } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + } + private BicepValue? _principalId; /// /// The tenant ID of the system assigned identity. This property will only /// be provided for a system assigned identity. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// Type of managed service identity (where both SystemAssigned and /// UserAssigned types are allowed). /// - public BicepValue ManagedServiceIdentityType { get => _managedServiceIdentityType; set => _managedServiceIdentityType.Assign(value); } - private readonly BicepValue _managedServiceIdentityType; + public BicepValue ManagedServiceIdentityType + { + get { Initialize(); return _managedServiceIdentityType!; } + set { Initialize(); _managedServiceIdentityType!.Assign(value); } + } + private BicepValue? _managedServiceIdentityType; /// /// The set of user assigned identities associated with the resource. The @@ -42,17 +54,29 @@ public partial class ManagedServiceIdentity : ProvisionableConstruct /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. /// The dictionary values can be empty objects ({}) in requests. /// - public BicepDictionary UserAssignedIdentities { get => _userAssignedIdentities; set => _userAssignedIdentities.Assign(value); } - private readonly BicepDictionary _userAssignedIdentities; + public BicepDictionary UserAssignedIdentities + { + get { Initialize(); return _userAssignedIdentities!; } + set { Initialize(); _userAssignedIdentities!.Assign(value); } + } + private BicepDictionary? _userAssignedIdentities; /// /// Creates a new ManagedServiceIdentity. /// public ManagedServiceIdentity() { - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["principalId"], isOutput: true); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); - _managedServiceIdentityType = BicepValue.DefineProperty(this, "ManagedServiceIdentityType", ["type"]); - _userAssignedIdentities = BicepDictionary.DefineProperty(this, "UserAssignedIdentities", ["userAssignedIdentities"]); + } + + /// + /// Define all the provisionable properties of ManagedServiceIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _principalId = DefineProperty("PrincipalId", ["principalId"], isOutput: true); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); + _managedServiceIdentityType = DefineProperty("ManagedServiceIdentityType", ["type"]); + _userAssignedIdentities = DefineDictionaryProperty("UserAssignedIdentities", ["userAssignedIdentities"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupChildInfo.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupChildInfo.cs index e711acb2841c8..5b15ddea00154 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupChildInfo.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupChildInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,44 +20,67 @@ public partial class ManagementGroupChildInfo : ProvisionableConstruct /// The fully qualified resource type which includes provider namespace /// (e.g. Microsoft.Management/managementGroups). /// - public BicepValue ChildType { get => _childType; } - private readonly BicepValue _childType; + public BicepValue ChildType + { + get { Initialize(); return _childType!; } + } + private BicepValue? _childType; /// /// The fully qualified ID for the child resource (management group or /// subscription). For example, /// /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The name of the child entity. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The friendly name of the child resource. /// - public BicepValue DisplayName { get => _displayName; } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + } + private BicepValue? _displayName; /// /// The list of children. /// - public BicepList Children { get => _children; } - private readonly BicepList _children; + public BicepList Children + { + get { Initialize(); return _children!; } + } + private BicepList? _children; /// /// Creates a new ManagementGroupChildInfo. /// public ManagementGroupChildInfo() { - _childType = BicepValue.DefineProperty(this, "ChildType", ["type"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"], isOutput: true); - _children = BicepList.DefineProperty(this, "Children", ["children"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagementGroupChildInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _childType = DefineProperty("ChildType", ["type"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _displayName = DefineProperty("DisplayName", ["displayName"], isOutput: true); + _children = DefineListProperty("Children", ["children"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupChildOptions.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupChildOptions.cs index 20cb2a2cb8a96..f85b3cb01d136 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupChildOptions.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupChildOptions.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -18,44 +20,67 @@ public partial class ManagementGroupChildOptions : ProvisionableConstruct /// The fully qualified resource type which includes provider namespace /// (e.g. Microsoft.Management/managementGroups). /// - public BicepValue ChildType { get => _childType; } - private readonly BicepValue _childType; + public BicepValue ChildType + { + get { Initialize(); return _childType!; } + } + private BicepValue? _childType; /// /// The fully qualified ID for the child resource (management group or /// subscription). For example, /// /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The name of the child entity. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The friendly name of the child resource. /// - public BicepValue DisplayName { get => _displayName; } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + } + private BicepValue? _displayName; /// /// The list of children. /// - public BicepList Children { get => _children; } - private readonly BicepList _children; + public BicepList Children + { + get { Initialize(); return _children!; } + } + private BicepList? _children; /// /// Creates a new ManagementGroupChildOptions. /// public ManagementGroupChildOptions() { - _childType = BicepValue.DefineProperty(this, "ChildType", ["type"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"], isOutput: true); - _children = BicepList.DefineProperty(this, "Children", ["children"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagementGroupChildOptions. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _childType = DefineProperty("ChildType", ["type"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _displayName = DefineProperty("DisplayName", ["displayName"], isOutput: true); + _children = DefineListProperty("Children", ["children"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupInfo.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupInfo.cs index 8dac7019a6206..d9f1deabb81d0 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupInfo.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,57 +19,86 @@ public partial class ManagementGroupInfo : ProvisionableConstruct /// /// The version number of the object. /// - public BicepValue Version { get => _version; } - private readonly BicepValue _version; + public BicepValue Version + { + get { Initialize(); return _version!; } + } + private BicepValue? _version; /// /// The date and time when this object was last updated. /// - public BicepValue UpdatedOn { get => _updatedOn; } - private readonly BicepValue _updatedOn; + public BicepValue UpdatedOn + { + get { Initialize(); return _updatedOn!; } + } + private BicepValue? _updatedOn; /// /// The identity of the principal or process that updated the object. /// - public BicepValue UpdatedBy { get => _updatedBy; } - private readonly BicepValue _updatedBy; + public BicepValue UpdatedBy + { + get { Initialize(); return _updatedBy!; } + } + private BicepValue? _updatedBy; /// /// (Optional) The ID of the parent management group. /// - public BicepValue Parent { get => _parent; } - private readonly BicepValue _parent; + public ParentManagementGroupInfo Parent + { + get { Initialize(); return _parent!; } + } + private ParentManagementGroupInfo? _parent; /// /// The path from the root to the current group. /// - public BicepList Path { get => _path; } - private readonly BicepList _path; + public BicepList Path + { + get { Initialize(); return _path!; } + } + private BicepList? _path; /// /// The ancestors of the management group. /// - public BicepList ManagementGroupAncestors { get => _managementGroupAncestors; } - private readonly BicepList _managementGroupAncestors; + public BicepList ManagementGroupAncestors + { + get { Initialize(); return _managementGroupAncestors!; } + } + private BicepList? _managementGroupAncestors; /// /// The ancestors of the management group displayed in reversed order, from /// immediate parent to the root. /// - public BicepList ManagementGroupAncestorChain { get => _managementGroupAncestorChain; } - private readonly BicepList _managementGroupAncestorChain; + public BicepList ManagementGroupAncestorChain + { + get { Initialize(); return _managementGroupAncestorChain!; } + } + private BicepList? _managementGroupAncestorChain; /// /// Creates a new ManagementGroupInfo. /// public ManagementGroupInfo() { - _version = BicepValue.DefineProperty(this, "Version", ["version"], isOutput: true); - _updatedOn = BicepValue.DefineProperty(this, "UpdatedOn", ["updatedTime"], isOutput: true); - _updatedBy = BicepValue.DefineProperty(this, "UpdatedBy", ["updatedBy"], isOutput: true); - _parent = BicepValue.DefineProperty(this, "Parent", ["parent"], isOutput: true); - _path = BicepList.DefineProperty(this, "Path", ["path"], isOutput: true); - _managementGroupAncestors = BicepList.DefineProperty(this, "ManagementGroupAncestors", ["managementGroupAncestors"], isOutput: true); - _managementGroupAncestorChain = BicepList.DefineProperty(this, "ManagementGroupAncestorChain", ["managementGroupAncestorsChain"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagementGroupInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _version = DefineProperty("Version", ["version"], isOutput: true); + _updatedOn = DefineProperty("UpdatedOn", ["updatedTime"], isOutput: true); + _updatedBy = DefineProperty("UpdatedBy", ["updatedBy"], isOutput: true); + _parent = DefineModelProperty("Parent", ["parent"], isOutput: true); + _path = DefineListProperty("Path", ["path"], isOutput: true); + _managementGroupAncestors = DefineListProperty("ManagementGroupAncestors", ["managementGroupAncestors"], isOutput: true); + _managementGroupAncestorChain = DefineListProperty("ManagementGroupAncestorChain", ["managementGroupAncestorsChain"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupParentCreateOptions.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupParentCreateOptions.cs index 6435d2a4115de..1407f312c2c5d 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupParentCreateOptions.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupParentCreateOptions.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,47 @@ public partial class ManagementGroupParentCreateOptions : ProvisionableConstruct /// The fully qualified ID for the parent management group. For example, /// /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// The name of the parent management group. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The friendly name of the parent management group. /// - public BicepValue DisplayName { get => _displayName; } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + } + private BicepValue? _displayName; /// /// Creates a new ManagementGroupParentCreateOptions. /// public ManagementGroupParentCreateOptions() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ManagementGroupParentCreateOptions. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _name = DefineProperty("Name", ["name"], isOutput: true); + _displayName = DefineProperty("DisplayName", ["displayName"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupPathElement.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupPathElement.cs index 7f36ffd66abbc..ca17d634a2557 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupPathElement.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementGroupPathElement.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,35 @@ public partial class ManagementGroupPathElement : ProvisionableConstruct /// /// The name of the group. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The friendly name of the group. /// - public BicepValue DisplayName { get => _displayName; } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + } + private BicepValue? _displayName; /// /// Creates a new ManagementGroupPathElement. /// public ManagementGroupPathElement() { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ManagementGroupPathElement. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isOutput: true); + _displayName = DefineProperty("DisplayName", ["displayName"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementLockOwner.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementLockOwner.cs index 71106cdf7b8af..64a5dbe79b460 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementLockOwner.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ManagementLockOwner.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,14 +18,26 @@ public partial class ManagementLockOwner : ProvisionableConstruct /// /// The application ID of the lock owner. /// - public BicepValue ApplicationId { get => _applicationId; set => _applicationId.Assign(value); } - private readonly BicepValue _applicationId; + public BicepValue ApplicationId + { + get { Initialize(); return _applicationId!; } + set { Initialize(); _applicationId!.Assign(value); } + } + private BicepValue? _applicationId; /// /// Creates a new ManagementLockOwner. /// public ManagementLockOwner() { - _applicationId = BicepValue.DefineProperty(this, "ApplicationId", ["applicationId"]); + } + + /// + /// Define all the provisionable properties of ManagementLockOwner. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _applicationId = DefineProperty("ApplicationId", ["applicationId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/NonComplianceMessage.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/NonComplianceMessage.cs index 443e6bdeb5e6d..df9aabd4c419d 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/NonComplianceMessage.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/NonComplianceMessage.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -20,8 +22,12 @@ public partial class NonComplianceMessage : ProvisionableConstruct /// policy. This is shown in 'deny' error messages and on /// resource's non-compliant compliance results. /// - public BicepValue Message { get => _message; set => _message.Assign(value); } - private readonly BicepValue _message; + public BicepValue Message + { + get { Initialize(); return _message!; } + set { Initialize(); _message!.Assign(value); } + } + private BicepValue? _message; /// /// The policy definition reference ID within a policy set definition the @@ -29,15 +35,27 @@ public partial class NonComplianceMessage : ProvisionableConstruct /// assignment assigns a policy set definition. If this is not provided /// the message applies to all policies assigned by this policy assignment. /// - public BicepValue PolicyDefinitionReferenceId { get => _policyDefinitionReferenceId; set => _policyDefinitionReferenceId.Assign(value); } - private readonly BicepValue _policyDefinitionReferenceId; + public BicepValue PolicyDefinitionReferenceId + { + get { Initialize(); return _policyDefinitionReferenceId!; } + set { Initialize(); _policyDefinitionReferenceId!.Assign(value); } + } + private BicepValue? _policyDefinitionReferenceId; /// /// Creates a new NonComplianceMessage. /// public NonComplianceMessage() { - _message = BicepValue.DefineProperty(this, "Message", ["message"]); - _policyDefinitionReferenceId = BicepValue.DefineProperty(this, "PolicyDefinitionReferenceId", ["policyDefinitionReferenceId"]); + } + + /// + /// Define all the provisionable properties of NonComplianceMessage. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _message = DefineProperty("Message", ["message"]); + _policyDefinitionReferenceId = DefineProperty("PolicyDefinitionReferenceId", ["policyDefinitionReferenceId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ParameterDefinitionsValueMetadata.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ParameterDefinitionsValueMetadata.cs index 7d5e82ac2e830..e904274ed33bb 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ParameterDefinitionsValueMetadata.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ParameterDefinitionsValueMetadata.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,33 @@ public partial class ParameterDefinitionsValueMetadata : ProvisionableConstruct /// /// The display name for the parameter. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// The description of the parameter. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Used when assigning the policy definition through the portal. Provides /// a context aware list of values for the user to choose from. /// - public BicepValue StrongType { get => _strongType; set => _strongType.Assign(value); } - private readonly BicepValue _strongType; + public BicepValue StrongType + { + get { Initialize(); return _strongType!; } + set { Initialize(); _strongType!.Assign(value); } + } + private BicepValue? _strongType; /// /// Set to true to have Azure portal create role assignments on the @@ -39,8 +53,12 @@ public partial class ParameterDefinitionsValueMetadata : ProvisionableConstruct /// assignment. This property is useful in case you wish to assign /// permissions outside the assignment scope. /// - public BicepValue AssignPermissions { get => _assignPermissions; set => _assignPermissions.Assign(value); } - private readonly BicepValue _assignPermissions; + public BicepValue AssignPermissions + { + get { Initialize(); return _assignPermissions!; } + set { Initialize(); _assignPermissions!.Assign(value); } + } + private BicepValue? _assignPermissions; /// /// Additional Properties To assign an object to @@ -58,18 +76,31 @@ public partial class ParameterDefinitionsValueMetadata : ProvisionableConstruct /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepDictionary AdditionalProperties { get => _additionalProperties; set => _additionalProperties.Assign(value); } - private readonly BicepDictionary _additionalProperties; + public BicepDictionary AdditionalProperties + { + get { Initialize(); return _additionalProperties!; } + set { Initialize(); _additionalProperties!.Assign(value); } + } + private BicepDictionary? _additionalProperties; /// /// Creates a new ParameterDefinitionsValueMetadata. /// public ParameterDefinitionsValueMetadata() { - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _strongType = BicepValue.DefineProperty(this, "StrongType", ["strongType"]); - _assignPermissions = BicepValue.DefineProperty(this, "AssignPermissions", ["assignPermissions"]); - _additionalProperties = BicepDictionary.DefineProperty(this, "AdditionalProperties", ["AdditionalProperties"]); + } + + /// + /// Define all the provisionable properties of + /// ParameterDefinitionsValueMetadata. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _displayName = DefineProperty("DisplayName", ["displayName"]); + _description = DefineProperty("Description", ["description"]); + _strongType = DefineProperty("StrongType", ["strongType"]); + _assignPermissions = DefineProperty("AssignPermissions", ["assignPermissions"]); + _additionalProperties = DefineDictionaryProperty("AdditionalProperties", ["AdditionalProperties"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ParentManagementGroupInfo.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ParentManagementGroupInfo.cs index f6abd1c191142..3114bb7273a3f 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ParentManagementGroupInfo.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ParentManagementGroupInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,45 @@ public partial class ParentManagementGroupInfo : ProvisionableConstruct /// The fully qualified ID for the parent management group. For example, /// /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The name of the parent management group. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The friendly name of the parent management group. /// - public BicepValue DisplayName { get => _displayName; } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + } + private BicepValue? _displayName; /// /// Creates a new ParentManagementGroupInfo. /// public ParentManagementGroupInfo() { - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ParentManagementGroupInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _displayName = DefineProperty("DisplayName", ["displayName"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyAssignmentProperties.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyAssignmentProperties.cs index 55b33f45ecee8..402a0171f4cc4 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyAssignmentProperties.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyAssignmentProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using Azure.Provisioning.Resources; @@ -18,91 +20,135 @@ public partial class PolicyAssignmentProperties : ProvisionableConstruct /// /// Id of the policy. /// - public BicepValue PolicyId { get => _policyId; } - private readonly BicepValue _policyId; + public BicepValue PolicyId + { + get { Initialize(); return _policyId!; } + } + private BicepValue? _policyId; /// /// The name of the entity last modified it. /// - public BicepValue LastModifiedBy { get => _lastModifiedBy; } - private readonly BicepValue _lastModifiedBy; + public RoleManagementPrincipal LastModifiedBy + { + get { Initialize(); return _lastModifiedBy!; } + } + private RoleManagementPrincipal? _lastModifiedBy; /// /// The last modified date time. /// - public BicepValue LastModifiedOn { get => _lastModifiedOn; } - private readonly BicepValue _lastModifiedOn; + public BicepValue LastModifiedOn + { + get { Initialize(); return _lastModifiedOn!; } + } + private BicepValue? _lastModifiedOn; /// /// Id of the role definition. /// - public BicepValue RoleDefinitionId { get => _roleDefinitionId; } - private readonly BicepValue _roleDefinitionId; + public BicepValue RoleDefinitionId + { + get { Initialize(); return _roleDefinitionId!; } + } + private BicepValue? _roleDefinitionId; /// /// Display name of the role definition. /// - public BicepValue RoleDefinitionDisplayName { get => _roleDefinitionDisplayName; } - private readonly BicepValue _roleDefinitionDisplayName; + public BicepValue RoleDefinitionDisplayName + { + get { Initialize(); return _roleDefinitionDisplayName!; } + } + private BicepValue? _roleDefinitionDisplayName; /// /// The role type. /// - public BicepValue RoleType { get => _roleType; } - private readonly BicepValue _roleType; + public BicepValue RoleType + { + get { Initialize(); return _roleType!; } + } + private BicepValue? _roleType; /// /// Scope id of the resource. /// - public BicepValue ScopeId { get => _scopeId; } - private readonly BicepValue _scopeId; + public BicepValue ScopeId + { + get { Initialize(); return _scopeId!; } + } + private BicepValue? _scopeId; /// /// Display name of the resource. /// - public BicepValue ScopeDisplayName { get => _scopeDisplayName; } - private readonly BicepValue _scopeDisplayName; + public BicepValue ScopeDisplayName + { + get { Initialize(); return _scopeDisplayName!; } + } + private BicepValue? _scopeDisplayName; /// /// Type of the scope. /// - public BicepValue ScopeType { get => _scopeType; } - private readonly BicepValue _scopeType; + public BicepValue ScopeType + { + get { Initialize(); return _scopeType!; } + } + private BicepValue? _scopeType; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new PolicyAssignmentProperties. /// public PolicyAssignmentProperties() { - _policyId = BicepValue.DefineProperty(this, "PolicyId", ["policy", "id"], isOutput: true); - _lastModifiedBy = BicepValue.DefineProperty(this, "LastModifiedBy", ["policy", "lastModifiedBy"], isOutput: true); - _lastModifiedOn = BicepValue.DefineProperty(this, "LastModifiedOn", ["policy", "lastModifiedDateTime"], isOutput: true); - _roleDefinitionId = BicepValue.DefineProperty(this, "RoleDefinitionId", ["roleDefinition", "id"], isOutput: true); - _roleDefinitionDisplayName = BicepValue.DefineProperty(this, "RoleDefinitionDisplayName", ["roleDefinition", "displayName"], isOutput: true); - _roleType = BicepValue.DefineProperty(this, "RoleType", ["roleDefinition", "type"], isOutput: true); - _scopeId = BicepValue.DefineProperty(this, "ScopeId", ["scope", "id"], isOutput: true); - _scopeDisplayName = BicepValue.DefineProperty(this, "ScopeDisplayName", ["scope", "displayName"], isOutput: true); - _scopeType = BicepValue.DefineProperty(this, "ScopeType", ["scope", "type"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PolicyAssignmentProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _policyId = DefineProperty("PolicyId", ["policy", "id"], isOutput: true); + _lastModifiedBy = DefineModelProperty("LastModifiedBy", ["policy", "lastModifiedBy"], isOutput: true); + _lastModifiedOn = DefineProperty("LastModifiedOn", ["policy", "lastModifiedDateTime"], isOutput: true); + _roleDefinitionId = DefineProperty("RoleDefinitionId", ["roleDefinition", "id"], isOutput: true); + _roleDefinitionDisplayName = DefineProperty("RoleDefinitionDisplayName", ["roleDefinition", "displayName"], isOutput: true); + _roleType = DefineProperty("RoleType", ["roleDefinition", "type"], isOutput: true); + _scopeId = DefineProperty("ScopeId", ["scope", "id"], isOutput: true); + _scopeDisplayName = DefineProperty("ScopeDisplayName", ["scope", "displayName"], isOutput: true); + _scopeType = DefineProperty("ScopeType", ["scope", "type"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _name = DefineProperty("Name", ["name"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyDefinitionGroup.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyDefinitionGroup.cs index 0d04e76b7c7e6..fde9ba2d3a30f 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyDefinitionGroup.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyDefinitionGroup.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,43 +18,71 @@ public partial class PolicyDefinitionGroup : ProvisionableConstruct /// /// The name of the group. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The group's display name. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// The group's category. /// - public BicepValue Category { get => _category; set => _category.Assign(value); } - private readonly BicepValue _category; + public BicepValue Category + { + get { Initialize(); return _category!; } + set { Initialize(); _category!.Assign(value); } + } + private BicepValue? _category; /// /// The group's description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// A resource ID of a resource that contains additional metadata about the /// group. /// - public BicepValue AdditionalMetadataId { get => _additionalMetadataId; set => _additionalMetadataId.Assign(value); } - private readonly BicepValue _additionalMetadataId; + public BicepValue AdditionalMetadataId + { + get { Initialize(); return _additionalMetadataId!; } + set { Initialize(); _additionalMetadataId!.Assign(value); } + } + private BicepValue? _additionalMetadataId; /// /// Creates a new PolicyDefinitionGroup. /// public PolicyDefinitionGroup() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"]); - _category = BicepValue.DefineProperty(this, "Category", ["category"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); - _additionalMetadataId = BicepValue.DefineProperty(this, "AdditionalMetadataId", ["additionalMetadataId"]); + } + + /// + /// Define all the provisionable properties of PolicyDefinitionGroup. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _displayName = DefineProperty("DisplayName", ["displayName"]); + _category = DefineProperty("Category", ["category"]); + _description = DefineProperty("Description", ["description"]); + _additionalMetadataId = DefineProperty("AdditionalMetadataId", ["additionalMetadataId"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyDefinitionReference.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyDefinitionReference.cs index 8223925436c2e..263efec1f3fb3 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyDefinitionReference.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyDefinitionReference.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,37 +19,61 @@ public partial class PolicyDefinitionReference : ProvisionableConstruct /// /// The ID of the policy definition or policy set definition. /// - public BicepValue PolicyDefinitionId { get => _policyDefinitionId; set => _policyDefinitionId.Assign(value); } - private readonly BicepValue _policyDefinitionId; + public BicepValue PolicyDefinitionId + { + get { Initialize(); return _policyDefinitionId!; } + set { Initialize(); _policyDefinitionId!.Assign(value); } + } + private BicepValue? _policyDefinitionId; /// /// The parameter values for the referenced policy rule. The keys are the /// parameter names. /// - public BicepDictionary Parameters { get => _parameters; set => _parameters.Assign(value); } - private readonly BicepDictionary _parameters; + public BicepDictionary Parameters + { + get { Initialize(); return _parameters!; } + set { Initialize(); _parameters!.Assign(value); } + } + private BicepDictionary? _parameters; /// /// A unique id (within the policy set definition) for this policy /// definition reference. /// - public BicepValue PolicyDefinitionReferenceId { get => _policyDefinitionReferenceId; set => _policyDefinitionReferenceId.Assign(value); } - private readonly BicepValue _policyDefinitionReferenceId; + public BicepValue PolicyDefinitionReferenceId + { + get { Initialize(); return _policyDefinitionReferenceId!; } + set { Initialize(); _policyDefinitionReferenceId!.Assign(value); } + } + private BicepValue? _policyDefinitionReferenceId; /// /// The name of the groups that this policy definition reference belongs to. /// - public BicepList GroupNames { get => _groupNames; set => _groupNames.Assign(value); } - private readonly BicepList _groupNames; + public BicepList GroupNames + { + get { Initialize(); return _groupNames!; } + set { Initialize(); _groupNames!.Assign(value); } + } + private BicepList? _groupNames; /// /// Creates a new PolicyDefinitionReference. /// public PolicyDefinitionReference() { - _policyDefinitionId = BicepValue.DefineProperty(this, "PolicyDefinitionId", ["policyDefinitionId"]); - _parameters = BicepDictionary.DefineProperty(this, "Parameters", ["parameters"]); - _policyDefinitionReferenceId = BicepValue.DefineProperty(this, "PolicyDefinitionReferenceId", ["policyDefinitionReferenceId"]); - _groupNames = BicepList.DefineProperty(this, "GroupNames", ["groupNames"]); + } + + /// + /// Define all the provisionable properties of PolicyDefinitionReference. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _policyDefinitionId = DefineProperty("PolicyDefinitionId", ["policyDefinitionId"]); + _parameters = DefineDictionaryProperty("Parameters", ["parameters"]); + _policyDefinitionReferenceId = DefineProperty("PolicyDefinitionReferenceId", ["policyDefinitionReferenceId"]); + _groupNames = DefineListProperty("GroupNames", ["groupNames"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyOverride.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyOverride.cs index f9a47bb90e4b1..718a778c4de3c 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyOverride.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/PolicyOverride.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,48 @@ public partial class PolicyOverride : ProvisionableConstruct /// /// The override kind. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The value to override the policy property. /// - public BicepValue Value { get => _value; set => _value.Assign(value); } - private readonly BicepValue _value; + public BicepValue Value + { + get { Initialize(); return _value!; } + set { Initialize(); _value!.Assign(value); } + } + private BicepValue? _value; /// /// The list of the selector expressions. /// - public BicepList Selectors { get => _selectors; set => _selectors.Assign(value); } - private readonly BicepList _selectors; + public BicepList Selectors + { + get { Initialize(); return _selectors!; } + set { Initialize(); _selectors!.Assign(value); } + } + private BicepList? _selectors; /// /// Creates a new PolicyOverride. /// public PolicyOverride() { - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _value = BicepValue.DefineProperty(this, "Value", ["value"]); - _selectors = BicepList.DefineProperty(this, "Selectors", ["selectors"]); + } + + /// + /// Define all the provisionable properties of PolicyOverride. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _kind = DefineProperty("Kind", ["kind"]); + _value = DefineProperty("Value", ["value"]); + _selectors = DefineListProperty("Selectors", ["selectors"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ProviderExtendedLocation.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ProviderExtendedLocation.cs index 516ce814f6bee..a0fce56ba542a 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ProviderExtendedLocation.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ProviderExtendedLocation.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,28 +20,45 @@ public partial class ProviderExtendedLocation : ProvisionableConstruct /// /// Gets the Location. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the ProviderExtendedLocationType. /// - public BicepValue ProviderExtendedLocationType { get => _providerExtendedLocationType; } - private readonly BicepValue _providerExtendedLocationType; + public BicepValue ProviderExtendedLocationType + { + get { Initialize(); return _providerExtendedLocationType!; } + } + private BicepValue? _providerExtendedLocationType; /// /// Gets the ExtendedLocations. /// - public BicepList ExtendedLocations { get => _extendedLocations; } - private readonly BicepList _extendedLocations; + public BicepList ExtendedLocations + { + get { Initialize(); return _extendedLocations!; } + } + private BicepList? _extendedLocations; /// /// Creates a new ProviderExtendedLocation. /// public ProviderExtendedLocation() { - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _providerExtendedLocationType = BicepValue.DefineProperty(this, "ProviderExtendedLocationType", ["type"], isOutput: true); - _extendedLocations = BicepList.DefineProperty(this, "ExtendedLocations", ["extendedLocations"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ProviderExtendedLocation. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _location = DefineProperty("Location", ["location"], isOutput: true); + _providerExtendedLocationType = DefineProperty("ProviderExtendedLocationType", ["type"], isOutput: true); + _extendedLocations = DefineListProperty("ExtendedLocations", ["extendedLocations"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ProviderResourceType.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ProviderResourceType.cs index e1efd930a34ae..f4745e69d2f8f 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ProviderResourceType.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ProviderResourceType.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,77 +20,115 @@ public partial class ProviderResourceType : ProvisionableConstruct /// /// Gets the ResourceType. /// - public BicepValue ResourceType { get => _resourceType; } - private readonly BicepValue _resourceType; + public BicepValue ResourceType + { + get { Initialize(); return _resourceType!; } + } + private BicepValue? _resourceType; /// /// Gets the Locations. /// - public BicepList Locations { get => _locations; } - private readonly BicepList _locations; + public BicepList Locations + { + get { Initialize(); return _locations!; } + } + private BicepList? _locations; /// /// Gets the LocationMappings. /// - public BicepList LocationMappings { get => _locationMappings; } - private readonly BicepList _locationMappings; + public BicepList LocationMappings + { + get { Initialize(); return _locationMappings!; } + } + private BicepList? _locationMappings; /// /// Gets the Aliases. /// - public BicepList Aliases { get => _aliases; } - private readonly BicepList _aliases; + public BicepList Aliases + { + get { Initialize(); return _aliases!; } + } + private BicepList? _aliases; /// /// Gets the ApiVersions. /// - public BicepList ApiVersions { get => _apiVersions; } - private readonly BicepList _apiVersions; + public BicepList ApiVersions + { + get { Initialize(); return _apiVersions!; } + } + private BicepList? _apiVersions; /// /// Gets the DefaultApiVersion. /// - public BicepValue DefaultApiVersion { get => _defaultApiVersion; } - private readonly BicepValue _defaultApiVersion; + public BicepValue DefaultApiVersion + { + get { Initialize(); return _defaultApiVersion!; } + } + private BicepValue? _defaultApiVersion; /// /// Gets the ZoneMappings. /// - public BicepList ZoneMappings { get => _zoneMappings; } - private readonly BicepList _zoneMappings; + public BicepList ZoneMappings + { + get { Initialize(); return _zoneMappings!; } + } + private BicepList? _zoneMappings; /// /// Gets the ApiProfiles. /// - public BicepList ApiProfiles { get => _apiProfiles; } - private readonly BicepList _apiProfiles; + public BicepList ApiProfiles + { + get { Initialize(); return _apiProfiles!; } + } + private BicepList? _apiProfiles; /// /// Gets the Capabilities. /// - public BicepValue Capabilities { get => _capabilities; } - private readonly BicepValue _capabilities; + public BicepValue Capabilities + { + get { Initialize(); return _capabilities!; } + } + private BicepValue? _capabilities; /// /// Gets the Properties. /// - public BicepDictionary Properties { get => _properties; } - private readonly BicepDictionary _properties; + public BicepDictionary Properties + { + get { Initialize(); return _properties!; } + } + private BicepDictionary? _properties; /// /// Creates a new ProviderResourceType. /// public ProviderResourceType() { - _resourceType = BicepValue.DefineProperty(this, "ResourceType", ["resourceType"], isOutput: true); - _locations = BicepList.DefineProperty(this, "Locations", ["locations"], isOutput: true); - _locationMappings = BicepList.DefineProperty(this, "LocationMappings", ["locationMappings"], isOutput: true); - _aliases = BicepList.DefineProperty(this, "Aliases", ["aliases"], isOutput: true); - _apiVersions = BicepList.DefineProperty(this, "ApiVersions", ["apiVersions"], isOutput: true); - _defaultApiVersion = BicepValue.DefineProperty(this, "DefaultApiVersion", ["defaultApiVersion"], isOutput: true); - _zoneMappings = BicepList.DefineProperty(this, "ZoneMappings", ["zoneMappings"], isOutput: true); - _apiProfiles = BicepList.DefineProperty(this, "ApiProfiles", ["apiProfiles"], isOutput: true); - _capabilities = BicepValue.DefineProperty(this, "Capabilities", ["capabilities"], isOutput: true); - _properties = BicepDictionary.DefineProperty(this, "Properties", ["properties"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ProviderResourceType. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _resourceType = DefineProperty("ResourceType", ["resourceType"], isOutput: true); + _locations = DefineListProperty("Locations", ["locations"], isOutput: true); + _locationMappings = DefineListProperty("LocationMappings", ["locationMappings"], isOutput: true); + _aliases = DefineListProperty("Aliases", ["aliases"], isOutput: true); + _apiVersions = DefineListProperty("ApiVersions", ["apiVersions"], isOutput: true); + _defaultApiVersion = DefineProperty("DefaultApiVersion", ["defaultApiVersion"], isOutput: true); + _zoneMappings = DefineListProperty("ZoneMappings", ["zoneMappings"], isOutput: true); + _apiProfiles = DefineListProperty("ApiProfiles", ["apiProfiles"], isOutput: true); + _capabilities = DefineProperty("Capabilities", ["capabilities"], isOutput: true); + _properties = DefineDictionaryProperty("Properties", ["properties"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceProviderData.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceProviderData.cs index dc60bbe2b39a2..6790a26295749 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceProviderData.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceProviderData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,49 +20,75 @@ public partial class ResourceProviderData : ProvisionableConstruct /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the Namespace. /// - public BicepValue Namespace { get => _namespace; } - private readonly BicepValue _namespace; + public BicepValue Namespace + { + get { Initialize(); return _namespace!; } + } + private BicepValue? _namespace; /// /// Gets the RegistrationState. /// - public BicepValue RegistrationState { get => _registrationState; } - private readonly BicepValue _registrationState; + public BicepValue RegistrationState + { + get { Initialize(); return _registrationState!; } + } + private BicepValue? _registrationState; /// /// Gets the RegistrationPolicy. /// - public BicepValue RegistrationPolicy { get => _registrationPolicy; } - private readonly BicepValue _registrationPolicy; + public BicepValue RegistrationPolicy + { + get { Initialize(); return _registrationPolicy!; } + } + private BicepValue? _registrationPolicy; /// /// Gets the ResourceTypes. /// - public BicepList ResourceTypes { get => _resourceTypes; } - private readonly BicepList _resourceTypes; + public BicepList ResourceTypes + { + get { Initialize(); return _resourceTypes!; } + } + private BicepList? _resourceTypes; /// /// Gets the ProviderAuthorizationConsentState. /// - public BicepValue ProviderAuthorizationConsentState { get => _providerAuthorizationConsentState; } - private readonly BicepValue _providerAuthorizationConsentState; + public BicepValue ProviderAuthorizationConsentState + { + get { Initialize(); return _providerAuthorizationConsentState!; } + } + private BicepValue? _providerAuthorizationConsentState; /// /// Creates a new ResourceProviderData. /// public ResourceProviderData() { - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _namespace = BicepValue.DefineProperty(this, "Namespace", ["namespace"], isOutput: true); - _registrationState = BicepValue.DefineProperty(this, "RegistrationState", ["registrationState"], isOutput: true); - _registrationPolicy = BicepValue.DefineProperty(this, "RegistrationPolicy", ["registrationPolicy"], isOutput: true); - _resourceTypes = BicepList.DefineProperty(this, "ResourceTypes", ["resourceTypes"], isOutput: true); - _providerAuthorizationConsentState = BicepValue.DefineProperty(this, "ProviderAuthorizationConsentState", ["providerAuthorizationConsentState"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ResourceProviderData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"], isOutput: true); + _namespace = DefineProperty("Namespace", ["namespace"], isOutput: true); + _registrationState = DefineProperty("RegistrationState", ["registrationState"], isOutput: true); + _registrationPolicy = DefineProperty("RegistrationPolicy", ["registrationPolicy"], isOutput: true); + _resourceTypes = DefineListProperty("ResourceTypes", ["resourceTypes"], isOutput: true); + _providerAuthorizationConsentState = DefineProperty("ProviderAuthorizationConsentState", ["providerAuthorizationConsentState"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceSelector.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceSelector.cs index 2eeed5ea16361..7dce3eb1f5d77 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceSelector.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceSelector.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,21 +19,37 @@ public partial class ResourceSelector : ProvisionableConstruct /// /// The name of the resource selector. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The list of the selector expressions. /// - public BicepList Selectors { get => _selectors; set => _selectors.Assign(value); } - private readonly BicepList _selectors; + public BicepList Selectors + { + get { Initialize(); return _selectors!; } + set { Initialize(); _selectors!.Assign(value); } + } + private BicepList? _selectors; /// /// Creates a new ResourceSelector. /// public ResourceSelector() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _selectors = BicepList.DefineProperty(this, "Selectors", ["selectors"]); + } + + /// + /// Define all the provisionable properties of ResourceSelector. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _selectors = DefineListProperty("Selectors", ["selectors"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceSelectorExpression.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceSelectorExpression.cs index d453606976222..0143ee9947a33 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceSelectorExpression.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceSelectorExpression.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,28 +19,48 @@ public partial class ResourceSelectorExpression : ProvisionableConstruct /// /// The selector kind. /// - public BicepValue Kind { get => _kind; set => _kind.Assign(value); } - private readonly BicepValue _kind; + public BicepValue Kind + { + get { Initialize(); return _kind!; } + set { Initialize(); _kind!.Assign(value); } + } + private BicepValue? _kind; /// /// The list of values to filter in. /// - public BicepList In { get => _in; set => _in.Assign(value); } - private readonly BicepList _in; + public BicepList In + { + get { Initialize(); return _in!; } + set { Initialize(); _in!.Assign(value); } + } + private BicepList? _in; /// /// The list of values to filter out. /// - public BicepList NotIn { get => _notIn; set => _notIn.Assign(value); } - private readonly BicepList _notIn; + public BicepList NotIn + { + get { Initialize(); return _notIn!; } + set { Initialize(); _notIn!.Assign(value); } + } + private BicepList? _notIn; /// /// Creates a new ResourceSelectorExpression. /// public ResourceSelectorExpression() { - _kind = BicepValue.DefineProperty(this, "Kind", ["kind"]); - _in = BicepList.DefineProperty(this, "In", ["in"]); - _notIn = BicepList.DefineProperty(this, "NotIn", ["notIn"]); + } + + /// + /// Define all the provisionable properties of ResourceSelectorExpression. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _kind = DefineProperty("Kind", ["kind"]); + _in = DefineListProperty("In", ["in"]); + _notIn = DefineListProperty("NotIn", ["notIn"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAlias.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAlias.cs index da86d8323a6fc..98ce23d7105fb 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAlias.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAlias.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,49 +19,75 @@ public partial class ResourceTypeAlias : ProvisionableConstruct /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Gets the Paths. /// - public BicepList Paths { get => _paths; } - private readonly BicepList _paths; + public BicepList Paths + { + get { Initialize(); return _paths!; } + } + private BicepList? _paths; /// /// Gets the AliasType. /// - public BicepValue AliasType { get => _aliasType; } - private readonly BicepValue _aliasType; + public BicepValue AliasType + { + get { Initialize(); return _aliasType!; } + } + private BicepValue? _aliasType; /// /// Gets the DefaultPath. /// - public BicepValue DefaultPath { get => _defaultPath; } - private readonly BicepValue _defaultPath; + public BicepValue DefaultPath + { + get { Initialize(); return _defaultPath!; } + } + private BicepValue? _defaultPath; /// /// Gets the DefaultPattern. /// - public BicepValue DefaultPattern { get => _defaultPattern; } - private readonly BicepValue _defaultPattern; + public ResourceTypeAliasPattern DefaultPattern + { + get { Initialize(); return _defaultPattern!; } + } + private ResourceTypeAliasPattern? _defaultPattern; /// /// Gets the DefaultMetadata. /// - public BicepValue DefaultMetadata { get => _defaultMetadata; } - private readonly BicepValue _defaultMetadata; + public ResourceTypeAliasPathMetadata DefaultMetadata + { + get { Initialize(); return _defaultMetadata!; } + } + private ResourceTypeAliasPathMetadata? _defaultMetadata; /// /// Creates a new ResourceTypeAlias. /// public ResourceTypeAlias() { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _paths = BicepList.DefineProperty(this, "Paths", ["paths"], isOutput: true); - _aliasType = BicepValue.DefineProperty(this, "AliasType", ["type"], isOutput: true); - _defaultPath = BicepValue.DefineProperty(this, "DefaultPath", ["defaultPath"], isOutput: true); - _defaultPattern = BicepValue.DefineProperty(this, "DefaultPattern", ["defaultPattern"], isOutput: true); - _defaultMetadata = BicepValue.DefineProperty(this, "DefaultMetadata", ["defaultMetadata"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ResourceTypeAlias. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isOutput: true); + _paths = DefineListProperty("Paths", ["paths"], isOutput: true); + _aliasType = DefineProperty("AliasType", ["type"], isOutput: true); + _defaultPath = DefineProperty("DefaultPath", ["defaultPath"], isOutput: true); + _defaultPattern = DefineModelProperty("DefaultPattern", ["defaultPattern"], isOutput: true); + _defaultMetadata = DefineModelProperty("DefaultMetadata", ["defaultMetadata"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAliasPath.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAliasPath.cs index adafcb542ef37..52154b2cfc2f4 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAliasPath.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAliasPath.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,55 @@ public partial class ResourceTypeAliasPath : ProvisionableConstruct /// /// Gets the Path. /// - public BicepValue Path { get => _path; } - private readonly BicepValue _path; + public BicepValue Path + { + get { Initialize(); return _path!; } + } + private BicepValue? _path; /// /// Gets the ApiVersions. /// - public BicepList ApiVersions { get => _apiVersions; } - private readonly BicepList _apiVersions; + public BicepList ApiVersions + { + get { Initialize(); return _apiVersions!; } + } + private BicepList? _apiVersions; /// /// Gets the Pattern. /// - public BicepValue Pattern { get => _pattern; } - private readonly BicepValue _pattern; + public ResourceTypeAliasPattern Pattern + { + get { Initialize(); return _pattern!; } + } + private ResourceTypeAliasPattern? _pattern; /// /// Gets the Metadata. /// - public BicepValue Metadata { get => _metadata; } - private readonly BicepValue _metadata; + public ResourceTypeAliasPathMetadata Metadata + { + get { Initialize(); return _metadata!; } + } + private ResourceTypeAliasPathMetadata? _metadata; /// /// Creates a new ResourceTypeAliasPath. /// public ResourceTypeAliasPath() { - _path = BicepValue.DefineProperty(this, "Path", ["path"], isOutput: true); - _apiVersions = BicepList.DefineProperty(this, "ApiVersions", ["apiVersions"], isOutput: true); - _pattern = BicepValue.DefineProperty(this, "Pattern", ["pattern"], isOutput: true); - _metadata = BicepValue.DefineProperty(this, "Metadata", ["metadata"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ResourceTypeAliasPath. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _path = DefineProperty("Path", ["path"], isOutput: true); + _apiVersions = DefineListProperty("ApiVersions", ["apiVersions"], isOutput: true); + _pattern = DefineModelProperty("Pattern", ["pattern"], isOutput: true); + _metadata = DefineModelProperty("Metadata", ["metadata"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAliasPathMetadata.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAliasPathMetadata.cs index f03ee1634a79e..0981cdfbea146 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAliasPathMetadata.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAliasPathMetadata.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; namespace Azure.Provisioning.Resources; @@ -15,21 +17,36 @@ public partial class ResourceTypeAliasPathMetadata : ProvisionableConstruct /// /// Gets the TokenType. /// - public BicepValue TokenType { get => _tokenType; } - private readonly BicepValue _tokenType; + public BicepValue TokenType + { + get { Initialize(); return _tokenType!; } + } + private BicepValue? _tokenType; /// /// Gets the Attributes. /// - public BicepValue Attributes { get => _attributes; } - private readonly BicepValue _attributes; + public BicepValue Attributes + { + get { Initialize(); return _attributes!; } + } + private BicepValue? _attributes; /// /// Creates a new ResourceTypeAliasPathMetadata. /// public ResourceTypeAliasPathMetadata() { - _tokenType = BicepValue.DefineProperty(this, "TokenType", ["type"], isOutput: true); - _attributes = BicepValue.DefineProperty(this, "Attributes", ["attributes"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// ResourceTypeAliasPathMetadata. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _tokenType = DefineProperty("TokenType", ["type"], isOutput: true); + _attributes = DefineProperty("Attributes", ["attributes"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAliasPattern.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAliasPattern.cs index 0252d9cdb54e7..374f23034d0dd 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAliasPattern.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourceTypeAliasPattern.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,45 @@ public partial class ResourceTypeAliasPattern : ProvisionableConstruct /// /// Gets the Phrase. /// - public BicepValue Phrase { get => _phrase; } - private readonly BicepValue _phrase; + public BicepValue Phrase + { + get { Initialize(); return _phrase!; } + } + private BicepValue? _phrase; /// /// Gets the Variable. /// - public BicepValue Variable { get => _variable; } - private readonly BicepValue _variable; + public BicepValue Variable + { + get { Initialize(); return _variable!; } + } + private BicepValue? _variable; /// /// Gets the PatternType. /// - public BicepValue PatternType { get => _patternType; } - private readonly BicepValue _patternType; + public BicepValue PatternType + { + get { Initialize(); return _patternType!; } + } + private BicepValue? _patternType; /// /// Creates a new ResourceTypeAliasPattern. /// public ResourceTypeAliasPattern() { - _phrase = BicepValue.DefineProperty(this, "Phrase", ["phrase"], isOutput: true); - _variable = BicepValue.DefineProperty(this, "Variable", ["variable"], isOutput: true); - _patternType = BicepValue.DefineProperty(this, "PatternType", ["type"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ResourceTypeAliasPattern. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _phrase = DefineProperty("Phrase", ["phrase"], isOutput: true); + _variable = DefineProperty("Variable", ["variable"], isOutput: true); + _patternType = DefineProperty("PatternType", ["type"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourcesSku.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourcesSku.cs index 360f454f14de4..cdfd57a0a2a7b 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourcesSku.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ResourcesSku.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,49 +18,81 @@ public partial class ResourcesSku : ProvisionableConstruct /// /// The SKU name. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The SKU tier. /// - public BicepValue Tier { get => _tier; set => _tier.Assign(value); } - private readonly BicepValue _tier; + public BicepValue Tier + { + get { Initialize(); return _tier!; } + set { Initialize(); _tier!.Assign(value); } + } + private BicepValue? _tier; /// /// The SKU size. /// - public BicepValue Size { get => _size; set => _size.Assign(value); } - private readonly BicepValue _size; + public BicepValue Size + { + get { Initialize(); return _size!; } + set { Initialize(); _size!.Assign(value); } + } + private BicepValue? _size; /// /// The SKU family. /// - public BicepValue Family { get => _family; set => _family.Assign(value); } - private readonly BicepValue _family; + public BicepValue Family + { + get { Initialize(); return _family!; } + set { Initialize(); _family!.Assign(value); } + } + private BicepValue? _family; /// /// The SKU model. /// - public BicepValue Model { get => _model; set => _model.Assign(value); } - private readonly BicepValue _model; + public BicepValue Model + { + get { Initialize(); return _model!; } + set { Initialize(); _model!.Assign(value); } + } + private BicepValue? _model; /// /// The SKU capacity. /// - public BicepValue Capacity { get => _capacity; set => _capacity.Assign(value); } - private readonly BicepValue _capacity; + public BicepValue Capacity + { + get { Initialize(); return _capacity!; } + set { Initialize(); _capacity!.Assign(value); } + } + private BicepValue? _capacity; /// /// Creates a new ResourcesSku. /// public ResourcesSku() { - _name = BicepValue.DefineProperty(this, "Name", ["name"]); - _tier = BicepValue.DefineProperty(this, "Tier", ["tier"]); - _size = BicepValue.DefineProperty(this, "Size", ["size"]); - _family = BicepValue.DefineProperty(this, "Family", ["family"]); - _model = BicepValue.DefineProperty(this, "Model", ["model"]); - _capacity = BicepValue.DefineProperty(this, "Capacity", ["capacity"]); + } + + /// + /// Define all the provisionable properties of ResourcesSku. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"]); + _tier = DefineProperty("Tier", ["tier"]); + _size = DefineProperty("Size", ["size"]); + _family = DefineProperty("Family", ["family"]); + _model = DefineProperty("Model", ["model"]); + _capacity = DefineProperty("Capacity", ["capacity"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleAssignmentScheduleTicketInfo.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleAssignmentScheduleTicketInfo.cs index 717541d85e91f..2f72660697b00 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleAssignmentScheduleTicketInfo.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleAssignmentScheduleTicketInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class RoleAssignmentScheduleTicketInfo : ProvisionableConstruct /// /// Ticket number for the role assignment. /// - public BicepValue TicketNumber { get => _ticketNumber; set => _ticketNumber.Assign(value); } - private readonly BicepValue _ticketNumber; + public BicepValue TicketNumber + { + get { Initialize(); return _ticketNumber!; } + set { Initialize(); _ticketNumber!.Assign(value); } + } + private BicepValue? _ticketNumber; /// /// Ticket system name for the role assignment. /// - public BicepValue TicketSystem { get => _ticketSystem; set => _ticketSystem.Assign(value); } - private readonly BicepValue _ticketSystem; + public BicepValue TicketSystem + { + get { Initialize(); return _ticketSystem!; } + set { Initialize(); _ticketSystem!.Assign(value); } + } + private BicepValue? _ticketSystem; /// /// Creates a new RoleAssignmentScheduleTicketInfo. /// public RoleAssignmentScheduleTicketInfo() { - _ticketNumber = BicepValue.DefineProperty(this, "TicketNumber", ["ticketNumber"]); - _ticketSystem = BicepValue.DefineProperty(this, "TicketSystem", ["ticketSystem"]); + } + + /// + /// Define all the provisionable properties of + /// RoleAssignmentScheduleTicketInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _ticketNumber = DefineProperty("TicketNumber", ["ticketNumber"]); + _ticketSystem = DefineProperty("TicketSystem", ["ticketSystem"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleDefinitionPermission.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleDefinitionPermission.cs index 0f55360bddc5e..6525c441d3db5 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleDefinitionPermission.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleDefinitionPermission.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,35 +19,59 @@ public partial class RoleDefinitionPermission : ProvisionableConstruct /// /// Allowed actions. /// - public BicepList Actions { get => _actions; set => _actions.Assign(value); } - private readonly BicepList _actions; + public BicepList Actions + { + get { Initialize(); return _actions!; } + set { Initialize(); _actions!.Assign(value); } + } + private BicepList? _actions; /// /// Denied actions. /// - public BicepList NotActions { get => _notActions; set => _notActions.Assign(value); } - private readonly BicepList _notActions; + public BicepList NotActions + { + get { Initialize(); return _notActions!; } + set { Initialize(); _notActions!.Assign(value); } + } + private BicepList? _notActions; /// /// Allowed Data actions. /// - public BicepList DataActions { get => _dataActions; set => _dataActions.Assign(value); } - private readonly BicepList _dataActions; + public BicepList DataActions + { + get { Initialize(); return _dataActions!; } + set { Initialize(); _dataActions!.Assign(value); } + } + private BicepList? _dataActions; /// /// Denied Data actions. /// - public BicepList NotDataActions { get => _notDataActions; set => _notDataActions.Assign(value); } - private readonly BicepList _notDataActions; + public BicepList NotDataActions + { + get { Initialize(); return _notDataActions!; } + set { Initialize(); _notDataActions!.Assign(value); } + } + private BicepList? _notDataActions; /// /// Creates a new RoleDefinitionPermission. /// public RoleDefinitionPermission() { - _actions = BicepList.DefineProperty(this, "Actions", ["actions"]); - _notActions = BicepList.DefineProperty(this, "NotActions", ["notActions"]); - _dataActions = BicepList.DefineProperty(this, "DataActions", ["dataActions"]); - _notDataActions = BicepList.DefineProperty(this, "NotDataActions", ["notDataActions"]); + } + + /// + /// Define all the provisionable properties of RoleDefinitionPermission. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _actions = DefineListProperty("Actions", ["actions"]); + _notActions = DefineListProperty("NotActions", ["notActions"]); + _dataActions = DefineListProperty("DataActions", ["dataActions"]); + _notDataActions = DefineListProperty("NotDataActions", ["notDataActions"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleEligibilityScheduleRequestPropertiesTicketInfo.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleEligibilityScheduleRequestPropertiesTicketInfo.cs index ba86d4d91bd2d..039fbb9fadbdd 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleEligibilityScheduleRequestPropertiesTicketInfo.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleEligibilityScheduleRequestPropertiesTicketInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,38 @@ public partial class RoleEligibilityScheduleRequestPropertiesTicketInfo : Provis /// /// Ticket number for the role eligibility. /// - public BicepValue TicketNumber { get => _ticketNumber; set => _ticketNumber.Assign(value); } - private readonly BicepValue _ticketNumber; + public BicepValue TicketNumber + { + get { Initialize(); return _ticketNumber!; } + set { Initialize(); _ticketNumber!.Assign(value); } + } + private BicepValue? _ticketNumber; /// /// Ticket system name for the role eligibility. /// - public BicepValue TicketSystem { get => _ticketSystem; set => _ticketSystem.Assign(value); } - private readonly BicepValue _ticketSystem; + public BicepValue TicketSystem + { + get { Initialize(); return _ticketSystem!; } + set { Initialize(); _ticketSystem!.Assign(value); } + } + private BicepValue? _ticketSystem; /// /// Creates a new RoleEligibilityScheduleRequestPropertiesTicketInfo. /// public RoleEligibilityScheduleRequestPropertiesTicketInfo() { - _ticketNumber = BicepValue.DefineProperty(this, "TicketNumber", ["ticketNumber"]); - _ticketSystem = BicepValue.DefineProperty(this, "TicketSystem", ["ticketSystem"]); + } + + /// + /// Define all the provisionable properties of + /// RoleEligibilityScheduleRequestPropertiesTicketInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _ticketNumber = DefineProperty("TicketNumber", ["ticketNumber"]); + _ticketSystem = DefineProperty("TicketSystem", ["ticketSystem"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementApprovalSettings.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementApprovalSettings.cs index ef476547dc803..0511b26f87f8f 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementApprovalSettings.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementApprovalSettings.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,42 +19,71 @@ public partial class RoleManagementApprovalSettings : ProvisionableConstruct /// /// Determines whether approval is required or not. /// - public BicepValue IsApprovalRequired { get => _isApprovalRequired; set => _isApprovalRequired.Assign(value); } - private readonly BicepValue _isApprovalRequired; + public BicepValue IsApprovalRequired + { + get { Initialize(); return _isApprovalRequired!; } + set { Initialize(); _isApprovalRequired!.Assign(value); } + } + private BicepValue? _isApprovalRequired; /// /// Determines whether approval is required for assignment extension. /// - public BicepValue IsApprovalRequiredForExtension { get => _isApprovalRequiredForExtension; set => _isApprovalRequiredForExtension.Assign(value); } - private readonly BicepValue _isApprovalRequiredForExtension; + public BicepValue IsApprovalRequiredForExtension + { + get { Initialize(); return _isApprovalRequiredForExtension!; } + set { Initialize(); _isApprovalRequiredForExtension!.Assign(value); } + } + private BicepValue? _isApprovalRequiredForExtension; /// /// Determine whether requestor justification is required. /// - public BicepValue IsRequestorJustificationRequired { get => _isRequestorJustificationRequired; set => _isRequestorJustificationRequired.Assign(value); } - private readonly BicepValue _isRequestorJustificationRequired; + public BicepValue IsRequestorJustificationRequired + { + get { Initialize(); return _isRequestorJustificationRequired!; } + set { Initialize(); _isRequestorJustificationRequired!.Assign(value); } + } + private BicepValue? _isRequestorJustificationRequired; /// /// The type of rule. /// - public BicepValue ApprovalMode { get => _approvalMode; set => _approvalMode.Assign(value); } - private readonly BicepValue _approvalMode; + public BicepValue ApprovalMode + { + get { Initialize(); return _approvalMode!; } + set { Initialize(); _approvalMode!.Assign(value); } + } + private BicepValue? _approvalMode; /// /// The approval stages of the request. /// - public BicepList ApprovalStages { get => _approvalStages; set => _approvalStages.Assign(value); } - private readonly BicepList _approvalStages; + public BicepList ApprovalStages + { + get { Initialize(); return _approvalStages!; } + set { Initialize(); _approvalStages!.Assign(value); } + } + private BicepList? _approvalStages; /// /// Creates a new RoleManagementApprovalSettings. /// public RoleManagementApprovalSettings() { - _isApprovalRequired = BicepValue.DefineProperty(this, "IsApprovalRequired", ["isApprovalRequired"]); - _isApprovalRequiredForExtension = BicepValue.DefineProperty(this, "IsApprovalRequiredForExtension", ["isApprovalRequiredForExtension"]); - _isRequestorJustificationRequired = BicepValue.DefineProperty(this, "IsRequestorJustificationRequired", ["isRequestorJustificationRequired"]); - _approvalMode = BicepValue.DefineProperty(this, "ApprovalMode", ["approvalMode"]); - _approvalStages = BicepList.DefineProperty(this, "ApprovalStages", ["approvalStages"]); + } + + /// + /// Define all the provisionable properties of + /// RoleManagementApprovalSettings. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _isApprovalRequired = DefineProperty("IsApprovalRequired", ["isApprovalRequired"]); + _isApprovalRequiredForExtension = DefineProperty("IsApprovalRequiredForExtension", ["isApprovalRequiredForExtension"]); + _isRequestorJustificationRequired = DefineProperty("IsRequestorJustificationRequired", ["isRequestorJustificationRequired"]); + _approvalMode = DefineProperty("ApprovalMode", ["approvalMode"]); + _approvalStages = DefineListProperty("ApprovalStages", ["approvalStages"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementApprovalStage.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementApprovalStage.cs index 0366a5aab051a..9269b07abf6df 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementApprovalStage.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementApprovalStage.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,51 +19,83 @@ public partial class RoleManagementApprovalStage : ProvisionableConstruct /// /// The time in days when approval request would be timed out. /// - public BicepValue ApprovalStageTimeOutInDays { get => _approvalStageTimeOutInDays; set => _approvalStageTimeOutInDays.Assign(value); } - private readonly BicepValue _approvalStageTimeOutInDays; + public BicepValue ApprovalStageTimeOutInDays + { + get { Initialize(); return _approvalStageTimeOutInDays!; } + set { Initialize(); _approvalStageTimeOutInDays!.Assign(value); } + } + private BicepValue? _approvalStageTimeOutInDays; /// /// Determines whether approver need to provide justification for his /// decision. /// - public BicepValue IsApproverJustificationRequired { get => _isApproverJustificationRequired; set => _isApproverJustificationRequired.Assign(value); } - private readonly BicepValue _isApproverJustificationRequired; + public BicepValue IsApproverJustificationRequired + { + get { Initialize(); return _isApproverJustificationRequired!; } + set { Initialize(); _isApproverJustificationRequired!.Assign(value); } + } + private BicepValue? _isApproverJustificationRequired; /// /// The time in minutes when the approval request would be escalated if the /// primary approver does not approve. /// - public BicepValue EscalationTimeInMinutes { get => _escalationTimeInMinutes; set => _escalationTimeInMinutes.Assign(value); } - private readonly BicepValue _escalationTimeInMinutes; + public BicepValue EscalationTimeInMinutes + { + get { Initialize(); return _escalationTimeInMinutes!; } + set { Initialize(); _escalationTimeInMinutes!.Assign(value); } + } + private BicepValue? _escalationTimeInMinutes; /// /// The primary approver of the request. /// - public BicepList PrimaryApprovers { get => _primaryApprovers; set => _primaryApprovers.Assign(value); } - private readonly BicepList _primaryApprovers; + public BicepList PrimaryApprovers + { + get { Initialize(); return _primaryApprovers!; } + set { Initialize(); _primaryApprovers!.Assign(value); } + } + private BicepList? _primaryApprovers; /// /// The value determine whether escalation feature is enabled. /// - public BicepValue IsEscalationEnabled { get => _isEscalationEnabled; set => _isEscalationEnabled.Assign(value); } - private readonly BicepValue _isEscalationEnabled; + public BicepValue IsEscalationEnabled + { + get { Initialize(); return _isEscalationEnabled!; } + set { Initialize(); _isEscalationEnabled!.Assign(value); } + } + private BicepValue? _isEscalationEnabled; /// /// The escalation approver of the request. /// - public BicepList EscalationApprovers { get => _escalationApprovers; set => _escalationApprovers.Assign(value); } - private readonly BicepList _escalationApprovers; + public BicepList EscalationApprovers + { + get { Initialize(); return _escalationApprovers!; } + set { Initialize(); _escalationApprovers!.Assign(value); } + } + private BicepList? _escalationApprovers; /// /// Creates a new RoleManagementApprovalStage. /// public RoleManagementApprovalStage() { - _approvalStageTimeOutInDays = BicepValue.DefineProperty(this, "ApprovalStageTimeOutInDays", ["approvalStageTimeOutInDays"]); - _isApproverJustificationRequired = BicepValue.DefineProperty(this, "IsApproverJustificationRequired", ["isApproverJustificationRequired"]); - _escalationTimeInMinutes = BicepValue.DefineProperty(this, "EscalationTimeInMinutes", ["escalationTimeInMinutes"]); - _primaryApprovers = BicepList.DefineProperty(this, "PrimaryApprovers", ["primaryApprovers"]); - _isEscalationEnabled = BicepValue.DefineProperty(this, "IsEscalationEnabled", ["isEscalationEnabled"]); - _escalationApprovers = BicepList.DefineProperty(this, "EscalationApprovers", ["escalationApprovers"]); + } + + /// + /// Define all the provisionable properties of RoleManagementApprovalStage. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _approvalStageTimeOutInDays = DefineProperty("ApprovalStageTimeOutInDays", ["approvalStageTimeOutInDays"]); + _isApproverJustificationRequired = DefineProperty("IsApproverJustificationRequired", ["isApproverJustificationRequired"]); + _escalationTimeInMinutes = DefineProperty("EscalationTimeInMinutes", ["escalationTimeInMinutes"]); + _primaryApprovers = DefineListProperty("PrimaryApprovers", ["primaryApprovers"]); + _isEscalationEnabled = DefineProperty("IsEscalationEnabled", ["isEscalationEnabled"]); + _escalationApprovers = DefineListProperty("EscalationApprovers", ["escalationApprovers"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementExpandedProperties.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementExpandedProperties.cs index 7455ed4fe841f..5524e6949d729 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementExpandedProperties.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementExpandedProperties.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; using System; @@ -17,77 +19,116 @@ public partial class RoleManagementExpandedProperties : ProvisionableConstruct /// /// Id of the principal. /// - public BicepValue PrincipalId { get => _principalId; } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + } + private BicepValue? _principalId; /// /// Display name of the principal. /// - public BicepValue PrincipalDisplayName { get => _principalDisplayName; } - private readonly BicepValue _principalDisplayName; + public BicepValue PrincipalDisplayName + { + get { Initialize(); return _principalDisplayName!; } + } + private BicepValue? _principalDisplayName; /// /// Email id of the principal. /// - public BicepValue Email { get => _email; } - private readonly BicepValue _email; + public BicepValue Email + { + get { Initialize(); return _email!; } + } + private BicepValue? _email; /// /// Type of the principal. /// - public BicepValue PrincipalType { get => _principalType; } - private readonly BicepValue _principalType; + public BicepValue PrincipalType + { + get { Initialize(); return _principalType!; } + } + private BicepValue? _principalType; /// /// Id of the role definition. /// - public BicepValue RoleDefinitionId { get => _roleDefinitionId; } - private readonly BicepValue _roleDefinitionId; + public BicepValue RoleDefinitionId + { + get { Initialize(); return _roleDefinitionId!; } + } + private BicepValue? _roleDefinitionId; /// /// Display name of the role definition. /// - public BicepValue RoleDefinitionDisplayName { get => _roleDefinitionDisplayName; } - private readonly BicepValue _roleDefinitionDisplayName; + public BicepValue RoleDefinitionDisplayName + { + get { Initialize(); return _roleDefinitionDisplayName!; } + } + private BicepValue? _roleDefinitionDisplayName; /// /// The role type. /// - public BicepValue RoleType { get => _roleType; } - private readonly BicepValue _roleType; + public BicepValue RoleType + { + get { Initialize(); return _roleType!; } + } + private BicepValue? _roleType; /// /// Scope id of the resource. /// - public BicepValue ScopeId { get => _scopeId; } - private readonly BicepValue _scopeId; + public BicepValue ScopeId + { + get { Initialize(); return _scopeId!; } + } + private BicepValue? _scopeId; /// /// Display name of the resource. /// - public BicepValue ScopeDisplayName { get => _scopeDisplayName; } - private readonly BicepValue _scopeDisplayName; + public BicepValue ScopeDisplayName + { + get { Initialize(); return _scopeDisplayName!; } + } + private BicepValue? _scopeDisplayName; /// /// Type of the scope. /// - public BicepValue ScopeType { get => _scopeType; } - private readonly BicepValue _scopeType; + public BicepValue ScopeType + { + get { Initialize(); return _scopeType!; } + } + private BicepValue? _scopeType; /// /// Creates a new RoleManagementExpandedProperties. /// public RoleManagementExpandedProperties() { - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["principal", "id"], isOutput: true); - _principalDisplayName = BicepValue.DefineProperty(this, "PrincipalDisplayName", ["principal", "displayName"], isOutput: true); - _email = BicepValue.DefineProperty(this, "Email", ["principal", "email"], isOutput: true); - _principalType = BicepValue.DefineProperty(this, "PrincipalType", ["principal", "type"], isOutput: true); - _roleDefinitionId = BicepValue.DefineProperty(this, "RoleDefinitionId", ["roleDefinition", "id"], isOutput: true); - _roleDefinitionDisplayName = BicepValue.DefineProperty(this, "RoleDefinitionDisplayName", ["roleDefinition", "displayName"], isOutput: true); - _roleType = BicepValue.DefineProperty(this, "RoleType", ["roleDefinition", "type"], isOutput: true); - _scopeId = BicepValue.DefineProperty(this, "ScopeId", ["scope", "id"], isOutput: true); - _scopeDisplayName = BicepValue.DefineProperty(this, "ScopeDisplayName", ["scope", "displayName"], isOutput: true); - _scopeType = BicepValue.DefineProperty(this, "ScopeType", ["scope", "type"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// RoleManagementExpandedProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _principalId = DefineProperty("PrincipalId", ["principal", "id"], isOutput: true); + _principalDisplayName = DefineProperty("PrincipalDisplayName", ["principal", "displayName"], isOutput: true); + _email = DefineProperty("Email", ["principal", "email"], isOutput: true); + _principalType = DefineProperty("PrincipalType", ["principal", "type"], isOutput: true); + _roleDefinitionId = DefineProperty("RoleDefinitionId", ["roleDefinition", "id"], isOutput: true); + _roleDefinitionDisplayName = DefineProperty("RoleDefinitionDisplayName", ["roleDefinition", "displayName"], isOutput: true); + _roleType = DefineProperty("RoleType", ["roleDefinition", "type"], isOutput: true); + _scopeId = DefineProperty("ScopeId", ["scope", "id"], isOutput: true); + _scopeDisplayName = DefineProperty("ScopeDisplayName", ["scope", "displayName"], isOutput: true); + _scopeType = DefineProperty("ScopeType", ["scope", "type"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyApprovalRule.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyApprovalRule.cs index ad5c4e4897b92..c51e0b8ca61c3 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyApprovalRule.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyApprovalRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,15 +19,28 @@ public partial class RoleManagementPolicyApprovalRule : RoleManagementPolicyRule /// /// The approval setting. /// - public BicepValue Settings { get => _settings; set => _settings.Assign(value); } - private readonly BicepValue _settings; + public RoleManagementApprovalSettings Settings + { + get { Initialize(); return _settings!; } + set { Initialize(); AssignOrReplace(ref _settings, value); } + } + private RoleManagementApprovalSettings? _settings; /// /// Creates a new RoleManagementPolicyApprovalRule. /// public RoleManagementPolicyApprovalRule() : base() { - BicepValue.DefineProperty(this, "ruleType", ["ruleType"], defaultValue: "RoleManagementPolicyApprovalRule"); - _settings = BicepValue.DefineProperty(this, "Settings", ["setting"]); + } + + /// + /// Define all the provisionable properties of + /// RoleManagementPolicyApprovalRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("ruleType", ["ruleType"], defaultValue: "RoleManagementPolicyApprovalRule"); + _settings = DefineModelProperty("Settings", ["setting"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyAuthenticationContextRule.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyAuthenticationContextRule.cs index e8dfe315480fe..4df5e97a09cbf 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyAuthenticationContextRule.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyAuthenticationContextRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,39 @@ public partial class RoleManagementPolicyAuthenticationContextRule : RoleManagem /// /// The value indicating if rule is enabled. /// - public BicepValue IsEnabled { get => _isEnabled; set => _isEnabled.Assign(value); } - private readonly BicepValue _isEnabled; + public BicepValue IsEnabled + { + get { Initialize(); return _isEnabled!; } + set { Initialize(); _isEnabled!.Assign(value); } + } + private BicepValue? _isEnabled; /// /// The claim value. /// - public BicepValue ClaimValue { get => _claimValue; set => _claimValue.Assign(value); } - private readonly BicepValue _claimValue; + public BicepValue ClaimValue + { + get { Initialize(); return _claimValue!; } + set { Initialize(); _claimValue!.Assign(value); } + } + private BicepValue? _claimValue; /// /// Creates a new RoleManagementPolicyAuthenticationContextRule. /// public RoleManagementPolicyAuthenticationContextRule() : base() { - BicepValue.DefineProperty(this, "ruleType", ["ruleType"], defaultValue: "RoleManagementPolicyAuthenticationContextRule"); - _isEnabled = BicepValue.DefineProperty(this, "IsEnabled", ["isEnabled"]); - _claimValue = BicepValue.DefineProperty(this, "ClaimValue", ["claimValue"]); + } + + /// + /// Define all the provisionable properties of + /// RoleManagementPolicyAuthenticationContextRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("ruleType", ["ruleType"], defaultValue: "RoleManagementPolicyAuthenticationContextRule"); + _isEnabled = DefineProperty("IsEnabled", ["isEnabled"]); + _claimValue = DefineProperty("ClaimValue", ["claimValue"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyEnablementRule.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyEnablementRule.cs index d770b82417e42..ed42c10c9a31c 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyEnablementRule.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyEnablementRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -16,15 +18,28 @@ public partial class RoleManagementPolicyEnablementRule : RoleManagementPolicyRu /// /// The list of enabled rules. /// - public BicepList EnablementRules { get => _enablementRules; set => _enablementRules.Assign(value); } - private readonly BicepList _enablementRules; + public BicepList EnablementRules + { + get { Initialize(); return _enablementRules!; } + set { Initialize(); _enablementRules!.Assign(value); } + } + private BicepList? _enablementRules; /// /// Creates a new RoleManagementPolicyEnablementRule. /// public RoleManagementPolicyEnablementRule() : base() { - BicepValue.DefineProperty(this, "ruleType", ["ruleType"], defaultValue: "RoleManagementPolicyEnablementRule"); - _enablementRules = BicepList.DefineProperty(this, "EnablementRules", ["enabledRules"]); + } + + /// + /// Define all the provisionable properties of + /// RoleManagementPolicyEnablementRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("ruleType", ["ruleType"], defaultValue: "RoleManagementPolicyEnablementRule"); + _enablementRules = DefineListProperty("EnablementRules", ["enabledRules"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyExpirationRule.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyExpirationRule.cs index 7435c46726eeb..283b20b87408b 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyExpirationRule.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyExpirationRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,22 +18,39 @@ public partial class RoleManagementPolicyExpirationRule : RoleManagementPolicyRu /// /// The value indicating whether expiration is required. /// - public BicepValue IsExpirationRequired { get => _isExpirationRequired; set => _isExpirationRequired.Assign(value); } - private readonly BicepValue _isExpirationRequired; + public BicepValue IsExpirationRequired + { + get { Initialize(); return _isExpirationRequired!; } + set { Initialize(); _isExpirationRequired!.Assign(value); } + } + private BicepValue? _isExpirationRequired; /// /// The maximum duration of expiration in timespan. /// - public BicepValue MaximumDuration { get => _maximumDuration; set => _maximumDuration.Assign(value); } - private readonly BicepValue _maximumDuration; + public BicepValue MaximumDuration + { + get { Initialize(); return _maximumDuration!; } + set { Initialize(); _maximumDuration!.Assign(value); } + } + private BicepValue? _maximumDuration; /// /// Creates a new RoleManagementPolicyExpirationRule. /// public RoleManagementPolicyExpirationRule() : base() { - BicepValue.DefineProperty(this, "ruleType", ["ruleType"], defaultValue: "RoleManagementPolicyExpirationRule"); - _isExpirationRequired = BicepValue.DefineProperty(this, "IsExpirationRequired", ["isExpirationRequired"]); - _maximumDuration = BicepValue.DefineProperty(this, "MaximumDuration", ["maximumDuration"], format: "P"); + } + + /// + /// Define all the provisionable properties of + /// RoleManagementPolicyExpirationRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("ruleType", ["ruleType"], defaultValue: "RoleManagementPolicyExpirationRule"); + _isExpirationRequired = DefineProperty("IsExpirationRequired", ["isExpirationRequired"]); + _maximumDuration = DefineProperty("MaximumDuration", ["maximumDuration"], format: "P"); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyNotificationRule.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyNotificationRule.cs index 2aab3441dd66f..d537283609f34 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyNotificationRule.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyNotificationRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,44 +19,73 @@ public partial class RoleManagementPolicyNotificationRule : RoleManagementPolicy /// /// The type of notification. /// - public BicepValue NotificationDeliveryType { get => _notificationDeliveryType; set => _notificationDeliveryType.Assign(value); } - private readonly BicepValue _notificationDeliveryType; + public BicepValue NotificationDeliveryType + { + get { Initialize(); return _notificationDeliveryType!; } + set { Initialize(); _notificationDeliveryType!.Assign(value); } + } + private BicepValue? _notificationDeliveryType; /// /// The notification level. /// - public BicepValue NotificationLevel { get => _notificationLevel; set => _notificationLevel.Assign(value); } - private readonly BicepValue _notificationLevel; + public BicepValue NotificationLevel + { + get { Initialize(); return _notificationLevel!; } + set { Initialize(); _notificationLevel!.Assign(value); } + } + private BicepValue? _notificationLevel; /// /// The recipient type. /// - public BicepValue RecipientType { get => _recipientType; set => _recipientType.Assign(value); } - private readonly BicepValue _recipientType; + public BicepValue RecipientType + { + get { Initialize(); return _recipientType!; } + set { Initialize(); _recipientType!.Assign(value); } + } + private BicepValue? _recipientType; /// /// The list of notification recipients. /// - public BicepList NotificationRecipients { get => _notificationRecipients; set => _notificationRecipients.Assign(value); } - private readonly BicepList _notificationRecipients; + public BicepList NotificationRecipients + { + get { Initialize(); return _notificationRecipients!; } + set { Initialize(); _notificationRecipients!.Assign(value); } + } + private BicepList? _notificationRecipients; /// /// Determines if the notification will be sent to the recipient type /// specified in the policy rule. /// - public BicepValue AreDefaultRecipientsEnabled { get => _areDefaultRecipientsEnabled; set => _areDefaultRecipientsEnabled.Assign(value); } - private readonly BicepValue _areDefaultRecipientsEnabled; + public BicepValue AreDefaultRecipientsEnabled + { + get { Initialize(); return _areDefaultRecipientsEnabled!; } + set { Initialize(); _areDefaultRecipientsEnabled!.Assign(value); } + } + private BicepValue? _areDefaultRecipientsEnabled; /// /// Creates a new RoleManagementPolicyNotificationRule. /// public RoleManagementPolicyNotificationRule() : base() { - BicepValue.DefineProperty(this, "ruleType", ["ruleType"], defaultValue: "RoleManagementPolicyNotificationRule"); - _notificationDeliveryType = BicepValue.DefineProperty(this, "NotificationDeliveryType", ["notificationType"]); - _notificationLevel = BicepValue.DefineProperty(this, "NotificationLevel", ["notificationLevel"]); - _recipientType = BicepValue.DefineProperty(this, "RecipientType", ["recipientType"]); - _notificationRecipients = BicepList.DefineProperty(this, "NotificationRecipients", ["notificationRecipients"]); - _areDefaultRecipientsEnabled = BicepValue.DefineProperty(this, "AreDefaultRecipientsEnabled", ["isDefaultRecipientsEnabled"]); + } + + /// + /// Define all the provisionable properties of + /// RoleManagementPolicyNotificationRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("ruleType", ["ruleType"], defaultValue: "RoleManagementPolicyNotificationRule"); + _notificationDeliveryType = DefineProperty("NotificationDeliveryType", ["notificationType"]); + _notificationLevel = DefineProperty("NotificationLevel", ["notificationLevel"]); + _recipientType = DefineProperty("RecipientType", ["recipientType"]); + _notificationRecipients = DefineListProperty("NotificationRecipients", ["notificationRecipients"]); + _areDefaultRecipientsEnabled = DefineProperty("AreDefaultRecipientsEnabled", ["isDefaultRecipientsEnabled"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyRule.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyRule.cs index fb7659b123135..772f06fa7c133 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyRule.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyRule.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -28,21 +30,37 @@ public partial class RoleManagementPolicyRule : ProvisionableConstruct /// /// The id of the rule. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// The target of the current rule. /// - public BicepValue Target { get => _target; set => _target.Assign(value); } - private readonly BicepValue _target; + public RoleManagementPolicyRuleTarget Target + { + get { Initialize(); return _target!; } + set { Initialize(); AssignOrReplace(ref _target, value); } + } + private RoleManagementPolicyRuleTarget? _target; /// /// Creates a new RoleManagementPolicyRule. /// public RoleManagementPolicyRule() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _target = BicepValue.DefineProperty(this, "Target", ["target"]); + } + + /// + /// Define all the provisionable properties of RoleManagementPolicyRule. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); + _target = DefineModelProperty("Target", ["target"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyRuleTarget.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyRuleTarget.cs index d1752b471c051..b452a4ca42080 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyRuleTarget.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPolicyRuleTarget.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning; using Azure.Provisioning.Primitives; using System; @@ -17,49 +19,82 @@ public partial class RoleManagementPolicyRuleTarget : ProvisionableConstruct /// /// The caller of the setting. /// - public BicepValue Caller { get => _caller; set => _caller.Assign(value); } - private readonly BicepValue _caller; + public BicepValue Caller + { + get { Initialize(); return _caller!; } + set { Initialize(); _caller!.Assign(value); } + } + private BicepValue? _caller; /// /// The type of operation. /// - public BicepList Operations { get => _operations; set => _operations.Assign(value); } - private readonly BicepList _operations; + public BicepList Operations + { + get { Initialize(); return _operations!; } + set { Initialize(); _operations!.Assign(value); } + } + private BicepList? _operations; /// /// The assignment level to which rule is applied. /// - public BicepValue Level { get => _level; set => _level.Assign(value); } - private readonly BicepValue _level; + public BicepValue Level + { + get { Initialize(); return _level!; } + set { Initialize(); _level!.Assign(value); } + } + private BicepValue? _level; /// /// The list of target objects. /// - public BicepList TargetObjects { get => _targetObjects; set => _targetObjects.Assign(value); } - private readonly BicepList _targetObjects; + public BicepList TargetObjects + { + get { Initialize(); return _targetObjects!; } + set { Initialize(); _targetObjects!.Assign(value); } + } + private BicepList? _targetObjects; /// /// The list of inheritable settings. /// - public BicepList InheritableSettings { get => _inheritableSettings; set => _inheritableSettings.Assign(value); } - private readonly BicepList _inheritableSettings; + public BicepList InheritableSettings + { + get { Initialize(); return _inheritableSettings!; } + set { Initialize(); _inheritableSettings!.Assign(value); } + } + private BicepList? _inheritableSettings; /// /// The list of enforced settings. /// - public BicepList EnforcedSettings { get => _enforcedSettings; set => _enforcedSettings.Assign(value); } - private readonly BicepList _enforcedSettings; + public BicepList EnforcedSettings + { + get { Initialize(); return _enforcedSettings!; } + set { Initialize(); _enforcedSettings!.Assign(value); } + } + private BicepList? _enforcedSettings; /// /// Creates a new RoleManagementPolicyRuleTarget. /// public RoleManagementPolicyRuleTarget() { - _caller = BicepValue.DefineProperty(this, "Caller", ["caller"]); - _operations = BicepList.DefineProperty(this, "Operations", ["operations"]); - _level = BicepValue.DefineProperty(this, "Level", ["level"]); - _targetObjects = BicepList.DefineProperty(this, "TargetObjects", ["targetObjects"]); - _inheritableSettings = BicepList.DefineProperty(this, "InheritableSettings", ["inheritableSettings"]); - _enforcedSettings = BicepList.DefineProperty(this, "EnforcedSettings", ["enforcedSettings"]); + } + + /// + /// Define all the provisionable properties of + /// RoleManagementPolicyRuleTarget. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _caller = DefineProperty("Caller", ["caller"]); + _operations = DefineListProperty("Operations", ["operations"]); + _level = DefineProperty("Level", ["level"]); + _targetObjects = DefineListProperty("TargetObjects", ["targetObjects"]); + _inheritableSettings = DefineListProperty("InheritableSettings", ["inheritableSettings"]); + _enforcedSettings = DefineListProperty("EnforcedSettings", ["enforcedSettings"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPrincipal.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPrincipal.cs index 25fdc6200693c..37efb0b2d6fe1 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPrincipal.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementPrincipal.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,55 @@ public partial class RoleManagementPrincipal : ProvisionableConstruct /// /// The id of the principal made changes. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The name of the principal made changes. /// - public BicepValue DisplayName { get => _displayName; } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + } + private BicepValue? _displayName; /// /// Type of the principal. /// - public BicepValue PrincipalType { get => _principalType; } - private readonly BicepValue _principalType; + public BicepValue PrincipalType + { + get { Initialize(); return _principalType!; } + } + private BicepValue? _principalType; /// /// Email of principal. /// - public BicepValue Email { get => _email; } - private readonly BicepValue _email; + public BicepValue Email + { + get { Initialize(); return _email!; } + } + private BicepValue? _email; /// /// Creates a new RoleManagementPrincipal. /// public RoleManagementPrincipal() { - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"], isOutput: true); - _principalType = BicepValue.DefineProperty(this, "PrincipalType", ["type"], isOutput: true); - _email = BicepValue.DefineProperty(this, "Email", ["email"], isOutput: true); + } + + /// + /// Define all the provisionable properties of RoleManagementPrincipal. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"], isOutput: true); + _displayName = DefineProperty("DisplayName", ["displayName"], isOutput: true); + _principalType = DefineProperty("PrincipalType", ["type"], isOutput: true); + _email = DefineProperty("Email", ["email"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementUserInfo.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementUserInfo.cs index ddab76aa4a761..b9b9aa6f1e7ae 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementUserInfo.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/RoleManagementUserInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,35 +18,59 @@ public partial class RoleManagementUserInfo : ProvisionableConstruct /// /// The type of user. /// - public BicepValue UserType { get => _userType; set => _userType.Assign(value); } - private readonly BicepValue _userType; + public BicepValue UserType + { + get { Initialize(); return _userType!; } + set { Initialize(); _userType!.Assign(value); } + } + private BicepValue? _userType; /// /// The value indicating whether the user is a backup fallback approver. /// - public BicepValue IsBackup { get => _isBackup; set => _isBackup.Assign(value); } - private readonly BicepValue _isBackup; + public BicepValue IsBackup + { + get { Initialize(); return _isBackup!; } + set { Initialize(); _isBackup!.Assign(value); } + } + private BicepValue? _isBackup; /// /// The object id of the user. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// The description of the user. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Creates a new RoleManagementUserInfo. /// public RoleManagementUserInfo() { - _userType = BicepValue.DefineProperty(this, "UserType", ["userType"]); - _isBackup = BicepValue.DefineProperty(this, "IsBackup", ["isBackup"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"]); - _description = BicepValue.DefineProperty(this, "Description", ["description"]); + } + + /// + /// Define all the provisionable properties of RoleManagementUserInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _userType = DefineProperty("UserType", ["userType"]); + _isBackup = DefineProperty("IsBackup", ["isBackup"]); + _id = DefineProperty("Id", ["id"]); + _description = DefineProperty("Description", ["description"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SubResource.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SubResource.cs index 31736fc42b690..e3ae6b55116e3 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SubResource.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SubResource.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -16,14 +18,25 @@ public partial class SubResource : ProvisionableConstruct /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Creates a new SubResource. /// public SubResource() { - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SubResource. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SubscriptionPolicies.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SubscriptionPolicies.cs index a21ff8fe2606c..5c45a491d0ef6 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SubscriptionPolicies.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SubscriptionPolicies.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -19,28 +21,45 @@ public partial class SubscriptionPolicies : ProvisionableConstruct /// location placement Id of Public_2014-09-01 has access to Azure public /// regions. /// - public BicepValue LocationPlacementId { get => _locationPlacementId; } - private readonly BicepValue _locationPlacementId; + public BicepValue LocationPlacementId + { + get { Initialize(); return _locationPlacementId!; } + } + private BicepValue? _locationPlacementId; /// /// The subscription quota ID. /// - public BicepValue QuotaId { get => _quotaId; } - private readonly BicepValue _quotaId; + public BicepValue QuotaId + { + get { Initialize(); return _quotaId!; } + } + private BicepValue? _quotaId; /// /// The subscription spending limit. /// - public BicepValue SpendingLimit { get => _spendingLimit; } - private readonly BicepValue _spendingLimit; + public BicepValue SpendingLimit + { + get { Initialize(); return _spendingLimit!; } + } + private BicepValue? _spendingLimit; /// /// Creates a new SubscriptionPolicies. /// public SubscriptionPolicies() { - _locationPlacementId = BicepValue.DefineProperty(this, "LocationPlacementId", ["locationPlacementId"], isOutput: true); - _quotaId = BicepValue.DefineProperty(this, "QuotaId", ["quotaId"], isOutput: true); - _spendingLimit = BicepValue.DefineProperty(this, "SpendingLimit", ["spendingLimit"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SubscriptionPolicies. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _locationPlacementId = DefineProperty("LocationPlacementId", ["locationPlacementId"], isOutput: true); + _quotaId = DefineProperty("QuotaId", ["quotaId"], isOutput: true); + _spendingLimit = DefineProperty("SpendingLimit", ["spendingLimit"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SystemAssignedServiceIdentity.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SystemAssignedServiceIdentity.cs index 43fe05cf40bf2..0b667ae7674d0 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SystemAssignedServiceIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SystemAssignedServiceIdentity.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -17,29 +19,48 @@ public partial class SystemAssignedServiceIdentity : ProvisionableConstruct /// The service principal ID of the system assigned identity. This property /// will only be provided for a system assigned identity. /// - public BicepValue PrincipalId { get => _principalId; } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + } + private BicepValue? _principalId; /// /// The tenant ID of the system assigned identity. This property will only /// be provided for a system assigned identity. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// Type of managed service identity (either system assigned, or none). /// - public BicepValue SystemAssignedServiceIdentityType { get => _systemAssignedServiceIdentityType; set => _systemAssignedServiceIdentityType.Assign(value); } - private readonly BicepValue _systemAssignedServiceIdentityType; + public BicepValue SystemAssignedServiceIdentityType + { + get { Initialize(); return _systemAssignedServiceIdentityType!; } + set { Initialize(); _systemAssignedServiceIdentityType!.Assign(value); } + } + private BicepValue? _systemAssignedServiceIdentityType; /// /// Creates a new SystemAssignedServiceIdentity. /// public SystemAssignedServiceIdentity() { - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["principalId"], isOutput: true); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); - _systemAssignedServiceIdentityType = BicepValue.DefineProperty(this, "SystemAssignedServiceIdentityType", ["type"]); + } + + /// + /// Define all the provisionable properties of + /// SystemAssignedServiceIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _principalId = DefineProperty("PrincipalId", ["principalId"], isOutput: true); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); + _systemAssignedServiceIdentityType = DefineProperty("SystemAssignedServiceIdentityType", ["type"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SystemData.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SystemData.cs index 547c3d004f80e..8eaf0d3b57533 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SystemData.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/SystemData.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,49 +18,75 @@ public partial class SystemData : ProvisionableConstruct /// /// The identity that created the resource. /// - public BicepValue CreatedBy { get => _createdBy; } - private readonly BicepValue _createdBy; + public BicepValue CreatedBy + { + get { Initialize(); return _createdBy!; } + } + private BicepValue? _createdBy; /// /// The type of identity that created the resource. /// - public BicepValue CreatedByType { get => _createdByType; } - private readonly BicepValue _createdByType; + public BicepValue CreatedByType + { + get { Initialize(); return _createdByType!; } + } + private BicepValue? _createdByType; /// /// The timestamp of resource creation (UTC). /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// The identity that last modified the resource. /// - public BicepValue LastModifiedBy { get => _lastModifiedBy; } - private readonly BicepValue _lastModifiedBy; + public BicepValue LastModifiedBy + { + get { Initialize(); return _lastModifiedBy!; } + } + private BicepValue? _lastModifiedBy; /// /// The type of identity that last modified the resource. /// - public BicepValue LastModifiedByType { get => _lastModifiedByType; } - private readonly BicepValue _lastModifiedByType; + public BicepValue LastModifiedByType + { + get { Initialize(); return _lastModifiedByType!; } + } + private BicepValue? _lastModifiedByType; /// /// The timestamp of resource last modification (UTC). /// - public BicepValue LastModifiedOn { get => _lastModifiedOn; } - private readonly BicepValue _lastModifiedOn; + public BicepValue LastModifiedOn + { + get { Initialize(); return _lastModifiedOn!; } + } + private BicepValue? _lastModifiedOn; /// /// Creates a new SystemData. /// public SystemData() { - _createdBy = BicepValue.DefineProperty(this, "CreatedBy", ["createdBy"], isOutput: true); - _createdByType = BicepValue.DefineProperty(this, "CreatedByType", ["createdByType"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["createdAt"], isOutput: true); - _lastModifiedBy = BicepValue.DefineProperty(this, "LastModifiedBy", ["lastModifiedBy"], isOutput: true); - _lastModifiedByType = BicepValue.DefineProperty(this, "LastModifiedByType", ["lastModifiedByType"], isOutput: true); - _lastModifiedOn = BicepValue.DefineProperty(this, "LastModifiedOn", ["lastModifiedAt"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SystemData. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _createdBy = DefineProperty("CreatedBy", ["createdBy"], isOutput: true); + _createdByType = DefineProperty("CreatedByType", ["createdByType"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["createdAt"], isOutput: true); + _lastModifiedBy = DefineProperty("LastModifiedBy", ["lastModifiedBy"], isOutput: true); + _lastModifiedByType = DefineProperty("LastModifiedByType", ["lastModifiedByType"], isOutput: true); + _lastModifiedOn = DefineProperty("LastModifiedOn", ["lastModifiedAt"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/TemplateSpecVersionInfo.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/TemplateSpecVersionInfo.cs index c5fbbef2150cc..6a353ff8449cd 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/TemplateSpecVersionInfo.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/TemplateSpecVersionInfo.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,28 +18,45 @@ public partial class TemplateSpecVersionInfo : ProvisionableConstruct /// /// Template Spec version description. /// - public BicepValue Description { get => _description; } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + } + private BicepValue? _description; /// /// The timestamp of when the version was created. /// - public BicepValue TimeCreated { get => _timeCreated; } - private readonly BicepValue _timeCreated; + public BicepValue TimeCreated + { + get { Initialize(); return _timeCreated!; } + } + private BicepValue? _timeCreated; /// /// The timestamp of when the version was last modified. /// - public BicepValue TimeModified { get => _timeModified; } - private readonly BicepValue _timeModified; + public BicepValue TimeModified + { + get { Initialize(); return _timeModified!; } + } + private BicepValue? _timeModified; /// /// Creates a new TemplateSpecVersionInfo. /// public TemplateSpecVersionInfo() { - _description = BicepValue.DefineProperty(this, "Description", ["description"], isOutput: true); - _timeCreated = BicepValue.DefineProperty(this, "TimeCreated", ["timeCreated"], isOutput: true); - _timeModified = BicepValue.DefineProperty(this, "TimeModified", ["timeModified"], isOutput: true); + } + + /// + /// Define all the provisionable properties of TemplateSpecVersionInfo. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _description = DefineProperty("Description", ["description"], isOutput: true); + _timeCreated = DefineProperty("TimeCreated", ["timeCreated"], isOutput: true); + _timeModified = DefineProperty("TimeModified", ["timeModified"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/UserAssignedIdentityDetails.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/UserAssignedIdentityDetails.cs index d2adb55ec898d..6133c5feb9f0b 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/UserAssignedIdentityDetails.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/UserAssignedIdentityDetails.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Provisioning.Primitives; using System; @@ -16,21 +18,35 @@ public partial class UserAssignedIdentityDetails : ProvisionableConstruct /// /// The principal ID of the assigned identity. /// - public BicepValue PrincipalId { get => _principalId; } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + } + private BicepValue? _principalId; /// /// The client ID of the assigned identity. /// - public BicepValue ClientId { get => _clientId; } - private readonly BicepValue _clientId; + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + } + private BicepValue? _clientId; /// /// Creates a new UserAssignedIdentityDetails. /// public UserAssignedIdentityDetails() { - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["principalId"], isOutput: true); - _clientId = BicepValue.DefineProperty(this, "ClientId", ["clientId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of UserAssignedIdentityDetails. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _principalId = DefineProperty("PrincipalId", ["principalId"], isOutput: true); + _clientId = DefineProperty("ClientId", ["clientId"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/WritableSubResource.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/WritableSubResource.cs index 4c336c5adb9b3..e5374c852281b 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/WritableSubResource.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/WritableSubResource.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning.Primitives; @@ -16,14 +18,26 @@ public partial class WritableSubResource : ProvisionableConstruct /// /// Gets or sets the ARM resource identifier. /// - public BicepValue Id { get => _id; set => _id.Assign(value); } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + set { Initialize(); _id!.Assign(value); } + } + private BicepValue? _id; /// /// Creates a new WritableSubResource. /// public WritableSubResource() { - _id = BicepValue.DefineProperty(this, "Id", ["id"]); + } + + /// + /// Define all the provisionable properties of WritableSubResource. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _id = DefineProperty("Id", ["id"]); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ZoneMapping.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ZoneMapping.cs index a351a94f99eb1..4c10181703a66 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ZoneMapping.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Models/ZoneMapping.cs @@ -3,6 +3,8 @@ // +#nullable enable + using Azure.Core; using Azure.Provisioning; using Azure.Provisioning.Primitives; @@ -18,21 +20,35 @@ public partial class ZoneMapping : ProvisionableConstruct /// /// Gets the Location. /// - public BicepValue Location { get => _location; } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + } + private BicepValue? _location; /// /// Gets the Zones. /// - public BicepList Zones { get => _zones; } - private readonly BicepList _zones; + public BicepList Zones + { + get { Initialize(); return _zones!; } + } + private BicepList? _zones; /// /// Creates a new ZoneMapping. /// public ZoneMapping() { - _location = BicepValue.DefineProperty(this, "Location", ["location"], isOutput: true); - _zones = BicepList.DefineProperty(this, "Zones", ["zones"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ZoneMapping. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _location = DefineProperty("Location", ["location"], isOutput: true); + _zones = DefineListProperty("Zones", ["zones"], isOutput: true); } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/PolicyAssignment.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/PolicyAssignment.cs index 20f3b1c9e5fd8..7c6965b0439b1 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/PolicyAssignment.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/PolicyAssignment.cs @@ -21,47 +21,75 @@ public partial class PolicyAssignment : ProvisionableResource /// /// The name of the policy assignment. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// This message will be part of response in case of policy violation. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The display name of the policy assignment. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// The policy assignment enforcement mode. Possible values are Default and /// DoNotEnforce. /// - public BicepValue EnforcementMode { get => _enforcementMode; set => _enforcementMode.Assign(value); } - private readonly BicepValue _enforcementMode; + public BicepValue EnforcementMode + { + get { Initialize(); return _enforcementMode!; } + set { Initialize(); _enforcementMode!.Assign(value); } + } + private BicepValue? _enforcementMode; /// /// The policy's excluded scopes. /// - public BicepList ExcludedScopes { get => _excludedScopes; set => _excludedScopes.Assign(value); } - private readonly BicepList _excludedScopes; + public BicepList ExcludedScopes + { + get { Initialize(); return _excludedScopes!; } + set { Initialize(); _excludedScopes!.Assign(value); } + } + private BicepList? _excludedScopes; /// /// The location of the policy assignment. Only required when utilizing /// managed identity. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The managed identity associated with the policy assignment. Current /// supported identity types: None, SystemAssigned, UserAssigned. /// - public BicepValue ManagedIdentity { get => _managedIdentity; set => _managedIdentity.Assign(value); } - private readonly BicepValue _managedIdentity; + public ManagedServiceIdentity ManagedIdentity + { + get { Initialize(); return _managedIdentity!; } + set { Initialize(); AssignOrReplace(ref _managedIdentity, value); } + } + private ManagedServiceIdentity? _managedIdentity; /// /// The policy assignment metadata. Metadata is an open ended object and is @@ -80,60 +108,93 @@ public partial class PolicyAssignment : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepValue _metadata; + public BicepValue Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepValue? _metadata; /// /// The messages that describe why a resource is non-compliant with the /// policy. /// - public BicepList NonComplianceMessages { get => _nonComplianceMessages; set => _nonComplianceMessages.Assign(value); } - private readonly BicepList _nonComplianceMessages; + public BicepList NonComplianceMessages + { + get { Initialize(); return _nonComplianceMessages!; } + set { Initialize(); _nonComplianceMessages!.Assign(value); } + } + private BicepList? _nonComplianceMessages; /// /// The policy property value override. /// - public BicepList Overrides { get => _overrides; set => _overrides.Assign(value); } - private readonly BicepList _overrides; + public BicepList Overrides + { + get { Initialize(); return _overrides!; } + set { Initialize(); _overrides!.Assign(value); } + } + private BicepList? _overrides; /// /// The parameter values for the assigned policy rule. The keys are the /// parameter names. /// - public BicepDictionary Parameters { get => _parameters; set => _parameters.Assign(value); } - private readonly BicepDictionary _parameters; + public BicepDictionary Parameters + { + get { Initialize(); return _parameters!; } + set { Initialize(); _parameters!.Assign(value); } + } + private BicepDictionary? _parameters; /// /// The ID of the policy definition or policy set definition being assigned. /// - public BicepValue PolicyDefinitionId { get => _policyDefinitionId; set => _policyDefinitionId.Assign(value); } - private readonly BicepValue _policyDefinitionId; + public BicepValue PolicyDefinitionId + { + get { Initialize(); return _policyDefinitionId!; } + set { Initialize(); _policyDefinitionId!.Assign(value); } + } + private BicepValue? _policyDefinitionId; /// /// The resource selector list to filter policies by resource properties. /// - public BicepList ResourceSelectors { get => _resourceSelectors; set => _resourceSelectors.Assign(value); } - private readonly BicepList _resourceSelectors; + public BicepList ResourceSelectors + { + get { Initialize(); return _resourceSelectors!; } + set { Initialize(); _resourceSelectors!.Assign(value); } + } + private BicepList? _resourceSelectors; /// /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The scope for the policy assignment. /// - public BicepValue Scope { get => _scope; } - private readonly BicepValue _scope; + public BicepValue Scope + { + get { Initialize(); return _scope!; } + } + private BicepValue? _scope; /// /// Azure Resource Manager metadata containing createdBy and modifiedBy /// information. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new PolicyAssignment. @@ -148,22 +209,29 @@ public partial class PolicyAssignment : ProvisionableResource public PolicyAssignment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Authorization/policyAssignments", resourceVersion ?? "2024-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["properties", "displayName"]); - _enforcementMode = BicepValue.DefineProperty(this, "EnforcementMode", ["properties", "enforcementMode"]); - _excludedScopes = BicepList.DefineProperty(this, "ExcludedScopes", ["properties", "notScopes"]); - _location = BicepValue.DefineProperty(this, "Location", ["location"]); - _managedIdentity = BicepValue.DefineProperty(this, "ManagedIdentity", ["identity"]); - _metadata = BicepValue.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _nonComplianceMessages = BicepList.DefineProperty(this, "NonComplianceMessages", ["properties", "nonComplianceMessages"]); - _overrides = BicepList.DefineProperty(this, "Overrides", ["properties", "overrides"]); - _parameters = BicepDictionary.DefineProperty(this, "Parameters", ["properties", "parameters"]); - _policyDefinitionId = BicepValue.DefineProperty(this, "PolicyDefinitionId", ["properties", "policyDefinitionId"]); - _resourceSelectors = BicepList.DefineProperty(this, "ResourceSelectors", ["properties", "resourceSelectors"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _scope = BicepValue.DefineProperty(this, "Scope", ["properties", "scope"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of PolicyAssignment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _description = DefineProperty("Description", ["properties", "description"]); + _displayName = DefineProperty("DisplayName", ["properties", "displayName"]); + _enforcementMode = DefineProperty("EnforcementMode", ["properties", "enforcementMode"]); + _excludedScopes = DefineListProperty("ExcludedScopes", ["properties", "notScopes"]); + _location = DefineProperty("Location", ["location"]); + _managedIdentity = DefineModelProperty("ManagedIdentity", ["identity"]); + _metadata = DefineProperty("Metadata", ["properties", "metadata"]); + _nonComplianceMessages = DefineListProperty("NonComplianceMessages", ["properties", "nonComplianceMessages"]); + _overrides = DefineListProperty("Overrides", ["properties", "overrides"]); + _parameters = DefineDictionaryProperty("Parameters", ["properties", "parameters"]); + _policyDefinitionId = DefineProperty("PolicyDefinitionId", ["properties", "policyDefinitionId"]); + _resourceSelectors = DefineListProperty("ResourceSelectors", ["properties", "resourceSelectors"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _scope = DefineProperty("Scope", ["properties", "scope"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/ResourceGroup.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/ResourceGroup.cs index a54ecda25b1fb..11bf3f95c548b 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/ResourceGroup.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/ResourceGroup.cs @@ -24,46 +24,71 @@ public partial class ResourceGroup : ProvisionableResource /// alphanumeric, underscore, parentheses, hyphen, period (except at end), /// and Unicode characters that match the allowed characters. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The geo-location where the resource lives. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// The ID of the resource that manages this resource group. /// - public BicepValue ManagedBy { get => _managedBy; set => _managedBy.Assign(value); } - private readonly BicepValue _managedBy; + public BicepValue ManagedBy + { + get { Initialize(); return _managedBy!; } + set { Initialize(); _managedBy!.Assign(value); } + } + private BicepValue? _managedBy; /// /// Resource tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The provisioning state. /// - public BicepValue ResourceGroupProvisioningState { get => _resourceGroupProvisioningState; } - private readonly BicepValue _resourceGroupProvisioningState; + public BicepValue ResourceGroupProvisioningState + { + get { Initialize(); return _resourceGroupProvisioningState!; } + } + private BicepValue? _resourceGroupProvisioningState; /// /// Azure Resource Manager metadata containing createdBy and modifiedBy /// information. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new ResourceGroup. @@ -78,13 +103,20 @@ public partial class ResourceGroup : ProvisionableResource public ResourceGroup(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Resources/resourceGroups", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _managedBy = BicepValue.DefineProperty(this, "ManagedBy", ["managedBy"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _resourceGroupProvisioningState = BicepValue.DefineProperty(this, "ResourceGroupProvisioningState", ["properties", "provisioningState"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of ResourceGroup. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _managedBy = DefineProperty("ManagedBy", ["managedBy"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _resourceGroupProvisioningState = DefineProperty("ResourceGroupProvisioningState", ["properties", "provisioningState"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// @@ -317,22 +349,6 @@ public static class ResourceVersions public static ResourceGroup FromExisting(string bicepIdentifier, string? resourceVersion = default) => new(bicepIdentifier, resourceVersion) { IsExistingResource = true }; - /// - /// Creates a new ResourceGroup resource from a Bicep expression that - /// evaluates to a ResourceGroup. - /// - /// - /// A Bicep expression that evaluates to a ResourceGroup resource. - /// - /// A ResourceGroup resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static ResourceGroup FromExpression(BicepExpression expression) - { - ResourceGroup resource = new(nameof(ResourceGroup)); - resource.OverrideWithExpression(expression); - return resource; - } - /// /// Get the requirements for naming this ResourceGroup resource. /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/RoleAssignment.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/RoleAssignment.cs index ecd4d7654f12d..1fa597bc03a91 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/RoleAssignment.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/RoleAssignment.cs @@ -20,20 +20,32 @@ public partial class RoleAssignment : ProvisionableResource /// /// The name of the role assignment. It can be any valid GUID. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The principal ID. /// - public BicepValue PrincipalId { get => _principalId; set => _principalId.Assign(value); } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + set { Initialize(); _principalId!.Assign(value); } + } + private BicepValue? _principalId; /// /// The role definition ID. /// - public BicepValue RoleDefinitionId { get => _roleDefinitionId; set => _roleDefinitionId.Assign(value); } - private readonly BicepValue _roleDefinitionId; + public BicepValue RoleDefinitionId + { + get { Initialize(); return _roleDefinitionId!; } + set { Initialize(); _roleDefinitionId!.Assign(value); } + } + private BicepValue? _roleDefinitionId; /// /// The conditions on the role assignment. This limits the resources it can @@ -41,75 +53,117 @@ public partial class RoleAssignment : ProvisionableResource /// @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] /// StringEqualsIgnoreCase 'foo_storage_container'. /// - public BicepValue Condition { get => _condition; set => _condition.Assign(value); } - private readonly BicepValue _condition; + public BicepValue Condition + { + get { Initialize(); return _condition!; } + set { Initialize(); _condition!.Assign(value); } + } + private BicepValue? _condition; /// /// Version of the condition. Currently the only accepted value is /// '2.0'. /// - public BicepValue ConditionVersion { get => _conditionVersion; set => _conditionVersion.Assign(value); } - private readonly BicepValue _conditionVersion; + public BicepValue ConditionVersion + { + get { Initialize(); return _conditionVersion!; } + set { Initialize(); _conditionVersion!.Assign(value); } + } + private BicepValue? _conditionVersion; /// /// Id of the delegated managed identity resource. /// - public BicepValue DelegatedManagedIdentityResourceId { get => _delegatedManagedIdentityResourceId; set => _delegatedManagedIdentityResourceId.Assign(value); } - private readonly BicepValue _delegatedManagedIdentityResourceId; + public BicepValue DelegatedManagedIdentityResourceId + { + get { Initialize(); return _delegatedManagedIdentityResourceId!; } + set { Initialize(); _delegatedManagedIdentityResourceId!.Assign(value); } + } + private BicepValue? _delegatedManagedIdentityResourceId; /// /// Description of role assignment. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The principal type of the assigned principal ID. /// - public BicepValue PrincipalType { get => _principalType; set => _principalType.Assign(value); } - private readonly BicepValue _principalType; + public BicepValue PrincipalType + { + get { Initialize(); return _principalType!; } + set { Initialize(); _principalType!.Assign(value); } + } + private BicepValue? _principalType; /// /// Id of the user who created the assignment. /// - public BicepValue CreatedBy { get => _createdBy; } - private readonly BicepValue _createdBy; + public BicepValue CreatedBy + { + get { Initialize(); return _createdBy!; } + } + private BicepValue? _createdBy; /// /// Time it was created. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The role assignment scope. /// - public BicepValue Scope { get => _scope; set => _scope.Assign(value); } - private readonly BicepValue _scope; + public BicepValue Scope + { + get { Initialize(); return _scope!; } + set { Initialize(); _scope!.Assign(value); } + } + private BicepValue? _scope; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Id of the user who updated the assignment. /// - public BicepValue UpdatedBy { get => _updatedBy; } - private readonly BicepValue _updatedBy; + public BicepValue UpdatedBy + { + get { Initialize(); return _updatedBy!; } + } + private BicepValue? _updatedBy; /// /// Time it was updated. /// - public BicepValue UpdatedOn { get => _updatedOn; } - private readonly BicepValue _updatedOn; + public BicepValue UpdatedOn + { + get { Initialize(); return _updatedOn!; } + } + private BicepValue? _updatedOn; /// /// Get the default value for the Name property. @@ -129,21 +183,28 @@ public partial class RoleAssignment : ProvisionableResource public RoleAssignment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Authorization/roleAssignments", resourceVersion ?? "2022-04-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true, defaultValue: GetNameDefaultValue()); - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["properties", "principalId"], isRequired: true); - _roleDefinitionId = BicepValue.DefineProperty(this, "RoleDefinitionId", ["properties", "roleDefinitionId"], isRequired: true); - _condition = BicepValue.DefineProperty(this, "Condition", ["properties", "condition"]); - _conditionVersion = BicepValue.DefineProperty(this, "ConditionVersion", ["properties", "conditionVersion"]); - _delegatedManagedIdentityResourceId = BicepValue.DefineProperty(this, "DelegatedManagedIdentityResourceId", ["properties", "delegatedManagedIdentityResourceId"]); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _principalType = BicepValue.DefineProperty(this, "PrincipalType", ["properties", "principalType"]); - _createdBy = BicepValue.DefineProperty(this, "CreatedBy", ["properties", "createdBy"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdOn"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _scope = BicepValue.DefineProperty(this, "Scope", ["scope"]); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _updatedBy = BicepValue.DefineProperty(this, "UpdatedBy", ["properties", "updatedBy"], isOutput: true); - _updatedOn = BicepValue.DefineProperty(this, "UpdatedOn", ["properties", "updatedOn"], isOutput: true); + } + + /// + /// Define all the provisionable properties of RoleAssignment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true, defaultValue: GetNameDefaultValue()); + _principalId = DefineProperty("PrincipalId", ["properties", "principalId"], isRequired: true); + _roleDefinitionId = DefineProperty("RoleDefinitionId", ["properties", "roleDefinitionId"], isRequired: true); + _condition = DefineProperty("Condition", ["properties", "condition"]); + _conditionVersion = DefineProperty("ConditionVersion", ["properties", "conditionVersion"]); + _delegatedManagedIdentityResourceId = DefineProperty("DelegatedManagedIdentityResourceId", ["properties", "delegatedManagedIdentityResourceId"]); + _description = DefineProperty("Description", ["properties", "description"]); + _principalType = DefineProperty("PrincipalType", ["properties", "principalType"]); + _createdBy = DefineProperty("CreatedBy", ["properties", "createdBy"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdOn"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _scope = DefineProperty("Scope", ["scope"]); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _updatedBy = DefineProperty("UpdatedBy", ["properties", "updatedBy"], isOutput: true); + _updatedOn = DefineProperty("UpdatedOn", ["properties", "updatedOn"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/RoleAssignmentScheduleRequest.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/RoleAssignmentScheduleRequest.cs index 2fb6f007857ec..0cded32ffe913 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/RoleAssignmentScheduleRequest.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/RoleAssignmentScheduleRequest.cs @@ -21,8 +21,12 @@ public partial class RoleAssignmentScheduleRequest : ProvisionableResource /// A GUID for the role assignment to create. The name must be unique and /// different for each role assignment. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The conditions on the role assignment. This limits the resources it can @@ -30,142 +34,225 @@ public partial class RoleAssignmentScheduleRequest : ProvisionableResource /// @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] /// StringEqualsIgnoreCase 'foo_storage_container'. /// - public BicepValue Condition { get => _condition; set => _condition.Assign(value); } - private readonly BicepValue _condition; + public BicepValue Condition + { + get { Initialize(); return _condition!; } + set { Initialize(); _condition!.Assign(value); } + } + private BicepValue? _condition; /// /// Version of the condition. Currently accepted value is '2.0'. /// - public BicepValue ConditionVersion { get => _conditionVersion; set => _conditionVersion.Assign(value); } - private readonly BicepValue _conditionVersion; + public BicepValue ConditionVersion + { + get { Initialize(); return _conditionVersion!; } + set { Initialize(); _conditionVersion!.Assign(value); } + } + private BicepValue? _conditionVersion; /// /// Duration of the role assignment schedule in TimeSpan. /// - public BicepValue Duration { get => _duration; set => _duration.Assign(value); } - private readonly BicepValue _duration; + public BicepValue Duration + { + get { Initialize(); return _duration!; } + set { Initialize(); _duration!.Assign(value); } + } + private BicepValue? _duration; /// /// End DateTime of the role assignment schedule. /// - public BicepValue EndOn { get => _endOn; set => _endOn.Assign(value); } - private readonly BicepValue _endOn; + public BicepValue EndOn + { + get { Initialize(); return _endOn!; } + set { Initialize(); _endOn!.Assign(value); } + } + private BicepValue? _endOn; /// /// Type of the role assignment schedule expiration. /// - public BicepValue ExpirationType { get => _expirationType; set => _expirationType.Assign(value); } - private readonly BicepValue _expirationType; + public BicepValue ExpirationType + { + get { Initialize(); return _expirationType!; } + set { Initialize(); _expirationType!.Assign(value); } + } + private BicepValue? _expirationType; /// /// Justification for the role assignment. /// - public BicepValue Justification { get => _justification; set => _justification.Assign(value); } - private readonly BicepValue _justification; + public BicepValue Justification + { + get { Initialize(); return _justification!; } + set { Initialize(); _justification!.Assign(value); } + } + private BicepValue? _justification; /// /// The linked role eligibility schedule id - to activate an eligibility. /// - public BicepValue LinkedRoleEligibilityScheduleId { get => _linkedRoleEligibilityScheduleId; set => _linkedRoleEligibilityScheduleId.Assign(value); } - private readonly BicepValue _linkedRoleEligibilityScheduleId; + public BicepValue LinkedRoleEligibilityScheduleId + { + get { Initialize(); return _linkedRoleEligibilityScheduleId!; } + set { Initialize(); _linkedRoleEligibilityScheduleId!.Assign(value); } + } + private BicepValue? _linkedRoleEligibilityScheduleId; /// /// The principal ID. /// - public BicepValue PrincipalId { get => _principalId; set => _principalId.Assign(value); } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + set { Initialize(); _principalId!.Assign(value); } + } + private BicepValue? _principalId; /// /// The type of the role assignment schedule request. Eg: SelfActivate, /// AdminAssign etc. /// - public BicepValue RequestType { get => _requestType; set => _requestType.Assign(value); } - private readonly BicepValue _requestType; + public BicepValue RequestType + { + get { Initialize(); return _requestType!; } + set { Initialize(); _requestType!.Assign(value); } + } + private BicepValue? _requestType; /// /// The role definition ID. /// - public BicepValue RoleDefinitionId { get => _roleDefinitionId; set => _roleDefinitionId.Assign(value); } - private readonly BicepValue _roleDefinitionId; + public BicepValue RoleDefinitionId + { + get { Initialize(); return _roleDefinitionId!; } + set { Initialize(); _roleDefinitionId!.Assign(value); } + } + private BicepValue? _roleDefinitionId; /// /// Start DateTime of the role assignment schedule. /// - public BicepValue StartOn { get => _startOn; set => _startOn.Assign(value); } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + set { Initialize(); _startOn!.Assign(value); } + } + private BicepValue? _startOn; /// /// The resultant role assignment schedule id or the role assignment /// schedule id being updated. /// - public BicepValue TargetRoleAssignmentScheduleId { get => _targetRoleAssignmentScheduleId; set => _targetRoleAssignmentScheduleId.Assign(value); } - private readonly BicepValue _targetRoleAssignmentScheduleId; + public BicepValue TargetRoleAssignmentScheduleId + { + get { Initialize(); return _targetRoleAssignmentScheduleId!; } + set { Initialize(); _targetRoleAssignmentScheduleId!.Assign(value); } + } + private BicepValue? _targetRoleAssignmentScheduleId; /// /// The role assignment schedule instance id being updated. /// - public BicepValue TargetRoleAssignmentScheduleInstanceId { get => _targetRoleAssignmentScheduleInstanceId; set => _targetRoleAssignmentScheduleInstanceId.Assign(value); } - private readonly BicepValue _targetRoleAssignmentScheduleInstanceId; + public BicepValue TargetRoleAssignmentScheduleInstanceId + { + get { Initialize(); return _targetRoleAssignmentScheduleInstanceId!; } + set { Initialize(); _targetRoleAssignmentScheduleInstanceId!.Assign(value); } + } + private BicepValue? _targetRoleAssignmentScheduleInstanceId; /// /// Ticket Info of the role assignment. /// - public BicepValue TicketInfo { get => _ticketInfo; set => _ticketInfo.Assign(value); } - private readonly BicepValue _ticketInfo; + public RoleAssignmentScheduleTicketInfo TicketInfo + { + get { Initialize(); return _ticketInfo!; } + set { Initialize(); AssignOrReplace(ref _ticketInfo, value); } + } + private RoleAssignmentScheduleTicketInfo? _ticketInfo; /// /// The approvalId of the role assignment schedule request. /// - public BicepValue ApprovalId { get => _approvalId; } - private readonly BicepValue _approvalId; + public BicepValue ApprovalId + { + get { Initialize(); return _approvalId!; } + } + private BicepValue? _approvalId; /// /// DateTime when role assignment schedule request was created. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Additional properties of principal, scope and role definition. /// - public BicepValue ExpandedProperties { get => _expandedProperties; } - private readonly BicepValue _expandedProperties; + public RoleManagementExpandedProperties ExpandedProperties + { + get { Initialize(); return _expandedProperties!; } + } + private RoleManagementExpandedProperties? _expandedProperties; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The principal type of the assigned principal ID. /// - public BicepValue PrincipalType { get => _principalType; } - private readonly BicepValue _principalType; + public BicepValue PrincipalType + { + get { Initialize(); return _principalType!; } + } + private BicepValue? _principalType; /// /// Id of the user who created this request. /// - public BicepValue RequestorId { get => _requestorId; } - private readonly BicepValue _requestorId; + public BicepValue RequestorId + { + get { Initialize(); return _requestorId!; } + } + private BicepValue? _requestorId; /// /// The role assignment schedule request scope. /// - public BicepValue Scope { get => _scope; } - private readonly BicepValue _scope; + public BicepValue Scope + { + get { Initialize(); return _scope!; } + } + private BicepValue? _scope; /// /// The status of the role assignment schedule request. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new RoleAssignmentScheduleRequest. @@ -180,30 +267,38 @@ public partial class RoleAssignmentScheduleRequest : ProvisionableResource public RoleAssignmentScheduleRequest(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Authorization/roleAssignmentScheduleRequests", resourceVersion ?? "2020-10-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _condition = BicepValue.DefineProperty(this, "Condition", ["properties", "condition"]); - _conditionVersion = BicepValue.DefineProperty(this, "ConditionVersion", ["properties", "conditionVersion"]); - _duration = BicepValue.DefineProperty(this, "Duration", ["properties", "duration"], format: "P"); - _endOn = BicepValue.DefineProperty(this, "EndOn", ["properties", "endDateTime"]); - _expirationType = BicepValue.DefineProperty(this, "ExpirationType", ["properties", "type"]); - _justification = BicepValue.DefineProperty(this, "Justification", ["properties", "justification"]); - _linkedRoleEligibilityScheduleId = BicepValue.DefineProperty(this, "LinkedRoleEligibilityScheduleId", ["properties", "linkedRoleEligibilityScheduleId"]); - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["properties", "principalId"]); - _requestType = BicepValue.DefineProperty(this, "RequestType", ["properties", "requestType"]); - _roleDefinitionId = BicepValue.DefineProperty(this, "RoleDefinitionId", ["properties", "roleDefinitionId"]); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["properties", "startDateTime"]); - _targetRoleAssignmentScheduleId = BicepValue.DefineProperty(this, "TargetRoleAssignmentScheduleId", ["properties", "targetRoleAssignmentScheduleId"]); - _targetRoleAssignmentScheduleInstanceId = BicepValue.DefineProperty(this, "TargetRoleAssignmentScheduleInstanceId", ["properties", "targetRoleAssignmentScheduleInstanceId"]); - _ticketInfo = BicepValue.DefineProperty(this, "TicketInfo", ["properties", "ticketInfo"]); - _approvalId = BicepValue.DefineProperty(this, "ApprovalId", ["properties", "approvalId"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdOn"], isOutput: true); - _expandedProperties = BicepValue.DefineProperty(this, "ExpandedProperties", ["properties", "expandedProperties"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _principalType = BicepValue.DefineProperty(this, "PrincipalType", ["properties", "principalType"], isOutput: true); - _requestorId = BicepValue.DefineProperty(this, "RequestorId", ["properties", "requestorId"], isOutput: true); - _scope = BicepValue.DefineProperty(this, "Scope", ["properties", "scope"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// RoleAssignmentScheduleRequest. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _condition = DefineProperty("Condition", ["properties", "condition"]); + _conditionVersion = DefineProperty("ConditionVersion", ["properties", "conditionVersion"]); + _duration = DefineProperty("Duration", ["properties", "duration"], format: "P"); + _endOn = DefineProperty("EndOn", ["properties", "endDateTime"]); + _expirationType = DefineProperty("ExpirationType", ["properties", "type"]); + _justification = DefineProperty("Justification", ["properties", "justification"]); + _linkedRoleEligibilityScheduleId = DefineProperty("LinkedRoleEligibilityScheduleId", ["properties", "linkedRoleEligibilityScheduleId"]); + _principalId = DefineProperty("PrincipalId", ["properties", "principalId"]); + _requestType = DefineProperty("RequestType", ["properties", "requestType"]); + _roleDefinitionId = DefineProperty("RoleDefinitionId", ["properties", "roleDefinitionId"]); + _startOn = DefineProperty("StartOn", ["properties", "startDateTime"]); + _targetRoleAssignmentScheduleId = DefineProperty("TargetRoleAssignmentScheduleId", ["properties", "targetRoleAssignmentScheduleId"]); + _targetRoleAssignmentScheduleInstanceId = DefineProperty("TargetRoleAssignmentScheduleInstanceId", ["properties", "targetRoleAssignmentScheduleInstanceId"]); + _ticketInfo = DefineModelProperty("TicketInfo", ["properties", "ticketInfo"]); + _approvalId = DefineProperty("ApprovalId", ["properties", "approvalId"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdOn"], isOutput: true); + _expandedProperties = DefineModelProperty("ExpandedProperties", ["properties", "expandedProperties"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _principalType = DefineProperty("PrincipalType", ["properties", "principalType"], isOutput: true); + _requestorId = DefineProperty("RequestorId", ["properties", "requestorId"], isOutput: true); + _scope = DefineProperty("Scope", ["properties", "scope"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/RoleEligibilityScheduleRequest.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/RoleEligibilityScheduleRequest.cs index 9ed3a3e769817..a505fdca6856a 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/RoleEligibilityScheduleRequest.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/RoleEligibilityScheduleRequest.cs @@ -20,8 +20,12 @@ public partial class RoleEligibilityScheduleRequest : ProvisionableResource /// /// The name of the role eligibility to create. It can be any valid GUID. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The conditions on the role assignment. This limits the resources it can @@ -29,136 +33,215 @@ public partial class RoleEligibilityScheduleRequest : ProvisionableResource /// @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] /// StringEqualsIgnoreCase 'foo_storage_container'. /// - public BicepValue Condition { get => _condition; set => _condition.Assign(value); } - private readonly BicepValue _condition; + public BicepValue Condition + { + get { Initialize(); return _condition!; } + set { Initialize(); _condition!.Assign(value); } + } + private BicepValue? _condition; /// /// Version of the condition. Currently accepted value is '2.0'. /// - public BicepValue ConditionVersion { get => _conditionVersion; set => _conditionVersion.Assign(value); } - private readonly BicepValue _conditionVersion; + public BicepValue ConditionVersion + { + get { Initialize(); return _conditionVersion!; } + set { Initialize(); _conditionVersion!.Assign(value); } + } + private BicepValue? _conditionVersion; /// /// Duration of the role eligibility schedule in TimeSpan. /// - public BicepValue Duration { get => _duration; set => _duration.Assign(value); } - private readonly BicepValue _duration; + public BicepValue Duration + { + get { Initialize(); return _duration!; } + set { Initialize(); _duration!.Assign(value); } + } + private BicepValue? _duration; /// /// End DateTime of the role eligibility schedule. /// - public BicepValue EndOn { get => _endOn; set => _endOn.Assign(value); } - private readonly BicepValue _endOn; + public BicepValue EndOn + { + get { Initialize(); return _endOn!; } + set { Initialize(); _endOn!.Assign(value); } + } + private BicepValue? _endOn; /// /// Type of the role eligibility schedule expiration. /// - public BicepValue ExpirationType { get => _expirationType; set => _expirationType.Assign(value); } - private readonly BicepValue _expirationType; + public BicepValue ExpirationType + { + get { Initialize(); return _expirationType!; } + set { Initialize(); _expirationType!.Assign(value); } + } + private BicepValue? _expirationType; /// /// Justification for the role eligibility. /// - public BicepValue Justification { get => _justification; set => _justification.Assign(value); } - private readonly BicepValue _justification; + public BicepValue Justification + { + get { Initialize(); return _justification!; } + set { Initialize(); _justification!.Assign(value); } + } + private BicepValue? _justification; /// /// The principal ID. /// - public BicepValue PrincipalId { get => _principalId; set => _principalId.Assign(value); } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + set { Initialize(); _principalId!.Assign(value); } + } + private BicepValue? _principalId; /// /// The type of the role assignment schedule request. Eg: SelfActivate, /// AdminAssign etc. /// - public BicepValue RequestType { get => _requestType; set => _requestType.Assign(value); } - private readonly BicepValue _requestType; + public BicepValue RequestType + { + get { Initialize(); return _requestType!; } + set { Initialize(); _requestType!.Assign(value); } + } + private BicepValue? _requestType; /// /// The role definition ID. /// - public BicepValue RoleDefinitionId { get => _roleDefinitionId; set => _roleDefinitionId.Assign(value); } - private readonly BicepValue _roleDefinitionId; + public BicepValue RoleDefinitionId + { + get { Initialize(); return _roleDefinitionId!; } + set { Initialize(); _roleDefinitionId!.Assign(value); } + } + private BicepValue? _roleDefinitionId; /// /// Start DateTime of the role eligibility schedule. /// - public BicepValue StartOn { get => _startOn; set => _startOn.Assign(value); } - private readonly BicepValue _startOn; + public BicepValue StartOn + { + get { Initialize(); return _startOn!; } + set { Initialize(); _startOn!.Assign(value); } + } + private BicepValue? _startOn; /// /// The resultant role eligibility schedule id or the role eligibility /// schedule id being updated. /// - public BicepValue TargetRoleEligibilityScheduleId { get => _targetRoleEligibilityScheduleId; set => _targetRoleEligibilityScheduleId.Assign(value); } - private readonly BicepValue _targetRoleEligibilityScheduleId; + public BicepValue TargetRoleEligibilityScheduleId + { + get { Initialize(); return _targetRoleEligibilityScheduleId!; } + set { Initialize(); _targetRoleEligibilityScheduleId!.Assign(value); } + } + private BicepValue? _targetRoleEligibilityScheduleId; /// /// The role eligibility schedule instance id being updated. /// - public BicepValue TargetRoleEligibilityScheduleInstanceId { get => _targetRoleEligibilityScheduleInstanceId; set => _targetRoleEligibilityScheduleInstanceId.Assign(value); } - private readonly BicepValue _targetRoleEligibilityScheduleInstanceId; + public BicepValue TargetRoleEligibilityScheduleInstanceId + { + get { Initialize(); return _targetRoleEligibilityScheduleInstanceId!; } + set { Initialize(); _targetRoleEligibilityScheduleInstanceId!.Assign(value); } + } + private BicepValue? _targetRoleEligibilityScheduleInstanceId; /// /// Ticket Info of the role eligibility. /// - public BicepValue TicketInfo { get => _ticketInfo; set => _ticketInfo.Assign(value); } - private readonly BicepValue _ticketInfo; + public RoleEligibilityScheduleRequestPropertiesTicketInfo TicketInfo + { + get { Initialize(); return _ticketInfo!; } + set { Initialize(); AssignOrReplace(ref _ticketInfo, value); } + } + private RoleEligibilityScheduleRequestPropertiesTicketInfo? _ticketInfo; /// /// The approvalId of the role eligibility schedule request. /// - public BicepValue ApprovalId { get => _approvalId; } - private readonly BicepValue _approvalId; + public BicepValue ApprovalId + { + get { Initialize(); return _approvalId!; } + } + private BicepValue? _approvalId; /// /// DateTime when role eligibility schedule request was created. /// - public BicepValue CreatedOn { get => _createdOn; } - private readonly BicepValue _createdOn; + public BicepValue CreatedOn + { + get { Initialize(); return _createdOn!; } + } + private BicepValue? _createdOn; /// /// Additional properties of principal, scope and role definition. /// - public BicepValue ExpandedProperties { get => _expandedProperties; } - private readonly BicepValue _expandedProperties; + public RoleManagementExpandedProperties ExpandedProperties + { + get { Initialize(); return _expandedProperties!; } + } + private RoleManagementExpandedProperties? _expandedProperties; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The principal type of the assigned principal ID. /// - public BicepValue PrincipalType { get => _principalType; } - private readonly BicepValue _principalType; + public BicepValue PrincipalType + { + get { Initialize(); return _principalType!; } + } + private BicepValue? _principalType; /// /// Id of the user who created this request. /// - public BicepValue RequestorId { get => _requestorId; } - private readonly BicepValue _requestorId; + public BicepValue RequestorId + { + get { Initialize(); return _requestorId!; } + } + private BicepValue? _requestorId; /// /// The role eligibility schedule request scope. /// - public BicepValue Scope { get => _scope; } - private readonly BicepValue _scope; + public BicepValue Scope + { + get { Initialize(); return _scope!; } + } + private BicepValue? _scope; /// /// The status of the role eligibility schedule request. /// - public BicepValue Status { get => _status; } - private readonly BicepValue _status; + public BicepValue Status + { + get { Initialize(); return _status!; } + } + private BicepValue? _status; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new RoleEligibilityScheduleRequest. @@ -173,29 +256,37 @@ public partial class RoleEligibilityScheduleRequest : ProvisionableResource public RoleEligibilityScheduleRequest(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Authorization/roleEligibilityScheduleRequests", resourceVersion ?? "2020-10-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _condition = BicepValue.DefineProperty(this, "Condition", ["properties", "condition"]); - _conditionVersion = BicepValue.DefineProperty(this, "ConditionVersion", ["properties", "conditionVersion"]); - _duration = BicepValue.DefineProperty(this, "Duration", ["properties", "duration"], format: "P"); - _endOn = BicepValue.DefineProperty(this, "EndOn", ["properties", "endDateTime"]); - _expirationType = BicepValue.DefineProperty(this, "ExpirationType", ["properties", "type"]); - _justification = BicepValue.DefineProperty(this, "Justification", ["properties", "justification"]); - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["properties", "principalId"]); - _requestType = BicepValue.DefineProperty(this, "RequestType", ["properties", "requestType"]); - _roleDefinitionId = BicepValue.DefineProperty(this, "RoleDefinitionId", ["properties", "roleDefinitionId"]); - _startOn = BicepValue.DefineProperty(this, "StartOn", ["properties", "startDateTime"]); - _targetRoleEligibilityScheduleId = BicepValue.DefineProperty(this, "TargetRoleEligibilityScheduleId", ["properties", "targetRoleEligibilityScheduleId"]); - _targetRoleEligibilityScheduleInstanceId = BicepValue.DefineProperty(this, "TargetRoleEligibilityScheduleInstanceId", ["properties", "targetRoleEligibilityScheduleInstanceId"]); - _ticketInfo = BicepValue.DefineProperty(this, "TicketInfo", ["properties", "ticketInfo"]); - _approvalId = BicepValue.DefineProperty(this, "ApprovalId", ["properties", "approvalId"], isOutput: true); - _createdOn = BicepValue.DefineProperty(this, "CreatedOn", ["properties", "createdOn"], isOutput: true); - _expandedProperties = BicepValue.DefineProperty(this, "ExpandedProperties", ["properties", "expandedProperties"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _principalType = BicepValue.DefineProperty(this, "PrincipalType", ["properties", "principalType"], isOutput: true); - _requestorId = BicepValue.DefineProperty(this, "RequestorId", ["properties", "requestorId"], isOutput: true); - _scope = BicepValue.DefineProperty(this, "Scope", ["properties", "scope"], isOutput: true); - _status = BicepValue.DefineProperty(this, "Status", ["properties", "status"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// RoleEligibilityScheduleRequest. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _condition = DefineProperty("Condition", ["properties", "condition"]); + _conditionVersion = DefineProperty("ConditionVersion", ["properties", "conditionVersion"]); + _duration = DefineProperty("Duration", ["properties", "duration"], format: "P"); + _endOn = DefineProperty("EndOn", ["properties", "endDateTime"]); + _expirationType = DefineProperty("ExpirationType", ["properties", "type"]); + _justification = DefineProperty("Justification", ["properties", "justification"]); + _principalId = DefineProperty("PrincipalId", ["properties", "principalId"]); + _requestType = DefineProperty("RequestType", ["properties", "requestType"]); + _roleDefinitionId = DefineProperty("RoleDefinitionId", ["properties", "roleDefinitionId"]); + _startOn = DefineProperty("StartOn", ["properties", "startDateTime"]); + _targetRoleEligibilityScheduleId = DefineProperty("TargetRoleEligibilityScheduleId", ["properties", "targetRoleEligibilityScheduleId"]); + _targetRoleEligibilityScheduleInstanceId = DefineProperty("TargetRoleEligibilityScheduleInstanceId", ["properties", "targetRoleEligibilityScheduleInstanceId"]); + _ticketInfo = DefineModelProperty("TicketInfo", ["properties", "ticketInfo"]); + _approvalId = DefineProperty("ApprovalId", ["properties", "approvalId"], isOutput: true); + _createdOn = DefineProperty("CreatedOn", ["properties", "createdOn"], isOutput: true); + _expandedProperties = DefineModelProperty("ExpandedProperties", ["properties", "expandedProperties"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _principalType = DefineProperty("PrincipalType", ["properties", "principalType"], isOutput: true); + _requestorId = DefineProperty("RequestorId", ["properties", "requestorId"], isOutput: true); + _scope = DefineProperty("Scope", ["properties", "scope"], isOutput: true); + _status = DefineProperty("Status", ["properties", "status"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/RoleManagementPolicyAssignment.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/RoleManagementPolicyAssignment.cs index e24e1dca23354..a591ee3442620 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/RoleManagementPolicyAssignment.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/RoleManagementPolicyAssignment.cs @@ -22,26 +22,42 @@ public partial class RoleManagementPolicyAssignment : ProvisionableResource /// The name of format {guid_guid} the role management policy assignment to /// upsert. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The policy id role management policy assignment. /// - public BicepValue PolicyId { get => _policyId; set => _policyId.Assign(value); } - private readonly BicepValue _policyId; + public BicepValue PolicyId + { + get { Initialize(); return _policyId!; } + set { Initialize(); _policyId!.Assign(value); } + } + private BicepValue? _policyId; /// /// The role definition of management policy assignment. /// - public BicepValue RoleDefinitionId { get => _roleDefinitionId; set => _roleDefinitionId.Assign(value); } - private readonly BicepValue _roleDefinitionId; + public BicepValue RoleDefinitionId + { + get { Initialize(); return _roleDefinitionId!; } + set { Initialize(); _roleDefinitionId!.Assign(value); } + } + private BicepValue? _roleDefinitionId; /// /// The role management policy scope. /// - public BicepValue Scope { get => _scope; set => _scope.Assign(value); } - private readonly BicepValue _scope; + public BicepValue Scope + { + get { Initialize(); return _scope!; } + set { Initialize(); _scope!.Assign(value); } + } + private BicepValue? _scope; /// /// The readonly computed rule applied to the policy. Please @@ -58,26 +74,38 @@ public partial class RoleManagementPolicyAssignment : ProvisionableResource /// and /// Azure.ResourceManager.Authorization.Models.RoleManagementPolicyNotificationRule. /// - public BicepList EffectiveRules { get => _effectiveRules; } - private readonly BicepList _effectiveRules; + public BicepList EffectiveRules + { + get { Initialize(); return _effectiveRules!; } + } + private BicepList? _effectiveRules; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Additional properties of scope, role definition and policy. /// - public BicepValue PolicyAssignmentProperties { get => _policyAssignmentProperties; } - private readonly BicepValue _policyAssignmentProperties; + public PolicyAssignmentProperties PolicyAssignmentProperties + { + get { Initialize(); return _policyAssignmentProperties!; } + } + private PolicyAssignmentProperties? _policyAssignmentProperties; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new RoleManagementPolicyAssignment. @@ -92,14 +120,22 @@ public partial class RoleManagementPolicyAssignment : ProvisionableResource public RoleManagementPolicyAssignment(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Authorization/roleManagementPolicyAssignments", resourceVersion ?? "2020-10-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _policyId = BicepValue.DefineProperty(this, "PolicyId", ["properties", "policyId"]); - _roleDefinitionId = BicepValue.DefineProperty(this, "RoleDefinitionId", ["properties", "roleDefinitionId"]); - _scope = BicepValue.DefineProperty(this, "Scope", ["properties", "scope"]); - _effectiveRules = BicepList.DefineProperty(this, "EffectiveRules", ["properties", "effectiveRules"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _policyAssignmentProperties = BicepValue.DefineProperty(this, "PolicyAssignmentProperties", ["properties", "policyAssignmentProperties"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// RoleManagementPolicyAssignment. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _policyId = DefineProperty("PolicyId", ["properties", "policyId"]); + _roleDefinitionId = DefineProperty("RoleDefinitionId", ["properties", "roleDefinitionId"]); + _scope = DefineProperty("Scope", ["properties", "scope"]); + _effectiveRules = DefineListProperty("EffectiveRules", ["properties", "effectiveRules"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _policyAssignmentProperties = DefineModelProperty("PolicyAssignmentProperties", ["properties", "policyAssignmentProperties"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Subscription.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Subscription.cs index 411739f34ac1d..fef122ccf6cbf 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Subscription.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Subscription.cs @@ -24,57 +24,84 @@ public partial class Subscription : ProvisionableResource /// combinations of Legacy, RoleBased, Bypassed, Direct and Management. /// For example, 'Legacy, RoleBased'. /// - public BicepValue AuthorizationSource { get => _authorizationSource; } - private readonly BicepValue _authorizationSource; + public BicepValue AuthorizationSource + { + get { Initialize(); return _authorizationSource!; } + } + private BicepValue? _authorizationSource; /// /// The subscription display name. /// - public BicepValue DisplayName { get => _displayName; } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + } + private BicepValue? _displayName; /// /// The ARM resource identifier. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// An array containing the tenants managing the subscription. /// - public BicepList ManagedByTenants { get => _managedByTenants; } - private readonly BicepList _managedByTenants; + public BicepList ManagedByTenants + { + get { Initialize(); return _managedByTenants!; } + } + private BicepList? _managedByTenants; /// /// The subscription state. Possible values are Enabled, Warned, PastDue, /// Disabled, and Deleted. /// - public BicepValue State { get => _state; } - private readonly BicepValue _state; + public BicepValue State + { + get { Initialize(); return _state!; } + } + private BicepValue? _state; /// /// The subscription ID. /// - public BicepValue SubscriptionId { get => _subscriptionId; } - private readonly BicepValue _subscriptionId; + public BicepValue SubscriptionId + { + get { Initialize(); return _subscriptionId!; } + } + private BicepValue? _subscriptionId; /// /// The subscription policies. /// - public BicepValue SubscriptionPolicies { get => _subscriptionPolicies; } - private readonly BicepValue _subscriptionPolicies; + public SubscriptionPolicies SubscriptionPolicies + { + get { Initialize(); return _subscriptionPolicies!; } + } + private SubscriptionPolicies? _subscriptionPolicies; /// /// The tags attached to the subscription. /// - public BicepDictionary Tags { get => _tags; } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + } + private BicepDictionary? _tags; /// /// The subscription tenant ID. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// Creates a new Subscription. @@ -89,15 +116,22 @@ public partial class Subscription : ProvisionableResource public Subscription(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Resources/subscriptions", resourceVersion ?? "2019-10-01") { - _authorizationSource = BicepValue.DefineProperty(this, "AuthorizationSource", ["authorizationSource"], isOutput: true); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _managedByTenants = BicepList.DefineProperty(this, "ManagedByTenants", ["managedByTenants"], isOutput: true); - _state = BicepValue.DefineProperty(this, "State", ["state"], isOutput: true); - _subscriptionId = BicepValue.DefineProperty(this, "SubscriptionId", ["subscriptionId"], isOutput: true); - _subscriptionPolicies = BicepValue.DefineProperty(this, "SubscriptionPolicies", ["subscriptionPolicies"], isOutput: true); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"], isOutput: true); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of Subscription. + /// + protected override void DefineProvisionableProperties() + { + _authorizationSource = DefineProperty("AuthorizationSource", ["authorizationSource"], isOutput: true); + _displayName = DefineProperty("DisplayName", ["displayName"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _managedByTenants = DefineListProperty("ManagedByTenants", ["managedByTenants"], isOutput: true); + _state = DefineProperty("State", ["state"], isOutput: true); + _subscriptionId = DefineProperty("SubscriptionId", ["subscriptionId"], isOutput: true); + _subscriptionPolicies = DefineModelProperty("SubscriptionPolicies", ["subscriptionPolicies"], isOutput: true); + _tags = DefineDictionaryProperty("Tags", ["tags"], isOutput: true); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); } /// @@ -220,20 +254,4 @@ public static class ResourceVersions /// public static readonly string V2015_01_01 = "2015-01-01"; } - - /// - /// Creates a new Subscription resource from a Bicep expression that - /// evaluates to a Subscription. - /// - /// - /// A Bicep expression that evaluates to a Subscription resource. - /// - /// A Subscription resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static Subscription FromExpression(BicepExpression expression) - { - Subscription resource = new(nameof(Subscription)); - resource.OverrideWithExpression(expression); - return resource; - } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/SubscriptionPolicyDefinition.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/SubscriptionPolicyDefinition.cs index 6b4190959b666..447c5cbf32ec9 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/SubscriptionPolicyDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/SubscriptionPolicyDefinition.cs @@ -21,20 +21,32 @@ public partial class SubscriptionPolicyDefinition : ProvisionableResource /// /// The name of the policy definition to create. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The policy definition description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The display name of the policy definition. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// The policy definition metadata. Metadata is an open ended object and @@ -53,22 +65,34 @@ public partial class SubscriptionPolicyDefinition : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepValue _metadata; + public BicepValue Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepValue? _metadata; /// /// The policy definition mode. Some examples are All, Indexed, /// Microsoft.KeyVault.Data. /// - public BicepValue Mode { get => _mode; set => _mode.Assign(value); } - private readonly BicepValue _mode; + public BicepValue Mode + { + get { Initialize(); return _mode!; } + set { Initialize(); _mode!.Assign(value); } + } + private BicepValue? _mode; /// /// The parameter definitions for parameters used in the policy rule. The /// keys are the parameter names. /// - public BicepDictionary Parameters { get => _parameters; set => _parameters.Assign(value); } - private readonly BicepDictionary _parameters; + public BicepDictionary Parameters + { + get { Initialize(); return _parameters!; } + set { Initialize(); _parameters!.Assign(value); } + } + private BicepDictionary? _parameters; /// /// The policy rule. To assign an object to this @@ -86,29 +110,43 @@ public partial class SubscriptionPolicyDefinition : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue PolicyRule { get => _policyRule; set => _policyRule.Assign(value); } - private readonly BicepValue _policyRule; + public BicepValue PolicyRule + { + get { Initialize(); return _policyRule!; } + set { Initialize(); _policyRule!.Assign(value); } + } + private BicepValue? _policyRule; /// /// The type of policy definition. Possible values are NotSpecified, /// BuiltIn, Custom, and Static. /// - public BicepValue PolicyType { get => _policyType; set => _policyType.Assign(value); } - private readonly BicepValue _policyType; + public BicepValue PolicyType + { + get { Initialize(); return _policyType!; } + set { Initialize(); _policyType!.Assign(value); } + } + private BicepValue? _policyType; /// /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Azure Resource Manager metadata containing createdBy and modifiedBy /// information. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SubscriptionPolicyDefinition. @@ -123,16 +161,23 @@ public partial class SubscriptionPolicyDefinition : ProvisionableResource public SubscriptionPolicyDefinition(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Authorization/policyDefinitions", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["properties", "displayName"]); - _metadata = BicepValue.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _mode = BicepValue.DefineProperty(this, "Mode", ["properties", "mode"]); - _parameters = BicepDictionary.DefineProperty(this, "Parameters", ["properties", "parameters"]); - _policyRule = BicepValue.DefineProperty(this, "PolicyRule", ["properties", "policyRule"]); - _policyType = BicepValue.DefineProperty(this, "PolicyType", ["properties", "policyType"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of SubscriptionPolicyDefinition. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _description = DefineProperty("Description", ["properties", "description"]); + _displayName = DefineProperty("DisplayName", ["properties", "displayName"]); + _metadata = DefineProperty("Metadata", ["properties", "metadata"]); + _mode = DefineProperty("Mode", ["properties", "mode"]); + _parameters = DefineDictionaryProperty("Parameters", ["properties", "parameters"]); + _policyRule = DefineProperty("PolicyRule", ["properties", "policyRule"]); + _policyType = DefineProperty("PolicyType", ["properties", "policyType"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/SubscriptionPolicySetDefinition.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/SubscriptionPolicySetDefinition.cs index 12ca3d0a82420..d3a23518bce7f 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/SubscriptionPolicySetDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/SubscriptionPolicySetDefinition.cs @@ -21,20 +21,32 @@ public partial class SubscriptionPolicySetDefinition : ProvisionableResource /// /// The name of the policy set definition to create. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The policy set definition description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// The display name of the policy set definition. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// The policy set definition metadata. Metadata is an open ended object @@ -53,49 +65,75 @@ public partial class SubscriptionPolicySetDefinition : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepValue _metadata; + public BicepValue Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepValue? _metadata; /// /// The policy set definition parameters that can be used in policy /// definition references. /// - public BicepDictionary Parameters { get => _parameters; set => _parameters.Assign(value); } - private readonly BicepDictionary _parameters; + public BicepDictionary Parameters + { + get { Initialize(); return _parameters!; } + set { Initialize(); _parameters!.Assign(value); } + } + private BicepDictionary? _parameters; /// /// The metadata describing groups of policy definition references within /// the policy set definition. /// - public BicepList PolicyDefinitionGroups { get => _policyDefinitionGroups; set => _policyDefinitionGroups.Assign(value); } - private readonly BicepList _policyDefinitionGroups; + public BicepList PolicyDefinitionGroups + { + get { Initialize(); return _policyDefinitionGroups!; } + set { Initialize(); _policyDefinitionGroups!.Assign(value); } + } + private BicepList? _policyDefinitionGroups; /// /// An array of policy definition references. /// - public BicepList PolicyDefinitions { get => _policyDefinitions; set => _policyDefinitions.Assign(value); } - private readonly BicepList _policyDefinitions; + public BicepList PolicyDefinitions + { + get { Initialize(); return _policyDefinitions!; } + set { Initialize(); _policyDefinitions!.Assign(value); } + } + private BicepList? _policyDefinitions; /// /// The type of policy definition. Possible values are NotSpecified, /// BuiltIn, Custom, and Static. /// - public BicepValue PolicyType { get => _policyType; set => _policyType.Assign(value); } - private readonly BicepValue _policyType; + public BicepValue PolicyType + { + get { Initialize(); return _policyType!; } + set { Initialize(); _policyType!.Assign(value); } + } + private BicepValue? _policyType; /// /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Azure Resource Manager metadata containing createdBy and modifiedBy /// information. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new SubscriptionPolicySetDefinition. @@ -110,16 +148,24 @@ public partial class SubscriptionPolicySetDefinition : ProvisionableResource public SubscriptionPolicySetDefinition(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Authorization/policySetDefinitions", resourceVersion) { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["properties", "displayName"]); - _metadata = BicepValue.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _parameters = BicepDictionary.DefineProperty(this, "Parameters", ["properties", "parameters"]); - _policyDefinitionGroups = BicepList.DefineProperty(this, "PolicyDefinitionGroups", ["properties", "policyDefinitionGroups"]); - _policyDefinitions = BicepList.DefineProperty(this, "PolicyDefinitions", ["properties", "policyDefinitions"]); - _policyType = BicepValue.DefineProperty(this, "PolicyType", ["properties", "policyType"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of + /// SubscriptionPolicySetDefinition. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _description = DefineProperty("Description", ["properties", "description"]); + _displayName = DefineProperty("DisplayName", ["properties", "displayName"]); + _metadata = DefineProperty("Metadata", ["properties", "metadata"]); + _parameters = DefineDictionaryProperty("Parameters", ["properties", "parameters"]); + _policyDefinitionGroups = DefineListProperty("PolicyDefinitionGroups", ["properties", "policyDefinitionGroups"]); + _policyDefinitions = DefineListProperty("PolicyDefinitions", ["properties", "policyDefinitions"]); + _policyType = DefineProperty("PolicyType", ["properties", "policyType"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/TagResource.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/TagResource.cs index b012ecb71f497..c5cca8115925b 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/TagResource.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/TagResource.cs @@ -21,28 +21,41 @@ public partial class TagResource : ProvisionableResource /// /// The name of the resource. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// Dictionary of <string>. /// - public BicepDictionary TagValues { get => _tagValues; set => _tagValues.Assign(value); } - private readonly BicepDictionary _tagValues; + public BicepDictionary TagValues + { + get { Initialize(); return _tagValues!; } + set { Initialize(); _tagValues!.Assign(value); } + } + private BicepDictionary? _tagValues; /// /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Azure Resource Manager metadata containing createdBy and modifiedBy /// information. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Creates a new TagResource. @@ -57,10 +70,17 @@ public partial class TagResource : ProvisionableResource public TagResource(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Resources/tags", resourceVersion ?? "2023-07-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _tagValues = BicepDictionary.DefineProperty(this, "TagValues", ["properties", "tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); + } + + /// + /// Define all the provisionable properties of TagResource. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _tagValues = DefineDictionaryProperty("TagValues", ["properties", "tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/TemplateSpec.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/TemplateSpec.cs index 49c01f3d40927..fe5ca94ee7ba0 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/TemplateSpec.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/TemplateSpec.cs @@ -21,27 +21,43 @@ public partial class TemplateSpec : ProvisionableResource /// /// Name of the Template Spec. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// The location of the Template Spec. It cannot be changed after Template /// Spec creation. It must be one of the supported Azure locations. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Template Spec description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// Template Spec display name. /// - public BicepValue DisplayName { get => _displayName; set => _displayName.Assign(value); } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; /// /// The Template Spec metadata. Metadata is an open-ended object and is @@ -60,34 +76,51 @@ public partial class TemplateSpec : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepValue _metadata; + public BicepValue Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepValue? _metadata; /// /// Resource tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// High-level information about the versions within this Template Spec. /// The keys are the version names. Only populated if the $expand query /// parameter is set to 'versions'. /// - public BicepDictionary Versions { get => _versions; } - private readonly BicepDictionary _versions; + public BicepDictionary Versions + { + get { Initialize(); return _versions!; } + } + private BicepDictionary? _versions; /// /// Creates a new TemplateSpec. @@ -102,15 +135,22 @@ public partial class TemplateSpec : ProvisionableResource public TemplateSpec(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Resources/templateSpecs", resourceVersion ?? "2022-02-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["properties", "displayName"]); - _metadata = BicepValue.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _versions = BicepDictionary.DefineProperty(this, "Versions", ["properties", "versions"], isOutput: true); + } + + /// + /// Define all the provisionable properties of TemplateSpec. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _description = DefineProperty("Description", ["properties", "description"]); + _displayName = DefineProperty("DisplayName", ["properties", "displayName"]); + _metadata = DefineProperty("Metadata", ["properties", "metadata"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _versions = DefineDictionaryProperty("Versions", ["properties", "versions"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/TemplateSpecVersion.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/TemplateSpecVersion.cs index 25de1f01e1f0f..6af8fd5b41b4d 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/TemplateSpecVersion.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/TemplateSpecVersion.cs @@ -20,27 +20,42 @@ public partial class TemplateSpecVersion : ProvisionableResource /// /// Gets the Name. /// - public BicepValue Name { get => _name; } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + } + private BicepValue? _name; /// /// The location of the Template Spec Version. It must match the location /// of the parent Template Spec. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Template Spec version description. /// - public BicepValue Description { get => _description; set => _description.Assign(value); } - private readonly BicepValue _description; + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; /// /// An array of linked template artifacts. /// - public BicepList LinkedTemplates { get => _linkedTemplates; set => _linkedTemplates.Assign(value); } - private readonly BicepList _linkedTemplates; + public BicepList LinkedTemplates + { + get { Initialize(); return _linkedTemplates!; } + set { Initialize(); _linkedTemplates!.Assign(value); } + } + private BicepList? _linkedTemplates; /// /// The main Azure Resource Manager template content. @@ -58,8 +73,12 @@ public partial class TemplateSpecVersion : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue MainTemplate { get => _mainTemplate; set => _mainTemplate.Assign(value); } - private readonly BicepValue _mainTemplate; + public BicepValue MainTemplate + { + get { Initialize(); return _mainTemplate!; } + set { Initialize(); _mainTemplate!.Assign(value); } + } + private BicepValue? _mainTemplate; /// /// The version metadata. Metadata is an open-ended object and is typically @@ -78,14 +97,22 @@ public partial class TemplateSpecVersion : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue Metadata { get => _metadata; set => _metadata.Assign(value); } - private readonly BicepValue _metadata; + public BicepValue Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepValue? _metadata; /// /// Resource tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The Azure Resource Manager template UI definition content. @@ -103,26 +130,40 @@ public partial class TemplateSpecVersion : ProvisionableResource /// \"value\"}")Creates a payload of { "key": /// "value" }. /// - public BicepValue UiFormDefinition { get => _uiFormDefinition; set => _uiFormDefinition.Assign(value); } - private readonly BicepValue _uiFormDefinition; + public BicepValue UiFormDefinition + { + get { Initialize(); return _uiFormDefinition!; } + set { Initialize(); _uiFormDefinition!.Assign(value); } + } + private BicepValue? _uiFormDefinition; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// Gets or sets a reference to the parent TemplateSpec. /// - public TemplateSpec? Parent { get => _parent!.Value; set => _parent!.Value = value; } - private readonly ResourceReference _parent; + public TemplateSpec? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; /// /// Creates a new TemplateSpecVersion. @@ -137,17 +178,24 @@ public partial class TemplateSpecVersion : ProvisionableResource public TemplateSpecVersion(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Resources/templateSpecs/versions", resourceVersion ?? "2022-02-01") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isOutput: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _description = BicepValue.DefineProperty(this, "Description", ["properties", "description"]); - _linkedTemplates = BicepList.DefineProperty(this, "LinkedTemplates", ["properties", "linkedTemplates"]); - _mainTemplate = BicepValue.DefineProperty(this, "MainTemplate", ["properties", "mainTemplate"]); - _metadata = BicepValue.DefineProperty(this, "Metadata", ["properties", "metadata"]); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _uiFormDefinition = BicepValue.DefineProperty(this, "UiFormDefinition", ["properties", "uiFormDefinition"]); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _parent = ResourceReference.DefineResource(this, "Parent", ["parent"], isRequired: true); + } + + /// + /// Define all the provisionable properties of TemplateSpecVersion. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isOutput: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _description = DefineProperty("Description", ["properties", "description"]); + _linkedTemplates = DefineListProperty("LinkedTemplates", ["properties", "linkedTemplates"]); + _mainTemplate = DefineProperty("MainTemplate", ["properties", "mainTemplate"]); + _metadata = DefineProperty("Metadata", ["properties", "metadata"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _uiFormDefinition = DefineProperty("UiFormDefinition", ["properties", "uiFormDefinition"]); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/Tenant.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/Tenant.cs index 362953f72b0ea..0a59ced06790e 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/Tenant.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/Tenant.cs @@ -21,64 +21,94 @@ public partial class Tenant : ProvisionableResource /// /// Country/region name of the address for the tenant. /// - public BicepValue Country { get => _country; } - private readonly BicepValue _country; + public BicepValue Country + { + get { Initialize(); return _country!; } + } + private BicepValue? _country; /// /// Country/region abbreviation for the tenant. /// - public BicepValue CountryCode { get => _countryCode; } - private readonly BicepValue _countryCode; + public BicepValue CountryCode + { + get { Initialize(); return _countryCode!; } + } + private BicepValue? _countryCode; /// /// The default domain for the tenant. /// - public BicepValue DefaultDomain { get => _defaultDomain; } - private readonly BicepValue _defaultDomain; + public BicepValue DefaultDomain + { + get { Initialize(); return _defaultDomain!; } + } + private BicepValue? _defaultDomain; /// /// The display name of the tenant. /// - public BicepValue DisplayName { get => _displayName; } - private readonly BicepValue _displayName; + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + } + private BicepValue? _displayName; /// /// The list of domains for the tenant. /// - public BicepList Domains { get => _domains; } - private readonly BicepList _domains; + public BicepList Domains + { + get { Initialize(); return _domains!; } + } + private BicepList? _domains; /// /// The fully qualified ID of the tenant. For example, /// /tenants/8d65815f-a5b6-402f-9298-045155da7d74. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The tenant's branding logo URL. Only available for /// 'Home' tenant category. /// - public BicepValue TenantBrandingLogoUri { get => _tenantBrandingLogoUri; } - private readonly BicepValue _tenantBrandingLogoUri; + public BicepValue TenantBrandingLogoUri + { + get { Initialize(); return _tenantBrandingLogoUri!; } + } + private BicepValue? _tenantBrandingLogoUri; /// /// Category of the tenant. /// - public BicepValue TenantCategory { get => _tenantCategory; } - private readonly BicepValue _tenantCategory; + public BicepValue TenantCategory + { + get { Initialize(); return _tenantCategory!; } + } + private BicepValue? _tenantCategory; /// /// The tenant ID. For example, 8d65815f-a5b6-402f-9298-045155da7d74. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// The tenant type. Only available for 'Home' tenant category. /// - public BicepValue TenantType { get => _tenantType; } - private readonly BicepValue _tenantType; + public BicepValue TenantType + { + get { Initialize(); return _tenantType!; } + } + private BicepValue? _tenantType; /// /// Creates a new Tenant. @@ -93,16 +123,23 @@ public partial class Tenant : ProvisionableResource public Tenant(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.Resources/tenants", resourceVersion ?? "2020-01-01") { - _country = BicepValue.DefineProperty(this, "Country", ["country"], isOutput: true); - _countryCode = BicepValue.DefineProperty(this, "CountryCode", ["countryCode"], isOutput: true); - _defaultDomain = BicepValue.DefineProperty(this, "DefaultDomain", ["defaultDomain"], isOutput: true); - _displayName = BicepValue.DefineProperty(this, "DisplayName", ["displayName"], isOutput: true); - _domains = BicepList.DefineProperty(this, "Domains", ["domains"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _tenantBrandingLogoUri = BicepValue.DefineProperty(this, "TenantBrandingLogoUri", ["tenantBrandingLogoUrl"], isOutput: true); - _tenantCategory = BicepValue.DefineProperty(this, "TenantCategory", ["tenantCategory"], isOutput: true); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["tenantId"], isOutput: true); - _tenantType = BicepValue.DefineProperty(this, "TenantType", ["tenantType"], isOutput: true); + } + + /// + /// Define all the provisionable properties of Tenant. + /// + protected override void DefineProvisionableProperties() + { + _country = DefineProperty("Country", ["country"], isOutput: true); + _countryCode = DefineProperty("CountryCode", ["countryCode"], isOutput: true); + _defaultDomain = DefineProperty("DefaultDomain", ["defaultDomain"], isOutput: true); + _displayName = DefineProperty("DisplayName", ["displayName"], isOutput: true); + _domains = DefineListProperty("Domains", ["domains"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _tenantBrandingLogoUri = DefineProperty("TenantBrandingLogoUri", ["tenantBrandingLogoUrl"], isOutput: true); + _tenantCategory = DefineProperty("TenantCategory", ["tenantCategory"], isOutput: true); + _tenantId = DefineProperty("TenantId", ["tenantId"], isOutput: true); + _tenantType = DefineProperty("TenantType", ["tenantType"], isOutput: true); } /// @@ -225,20 +262,4 @@ public static class ResourceVersions /// public static readonly string V2015_01_01 = "2015-01-01"; } - - /// - /// Creates a new Tenant resource from a Bicep expression that evaluates to - /// a Tenant. - /// - /// - /// A Bicep expression that evaluates to a Tenant resource. - /// - /// A Tenant resource. - [EditorBrowsable(EditorBrowsableState.Never)] - public static Tenant FromExpression(BicepExpression expression) - { - Tenant resource = new(nameof(Tenant)); - resource.OverrideWithExpression(expression); - return resource; - } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/UserAssignedIdentity.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/UserAssignedIdentity.cs index 55e8b92a28706..f040f81005aeb 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/UserAssignedIdentity.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/UserAssignedIdentity.cs @@ -22,52 +22,79 @@ public partial class UserAssignedIdentity : ProvisionableResource /// /// The name of the identity resource. /// - public BicepValue Name { get => _name; set => _name.Assign(value); } - private readonly BicepValue _name; + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; /// /// Gets or sets the Location. /// - public BicepValue Location { get => _location; set => _location.Assign(value); } - private readonly BicepValue _location; + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; /// /// Gets or sets the Tags. /// - public BicepDictionary Tags { get => _tags; set => _tags.Assign(value); } - private readonly BicepDictionary _tags; + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; /// /// The id of the app associated with the identity. This is a random /// generated UUID by MSI. /// - public BicepValue ClientId { get => _clientId; } - private readonly BicepValue _clientId; + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + } + private BicepValue? _clientId; /// /// Gets the Id. /// - public BicepValue Id { get => _id; } - private readonly BicepValue _id; + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; /// /// The id of the service principal object associated with the created /// identity. /// - public BicepValue PrincipalId { get => _principalId; } - private readonly BicepValue _principalId; + public BicepValue PrincipalId + { + get { Initialize(); return _principalId!; } + } + private BicepValue? _principalId; /// /// Gets the SystemData. /// - public BicepValue SystemData { get => _systemData; } - private readonly BicepValue _systemData; + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; /// /// The id of the tenant which the identity belongs to. /// - public BicepValue TenantId { get => _tenantId; } - private readonly BicepValue _tenantId; + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + } + private BicepValue? _tenantId; /// /// Creates a new UserAssignedIdentity. @@ -82,14 +109,21 @@ public partial class UserAssignedIdentity : ProvisionableResource public UserAssignedIdentity(string bicepIdentifier, string? resourceVersion = default) : base(bicepIdentifier, "Microsoft.ManagedIdentity/userAssignedIdentities", resourceVersion ?? "2023-01-31") { - _name = BicepValue.DefineProperty(this, "Name", ["name"], isRequired: true); - _location = BicepValue.DefineProperty(this, "Location", ["location"], isRequired: true); - _tags = BicepDictionary.DefineProperty(this, "Tags", ["tags"]); - _clientId = BicepValue.DefineProperty(this, "ClientId", ["properties", "clientId"], isOutput: true); - _id = BicepValue.DefineProperty(this, "Id", ["id"], isOutput: true); - _principalId = BicepValue.DefineProperty(this, "PrincipalId", ["properties", "principalId"], isOutput: true); - _systemData = BicepValue.DefineProperty(this, "SystemData", ["systemData"], isOutput: true); - _tenantId = BicepValue.DefineProperty(this, "TenantId", ["properties", "tenantId"], isOutput: true); + } + + /// + /// Define all the provisionable properties of UserAssignedIdentity. + /// + protected override void DefineProvisionableProperties() + { + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _clientId = DefineProperty("ClientId", ["properties", "clientId"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _principalId = DefineProperty("PrincipalId", ["properties", "principalId"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _tenantId = DefineProperty("TenantId", ["properties", "tenantId"], isOutput: true); } /// diff --git a/sdk/provisioning/Azure.Provisioning/src/IBicepValue.cs b/sdk/provisioning/Azure.Provisioning/src/IBicepValue.cs new file mode 100644 index 0000000000000..1c376387cfdfa --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning/src/IBicepValue.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Provisioning.Expressions; +using Azure.Provisioning.Primitives; + +namespace Azure.Provisioning; + +/// +/// Represents the value of a property that could be a literal .NET value, a +/// Bicep expression, or it could be unset. +/// +public interface IBicepValue +{ + /// + /// Gets the kind of this value (a literal value, an expression, or it's + /// unset). + /// + public BicepValueKind Kind { get; } + + /// + /// Gets the expression for this value if it's not a literal. + /// + /// The expression for this value if it's not a literal. + public BicepExpression? Expression { get; set; } + + /// + /// Get the value of this expression, if it's literal. + /// + /// The value of this expression if it's literal. + public object? LiteralValue { get; } + + /// + /// Gets information about where this value was defined. + /// + public BicepValueReference? Self { get; set; } + + /// + /// Gets information about where this value was assigned from. + /// + public BicepValueReference? Source { get; } + + /// + /// Tracks whether this is an output only property. + /// + public bool IsOutput { get; } + + /// + /// Tracks whether this property is required. + /// + public bool IsRequired { get; } + + /// + /// Tracks whether this contains a secure value. + /// + public bool IsSecure { get; } + + /// + /// Gets whether this value is unset or empty. + /// + public bool IsEmpty { get; } + + /// + /// Assign a value to this property. + /// + /// Source of the value. + public void Assign(IBicepValue source); + + /// + /// Compile this value to a Bicep expression. + /// + /// The compiled Bicep expression. + public BicepExpression Compile(); + + /// + /// Make this value readonly. + /// + public void SetReadOnly(); +} diff --git a/sdk/provisioning/Azure.Provisioning/src/Infrastructure.cs b/sdk/provisioning/Azure.Provisioning/src/Infrastructure.cs index e068dacd59ece..cf07bce7bf71d 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Infrastructure.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Infrastructure.cs @@ -52,7 +52,7 @@ public virtual void Add(Provisionable resource) construct.ParentInfrastructure != this) { // Don't parent expression references - if (construct.ExpressionOverride is not null) { return; } + if (((IBicepValue)construct).Kind == BicepValueKind.Expression) { return; } // Remove it from any existing Infrastructure first construct.ParentInfrastructure?.Remove(this); diff --git a/sdk/provisioning/Azure.Provisioning/src/Primitives/BicepValueReference.cs b/sdk/provisioning/Azure.Provisioning/src/Primitives/BicepValueReference.cs index 47f6b32aa4b78..fd31651860b33 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Primitives/BicepValueReference.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Primitives/BicepValueReference.cs @@ -7,25 +7,35 @@ namespace Azure.Provisioning.Primitives; -// Work in progress to to help track the flow of values through the computation -// graph so we can intelligently and automatically split expressions across -// module boundaries. - public class BicepValueReference(ProvisionableConstruct construct, string propertyName, params string[]? path) { public ProvisionableConstruct Construct { get; } = construct; public string PropertyName { get; } = propertyName; public IReadOnlyList? BicepPath { get; } = path; - internal BicepExpression GetReference() + internal BicepExpression GetReference(bool throwIfNoRoot = true) { - // We'll relax this soon - if (Construct is not NamedProvisionableConstruct named) + // Get the root + BicepExpression? target = ((IBicepValue)Construct).Self?.GetReference(); + if (target is null) { - throw new NotImplementedException("Cannot reference a construct without a name yet."); + if (Construct is NamedProvisionableConstruct named) + { + target = BicepSyntax.Var(named.BicepIdentifier); + } + else if (throwIfNoRoot) + { + throw new NotImplementedException("Cannot reference a construct without a name."); + } + else + { + // This will render unrooted ToStrings as MISSING_RESOURCE.foo.bar + // which is obviously invalid, but potentially helpful for debugging. + target = BicepSyntax.Var("MISSING_RESOURCE"); + } } - BicepExpression target = BicepSyntax.Var(named.BicepIdentifier); + // Finish getting to this resource if (BicepPath is not null) { foreach (string segment in BicepPath) @@ -36,6 +46,5 @@ internal BicepExpression GetReference() return target; } - public override string ToString() => - $"<{GetReference()} from {Construct.GetType().Name}.{PropertyName}>"; + public override string ToString() => GetReference(throwIfNoRoot: false).ToString(); } diff --git a/sdk/provisioning/Azure.Provisioning/src/Primitives/LocationPropertyResolver.cs b/sdk/provisioning/Azure.Provisioning/src/Primitives/LocationPropertyResolver.cs index 3c6c1516b169c..02f50cdafcf48 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Primitives/LocationPropertyResolver.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Primitives/LocationPropertyResolver.cs @@ -19,10 +19,9 @@ public class LocationPropertyResolver : InfrastructureResolver public override void ResolveProperties(ProvisionableConstruct construct, ProvisioningBuildOptions options) { // We only need to set a location if one doesn't already exist - if (construct.ProvisioningProperties.TryGetValue("Location", out BicepValue? location) && + if (construct.ProvisionableProperties.TryGetValue("Location", out IBicepValue? location) && location.Kind == BicepValueKind.Unset && - !location.IsOutput && - (construct is not ProvisionableResource r || !r.IsExistingResource)) + !location.IsOutput) { ProvisioningParameter param = GetOrCreateLocationParameter(options, construct); construct.SetProvisioningProperty(location, (BicepValue)param); diff --git a/sdk/provisioning/Azure.Provisioning/src/Primitives/ModuleImport.cs b/sdk/provisioning/Azure.Provisioning/src/Primitives/ModuleImport.cs index 371759780f2c4..f4bd235344ef7 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Primitives/ModuleImport.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Primitives/ModuleImport.cs @@ -21,10 +21,10 @@ public class ModuleImport : NamedProvisionableConstruct public ModuleImport(string bicepIdentifier, BicepValue path) : base(bicepIdentifier) { - _name = BicepValue.DefineProperty(this, nameof(Name), ["name"], isRequired: true); - _path = BicepValue.DefineProperty(this, nameof(Path), ["path"], defaultValue: path); - _scope = BicepValue.DefineProperty(this, nameof(Scope), ["scope"]); - Parameters = BicepDictionary.DefineProperty(this, nameof(Parameters), ["params"]); + _name = DefineProperty(nameof(Name), ["name"], isRequired: true); + _path = DefineProperty(nameof(Path), ["path"], defaultValue: path); + _scope = DefineProperty(nameof(Scope), ["scope"]); + Parameters = DefineDictionaryProperty(nameof(Parameters), ["params"]); } protected internal override void Validate(ProvisioningBuildOptions? options = null) @@ -37,7 +37,7 @@ protected internal override IEnumerable Compile() { List statements = []; Dictionary properties = new() { { "name", _name.Compile() } }; - if (_scope.Kind != BicepValueKind.Unset) { properties.Add("scope", _scope.Compile()); } + if (((IBicepValue)_scope).Kind != BicepValueKind.Unset) { properties.Add("scope", _scope.Compile()); } if (Parameters.Count > 0) { properties.Add("params", Parameters.Compile()); } ModuleStatement module = BicepSyntax.Declare.Module(BicepIdentifier, _path.Compile(), BicepSyntax.Object(properties)); statements.Add(module); diff --git a/sdk/provisioning/Azure.Provisioning/src/Primitives/NamedProvisionableConstruct.cs b/sdk/provisioning/Azure.Provisioning/src/Primitives/NamedProvisionableConstruct.cs index 3187b9f7dc46b..a5af7e8a3d83f 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Primitives/NamedProvisionableConstruct.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Primitives/NamedProvisionableConstruct.cs @@ -35,8 +35,6 @@ public string BicepIdentifier /// protected NamedProvisionableConstruct(string bicepIdentifier) { - // TODO: In the near future we'll make this optional and only validate - // if the value passed in isn't null. Infrastructure.ValidateBicepIdentifier(bicepIdentifier, nameof(bicepIdentifier)); _bicepIdentifier = bicepIdentifier; } diff --git a/sdk/provisioning/Azure.Provisioning/src/Primitives/ProvisionableConstruct.cs b/sdk/provisioning/Azure.Provisioning/src/Primitives/ProvisionableConstruct.cs index 4c686c1a71e02..d04930afb2f32 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Primitives/ProvisionableConstruct.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Primitives/ProvisionableConstruct.cs @@ -9,54 +9,25 @@ namespace Azure.Provisioning.Primitives; -public abstract class ProvisionableConstruct : Provisionable +public abstract class ProvisionableConstruct : Provisionable, IBicepValue { /// /// Gets the parent infrastructure construct, if any. /// [EditorBrowsable(EditorBrowsableState.Never)] - public Infrastructure? ParentInfrastructure { get; internal set; } + public Infrastructure? ParentInfrastructure { get; set; } /// [EditorBrowsable(EditorBrowsableState.Never)] - public override IEnumerable GetProvisionableResources() => base.GetProvisionableResources(); + public override IEnumerable GetProvisionableResources() => + base.GetProvisionableResources(); /// /// Gets the properties of the construct. /// - internal IDictionary ProvisioningProperties { get; } = - new Dictionary(); - - /// - /// Allow this resource to alias the result of an expression (i.e., we can - /// have an instance of the `ResourceGroup` class effectively wrap the - /// `resourceGroup()` function so people can use - /// `BicepFunctions.GetResourceGroup().Location` just like `myRg.Location`). - /// - internal BicepExpression? ExpressionOverride { get; private set; } - - /// - /// Set this construct to represent the result of an expression. This is - /// primarily meant to be called via `FromExpression` static methods on - /// specific resources or constructs. - /// - /// The expression. - protected internal void OverrideWithExpression(BicepExpression reference) - { - ExpressionOverride = reference; - - // Unlink from any group, if necessary, as expressions carry their - // own context - ParentInfrastructure?.Remove(this); - - // Reset all the properties as accessors off the current expr - foreach (BicepValue property in ProvisioningProperties.Values) - { - property.Kind = BicepValueKind.Expression; - property.Expression = property.Self?.BicepPath?.Aggregate(reference, (expr, segment) => expr.Get(segment)); - property.IsOutput = true; // TODO: We could consider evolving this depending on the type of expression - } - } + [EditorBrowsable(EditorBrowsableState.Never)] + public IDictionary ProvisionableProperties { get; } = + new Dictionary(); /// /// Set a property on the construct. This is primarily intended for @@ -65,9 +36,9 @@ protected internal void OverrideWithExpression(BicepExpression reference) /// The property to set. /// The property value. [EditorBrowsable(EditorBrowsableState.Never)] - public void SetProvisioningProperty(BicepValue property, BicepValue value) + public void SetProvisioningProperty(IBicepValue property, BicepValue value) { - if (ProvisioningProperties.TryGetValue(property.Self!.PropertyName!, out BicepValue? existing) && + if (ProvisionableProperties.TryGetValue(property.Self!.PropertyName!, out IBicepValue? existing) && existing != property) { throw new ArgumentException($"Property {property.Self!.PropertyName} is not defined on construct {GetType().Name}.", nameof(property)); @@ -78,6 +49,8 @@ public void SetProvisioningProperty(BicepValue property, BicepValue value) /// protected internal override void Resolve(ProvisioningBuildOptions? options = null) { + Initialize(); + options ??= new(); base.Resolve(options); @@ -97,13 +70,13 @@ protected internal override void Validate(ProvisioningBuildOptions? options = nu private protected virtual void ValidateProperties() { - foreach (BicepValue property in ProvisioningProperties.Values) + foreach (IBicepValue property in ProvisionableProperties.Values) { RequireProperty(property); } } - private protected void RequireProperty(BicepValue value) + private protected void RequireProperty(IBicepValue value) { if (value.IsRequired && value.Kind == BicepValueKind.Unset) { @@ -117,11 +90,11 @@ protected internal override IEnumerable Compile() => private protected BicepExpression CompileProperties() { - if (ExpressionOverride is not null) { return ExpressionOverride; } + if (_kind == BicepValueKind.Expression) { return _expression ?? BicepSyntax.Null(); } // Aggregate all the properties into a single nested dictionary Dictionary body = []; - foreach (BicepValue property in ProvisioningProperties.Values.Where(p => !p.IsEmpty)) + foreach (IBicepValue property in ProvisionableProperties.Values.Where(p => !p.IsEmpty)) { // Some of the properties are nested paths and need to be expanded // into multiple levels of hierarchy @@ -157,7 +130,7 @@ static ObjectExpression CompileValues(IDictionary dict) } else if (pair.Value is ProvisionableConstruct construct) { - IList statements = [..construct.Compile()]; + IList statements = [.. construct.Compile()]; if (statements.Count != 1 || statements[0] is not ExpressionStatement expr) { throw new InvalidOperationException($"Expected a single expression statement for {pair.Key}."); @@ -172,4 +145,219 @@ static ObjectExpression CompileValues(IDictionary dict) return BicepSyntax.Object(bicep); } } + + /// + BicepValueKind IBicepValue.Kind => _kind; + private BicepValueKind _kind = BicepValueKind.Unset; + + /// + BicepExpression? IBicepValue.Expression + { + get => _kind == BicepValueKind.Expression ? _expression : null; + set + { + Initialize(); + + _kind = BicepValueKind.Expression; + _expression = value; + + // Unlink from any group, if necessary, as expressions carry their + // own context + ParentInfrastructure?.Remove(this); + + // Reset all the properties as accessors off the current expr + foreach (IBicepValue property in ProvisionableProperties.Values) + { + property.Expression = property.Self?.BicepPath?.Aggregate(_expression, (expr, segment) => expr?.Get(segment)); + property.SetReadOnly(); + } + } + } + private BicepExpression? _expression; + + /// + object? IBicepValue.LiteralValue => _kind == BicepValueKind.Literal ? this : null; + + /// + BicepValueReference? IBicepValue.Self { get => _self; set => _self = value; } + private BicepValueReference? _self; + + /// + BicepValueReference? IBicepValue.Source => _source; + private BicepValueReference? _source = null; + + /// + bool IBicepValue.IsOutput => _isOutput; + private bool _isOutput = false; + + /// + bool IBicepValue.IsRequired => _isRequired; + private bool _isRequired = false; + + /// + bool IBicepValue.IsSecure => _isSecure; + private bool _isSecure = false; + + // Optional format defining how values should be serialized + internal string? Format { get; set; } = null; + + /// + bool IBicepValue.IsEmpty => + _kind == BicepValueKind.Unset || + _kind == BicepValueKind.Expression || + _kind == BicepValueKind.Literal && ProvisionableProperties.All(p => p.Value.IsEmpty); + + /// + BicepExpression IBicepValue.Compile() => CompileProperties(); + + /// + void IBicepValue.SetReadOnly() + { + // Reset all the properties as accessors off the current expr + foreach (IBicepValue property in ProvisionableProperties.Values) + { + property.SetReadOnly(); + } + } + + /// + void IBicepValue.Assign(IBicepValue source) + { + // TODO: Do we want to add a more explicit notion of readonly + // (especially for expr ref resources)? + if (_isOutput) { throw new InvalidOperationException($"Cannot assign to output value {_self?.PropertyName}"); } + + // Track the source so we can correctly link references across modules + _source = source?.Self; + + // Copy over the common values (but rely on derived classes for other values) + _kind = source?.Kind ?? BicepValueKind.Unset; + _expression = source?.Expression; + _isSecure = source?.IsSecure ?? false; + + // If we're being assigned an Unset value that references a specific + // resource, we'll consider this an expression referencing that property + // (i.e., this is like referencing the unset Id property of a resource + // you created moments ago). + if (_kind == BicepValueKind.Unset && _source is not null) + { + _kind = BicepValueKind.Expression; + _expression = _source.GetReference(); + } + } + + protected virtual void AssignOrReplace(ref T? property, T value) where T : IBicepValue + { + if (value.Self is null) + { + value.Self = property!.Self; + ProvisionableProperties[property.Self!.PropertyName] = value; + property = value; + } + else + { + property!.Assign(value); + } + } + + // Delete after regeneration + protected internal void OverrideWithExpression(BicepExpression reference) + { + ((IBicepValue)this).Expression = reference; + } + + /// + /// Initialize this construct. + /// + protected void Initialize() + { + if (_kind == BicepValueKind.Unset && ProvisionableProperties.Count == 0) + { + _kind = BicepValueKind.Literal; + DefineProvisionableProperties(); + } + } + + /// + /// Define the provisionable properties for this construct. + /// + protected virtual void DefineProvisionableProperties() { } + + protected BicepValue DefineProperty( + string propertyName, + string[]? bicepPath, + bool isOutput = false, + bool isRequired = false, + bool isSecure = false, + BicepValue? defaultValue = null, + string? format = null) + { + BicepValue val = + new(new BicepValueReference(this, propertyName, bicepPath)) + { + _isOutput = isOutput, + _isRequired = isRequired, + _isSecure = isSecure, + Format = format + }; + if (defaultValue is not null) + { + val.Assign(defaultValue); + } + ProvisionableProperties[propertyName] = val; + return val; + } + + protected BicepList DefineListProperty( + string propertyName, + string[]? bicepPath, + bool isOutput = false, + bool isRequired = false) + { + BicepList values = + new(new BicepValueReference(this, propertyName, bicepPath)) + { + _isOutput = isOutput, + _isRequired = isRequired + }; + ProvisionableProperties[propertyName] = values; + return values; + } + + protected BicepDictionary DefineDictionaryProperty( + string propertyName, + string[]? bicepPath, + bool isOutput = false, + bool isRequired = false) + { + BicepDictionary values = + new(new BicepValueReference(this, propertyName, bicepPath)) + { + _isOutput = isOutput, + _isRequired = isRequired + }; + ProvisionableProperties[propertyName] = values; + return values; + } + + protected T DefineModelProperty( + string propertyName, + string[]? bicepPath, + bool isOutput = false, + bool isRequired = false, + bool isSecure = false, + string? format = null) + where T : ProvisionableConstruct, new() + { + T value = new() + { + _self = new BicepValueReference(this, propertyName, bicepPath), + _isOutput = isOutput, + _isRequired = isRequired, + _isSecure = isSecure, + Format = format + }; + ProvisionableProperties[propertyName] = value; + return value; + } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Primitives/ProvisionableResource.cs b/sdk/provisioning/Azure.Provisioning/src/Primitives/ProvisionableResource.cs index d0b23f627bc66..3079aacf5802e 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Primitives/ProvisionableResource.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Primitives/ProvisionableResource.cs @@ -33,7 +33,25 @@ public abstract class ProvisionableResource(string bicepIdentifier, ResourceType /// Gets whether this is referencing an existing resource or we're defining /// a new resource. /// - public bool IsExistingResource { get; protected set; } = false; + public bool IsExistingResource + { + get => _isExisting; + protected set + { + _isExisting = value; + if (_isExisting) + { + Initialize(); + foreach (IBicepValue property in ProvisionableProperties.Values) + { + // Name is the only property that's still settable + if (property.Self?.PropertyName == "Name") { continue; } + property.SetReadOnly(); + } + } + } + } + private bool _isExisting = false; /// /// Declares explicit dependencies on other resources. @@ -80,7 +98,7 @@ protected internal override void Validate(ProvisioningBuildOptions? options = nu throw new InvalidOperationException($"{GetType().Name} resource {BicepIdentifier} must have {nameof(ResourceVersion)} specified."); } - if (DependsOn.Count > 0 && (IsExistingResource || ExpressionOverride is not null)) + if (DependsOn.Count > 0 && (IsExistingResource || ((IBicepValue)this).Kind == BicepValueKind.Expression)) { throw new InvalidOperationException($"{GetType().Name} resource {BicepIdentifier} cannot have dependencies if it's an existing resource or an expression override."); } @@ -88,7 +106,7 @@ protected internal override void Validate(ProvisioningBuildOptions? options = nu if (IsExistingResource) { // We only want to validate the name if we're linking to an existing resource - if (ProvisioningProperties.TryGetValue("Name", out BicepValue? name) && name.IsRequired) + if (ProvisionableProperties.TryGetValue("Name", out IBicepValue? name) && name.IsRequired) { RequireProperty(name); } @@ -103,9 +121,9 @@ protected internal override void Validate(ProvisioningBuildOptions? options = nu /// protected internal override IEnumerable Compile() { - if (ExpressionOverride is not null) + if (((IBicepValue)this).Kind == BicepValueKind.Expression) { - yield return new ExpressionStatement(ExpressionOverride); + yield return new ExpressionStatement(CompileProperties()); yield break; } @@ -152,4 +170,21 @@ protected internal override IEnumerable Compile() [EditorBrowsable(EditorBrowsableState.Never)] public virtual ResourceNameRequirements GetResourceNameRequirements() => new(minLength: 1, maxLength: 24, validCharacters: ResourceNameCharacters.LowercaseLetters); + + protected ResourceReference DefineResource( + string propertyName, + string[]? bicepPath, + bool isOutput = false, + bool isRequired = false, + T? defaultValue = null) + where T : ProvisionableResource + { + ResourceReference resource = new( + DefineProperty(propertyName, bicepPath, isOutput: isOutput, isRequired: isRequired)); + if (defaultValue is not null) + { + resource.Value = defaultValue; + } + return resource; + } } diff --git a/sdk/provisioning/Azure.Provisioning/src/Primitives/ResourceNamePropertyResolver.cs b/sdk/provisioning/Azure.Provisioning/src/Primitives/ResourceNamePropertyResolver.cs index fa18657eb7d3f..4c1b435d68dc2 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Primitives/ResourceNamePropertyResolver.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Primitives/ResourceNamePropertyResolver.cs @@ -110,7 +110,7 @@ public override void ResolveProperties(ProvisionableConstruct construct, Provisi if (construct is not ProvisionableResource resource) { return; } // We only need to create a name if one doesn't already exist - if (resource.ProvisioningProperties.TryGetValue("Name", out BicepValue? name) && + if (resource.ProvisionableProperties.TryGetValue("Name", out IBicepValue? name) && name.Kind == BicepValueKind.Unset && !name.IsOutput) { diff --git a/sdk/provisioning/Azure.Provisioning/src/Primitives/ResourceReference.cs b/sdk/provisioning/Azure.Provisioning/src/Primitives/ResourceReference.cs index 5a746ea117298..b7767d8219318 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Primitives/ResourceReference.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Primitives/ResourceReference.cs @@ -20,31 +20,10 @@ public T? Value get => _value; set { - // TODO: Decide if we want to optimize by peeking for expressions - // and copying them vs. creating a new reference based on the name. _value = value; - _reference.Kind = BicepValueKind.Expression; - _reference.Expression = _value is null ? + ((IBicepValue)_reference).Expression = _value is null ? BicepSyntax.Null() : - // TODO: Consider tracking the source like we do for - // BicepValue if that'll improve the overall experience - // (debugging/errors/etc.) BicepSyntax.Var(_value.BicepIdentifier); } } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static ResourceReference DefineResource( - ProvisionableResource construct, - string propertyName, - string[]? bicepPath, - bool isOutput = false, - bool isRequired = false, - T? defaultValue = null) - { - ResourceReference resource = new( - BicepValue.DefineProperty(construct, propertyName, bicepPath, isOutput: isOutput, isRequired: isRequired)); - if (defaultValue is not null) { resource.Value = defaultValue; } - return resource; - } } diff --git a/sdk/provisioning/Azure.Provisioning/src/ProvisioningParameter.cs b/sdk/provisioning/Azure.Provisioning/src/ProvisioningParameter.cs index 816884f874127..07469e29a7836 100644 --- a/sdk/provisioning/Azure.Provisioning/src/ProvisioningParameter.cs +++ b/sdk/provisioning/Azure.Provisioning/src/ProvisioningParameter.cs @@ -19,7 +19,7 @@ public class ProvisioningParameter : ProvisioningVariable /// public bool IsSecure { - get => _isSecure || Value.IsSecure; + get => _isSecure || ((IBicepValue)Value).IsSecure; set => _isSecure = value; } private bool _isSecure = false; @@ -53,7 +53,7 @@ protected internal override IEnumerable Compile() BicepSyntax.Declare.Param( BicepIdentifier, BicepType, - Value.Kind == BicepValueKind.Unset ? null : Value.Compile()); + ((IBicepValue)Value).Kind == BicepValueKind.Unset ? null : Value.Compile()); if (IsSecure) { statement = statement.Decorate("secure"); } if (Description is not null) { statement = statement.Decorate("description", BicepSyntax.Value(Description)); } yield return statement; diff --git a/sdk/provisioning/Azure.Provisioning/src/ProvisioningVariable.cs b/sdk/provisioning/Azure.Provisioning/src/ProvisioningVariable.cs index 41bc6d4fdd3d6..d805288688f08 100644 --- a/sdk/provisioning/Azure.Provisioning/src/ProvisioningVariable.cs +++ b/sdk/provisioning/Azure.Provisioning/src/ProvisioningVariable.cs @@ -44,7 +44,7 @@ protected ProvisioningVariable(string bicepIdentifier, BicepExpression type, Bic : base(bicepIdentifier) { BicepType = type; - _value = BicepValue.DefineProperty(this, nameof(Value), bicepPath: null, defaultValue: value); + _value = DefineProperty(nameof(Value), bicepPath: null, defaultValue: value); } /// diff --git a/sdk/provisioning/Azure.Provisioning/tests/ProvisioningTestBase.cs b/sdk/provisioning/Azure.Provisioning/tests/ProvisioningTestBase.cs index 75a8d7f5adf21..645f4361c67ec 100644 --- a/sdk/provisioning/Azure.Provisioning/tests/ProvisioningTestBase.cs +++ b/sdk/provisioning/Azure.Provisioning/tests/ProvisioningTestBase.cs @@ -83,12 +83,8 @@ public class Trycep(ProvisioningTestBase test) : IAsyncDisposable public Trycep Define(ProvisionableConstruct resource) { - Infra = resource.ParentInfrastructure; - if (Infra is null) - { - Infra = new Infrastructure(); - Infra.Add(resource); - } + Infra = new Infrastructure(); + Infra.Add(resource); Plan = Infra.Build(BuildOptions); return this; } diff --git a/sdk/provisioning/Azure.Provisioning/tests/SampleTests.cs b/sdk/provisioning/Azure.Provisioning/tests/SampleTests.cs index dc09a3322f3cd..e2dbce6e1ef68 100644 --- a/sdk/provisioning/Azure.Provisioning/tests/SampleTests.cs +++ b/sdk/provisioning/Azure.Provisioning/tests/SampleTests.cs @@ -51,7 +51,7 @@ await test.Define( infra.Add(blobs); // Grab the endpoint - endpoint = new ProvisioningOutput("blobs_endpoint", typeof(string)) { Value = storage.PrimaryEndpoints.Value!.BlobUri }; + endpoint = new ProvisioningOutput("blobs_endpoint", typeof(string)) { Value = storage.PrimaryEndpoints.BlobUri }; infra.Add(endpoint); return infra; diff --git a/sdk/provisioning/Generator/src/Model/Property.cs b/sdk/provisioning/Generator/src/Model/Property.cs index 85c737a1ac244..dfd7d66df964f 100644 --- a/sdk/provisioning/Generator/src/Model/Property.cs +++ b/sdk/provisioning/Generator/src/Model/Property.cs @@ -47,11 +47,34 @@ DictionaryModel d when IsCollection(d.ElementType) => $"BicepDictionary<{GetBice DictionaryModel d => $"BicepDictionary<{d.ElementType.GetTypeReference()}>", ListModel l when IsCollection(l.ElementType) => $"BicepList<{GetBicepType(l.ElementType)}>", ListModel l => $"BicepList<{l.ElementType.GetTypeReference()}>", + SimpleModel m => m.GetTypeReference(), + Resource m => m.GetTypeReference(), _ => $"BicepValue<{type.GetTypeReference()}>", }; static bool IsCollection(ModelBase type) => type is DictionaryModel || type is ListModel; + } + } + public string BicepPropertyTypeReference + { + get + { + return GetBicepType(PropertyType); + static string GetBicepType(ModelBase? type) => + type switch + { + null => "object", + DictionaryModel d when d.ElementType is DictionaryModel => $"BicepDictionary<{GetBicepType(d.ElementType)}>", + DictionaryModel d when d.ElementType is ListModel => $"BicepList<{GetBicepType(d.ElementType)}>", + DictionaryModel d => d.ElementType.GetTypeReference(), + ListModel l when l.ElementType is DictionaryModel => $"BicepDictionary<{GetBicepType(l.ElementType)}>", + ListModel l when l.ElementType is ListModel => $"BicepList<{GetBicepType(l.ElementType)}>", + ListModel l => l.ElementType.GetTypeReference(), + SimpleModel m => m.GetTypeReference(), + Resource m => m.GetTypeReference(), + _ => type.GetTypeReference(), + }; } } diff --git a/sdk/provisioning/Generator/src/Model/Resource.cs b/sdk/provisioning/Generator/src/Model/Resource.cs index a5801f3ef2e03..8af4ec3ffec30 100644 --- a/sdk/provisioning/Generator/src/Model/Resource.cs +++ b/sdk/provisioning/Generator/src/Model/Resource.cs @@ -47,7 +47,7 @@ public override void Generate() writer.WriteLine(); writer.WriteLine("// "); writer.WriteLine(); - writer.WriteLine("#nullable enable"); // for optional string? resourceVersion + writer.WriteLine("#nullable enable"); writer.WriteLine(); // Add the usings @@ -70,24 +70,38 @@ public override void Generate() writer.WriteLine($"public partial class {Name} : ProvisionableResource"); using (writer.Scope("{", "}")) { - // Write the properties var fence = new IndentWriter.Fenceposter(); + + // Write the properties foreach (Property property in Properties) { if (fence.RequiresSeparator) { writer.WriteLine(); } - if (!property.HideAccessors) { writer.WriteLine($"/// "); string orSets = property.IsReadOnly ? "" : " or sets"; writer.WriteWrapped(property.Description ?? $"Gets{orSets} the {property.Name}."); writer.WriteLine($"/// "); - writer.Write($"public {property.BicepTypeReference} {property.Name} "); - writer.Write($"{{ get => {property.FieldName}; "); - if (!property.IsReadOnly) { writer.Write($"set => {property.FieldName}.Assign(value); "); } - writer.WriteLine("}"); + writer.WriteLine($"public {property.BicepTypeReference} {property.Name} "); + using (writer.Scope("{", "}")) + { + writer.WriteLine($"get {{ Initialize(); return {property.FieldName}!; }}"); + if (!property.IsReadOnly) + { + writer.Write($"set {{ Initialize(); "); + if (property.PropertyType is SimpleModel || property.PropertyType is Resource) + { + writer.Write($"AssignOrReplace(ref {property.FieldName}, value);"); + } + else + { + writer.Write($"{property.FieldName}!.Assign(value);"); + } + writer.WriteLine($" }}"); + } + } } - writer.WriteLine($"private readonly {property.BicepTypeReference} {property.FieldName};"); + writer.WriteLine($"private {property.BicepTypeReference}? {property.FieldName};"); } if (ParentResource is not null) @@ -96,8 +110,13 @@ public override void Generate() writer.WriteLine($"/// "); writer.WriteLine($"/// Gets or sets a reference to the parent {ParentResource.Name}."); writer.WriteLine($"/// "); - writer.WriteLine($"public {ParentResource.Name}? Parent {{ get => _parent!.Value; set => _parent!.Value = value; }}"); - writer.WriteLine($"private readonly ResourceReference<{ParentResource.Name}> _parent;"); + writer.WriteLine($"public {ParentResource.Name}? Parent"); + using (writer.Scope("{", "}")) + { + writer.WriteLine($"get {{ Initialize(); return _parent!.Value; }}"); + writer.WriteLine($"set {{ Initialize(); _parent!.Value = value; }}"); + } + writer.WriteLine($"private ResourceReference<{ParentResource.Name}>? _parent;"); } // Write the default value partial methods @@ -127,12 +146,36 @@ public override void Generate() writer.Write($" ?? \"{DefaultResourceVersion}\""); } writer.WriteLine(")"); + using (writer.Scope("{", "}")) { } + + // Write the properties + if (fence.RequiresSeparator) { writer.WriteLine(); } + writer.WriteLine($"/// "); + writer.WriteWrapped($"Define all the provisionable properties of {Name}."); + writer.WriteLine($"/// "); + writer.WriteLine($"protected override void DefineProvisionableProperties()"); using (writer.Scope("{", "}")) { foreach (Property property in Properties) { - writer.Write($"{property.FieldName} = {property.BicepTypeReference}"); - writer.Write($".DefineProperty(this, \"{property.Name}\", "); + writer.Write($"{property.FieldName} = "); + if (property.PropertyType is SimpleModel || property.PropertyType is Resource) + { + writer.Write($"DefineModelProperty"); + } + else if (property.PropertyType is ListModel lst) + { + writer.Write($"DefineListProperty"); + } + else if (property.PropertyType is DictionaryModel dict) + { + writer.Write($"DefineDictionaryProperty"); + } + else + { + writer.Write($"DefineProperty"); + } + writer.Write($"<{property.BicepPropertyTypeReference}>(\"{property.Name}\", "); writer.Write($"[{string.Join(", ", (property.Path ?? [property.Name]).Select(s => $"\"{s}\""))}]"); if (property.IsRequired) { writer.Write($", isRequired: true"); } if (property.IsReadOnly) { writer.Write($", isOutput: true"); } @@ -143,7 +186,7 @@ public override void Generate() } if (ParentResource is not null) { - writer.WriteLine($"_parent = ResourceReference<{ParentResource.Name}>.DefineResource(this, \"Parent\", [\"parent\"], isRequired: true);"); + writer.WriteLine($"_parent = DefineResource<{ParentResource.Name}>(\"Parent\", [\"parent\"], isRequired: true);"); } } @@ -191,28 +234,6 @@ public override void Generate() } } - // Add the FromExpression method - if (FromExpression) - { - if (fence.RequiresSeparator) { writer.WriteLine(); } - - writer.WriteLine($"/// "); - writer.WriteWrapped($"Creates a new {Name} resource from a Bicep expression that evaluates to a {Name}."); - writer.WriteLine($"/// "); - writer.WriteLine($"/// "); - writer.WriteWrapped($"A Bicep expression that evaluates to a {Name} resource."); - writer.WriteLine($"/// "); - writer.WriteLine($"/// A {Name} resource."); - writer.WriteLine($"[EditorBrowsable(EditorBrowsableState.Never)]"); - writer.WriteLine($"public static {Name} FromExpression(BicepExpression expression)"); - using (writer.Scope("{", "}")) - { - writer.WriteLine($"{Name} resource = new(nameof({Name}));"); - writer.WriteLine($"resource.OverrideWithExpression(expression);"); - writer.WriteLine($"return resource;"); - } - } - // Add the name requirements if (NameRequirements is not null) { @@ -249,22 +270,24 @@ public override void Generate() writer.WriteLine($"/// The keys for this {Name} resource."); string keyType = GetKeysType.Name; if (GetKeysIsList) { keyType = $"BicepList<{keyType}>"; } - writer.WriteLine($"public {keyType} GetKeys() =>"); - using (writer.Scope()) + string expr = $"new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), \"listKeys\"))"; + writer.WriteLine($"public {keyType} GetKeys()"); + using (writer.Scope("{", "}")) { - writer.WriteLine($"{keyType}.FromExpression("); - using (writer.Scope()) + if (GetKeysIsList) { - if (GetKeysIsList) - { - writer.WriteLine($"{GetKeysType.Name}.FromExpression,"); - } - string expr = $"new FunctionCallExpression(new MemberExpression(new IdentifierExpression(BicepIdentifier), \"listKeys\"))"; - if (GetKeysIsList) + writer.WriteLine($"return {keyType}.FromExpression("); + using (writer.Scope()) { - expr = $"new MemberExpression({expr}, \"keys\")"; + writer.WriteLine($"e => {{ {GetKeysType.Name} key = new(); ((IBicepValue)key).Expression = e; return key; }},"); + writer.WriteLine($"new MemberExpression({expr}, \"keys\"));"); } - writer.WriteLine($"{expr});"); + } + else + { + writer.WriteLine($"{keyType} key = new();"); + writer.WriteLine($"((IBicepValue)key).Expression = {expr};"); + writer.WriteLine($"return key;"); } } } diff --git a/sdk/provisioning/Generator/src/Model/SimpleModel.cs b/sdk/provisioning/Generator/src/Model/SimpleModel.cs index 3a8b3b23be65b..730390ba05b15 100644 --- a/sdk/provisioning/Generator/src/Model/SimpleModel.cs +++ b/sdk/provisioning/Generator/src/Model/SimpleModel.cs @@ -25,6 +25,8 @@ public override void Generate() writer.WriteLine(); writer.WriteLine("// "); writer.WriteLine(); + writer.WriteLine("#nullable enable"); + writer.WriteLine(); var fence = new IndentWriter.Fenceposter(); HashSet namespaces = CollectNamespaces(); @@ -51,19 +53,32 @@ public override void Generate() foreach (Property property in Properties) { if (fence.RequiresSeparator) { writer.WriteLine(); } - if (!property.HideAccessors) { writer.WriteLine($"/// "); string orSets = property.IsReadOnly ? "" : " or sets"; writer.WriteWrapped(property.Description ?? $"Gets{orSets} the {property.Name}."); writer.WriteLine($"/// "); - writer.Write($"public {property.BicepTypeReference} {property.Name} "); - writer.Write($"{{ get => {property.FieldName}; "); - if (!property.IsReadOnly) { writer.Write($"set => {property.FieldName}.Assign(value); "); } - writer.WriteLine("}"); + writer.WriteLine($"public {property.BicepTypeReference} {property.Name} "); + using (writer.Scope("{", "}")) + { + writer.WriteLine($"get {{ Initialize(); return {property.FieldName}!; }}"); + if (!property.IsReadOnly) + { + writer.Write($"set {{ Initialize(); "); + if (property.PropertyType is SimpleModel || property.PropertyType is Resource) + { + writer.Write($"AssignOrReplace(ref {property.FieldName}, value);"); + } + else + { + writer.Write($"{property.FieldName}!.Assign(value);"); + } + writer.WriteLine($" }}"); + } + } } - writer.WriteLine($"private readonly {property.BicepTypeReference} {property.FieldName};"); + writer.WriteLine($"private {property.BicepTypeReference}? {property.FieldName};"); } // Write the default value partial methods @@ -88,16 +103,41 @@ public override void Generate() writer.Write(" : base()"); } writer.WriteLine(); + using (writer.Scope("{", "}")) { } + + // Write the properties + if (fence.RequiresSeparator) { writer.WriteLine(); } + writer.WriteLine($"/// "); + writer.WriteWrapped($"Define all the provisionable properties of {Name}."); + writer.WriteLine($"/// "); + writer.WriteLine($"protected override void DefineProvisionableProperties()"); using (writer.Scope("{", "}")) { + writer.WriteLine("base.DefineProvisionableProperties();"); if (DiscriminatorName is not null) { - writer.WriteLine($"BicepValue.DefineProperty(this, \"{DiscriminatorName}\", [\"{DiscriminatorName}\"], defaultValue: \"{DiscriminatorValue}\");"); + writer.WriteLine($"DefineProperty(\"{DiscriminatorName}\", [\"{DiscriminatorName}\"], defaultValue: \"{DiscriminatorValue}\");"); } foreach (Property property in Properties) { - writer.Write($"{property.FieldName} = {property.BicepTypeReference}"); - writer.Write($".DefineProperty(this, \"{property.Name}\", "); + writer.Write($"{property.FieldName} = "); + if (property.PropertyType is SimpleModel || property.PropertyType is Resource) + { + writer.Write($"DefineModelProperty"); + } + else if (property.PropertyType is ListModel lst) + { + writer.Write($"DefineListProperty"); + } + else if (property.PropertyType is DictionaryModel dict) + { + writer.Write($"DefineDictionaryProperty"); + } + else + { + writer.Write($"DefineProperty"); + } + writer.Write($"<{property.BicepPropertyTypeReference}>(\"{property.Name}\", "); writer.Write($"[{string.Join(", ", (property.Path ?? [property.Name]).Select(s => $"\"{s}\""))}]"); if (property.IsRequired) { writer.Write($", isRequired: true"); } if (property.IsReadOnly) { writer.Write($", isOutput: true"); } @@ -107,28 +147,6 @@ public override void Generate() writer.WriteLine($");"); } } - - // Add the FromExpression method - if (FromExpression) - { - if (fence.RequiresSeparator) { writer.WriteLine(); } - - writer.WriteLine($"/// "); - writer.WriteWrapped($"Creates a new {Name} resource from a Bicep expression that evaluates to a {Name}."); - writer.WriteLine($"/// "); - writer.WriteLine($"/// "); - writer.WriteWrapped($"A Bicep expression that evaluates to a {Name} resource."); - writer.WriteLine($"/// "); - writer.WriteLine($"/// A {Name} resource."); - writer.WriteLine($"[EditorBrowsable(EditorBrowsableState.Never)]"); - writer.WriteLine($"public static {Name} FromExpression(BicepExpression expression)"); - using (writer.Scope("{", "}")) - { - writer.WriteLine($"{Name} resource = new();"); - writer.WriteLine($"resource.OverrideWithExpression(expression);"); - writer.WriteLine($"return resource;"); - } - } } // Write out the model